eclipse-pde

Developing on Eclipse 3.4, running on Eclipse 3.3

I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others. I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new features in Eclipse 3.4 and would like to use it for my development. This means I need PDE...

Building Eclipse plugins and features on the command line

I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc. Is there really no simpler solution? Isn't there a way to just point out my Upda...

Customizing AntRunner output

I'm using Eclipse's AntRunner to build a set of plugins, but I'm having trouble in configuring the logging behavior. Specifically, I'd like AntRunner not to display empty tasks. Anybody knows how to do this? ...

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...

How to run Eclipse launch configurations programmatically?

I'm finding it difficult to phrase this question well, as there are quite a few generic terms (run, configuration, launch, etc.). Here goes: You can save run configurations in a .launch file. (in the Run Configuration Dialog, under the Common tab, Save as a shared file. We check these in to SVN. The developers can pass them around, and...

How do I attach source code locations to plugins in my Eclipse RCP target platform?

I've got a workspace with multiple RCP plugin projects. We've set the target platform, so we can build against a standard set of plugins, but are not able to see source code and Javadoc for all the platform plugins. The Windows -> Preferences -> Plug-in Development -> Target Platform -> Source Code Locations page doesn't seem to have a...

Running Eclipse Junit Plugin tests with Junit 4.4 or newer -- why aren't tests detected?

I need to use JUnit 4.4 (or newer) in a set of eclipse plugin tests, but I've run into the following problem: Tests are not detected when running with the junit 4.4 or 4.5 bundles from springsource ([junit44] and [junit45]). The org.junit4 bundle that can be obtained with eclipse supplies junit 4.3 (as of Ganymead / Eclipse 3.4). The ...

Automating unit tests (junit) for Eclipse Plugin development

I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for unit testing as described here, here and in a couple places here. However, each of ...

Deploying a newly developed Eclipse Plugin

I have written an Eclpise plugin (an Error Parser for the CDT), and it works just fine in the debugger version of eclipse. However I cannot for the life of me figure out how to install the plugin into eclipse. I can export the plugin as a jar file, and it seems to export without errors. I put the plugin jar file into eclipse\dropins a...

Easy way to add a context action to Eclipse

I'm trying to add a very simple action to the context menu of Eclipse: clicking with right button over a folder object, this action should call an external tool (configured in the "External Tools") using the path of the folder as the only parameter. I've found a tutorial on how to add a context menu, but it's more complex than what I ne...

SWT Image concatenation or tiling / mosaic

I have an Eclipse RCP application that displays a lot (10k+) of small images next to each other, like a film strip. For each image, I am using a SWT Image object. This uses an excessive amount of memory and resources. I am looking for a more efficient way. I thought of taking all of these images and concatenating them by creating an ...

How do you communicate between eclipse declarative services and Views (ContentProviders)

Say you have an eclipse plugin with various views, these views should display data from some OSGi bundle that pushes data to the Views. Rather than have every view communicate with the OSGi bundle, I have an intermediate Facade class that acts as a blackboard for the views and manages communications between the views and the other OSGi ...

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...

access project directory from eclipse plugin

This is a question already asked by someone: http://stackoverflow.com/questions/242032/eclipse-project-directory The answer was good: using ResourcesPlugin. But for some reason, under no circoumstances will my Ganymede eclipse recognise the existence of "org.eclipse.core.resources" package which contains ResourcesPlugin. Why is that? ...

Eclipse PDE on Mac OS X: Getting the correct font size at runtime?

Hi. There's an annoying "feature" when using Eclipse PDE on Mac OS X: the font size of the runtime IDE is not the same as the true IDE. If you're developing a plug-in and you launch an Eclipse instance to test it (from within Eclipse), you will notice that the spawned instance looks very different from the original running Eclipse insta...

Eclipse Plug-in Development with TDD

I want to add a view to a perspective without having access to the source code of the perspective. Is this possible? Is there a good tutorial for plug-in development using TDD? [edit] I think I have a good starting point with TDDing in plugin development Automating unit tests (junit) for Eclipse Plugin development [edit 02/17/09] I wa...

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? ...

Eclipse editor plugin: "ERROR" when opening file outside project

I'm developing an editor plugin for eclipse. It works fine on files within eclipse projects, but when an external file is opened via the "File -> Open File" menu (which works file with, e.g. Java files), I get a page displaying nothing but a horizontal blue line and the word "ERROR". The Error Log of eclipse is empty, as is the log file ...

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...

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...