Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Launching Generated Project in new Eclipse Workbench at Runtime
Launching Generated Project in new Eclipse Workbench at Runtime [message #1724239] Mon, 22 February 2016 13:15 Go to next message
Florian Goenner is currently offline Florian GoennerFriend
Messages: 15
Registered: December 2015
Junior Member
Greetings!

I am currently working on an Eclipse Application capable of generating a few Projects out of some user-defined data (metamodel), but now I am stuck for a few days now. What I want to do is find a way to somehow launch a new Eclipse Workbench with my Plugin Project installed but I have no clue how to achieve that programmatically.

I tried fooling around with ILaunchConfigurations and also EclipseLaunchShortcuts because normally, the Editor is started by importing the generated projects into my workspace (outside of the eclipse application) and run the editor project via Run As -> Eclipse Application, however, all I end up with is this stacktrace:

org.eclipse.core.runtime.CoreException: Launching failed. Bootstrap code cannot be found.
	at org.eclipse.pde.launching.AbstractPDELaunchConfiguration.getClasspath(AbstractPDELaunchConfiguration.java:148)
	at org.eclipse.pde.launching.AbstractPDELaunchConfiguration.launch(AbstractPDELaunchConfiguration.java:72)
	at org.eclipse.pde.launching.OSGiLaunchConfigurationDelegate.launch(OSGiLaunchConfigurationDelegate.java:47)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
	at at.jku.sea.cloud.gmf.adapter.plugin.core.EditorRunner$1.postStartup(EditorRunner.java:54)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2922)
	at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:2797)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:633)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at at.jku.sea.cloud.gmf.adapter.plugin.core.EditorRunner.runEditor(EditorRunner.java:45)
	at at.jku.sea.cloud.gmf.adapter.plugin.app.GMFApplication.start(GMFApplication.java:75)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)


Trying to open a workbench window via PlatformUI.createAndRunWorkbench() wasnt particularly helpful either because I only get an empty window .

If somebody is able to help me get this working I'd be really really grateful!
Re: Launching Generated Project in new Eclipse Workbench at Runtime [message #1724535 is a reply to message #1724239] Wed, 24 February 2016 13:05 Go to previous message
Florian Goenner is currently offline Florian GoennerFriend
Messages: 15
Registered: December 2015
Junior Member
UPDATE: I managed to get the launch configurations working, however, I ended up with a different kind of problem: In order to launch any kind of programs, I am forced to create a runtime workbench first. This is done, via the method call:
 PlatformUI.createAndRunWorkbench(Display display, WorkbenchAdvisor advisor)
. Is there any chance I can get my launch configurations working without making this method call?

Any help would be greatly appreciated

Further info: My Application is currently running as an RCP Application, with my own defined Application extension point (plugin.xml).
Previous Topic:Start eclipse with specific size or maximum size
Next Topic:How to create correct 32bit BMPs?
Goto Forum:
  


Current Time: Fri Nov 16 06:11:11 GMT 2018

Powered by FUDForum. Page generated in 0.28498 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top