Eclipse based console application



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
.



Relevant Pages

  • Re: TextMate Alternative
    ... It is written in Java ... lots of plugins, and by adding plugins and adjusting it's settings and ... you probably will find that Eclipse takes too much time ... I haven't tried to get it to integrate into Xcode, ...
    (comp.sys.mac.programmer.help)
  • Re: IDEA 6 & Teamcity 1 erschienen
    ... Die ganzen App-Server Integrationen und die meisten VCS-Integrationen ... Plugins wie bei Eclipse. ...
    (de.comp.lang.java)
  • Re: Using WSED for HLASM development
    ... but I do use Eclipse with various Open Source & low ... cost plugins for Java Development. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: php & html editor
    ... Java development you need a lot of additional plugins. ... A naked Eclipse ... I always believed the hype that it's and IDE. ... editor - especially to a newbie. ...
    (comp.lang.php)
  • Re: Delphi virtual peer programming?
    ... Eclipse has plugins for all of the latest ... For Borland to compete with the JB IDE, they would have to spend much of ... it will not hurt their Java department a great ...
    (borland.public.delphi.non-technical)