Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » why wont the selectionchanged method work without invokiing tthe plugin?
why wont the selectionchanged method work without invokiing tthe plugin? [message #44282] Wed, 30 June 2004 09:47 Go to next message
Eclipse UserFriend
Originally posted by: salgavkarNOSPAM.NOSPAMyahoo.com

Hi,
When i select something in javacode editor (the plugin is loaded, but not
called at this time), the selectionChanged (IAction action, ISelection
selection), which is part of plugin, does not recieve any events. However,
it seems to work perfactly fine after i call the plugin via a menu bar.
The only theory that i have is that the plugin doesnt really start untill
it is called for the first time, even though the it is accessible via menu
bar, which is active. My question is how do we configure the plugin so
that it starts up when the plugin gets loaded.

Salgavkar.
Re: why wont the selectionchanged method work without invokiing tthe plugin? [message #44313 is a reply to message #44282] Wed, 30 June 2004 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

From my experience with 2.X:
- callbacks are not called for inactive plugins - recommended by ... ?
- plugin can be activated on startup - not recommended by ... ?

So, the solution is possible ut not recommended. :)

--
Sam Mesh - http://openrules.com
Re: why wont the selectionchanged method work without invokiing tthe plugin? [message #44344 is a reply to message #44313] Wed, 30 June 2004 23:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: salgavkarNOSPAM.NOSPAMyahoo.com

thanks sam.

Sam Mesh wrote:

> From my experience with 2.X:
> - callbacks are not called for inactive plugins - recommended by ... ?
> - plugin can be activated on startup - not recommended by ... ?

> So, the solution is possible ut not recommended. :)

would u be kind enough to tell me tthe exact steps to activate a plugin on
startup. i understand why this not recommended.

Thanks

Salgavkar.
Re: why wont the selectionchanged method work without invokiing tthe plugin? [message #44407 is a reply to message #44344] Thu, 01 July 2004 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

http://www.google.com/search?q=eclipse+istartup

PS. I didn't tell you that. :)

--
Sam Mesh - http://openrules.com
Re: why wont the selectionchanged method work without invokiing tthe plugin? [message #44437 is a reply to message #44407] Thu, 01 July 2004 20:08 Go to previous message
Eclipse UserFriend
Originally posted by: salgavkarNOSPAM.NOSPAMyahoo.com

Hi,

Sam Mesh wrote:

> http://www.google.com/search?q=eclipse+istartup

> PS. I didn't tell you that. :)

Thanks Sam. It was exactly two step process:

1) implementing org.eclipse.ui.IStartup
2) Adding the class that implemented the above and adding it - as a
extension point - in plugin.xml.

Salgavkar
PS: will tell everyone that this never came from u ;)
Previous Topic:which api is usefull for retriving the the project details from with the plugin?
Next Topic:Web-Like behaviour RCP applications
Goto Forum:
  


Current Time: Sat Apr 27 01:12:37 GMT 2024

Powered by FUDForum. Page generated in 0.02771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top