Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to get access to an IWorkbenchWindow inside ExtensionContributionFactory
How to get access to an IWorkbenchWindow inside ExtensionContributionFactory [message #337036] Wed, 22 July 2009 17:10 Go to next message
Eclipse UserFriend
Hello!

i need to call ContributionItemFactory.VIEWS_SHORTLIST.create(window);
inside my ExtensionContributionFactory. How do I get the IWW from inside
createContributionItems()? I tried to use the service locator but it
did not return any IWW.

Phil
Re: How to get access to an IWorkbenchWindow inside ExtensionContributionFactory [message #337037 is a reply to message #337036] Wed, 22 July 2009 17:56 Go to previous message
Eclipse UserFriend
Philipp Kursawe wrote:
> Hello!
>
> i need to call ContributionItemFactory.VIEWS_SHORTLIST.create(window);
> inside my ExtensionContributionFactory. How do I get the IWW from inside
> createContributionItems()? I tried to use the service locator but it
> did not return any IWW.
>
> Phil

ok, my fault. I can just use locator.getService(IWorkbenchWindow.class).
I tried getService(IWorkbench.class).getActiveWorkbenchWindow() first.

Phil
Previous Topic:Multiple instance views
Next Topic:Reloading worspace preferences
Goto Forum:
  


Current Time: Tue Apr 29 02:24:48 EDT 2025

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

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

Back to the top