|
Re: HiddenToolBarItem [message #1080164 is a reply to message #1077142] |
Mon, 05 August 2013 14:54 |
|
I am assuming you are trying to do this in E4. The best way to accomplish this is throguh an addon.
It would look something like:
public class MenuItemManager {
@Inject
IEclipseContext eclipseContext;
@Inject
MMenuItem myMenuItem
@PostConstruct
private void init() {
// Here you would register some kind of event listener that programmatically
// activates/deactivates the menu/toolbar items
}
}
While many of the extension points do not work with E4, that is one of the core objectives for Luna (4.4). [1]
HTH
JD
[1] http://wiki.eclipse.org/Platform_UI/Plan/4.4#Exposing_Eclipse4_in_the_Workbench
|
|
|
|
Powered by
FUDForum. Page generated in 0.15498 seconds