Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to hide the actionsets associated with view part
how to hide the actionsets associated with view part [message #461303] Tue, 09 January 2007 04:08 Go to next message
Eclipse UserFriend
Originally posted by: zxkane.msn.com

I have some actionsets associated with a view part, however I expect hide the actionsets and show other actionsets sometimes.
I use IWorkbenchPage#hideActionSet for hiding the actionsets, but it can't work at all. How can I do it programmatically?
Re: how to hide the actionsets associated with view part [message #461340 is a reply to message #461303] Tue, 09 January 2007 14:54 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

kane wrote:
> I have some actionsets associated with a view part,

How? Did you use an actionSetPartAssociation?

> however I expect hide the actionsets and show other actionsets sometimes.
> I use IWorkbenchPage#hideActionSet for hiding the actionsets, but it can't work at all. How can I do it programmatically?

If you use actionSetPartAssociation, then anything you do
programmatically (hideActionSet(*) is the correct call) will be
overriden almost on any view activation.

If you want to show and hide different actionSets depending on view
activation *and* some internal view state, then you should probably do
both the show and the hide programmatically.

Add IPartListener2 to IWorkbenchPage (don't forget to remove it in your
view dispose).

Later,
PW


Previous Topic:EFS Problem
Next Topic:Best place to initialize data?
Goto Forum:
  


Current Time: Wed Apr 24 18:37:23 GMT 2024

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

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

Back to the top