Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Question re-asked: how toassociate the part with its secondary view id?
Question re-asked: how toassociate the part with its secondary view id? [message #449178] Wed, 10 May 2006 17:52 Go to next message
Eclipse UserFriend
Originally posted by: victor.mao.ugs.com

Hi,

I have several view instances for a view, when I bring one view instance to front, I want certain menus to show up only for this view instance. I am wondering if there is a way to to achieve that programatically?

I know actionSetPartAssociation tag's part child tag only allows id (primary view id), there is no way to associate the part with its secondary view id. But can I do that using java code?

thanks,
Re: Question re-asked: how toassociate the part with its secondary view id? [message #449246 is a reply to message #449178] Thu, 11 May 2006 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Victorm

I don't really understand well what you mean by " I want certain menus to show up only for this view instance".

But this smells like a case for using retargetable actions.

If you explain your problem a little more, perhaps I can help you
Re: Question re-asked: how toassociate the part with its secondary view id? [message #449375 is a reply to message #449246] Thu, 11 May 2006 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: victor.mao.ugs.com

Hi, thanks for the reply.

For example, if I want "Help" menu only to show up for
one particular view instance. Currently, actionSetPartAssociation can only allow primary id of a view, it does not allow to specify secondary id to narrow down to a view's instance.

thanks
Re: Question re-asked: how toassociate the part with its secondary view id? [message #449383 is a reply to message #449178] Thu, 11 May 2006 12:49 Go to previous message
Eclipse UserFriend
AFAIK, there's no default way to tell the workbench anything like that.
The difference between the main view and the secondary instance views
is really just how the workbench looks them up.

You could always write your actionsets and write your own IPartListener2
.... if you get a reference, and getPart(false) returns a part, and the
part is an instanceof your view, you can get the ID and then decide if
you want to show or hide your actions using IWorkbenchPage#showActionSet(*).

Later,
PW
Previous Topic:1 Fixed view in perspective?
Next Topic:Library plugin - config files
Goto Forum:
  


Current Time: Sat Aug 30 22:48:34 EDT 2025

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

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

Back to the top