Implement page scrolling (like hand tool in Acrobato Reader) in my Eclipse Plugin Editor - eclipse

I'm developing an Eclipse Plugin Editor that has a Flyout Palette with several tools in it (like selection and so on).
I was wondering how to add a special tool (let's call it "hand tool") that scrolls the page in the same way the "hand tool" of the Acrobat Reader scrolls the page of a PDF document.
I'm googling for some ideas of how to tackle this problem, but with no success, so far. Could you please give me some hint?
Thanks in advance :)

I assume you are using GEF? My answer may be trivial, but i'm trying to throw in some ideas.
org.eclipse.draw2d.Viewport class has pair of getViewLocation()/setViewLocation() metods. It seems that using them you can scroll your view as desired.
Now you'll need a tool. Explore the hierarchy of org.eclipse.gef.tools.AbstractTool descendans to find some examples of desired behavior and create your own tool class for your functionality.

Related

Missing component tab in blueprint

I can't find the component tabs anymore. It shows here that the component tab is opening but actually it isn't. I've cleared all the window but this tick of components tab still exists. Now my code is broken and I can't link the new tank barrel to the Tank_BP blueprint class. What should I do? Try resetting layout and even reinstall Unreal but it still didn't work. Any help will be appreciated!
Screenshot
Are all actor blueprint editor view all the same as you described? Did the log report some errors about that?
I think maybe there is something wrong with your editor, several ways to solve youre problem:
+ If you are using the installed version(which is installed from Epic Games Launcher),just try to use verify to repair your editor.
verify entry
If you are using the compiled version, just try to debug the blueprint editor module.

Attach event listeners to in application items with Adobe extendscript

The title pretty much sums it up. But, basically is it possible with Adobe applications to add event listeners to in-application items, such as a pathItem in Illustrator?
So I want something to happen when I click on a pathItem in Illustrator - or something like that. Is this possible?
I'm afraid I know the answer.
Sorry. That is not possible with scripting. Maybe with a plugin.
You can use Scriptographer, it's a scripting plugin for Illustrator with own scripting engine with keyboard and mouse events.
But this plugin works with old illustrator's version (CS5 and older).
wouldn't this work to handle the click/selection event?
AIEventAdapter.getInstance().addEventListener(AIEvent.ART_SELECTION_CHANGED,function(event) {});
If you are talking about exported PDF's or SVG's, you are able to add a link in the attributes panel and insert any javascript you like:
javascript:alert('you clicked on this line');
If you want something to happen in Illustrator, while you are using the program, then there is no way as far as I know to affect anything.
You can run scripts using keyboard shortcuts.
If you could clarify your use case I might be able to help more.

ReSharper 8 Plugin Development Solution Explorer Panel Indicator

I want to write a ReSharper 8 plugin that will give a visual indication (icon maybe?) to the user in solution explorer panel if the number of projects in a solution exceeds a configurable amount.
Can a ReSharper plugin accomplish this or must I find another way? Must I create a SolutionComponent?
There's actually a set of things that you need to make this happen:
You need to add a visual element to be placed somewhere. I believe you can define an icon in Actions.xml, but as I understand, the solution explorer tool bar contains only buttons, though I could be wrong. An alternative approach would be to actually decorate the solution icon the way that source control plugins do. There are also other approaches, e.g. StatusBarIndicator.
A solution component is essentially some component that exists only while there's a solution loaded. What you need is different - a mechanism of monitoring solution changes and project model changes.

Eclipse plugin: Place custom icon in Java Editor

I'm new to eclipse but I want to prototype something. The APIs are a bit of a maze. I would like to programmatically place (and then move/remove) an icon on a given line in the editor, preferably in the margins.
Here's an example:
Does anyone have an idea, or a good strategy for implementing something that?
Take a look at the following extension point org.eclipse.ui.workbench.texteditor.rulerColumns

How to add views to Show In menu for particular file types

I use an older plugin called Veloeclipse for editing Velocity templates in Eclipse. There's been no development on this since 2009, which isn't a problem because it's mainly just for syntax highlighting and format validation. The really annoying thing about it, however, is that when I try to do Show In to view the current Velocity template within my Package Explorer or Project Explorer, the only available option is Properties. That's not really useful. I really need to be able to get to the file in one of the regular explorer views.
So I have sort of two questions:
Is there a way to configure this without having to monkey with any code? A configuration file or something? I've grepped through my Eclipse installation and haven't seen anything, but I'm hoping that there's something I'm missing.
So assuming that the answer to my first question is no, how do I go about modifying the plugin code so that it will show more than the Properties view in the Show In menu? Most of what I found on the plugin development wiki comes from the other direction: how to make your view or perspective appear in the Show In menu.
Any help with this would be hugely appreciated!
Try to check the plugin source code. it might do something different than other editors. What I mean is that the show in menu item that you have there is not the usual extension point but a hard coded context menu option.