eclipse-rcp

jface tableviewer cell-span

I am endeavouring to render some hierarchic data in a TableViewer (the TreeViewer isn't a good fit - trust me on this :-). Consequently I need to render the parent cells with a row-span > 1. As far as I can tell, this currently isn't possible with the regular JFace TableViewer, or the SWT Table underneath. Can anyone tell me I'm wrong?...

Eclipse RCP Plugin development - Can't get new menuContribution option

I am using Eclipse 3.2. For an RCP application, I am trying to extend from org.eclipse.ui.menus. When I right-click and pick new option, "menu Contribution" isn't appearing. I only see options 'item', 'menu', 'group', 'widget' under 'New'. There is no option named "menu Contribution". Am I missing anything in target platform? If so, whic...

Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?

I'm currently evaluating maven to improve our build process. The building and creating of normal jar files works so far, although I'm not entirely happy with the Maven IDE. I'm now at that point, where all libs I need for our project are built, and I'm moving on to the Eclipse RCP projects. And now I'm not sure how to go on. There are ...

How do I get the OSGi BundleContext for an Eclipse RCP application ?

I have just gotten started with an Eclipse RCP application, it is basically just one of the provided "hello world" samples. When the application boots up, I would like to look at my command-line parameters and start some services according to them. I can get the command-line parameters in IApplication.start: public Object start(IApplic...

How to launch the default (native) application for a given file from Java?

I am displaying a list of files; i.e. xls, doc, pdf, odt etc., in my Java application (Eclipse RCP). When the user clicks on the file, I want to launch the appropriate (according to what the OS thinks) native application, just like it happens in Windows Explorer or the Finder. And while I am here: It would be nice to also display the s...

Eclipse RCP: Application doesn't recognise the defined editor. (Getting PartInitException).

I extended from org.eclipse.ui.editors and defined the editor-id in plugin.xml as "MyEditorId". I wrote corresponding editor class. Then I tried to open the editor from a view with this code. page.openEditor(input, "MyEditorId"); But I am getting "PartInitException". i.e apllication is not recognising the editor by it's id. I have che...

What is the best way to learn Eclipse RCP? Does it feel different to only me?

I am used to structural programming (eg:C), OO programming(eg:Java), Scripting(eg:Javascript), Web (eg:HTML,JSP,Servlets,CSS) etc. Now, when I am getting started with Eclipse RCP plugin development, the whole thing gives a strange feel to me in terms of programming. The way things are in Eclipse RCP development is quite different from o...

How to get the selected node in the package explorer from an Eclipse plugin

I'm writing an Eclipse command plugin and want to retrieve the currently selected node in the package explorer view. I want to be able to get the absolute filepath, where the selected node resides on the filesystem (i.e. c:\eclipse\test.html), from the returned result. How do I do this ? ...

In Eclipse plugins, is there a programmatic equivalence to the markerAnnotationSpecification extension point?

The extension point org.eclipse.ui.editors.markerAnnotationSpecification is used to change how certain user-defined text annotations appear in the editor. Is there a way to create or modify or override these programatically from a plugin? ...

In eclipse API, How to get IFile from file that locate outside project or workspace

I want to create IFile interface to open file that locate outside project or workspace. How to get IFile interface? Regards, Simon ...

Eclipse RCP : How to show message dialog after editor loads?

I am opening an editor from a view on click of a treenode. Now, when editor loads and controls are displayed to the user, I want to display a warning message dialog to the user based on certain values present on the editor. I tried by putting the warning dialog at the end of createPartControl method of the editor. Dialog appears on doub...

Eclipse RCP: Is it possible to shift the fields up without redrawing?

In my editor, I have a composite containing a label control right at the top which flashes informative message in red colour whenever the user enters erroneous inputs in any of the below lying fields. The text keeps changing dynamically depending on user's input. I am able to achieve the effect of displaying red coloured text on erroneo...

Capturing kill signal in Eclipse RCP application

I've got a command line version of an Eclipse RCP GUI application that can makes use of a lot of the same plugins (this is handy for integration testing). One thing it does is connects to a server, requests stuff and starts an interactive loop. To exit, the user of the GUI app can stop the loop and close the application. In my command l...

Eclipse Plugin Dev: How to use new Rich Text Hovers (since 3.4)

I've implemented plain text hovers in my plugin with ITextHover. And now I want to use new eclipse 3.4 feature - Rich text hovers with text styles, images and actions.But I can't find articles/examples about it. What interfaces should I use and where? I found ITextHoverExtension2 interface, but can't find how to create hover objects (wha...

In Eclipse RCP, how do I disable a save toolbar button according to the "dirty" property in editor

In my eclipse RCP 3.3 application, I would like to enable or disable a 'save' toolbar button according to current editor dirty flag. I'm trying to use the <enabledWhen> tag but I can't make it work. Here's the portion of code in plugin.xml : <command commandId="org.acme.command.save" icon="icons/save.png" id="org.acme.command.save...

Proper way to bind a radio button group using JFace data binding

Hello, I was wondering if anyone could explain to me how I could properly bind a group of radio buttons to a boolean variable in the model using JFace data binding. Let me explain the situation first: I've created a class that represents a group of SWT buttons (with the style set to 'SWT.RADIO') that consists of three elements: A label...

What does $NON-NLS-1$ mean ?

In Eclipse source code, I've found some '$NON-NLS-1$' in comments used like that : private String toolTip = ""; //$NON-NLS-1$ What does that mean ? ...

Can you embed Flash (SWF) in Eclipse-RCP apps

I have no background in Eclipse-RCP. My understanding is that a eclipse-rcp app is a rich client technology similar to Adobe Air. Is it possible to embed a swf flash movie in a panel inside a eclipse-rcp app? Can the flash talk via ExternalInterface to the application? Thanks. ...

Extending Eclipse's JavaEditor (to act like Vim/change KeyListener)

Introduction a.k.a. what do I intend to do feel free to skip this part, no real information is comprised in here Because of the lack of a good, free (as in speech) vim-Mode for the otherwise excellent JavaEditor in Eclipse(3.4), I'm thinking about writing one. The available solutions are: ViPlugin: commercial and not good (e.g. no vi...

In an Eclipse RCP editor, what is the best way to handle missing mandatory fields ?

On an Eclipse RCP application, I'm building an Editor in which some fields are mandatory. If the user saves the editor with theses fields not filled, what is the best way/practice to handle this ? (my first guess is to show an error dialog if theses fields are empty in doSave() method but I'm not sure it's the "eclipse" way to deal wit...