eclipse-rcp

Redirect ILog Messages

Hi, I'm currently developing a RCP Eclipse Application. For logging purposes I use SFL4J over log4j. For my own code this works well since I can specify the correct logger ( LoggerFactory.getLogger ... logger.debug...). But how can I redirect all the plugin logs to the same location, so that I can see all exceptions from other rcp plugi...

Eclipse RCP Splash Screen

I'm involved in a project that is attempting to use the Eclipse RCP splash screen to gather user credentials, language, etc. If this screen loses focus, it is not available (under Windows at least) through the ALt-Tab functionality, and can only be found by minimizing all other windows and uncovering it. Any way of having this screen all...

Programmatically showing a View from an Eclipse Plug-in

I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to the "Show View..." menu. I would think that there would be something in the wor...

Use maven2 for build-automation and continuous integration of an eclipse rcp project?

My company starts a new project next week. We have planned to develop the application with eclipse rcp. The build process should be fully automated, so we're prepared to set up a continuous integration environment (e.g. Continuum). For the build-automation-part I intended to use maven2, because I want use its dependency management. I ha...

Eclipse RCP client and redirecting the console to a file

I'm running an Eclipse RCP application. I've enabled the flags -console -consolelog -debug and now it's humming along logging to it's console. However, I'd like it to log to a file. If I start the application from within the Eclipse IDE, I can select a file for it to redirect the console to. There must be some equivalent flag och proper...

Eclipse RCP: Where should I keep my model objects and how do they talk to the views?

In Eclipse RCP way of doing things, where should I keep my model objects? And when they are loaded or changed, how should they talk to the views? I am attempting to port my existing application to Eclipse RCP. It could be viewed as an IDE-like application: I open a file, which contains links to source files. The source files are display...

Suggestions for Automated Code coverage for an Eclipse RCP?

I would like to include some code coverage into our nightly build process. We're using CruiseControl, Ant, and Buckminster. Buckminster drives checkout from multiple repositories, and the PDE building and packaging of the product. Has any one any experience integrating code coverage into an RCP headless build? I have been looking at Co...

Starting working with Eclipse RCP

I'm going to start maintaining an Eclipse RCP application for my current employer soon. What are your experiences with this platform? What are the pros, what are the cons, what are the caveats that I should be aware of? Also, what reading materials (books, tutorials) can you recommend? Most of the tutorials I found on the web are outdate...

Why does Table.getItem(Point) always return the item from column zero?

I've implemented a class to give me a more flexible tooptip for the org.eclipse.swt.widgets.Table class. As I'm sure you all know, by default you get one tooltip for the whole table - and not individual tips for each cell. My object creates a number of listeners to implement it's own location sensitive tooltip, however, when I call Tabl...

Eclipse RCP and JFace: Problems with Images in Context menu and TreeViewer

I'm working on an Eclipse RCP application. Today I experienced some troubles when displaying images in the context menu. What I wanted to do is to add a column to my table containing images of stars for representing a user rating. On Windows, this causes some problems, since the star images are squeezed up on the left corner of the table...

How best to maintain an Eclipse RCP plugin target?

I have a plugin for an RCP app that uses BIRT. I have a target for building my app which contains only the plugins/features that are required. I recently updated the BIRT plugin versions in my IDE, which created an incompatibility in the design files with previous versions of BIRT. I have the old version of BIRT in my target and need to ...

How do I get the workbench window to open a modal dialog in an Eclipse based project?

In order to open a modal dialog, you need to pass a parent window, and pass the necessary flags for the dialog to be modal of course. Depending on where you are in the eclipse infrastructure, finding this parent window is not always easy. How can the parent window be accessed? ...

How to write eclipse rcp applications with scala?

The Scala Eclipse plugin page says: * Support for Eclipse plugin and OSGi development including hyperlinking to Scala source from plugin.xml and manifest files. How does this support work? There's no wizards for making Scala plugins. I've found no documentation on how to use Scala in a Eclipse plugin/RCP application. Is it even possible...

TableViewer - how to reveal() and item *and* select it?

I have thus far built an Editor and a Viewer that both work on the same sort of database resource. I'm trying to implement the sort of behaviour seen in the JDT: where selecting a files editor selects the same file in the Package Explorer. I have ground to a halt on interaction with the TableView. Can anyone tell me how I can 1) iterat...

Eclipse RCP: Problem creating product which needs 2 different versions of a plugin

For reasons of compatibility with an external product, I need to build a RCP application which must include 2 versions of a plugin. The plugin is org.apache.lucene which is currently 1.9.1 in eclipse 3.4. I need version 1.4.103 in order to be compatible with the other application. I should say that my RCP app was originally developed usi...

How to hilight a section of a TableView cell as part of the filtering process?

The backstory: I am applying a filter to a TableView. It's a simple 'find the rows with this string' filter. The requirement: I wish to hilight instances of the search term where they occur. Thus far I can see no means of doing this. ITableColorProvider let's me apply colours to entire cells, but not to a fraction of it. Clues most w...

How to tell user events from synthetic events?

I have a JFace editor that is mostly made up of a TreeViewer. This is hooked up to a ContentOutlinePage to bring the Outline view to life. When either one receives a SelectionChangedEvent event they call the others setSelection() method ... and therein lies the problem. setSelection() generates another SelectionChangedEvent ... and thus...

Layout problems by FieldEditorPreferencePage

Hello, I have following problems with layout settings in the FieldEditorPreferencePage. My code is something like that: public void createFieldEditors () { Group pv = new group(getfieldEditorParent(), SWT.SHADOW_OUT); Group of = new group(getfieldEditorParent(), SWT.SHADOW_OUT); pv.setText(“pv”); of.setText(“of”...

How to diagnose an Invalid thread access SWTException?

We're customizing an Eclipse RCP based tool for a client. They have trouble loading it on one of their computers (it works on others) and have provided the following error log. !SESSION 2009-01-23 12:09:05.593 ----------------------------------------------- eclipse.buildId=unknown java.version=1.5.0_12 java.vendor=Sun Microsys...

Enumerating all my Eclipse editors?

I have built a simple Eclipse plugin where a user may use a tableViewer of database resources to open an editor on any of those resources. Users may therefore have zero upwards instances of the editor running. Is there an API available to get a list of those editor instances? M. ...