|
Re: Loading ready event [message #331060 is a reply to message #331059] |
Fri, 22 August 2008 10:57 |
Eclipse User |
|
|
|
Originally posted by: mario.winterer.gmx.net
Klaus,
if you want to force your plugin to be activated on platform startup,
simple use the extension point "org.eclipse.ui.startup" in plugin
"org.eclipse.ui".
Mario
Klaus Schaefers schrieb:
> Hi,
>
> If would like to write a kind of "OnEditorOpen" listener. It should be
> implemented as an IPartListener. I found out how to register it like this:
>
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPart Listener(new
> MyListener());
>
> But I'm facing two problems now:
>
> 1) When I call this method too early, it crashes Eclipse. So I guess I
> can only do the call when eclipse is loaded completely. How can I find
> out that it is? Is there a hook or extension point?
>
> 2) If there is now extension point, how can I enforce that my plugin is
> loaded?
>
> Kind regards
>
|
|
|
|
Re: Loading ready event [message #331259 is a reply to message #331227] |
Thu, 28 August 2008 15:35 |
Eclipse User |
|
|
|
Originally posted by: mario.winterer.gmx.net
Oh. Sorry. Didn't know!
But when this extension point shouldn't be used, how is not possible to
write a plugin for existing applications that requires early startup for
some reason (the usage data collection plugin
"org.eclipse.epp.usagedata.recording" uses this extension point too for
exactly that reason how I believe...)
Mario
Paul Webster schrieb:
> Mario Winterer wrote:
>> Klaus,
>>
>> if you want to force your plugin to be activated on platform startup,
>> simple use the extension point "org.eclipse.ui.startup" in plugin
>> "org.eclipse.ui".
>
> And that being said, don't use org.eclipse.ui.startup ... See the other
> thread on "Surpress Lazy loading of a plugin?"
>
> It's really best not to use it. In RCP apps, you have other options
> like the pre and post startup/open methods in your WorkbenchAdvisor and
> WorkbenchWindowAdvisor.
>
> PW
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03441 seconds