eclipse-pde

Scripting Eclipse with Rhino: classloader belongs to the plugin providing Rhino, not the plugin using it

I am using Rhino to script an Eclipse (RCP) application. The problem is that from Javascript I only have access to classes available to the plugin that provides Rhino, and not to all the classes available to the plugin that runs the scripts. The obvious answer would be to put Rhino in the scripting plugin, but this doesn't work because ...

Eclipse: starting custom eclipse app under linux returns to the command line prompt instantly

Hi, I am developing an Eclipse/Equinox based OSGI WebApplication (using embedded Jetty) and using headless PDE-Build for building the app. My build creates a zip file for Linux GTK and one for my local macosx. This has worked well so far and I could just unzip the linux zip file on my Debian based server and run ./eclipse from the comma...

Headless build should include all dependencies

I have a product consisting of several plugins that I want to build. The endresult I want is a zipfile containing all my jar files AND the dependencies I have, i.e org.eclipse.swt.X.jar, org.eclipse.ui.Y.jar etc. It's building and zipping ok but I only get my plugins, not the dependencies. I'm guessing there is a parameter or XML attri...

Using Maven to build an Eclipse Plugin - latest opinions

I am building a plugin for Eclipse - but as we use Maven as a standard build platform I would like to be able to build the plugin using Maven. I have found a previous question about using Maven with Eclipse Plugins - but as it is a year old I thought it was worthwhile collecting some new answers: http://stackoverflow.com/questions/5455...

How to handle packages provided Java using Eclipse P2

I got some OSGi bundles in binary form that declare dependencies to bundles like "org.ietf.jgss" which are provided by Java itself. P2 detects these dependencies and when I try to install the product later using the P2 director application the installation fails since no bundle provides these packages. But if I use the P2 product build I...

Eclipse: What is the minimum Eclipse installation needed for a headless PDE build?

Hi, I am currently using PDE build in headless mode to build my OSGI Bundle project. The PDE Antrunner task uses an Eclipse installation and I am just pointing it to my local Eclipse installation. unfortunatelly my eclipse installation is about 260MB big, but I assume that a PDE build does NOT require all of those plugins in a standard...

PDE headless build using features fails with optional plug-ins

Hi there, We are build a huge set of plugins using ANT pde build script for features (not product). We are using the Eclipse 3.5 version and have one plugin that uses optional dependency. The feature including this plugin does not include the optional dependency but the optional plugin is present in the plugin folder during build. the ...

How to identify the source of a text selection event coming from a CompareEditorInput in eclipse?

In my eclipse plugin I have the following code: public class MyHandler extends AbstractHandler { @Override public Object execute( ExecutionEvent event ) throws ExecutionException { ISelection sel = HandlerUtil .getActiveWorkbenchWindowChecked( event ) .getSelectionService() .getSelecti...

How to write an editor that shows the content of a folder in eclipse?

Motivation I have written an eclipse plugin that shows me a list of all files and folders with unreviewed content. When selecting a folder, I want an editor to open showing all files and subfolders that this folder contains. It has to work for versioned items, too. So I have to create the content of the editor within my plugin (no backi...

How can two eclipse plugin use the same preferences store?

I have two plugins, say com.site.plugin.core and com.site.plugin.ui. I'd like to separate core part from UI part, so at plugin com.site.plugin.ui I created Preferences page where I defined some preferences, which should be used by com.site.plugin.core. I check article at Eclipse site, but it is quite outdated, and linked bug also do not ...

What call from the Android Development Tools API should I use to poll project target loading?

I'm writing my own eclipse plug-in that integrates with the Eclipse Android Development Tools (ADT). However, I'm getting a CoreException ("Project target not loaded yet.") thrown when I attempt to call IProject.build on an Android project as part of a unit test: IProject project = importProject(...); project.build(IncrementalProjectBu...

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

Internationalized strings in Eclipse plugin.xml file are not found when installed in Eclipse application

Hi, I have created 2 plugins, implementing an ODA driver plugin and its UI plugin for the BIRT extension to Eclipse. My plugins both work as expected when eclipse starts up another eclipse application where I can then test the plugins I am developing. However, when I install my plugins into an Eclipse application and then start it from...

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

Eclipe PDE: Jump to line X and highlight it

A qustion about Eclipse PDE development: I write a small plugin for Eclipse and have the following * an org.eclipse.ui.texteditor.ITextEditor * a line number How can I automatically jump to that line and mark it? It's a pity that the API seems only to support offsets (see: ITextEditor.selectAndReveal()) within the document but no line n...

How do I suppress eclipse warning: Referenced identifier 'VIEWNAME:secondaryid' in attribute 'id' cannot be found

In eclipse 3.4, here is the section of my plugin.xml: <extension point="org.eclipse.ui.views"> <view allowMultiple="true" class="the.full.class.name" icon="images/icon.gif" id="VIEWNAME" name="View Name"> </view> </extension> <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetI...

Automated building equinox PDE : executable doesn't work

Hello everybody, I created an OSGi project in which one I've 2 projects : - one plugin project : that contains my source files, my product configuration that uses my feature project and the feature org.eclipse.equinox.p2.ui.user. It means that my program is able to install new software or to update the program. - one feature project tha...

Add system packages to PDE runtime configuration

I created an eclipse run configuration for a number of bundles. One of the bundles has a dependency to the following packages: com.sun.mirror.apt, com.sun.mirror.declaration, com.sun.mirror.type, com.sun.mirror.util I believe these are part of the Sun Java JVM. When I add these packages as system packages to a Felix container, the bun...

Showing markers in the Eclipse "file compare" view

I've added some functionality to the standard Eclipse "compare view" via a handler which is activated on the Compare view's popup (context) menu. One of the things that this handler does is add a marker at the selection location. However, markers are not shown in the compare view. How can I enhance the compare view to show markers? Do...

Setting targeted version of plugin to avoid NoSuchMethodException

Im building a plugin in Eclipse 3.6, but I want it to be compatible with Eclipse 3.2. I just got NoSuchMethodException, because I used some new API. is there any way to force eclipse to check if im not using too new methods? When I created plugin i chose eclipse 3.2. ...