I’m currently on developing a GMF editor again and so I have to restart a runtime Eclipse instance very often. To reduce the rountrip times I have set up a rather minimal Run Configuration. These are the steps to create it:
- Create a new Run Configuration Run -> Run Configurations… -> Eclipse Application
- On the Main tab select Program to Run -> Run an application -> org.eclipse.ui.ide.workbench
- Switch to tab Plug-ins and select Launch with -> plug-ins selected below only
- Press the button Deselect All
- Open the Workspace tree node and select the plugins that should be tested. In my case these are 3 plugins (models, diagram, edit plugin)
- Deselect the checkbox “Include optional dependencies when computing required plug-ins”
- Press the button Add Required Plug-ins
- Select the plugin org.eclipse.ui.ide.application and press Add Required Plug-ins again
After this I have just 129 plugins selected (my target platform contains 1396, my Eclipse IDE even far more), so I could reduce the amount of plugins for testing my diagram plugin to less than 10%!
The configuration could even be more minimal. Unfortunately the plugins org.eclipse.team.core and org.eclipse.team.ui are in this configuration and could not be removed, since they are required plug-ins for org.eclipse.ltk.ui.refactoring. If the team dependencies were optional for this plugin this would be resolved. There is Bug#281223 open dealing this issue.
I experienced problems starting the org.eclipse.ui.forms plugin, resulting in this stack trace:
The activator org.eclipse.ui.internal.forms.FormsPlugin for bundle org.eclipse.ui.forms is invalid ... caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
Fortunately I found this posting. I removed the o.e.u.forms plugin, started the run configuration (failing of course), added the plugin again to the run config and then my problem was gone.