Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is the Workbench guaranteed to be available when a plugin with dependency on org.eclipse.ui starts?
Is the Workbench guaranteed to be available when a plugin with dependency on org.eclipse.ui starts? [message #1131109] Thu, 10 October 2013 07:44 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 286
Registered: March 2012
Senior Member
Hi,

can a bundle that depends on org.eclipse.ui call PlatformUI.getWorkbench
in its activator start method, Or is there a chance that the workbench
isn't available yet at that point in time?

Thanks,
Felix
Re: Is the Workbench guaranteed to be available when a plugin with dependency on org.eclipse.ui star [message #1134499 is a reply to message #1131109] Sat, 12 October 2013 14:46 Go to previous message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 211
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi Felix,
you cannot rely on the workbench being available in the activator of a plugin that depends on org.eclipse.ui. There is no activator on org.eclipse.ui that would create the workbench. The workbench must be created by a call to PlatformUI.createAndRunWorkbench() and this method is typically called from IApplication.start(). At that point in time other bundles might already have been started.

HTH
Thorsten
Previous Topic:Controlling access of packages
Next Topic:Proper way to create a Javascript Project and Reference it in another Web Project?
Goto Forum:
  


Current Time: Sun Dec 21 23:25:41 GMT 2014

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

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