eclipse-rcp

Fast views in eclipse rcp application

How to add a fast view to my eclipse rcp applicatio? ...

Dynamic context menu items

I am using Eclipse RCP to build desktop app. When the user invokes a popup menu I'd like to add some items to the menu. Something like a list of "suggested actions" to take for a problem. The pop-up is is on a table and it already has commands on it. What is the right way to implement this? ...

Determing size of visible area of a ScrollingGraphicalViewer in Eclipse GEF

I am attempting to create a simple application using Eclipse GEF that displays a diagram inside a ScrollingGraphicalViewer. On start-up I want the diagram to be centered inside the viewer (imagine a star layout where the center of the star is in the center of the view). Here are what I think are the relevant code sections: My view: pu...

How to add a pulldown button in a view's toolbar?

I need to add a pulldown button to a view's toolbar in an Eclipse plugin. Actually buttons in the toolbar are added like that : <extension point="org.eclipse.ui.viewActions"> <viewContribution id="..." targetId="$MyViewId$"> <action id="..." toolbarPath="action1" class="Class extending Action and implement...

Search text field on menu bar

In a Eclipse RCP application, is there any way I can have text field (for search) on menu bar? For example I have menu: File Edit ... Search: |___text field___| The text field is located at the right end of the menu bar. ...

Why does headless PDE Build omit directories I've specified in build.properties's bin.includes?

One of my Eclipse plug-ins (OSGi bundles) is supposed to contain a directory (Database Elements) of .sql files. My build.properties shows: bin.includes = META-INF/,\ .,\ Database Elements/ (...which looks right to me.) When I build and run from within my interactive Eclipse IDE, everything works fine: calls to ...

Close Eclipse Application Programmatically

I have an Eclipse Application that I want to close. The catch is that it is a headless application, so I can not use the following method: PlatformUI.getWorkbench().close(); What alternative can I use to close the application cleanly? My main plugin, the one that defines the product and the application, contains the following depende...

Contributing to the Status Bar/Trim in Eclipse RCP

I have a requirement to show a status indicator in the status bar of an Eclipse application. I can't contribute through the ApplicationWindowAdviser (another team owns the core product), but I feel sure that I should be able to contribute through an extension point. Despite much googling, I can't find anything describing how to do this. ...

CommonNavigator in own RCP - App doesn't show anything

Hello, i used the sample mail rcp application to test out the common navigator framework. I added a view and attached it to my contentprovider. Unfortunately nothing is shown in my view, no function from my contentprovider or labelprovider even get's called. Here is my plugin.xml <extension id="application" point...

How can I put my own text hover into default Eclipse editor?

I need to put some extra information into to the standard "javadoc" hover, that shows up when you go with mouse over some token. Or I need to create a new hover showing that information while pressing some key (like alt) and then hovering (I can see that this is done e.g. with the shift key, which enables us to see the hover with sourcec...

Positioning new editors side by side

Hi there... I'm working on an eclipse rcp application and want to avoid this effect when opening a new editor: http://www.fotos-hochladen.net/stackededitorsfcpt3zoq.png and want to achieve this effect programmatically: http://www.fotos-hochladen.net/separareeditorsmv58nzua.png Has anyone an idea how this can be achieved? Thanks! :...

When to choose "Generate an activator..." when creating a new Eclipse plugin project

There are lots of Eclipse RCP tutorials that begin with the obvious first step: "Create a new plugin project..." It seems that approx. 70% of them specify checking the "Generate an activator, a Java class that controls the plug-in life cycle". The others specifically say don't check that toggle. Its not clear to me, what generating a...

How to integrate a custom ISelectionProvider with Eclipse enabledWhen expressions?

I have a custom graphical EditorPart in a Eclipse RCP application. It sets a custom ISelectionProvider in the createPartControl(..) method: @Override public void createPartControl(Composite parent) { // [snip] getSite().setSelectionProvider((ISelectionProvider)model.getSelection()); } I have two ViewParts listening to selec...

"This plug-in will make contributions to the UI" option - behavior and explanation

Does the option "This plug-in will make contributions to the UI" essentially get ignored if the previous option "Generate an activator, a Java class that controls the plug-in's life cycle" is NOT selected" ? ...

Suppress checking for changes on file system in Eclipse RCP

Okay, I guess this question is too difficult, but it's worth a try. I have an eclipse RCP application that edits HTML-files. I deal with the content of the files only in a W3C-Dom representation. There is some stuff that I can not do with that, so I the program edits each file each time after it is saved (save, save as). Of course, the ...

eclipse rcp palette creation

Does any one know how to create a palette like Visual Editor widget palette? I think that it should be e component but I don't know where to find it and how to use. ...

Eclipse RCP Preferences Dialog Tree Size

In my RCP application, I'm trying to use the Eclipse preferences dialog. I'm adding extensions to the "org.eclipse.ui.preferencePages" and preparing related IWorkbenchPreferencePage implementations. My preference page names are a bit long, so that they are not totally visible on the left side tree of the preferences dialog. Dragging the...

Publishing selection in eclipse RCP

I'm writing an RCP application plug-in. I want to make a set of objects the global selection from a IHandler but this can be triggered from other views out of my control - it is possible that these do not have an ISelectionProvider. Is it possible to publish a selection to the eclipse selection service without going through some view si...

Docking *inside* an editor

I have a document type which has multiple presentations. Say I want to display the document in an RCP editor with a customizable subset of those presentations, in a layout chosen by the user. One option that has come up is docking-like behavior for the panels inside an individual editor, with drag-and-drop, resizing, closing, maybe rol...

How can I filter out the "My Computer"-option in a SWT DirectoryDialog?

Hello *, in our Eclipse RCP application running on Windows XP we use a DirectoryDialog, in which the user should... ahmm... choose a directory! :D The problem is: If the user selects the "My Computer"-option (in German Windows "Arbeitsplatz") the Dialog returns null. The DirectoryDialog provides a method setFilterPath(String path) in ...