eclipse-rcp

RCP app & change background color and putting image in center of application

Hello, I would like to set the background color of my RCP application to white and show a center image (logo). This is because due to the fact, that no views or editors are shown beforehand and the user should select which perspective to open. This is necessary because I defined a backgroundview which would be shown first, but this prev...

Is there a way to support DND between a standard eclipse instance and an RCP?

We ship an eclipse RCP with a main view that contains a structured viewer. I define a DropTarget on the viewer that seems to work fine (supports File, Plugin and Resource Transfer Types). The only problem is, when I use this with our other product, an IDE based on the full eclipse platform, I can't get the resource from my selection in...

Eclipse RCP File Browser in ViewPart or Editor?

I am implementing a file browser, in Eclipse RCP, using a TreeViewer. Would it be best to put it in an Editor or ViewPart. I ask because, I need to be able to pass the root path for the browser and do not know of a way to do so with a view. As views are not instantiated directly. ...

Eclipse RCP: Add project to CNF-based Navigator

Hi, I am working on an RCP application. Currently, I am stuck on trying to get the project created from my custom wizard to open the files in my CNF-based navigator. I am not really sure whether it needs to be done on the navigator-side or the wizard-side. ...

Eclipse RCP get elements by ID

I don't know RCP very well yet, but I've been reading a lot of the docs. I don't know if my question makes sense; I apologize if not and beg that you try to work out what I mean and come up with some kind of answer. I have a tree view element, which has a double click listener on it. In another part of the window there is a layout folde...

How to un-set a keybinding for a particular locale

I have an Eclipse plugin that makes use of several keybindings (Alt-G x, Alt-G y, etc...). For most keyboard layouts, there are no problems for these specific keybindings. However, for Swiss German, it turns out that 'Alt-G' creates '@' and this makes it very hard for Swiss Germans to use the plugins I created. I do not want to change...

How to set initial state of an Eclipse action contribution

What I'm trying to achieve is to contribute an action to the IProject pop up menu. The action is defined like this in my plugin.xml: <extension point="org.eclipse.ui.popupMenus"> <objectContribution adaptable="true" objectClass="org.eclipse.core.resources.IProject" nameFilter="*" ...

How to bind a TableViewer to a java.util.List in Eclipse RCP

I'm trying to bind a TableViewer to a models = List<ModelObject> , but I don't really get the hang of it. The binding should be possible via master-detail and a databinding context (DataBindingContext), so that I'm able to write the changes of the list (and its elements) to the model only on request (dbc being set to POLICY_ON_REQUES...

How do you get org.eclipse.equinox.p2.ui.sdk.scheduler/enabled to be true using plugin_customization.ini in the Eclipse RCP?

I'm trying to build an Eclipse RCP application, and in the process, we're trying to set the application to automatically update. We're trying to have it automatically set the right preferences in the Preferences -> Install/Update -> Automatic Updates page. I've set all of the preferences I want in the plugin_customization.ini file fo...

Eclipse RCP problem

hi guys ? I used a third-part view in my RCP application,there is a TreeViewer in this view. I want to add a handler to handle the tree node selection event, how to do this ? ...

JFace/SWT: Change the labels for buttons in InputDialog

I want to create an InputDialog with custom labels for the OK/Cancel buttons. I'm using org.eclipse.jface.dialogs.InputDialog. I tried to override the button creation method: @Override protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); getButton(IDialogConstants.OK_ID).se...

Disable JSP Validation in Eclipse Galileo

I have a huge RCP application studio built over eclipse. I have lot of JSP pages and I wish to disable validation. The challenge is there is no Validation option in project properties but eclipse internally checks all JSP's and generates lots of warnings. The issue can be tackled in two ways: - Disable all validations via code ...

RCP Icon service not working

I have been adding icons to org.eclipse.ui.commandImages, but when I try to look them up the command image service can't find them. Best demonstrated with code: ICommandImageService imgService = (ICommandImageService) PlatformUI.getWorkbench().getService(ICommandImageService.class); ImageDescriptor imgDesc = imgs.getImageDescriptor("som...

EPF export product problem

I have downloaded EPF(Eclipse process framework) project executable and its source code also. After I checked out the epf source code from CVS I need to run it in the same way what I have got as an exe format. I got the main plugin which have branded as product. But when I tried export the product I got the error message saying the prod...

How to inherit class WizardResourceImportPage?

I want to create a 'new project' wizard for my application. The first page of this wizard is simply the instance of org.eclipse.ui.dialogs.WizardNewProjectCreationPage. I want to import some system files to current project in the second wizard page. I found that org.eclipse.ui.dialogs.WizardResourceImportPage is quite close to my thougts...

How to determine that a JFace or SWT Dialog is currently open?

In our RCP application, we need to resort to using a global key event handler (via Display.addFilter()) for more advanced key event handling/routing irrespective of current focus. We need to be able to determine if a dialog box is currently open for some of the routing logic. Seems like a fairly trivial question but I keep hitting dead ...

Eclipse RCP; what is the use of the 'description' field of a org.eclipse.ui.commands command?

When adding a command to the extension org.eclipse.ui.commads, there is a field 'name' and a field 'description'. The name field seems to be used at most places. When will description be used? ...

Eclipse: Storing info in .project file

Hi, I'm trying to associate information with projects (certain properties). I tried using the persistence store (getPersistentProperty() and setPersistentProperty()). The problem with that is that when I export the project and re-import it in a different workspace, those properties are gone (since they are stored somewhere in the .metad...

Learning Eclipse RCP and SWT/JFace

I am new to to Eclipse RCP and SWT/JFace. I intend to purchase the Second Edition of the well known Eclipse Rich Client Platform book by Jeff McAffer, Jean-Michel Lemieux, Chris Aniszczyk. I wish to know from people who have read any of the editions of the book whether the book serves as a good introduction to both the topics (RCP and SW...

How to create an Eclipse RCP application re-using some "Eclipse IDE plugins"?

Hi, How can I create a RCP application, which looks exactly like the Eclipse IDE with all menus, views, dialogs...? Here is one example: http://richclientplatform.blogspot.com/2007/12/oil-and-gas-industry-using-eclipse.html I followed Lars Vogel's tutorial to create a simple RCP application: http://www.vogella.de/articles/EclipseRCP/a...