| 
| Activate plugin after installation without restart [message #333377] | Mon, 08 December 2008 05:32  |  | 
| Eclipse User  |  |  |  |  | Hello, 
 how can I activate a plugin after installation without a restart?
 
 If I use
 OperationsManager.getOperationFactory().createInstallOperati on(...) the
 feature is installed, but I don't know how to activate it directly. My old
 code was using org.eclipse.update.standalone.InstallCommand, and I could
 be activated after installation with applyChangedNow().
 
 So has anybody a idea how to a activate a installed
 IInstallFeatureOperation. I tried IConfigFeatureOperation, but it doesn't
 works.
 
 Thanks for your help,
 Markus
 |  |  |  | 
|  | 
| 
| Re: Activate plugin after installation without restart [message #333379 is a reply to message #333378] | Mon, 08 December 2008 08:13  |  | 
| Eclipse User  |  |  |  |  | Thanks, for your reply. But this doesn't work.
 Platform.getBundle("my.plugin") is null, after installation. So non of the
 perspectives or menues appear after installation.
 -> After a restart all works fine
 
 It looks like the features are only copied to the filesystem, and an entry
 in an configuration is made, which tells eclipse after a restart to enable
 these plugins.
 Is there a way to enable them without an restart?
 
 Btw. InstallCommand and applyChangesNow was doing this, but
 IInstallFeatureOperation execute, and IConfigFeatureOperation execute are
 not.
 
 regards,
 Markus
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05309 seconds