How to deactivate IStartup programmatically [message #638954] |
Sat, 13 November 2010 20:44 |
|
Hi
I need to run an action exactly once per workspace. Once it ran with
success, it can be deactivated for all subsequent workbench starts.
The action is now implemented as IStartup and the missing part is the
deactivation.
Is there a programmatic way to add a plugin to the list of disabled
startups? Or is the best way to append my plugin-id to the preference
" /instance/org.eclipse.ui.workbench/PLUGINS_NOT_ACTIVATED_ON_ STARTUP "
using the ordinary preference mechanism?
Thanks
Michael
|
|
|
|
Re: How to deactivate IStartup programmatically [message #639328 is a reply to message #639245] |
Tue, 16 November 2010 06:48 |
|
Hello
> What about simply allowing a standard request activate your plugin,
> perform the setup in your activator and then save that you've already
> done it (either your own preference or your plugin state location or
> something like dialog settings for a UI plugin)?
Re-running it is not the point because that's safe (it doesn't do
anything when run for the nth (n>1) time). What I want is to avoid is
the resource usage and the longer startup time.
However, thanks for the reply; I'll play with the preference nodes...
Take care,
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04527 seconds