开发者

how can I embed Eclipse components/plugins into my Java app?

开发者 https://www.devze.com 2023-02-20 16:49 出处:网络
Is it possible to embed Eclipse plugins and componenets开发者_Go百科 into my application? Sort of like how in Netbeans.There is a lot of viewpoints to this question. Generally, including Eclipse plug-

Is it possible to embed Eclipse plugins and componenets开发者_Go百科 into my application? Sort of like how in Netbeans.


There is a lot of viewpoints to this question. Generally, including Eclipse plug-ins is possible (it's all Java in the end). However, as Eclipse is a large framework, plug-ins will make excessive usage of framework specific calls. The whole invocation process is unique in Eclipse. In addition, the GUI will be based on SWT/JFace. You might investigate which dependencies the plug-in has and include all of these, but this will give you quite a large overhead of includes.

You can of course rip them apart and implement the "business logic", but there's no plug and play!

If you used Eclipse RCP as the base for your Java application things are of course a lot easier.


As mentioned by Jules, I really think the way to go is putting your application into an Eclipse plug-in and making this new plugin an executable application.

See the following link on how to configure your plugin to do that : http://wiki.eclipse.org/FAQ_How_do_I_create_an_application%3F

But in all cases you have to take a great care on the dependencies that can bring you a lot of overhead...

0

精彩评论

暂无评论...
验证码 换一张
取 消