Question re-asked: how toassociate the part with its secondary view id? [message #449178] |
Wed, 10 May 2006 17:52  |
Eclipse User |
|
|
|
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 #449383 is a reply to message #449178] |
Thu, 11 May 2006 12:49  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05169 seconds