Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problem with extending "org.eclipse.core.runtime.applications"
problem with extending "org.eclipse.core.runtime.applications" [message #321859] Tue, 30 October 2007 03:15 Go to next message
Eclipse UserFriend
I want to launch my application programatically.
1. Extend the extension point "org.eclipse.core.runtime.applications"
2. Implement "org.eclipse.equinox.app.IApplication"

And I can luanch it in my host eclipse(note: where is my development
workbench) by "run as -> eclipse application -> main tab -> run an
application -> choice my application from the combobox"
It works.

Well, to launch it programatically, I extend the extension point
"org.eclipse.debug.core.launchConfigurationTypes", and extend class
" org.eclipse.pde.ui.launcher.EclipseApplicationLaunchConfigur ation ".

But when I launch the configuration, I got an exception:

java.lang.RuntimeException: Application "xxx.xxx.runSimulator" could not
be found in the registry. The applications available are: ...

To diagnose the problem, I launch a new workbench(call it runtime
workbench) and launch my application in the runtime workbench by "run as
-> eclipse application -> main tab -> run an application", but my
application is not in the application combobox, it should be there. I
guess that's also why I get the exception mentioned before. It's wierd.

Any body can help me?
Thanks in advanced!
Re: problem with run application runtime workbench [message #321906 is a reply to message #321859] Wed, 31 October 2007 22:07 Go to previous message
Eclipse UserFriend
My application is much like a headless application, similar with
antRunner, jdt code formatter.
The only difference is that it extends the point
"org.eclipse.debug.core.launchConfigurationTypes", and the delegate is a
subclass of
org.eclipse.pde.ui.launcher.EclipseApplicationLaunchConfigur ation (that is
what I said launch the application programatically).
Step by step, I first extend the point
"org.eclipse.core.runtime.applications" and run it in my develop
workbench, it works fine. Then I run it in the runtime workbench, I even
can't find my application in the "run as -> eclipse application -> main
tab -> run a application" combobox. So I debug into that combobox setinput
codes to find that it only list "TargetPlatform". I don't exactly
understand what "TargetPlatform" exactly mean. I'm trying to figure out
the differenc between develop workbench and runtime workbench:
+-------------------------------+
| develop workbench |
| +---------------------------+ |
| | target platform includes: | |
| | | |
| | plugins in workspace | |
| | my plugin a | |
| | my plugin b | |
| | my plugin b | |
| | plugins of platform itself| |
| | plugin jdt | |
| | plugin cvs | |
| | plugin thirdparty | |
| +---------------------------+ |
| |
+-------------------------------+


+-------------------------------+
| runtime workbench |
| +---------------------------+ |
| | target platform includes: | |
| | | |
| | plugins in workspace | |
| | | |
| | plugins of platform itself| |
| | plugin jdt | |
| | plugin cvs | |
| | plugin thirdparty | |
| | (note: my plugins are | |
| | note here though I | |
| | think they should be) | |
| +---------------------------+ |
| |
+-------------------------------+

To step it over, I import my plugins into the runtime workbench and
everything works fine now!

So, my problem now is what does "TargetPlatform" really mean?

Thanks in advanced!
Previous Topic:[Common navigator] CommonNavigatorManager throws Assertion Error
Next Topic:[databinding] Implementing PropertyChangeSupport
Goto Forum:
  


Current Time: Mon Jul 21 21:46:15 EDT 2025

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

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

Back to the top