Activate plugin during startup [message #327382] |
Wed, 16 April 2008 18:54  |
Eclipse User |
|
|
|
Hi,
I'm creating a plugin that I want to run when Eclipse starts up. I found
the extension org.eclipse.ui.startup, but it has been deprecated. What is
the "new" way to do this in 3.3?
Thanks,
Roshan
|
|
|
|
|
|
Re: Activate plugin during startup [message #327403 is a reply to message #327395] |
Thu, 17 April 2008 12:32   |
Eclipse User |
|
|
|
"Roshan Soni" <roshan.soni1@gmail.com> wrote in message
news:e04078fe9ba1790c6642e0bb6c7bfbf9$1@www.eclipse.org...
> Thanks Mark, that was what I am referring to, I guess when I read it now
> it does make sense that they are just deprecating the usage of that form
> and not the class.
>
> Rich, I took a look at the article you pointed out and the last thing I
> want to do is startup a plugin at Eclipse startup, but I'm creating a sort
> of client server app that needs to run on Eclipse startup and receive
> messages from my client. My server app then accesses the UI and changes
> the perspective, opens a specific editor w/data from my DB, etc... If you
> have any suggestion on a better way for doing something like that, then
> I'm all ears.
One Eclipse install will often be used in multiple ways: e.g., in one
workspace I'm interested in J2EE projects, but in another perhaps I'm just
using it as a fancy XML editor, and in another I'm doing C++.
So the question you want to ask yourself is "should your functionality be
loaded in each of those cases", that is, if someone has installed your
plug-in into Eclipse should they be forced to use it whenever they use
Eclipse regardless of workspace or task.
If the answer is "yes", then loading at startup is appropriate. If the
answer is "no", then the next question is what the real trigger should be -
for instance, is it when a workspace containing projects with a particular
nature is opened.
You may be able to do a two-tier approach where you have a very small
plug-in that loads at startup and serves only to watch for events that would
provoke it to load the larger plug-in.
|
|
|
Re: Activate plugin during startup [message #327406 is a reply to message #327403] |
Thu, 17 April 2008 14:44  |
Eclipse User |
|
|
|
You make a very good point, I myself have 20 or so workspaces that I use
for different types of programming. As far as I know my plugin just sits
there and doesn't take up noticeable memory. One solution could be to
create a preference page to only start this plugin if the setting is
true.
|
|
|
Powered by
FUDForum. Page generated in 0.04866 seconds