Skip to main content



      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] Mon, 08 January 2007 23: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 09:54 Go to previous message
Eclipse UserFriend
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: Tue Mar 18 10:54:59 EDT 2025

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

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

Back to the top