Eclipse based console application
- From: RMaciek <rmaciek@xxxxxxxxx>
- Date: Thu, 24 Jan 2008 09:43:09 +0100
Hi All !
I have an 'Eclipse based' application, so it's an Eclipse framework and a few
plugins developed by me.
All works very well, but unfortunately my customer also needs to have
a console application (without GUI) doing the same things.
So I have a problem. I can not realize quite new application whitout Eclipse
plugins, so I should rather run Eclipse framework with my plugins, all my
extension points and depending Eclipse plugins, but without showing Eclipse
GUI. It should work as a real console application (ex. as Windows command line
application).
My application with Eclipse GUI, which I already have, is launched by Equinox
and 'IPlatformRunnable' interface implemented by me in the following way:
public class Application implements IPlatformRunnable {
public Object run(Object args) throws Exception {
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IPlatformRunnable.EXIT_RESTART;
}
return IPlatformRunnable.EXIT_OK;
} finally {
display.dispose();
}
}
}
I'd like to have similar functionality, but without PlatformUI creation.
I've tried to hide main Eclipse window, but it is wrong. Of course main window is
hidden, but there is no access to the 'main' Java function to do any
actions in my application.
Does anybody have any idea how I can do it?
Regards,
Rafal
.
- Prev by Date: Problem on getMouseToolTipText
- Next by Date: Re: Events
- Previous by thread: Problem on getMouseToolTipText
- Next by thread: open another jframe
- Index(es):
Relevant Pages
|