Questions tagged [eclipse-pde]

Use this tag to ask about the Eclipse Plugin Development Environment which provides tools to create, develop, test, debug, build and deploy OSGi bundles, Eclipse plug-ins, fragments, features, update sites and RCP products.

The Eclipse Plug-in Development Environment (PDE) provides tools to create, develop, test, debug, build and deploy Eclipse plug-ins, fragments, features, repositories, update sites and RCP products.

PDE also provides comprehensive OSGi tooling.

Note that PDE build tools are now in maintenance mode and are no longer being developed, building should be done with Maven and Eclipse Tycho.

For more details see: http://www.eclipse.org/pde/

472 questions
4
votes
1 answer

Handling drag and drop of files inside Eclipse Package Explorer

I'm trying to create an Eclipse plugin to support a proprietary project file format. My goal is to be able to drag and drop a file in the Project Explorer (any type of file) onto a file of the type I support, and have the name of the file being…
Jon O
  • 6,532
  • 1
  • 46
  • 57
4
votes
1 answer

Eclipse PDE - Plug-in, Feature, and Product Versioning

I am having much confusion over the process of upgrading version numbers in dependent plug-ins, features, and products in a fairly large eclipse workspace. I have made API changes to java code residing in an existing plug-in and thus requires an…
Michael
  • 786
  • 8
  • 18
4
votes
3 answers

Adding a panel container to a PreferencePage in an Eclipse PDE project

I'm using the FieldEditorPreferencePage class in order to create a preferences page for my Eclipse plug-in. I've been able to add all the controls I need to the page, however there are several controls that I'd like to group together using a…
mittelmania
  • 3,393
  • 4
  • 23
  • 48
4
votes
2 answers

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…
rcreswick
  • 16,483
  • 15
  • 59
  • 70
4
votes
2 answers

Prevent caching of Eclipse target definition

I'm using a target definition that references a P2 update site. Update site was updated recently with a plugin that has same version and qualifier as previous version, but different content. I've deleted .metadata/.plugins/org.eclipse.pde.core and…
Basilevs
  • 22,440
  • 15
  • 57
  • 102
4
votes
1 answer

How to invoke command programmatically passing to it a parameter?

I was trying the bellow snippet, but the invoked command is executed with empty parameter map. ICommandService service = (ICommandService) ((IServiceLocator) PlatformUI.getWorkbench()) …
kmaziarz
  • 154
  • 5
4
votes
1 answer

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 …
tangens
  • 39,095
  • 19
  • 120
  • 139
4
votes
2 answers

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…
TomSW
  • 741
  • 1
  • 6
  • 14
4
votes
1 answer

Logging strategy in Eclipse PDE

I am writing an Eclipse 3.7 Plugin. I am new to Eclipse PDE but not to JAVA. I am trying to understand the logging strategy that should be used. My questions is - How should I go about logging from my plugin? I found a couple of resources (…
Pushkar
  • 7,450
  • 10
  • 38
  • 57
4
votes
2 answers

build.properties - Valid entries in a Tycho build

When I create Eclipse plug-in project, and after that try to build it with Maven/Tycho, one of the generated files is build.properties file. It contains several entries which describe what part of the project to be built. My question is, what are…
moisko
  • 101
  • 1
  • 10
4
votes
1 answer

Eclipse Custom Content Assist Based on Default Java Content Assist results

I'm in the process of implementing a task tool. As a part of this I'm making an Eclipse plug-in to reflect certain code level issues. In the Eclipse plug-in my aim is to attach some visual aids to different Java elements according to their host…
J3lly
  • 148
  • 1
  • 9
4
votes
2 answers

How to prevent creation of .project files in Eclipse navigator?

In our Eclipse plugin are we managing some resources using navigator. For every folder in the navigator Eclipse is creating an .project file which leads to some problem in the code under resource management. One way is to filter .project file…
Govan
  • 2,079
  • 4
  • 31
  • 53
4
votes
1 answer

DragSourceListener never called while dragging and dropping file inside eclipse project explorer

I am working on eclipse plugin that will allow a java bean to be dragged onto jsp file then on the drop event some code generators will be called. I'm attempting to use the extension point "org.eclipse.ui.dropActions" but drag and drop listeners…
Kuldeep Singh
  • 208
  • 2
  • 10
4
votes
4 answers

Headless build of eclipse features - PDE Tools or Buckminster?

I am trying to set up a headless build for a big eclipse feature, containing other features and plugins. As some needed plugins are generated using GMF and EMF, the build workflow must be something like this: SVN Check-out Invoke Generation Run…
Max
4
votes
3 answers

How to programmatically find a .java file in an Eclipse plugin from full classname?

Inside an Eclipse plugin, I'd like to open a file in editor. I know the full package and class name How can I determine the path of the .java file from this?
Cedric Reichenbach
  • 8,970
  • 6
  • 54
  • 89