Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [HowTo] make action set appear in some perspectives but not others?
[HowTo] make action set appear in some perspectives but not others? [message #453057] Thu, 20 July 2006 17:20 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
R3.1.2, WinXP

The help-docs,
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench_advext_perspectiveExtension .htm
say that:
<< The actionSet parameter identifies the id of a previously declared action set that should be
added to the target perspective. This markup is analogous to using IPageLayout.addActionSet in the
IPerspectiveFactory. >>

I thought this would be the way to get an action set to appear in some perspectives but not others.
But It does not seem to do anything at all.

I have two perspectives, Q and D (let's say), and in Q I want actionset A to appear, but in D I do
not want it to appear. After adding the markup as below, and even after running with -clean, the
actionset A still appears.

Any ideas on how to do what I want?

Paul

<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="com.mun.ist.perspectiveQ">
<actionSet id="com.mun.ist.actionSetA"/>
</perspectiveExtension>
</extension>
Re: [HowTo] make action set appear in some perspectives but not others? [message #453068 is a reply to message #453057] Fri, 21 July 2006 07:52 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
hi,

you have to set "visible" attribute of action set to "false":

<actionSet
visible="false"
id="de.imedic.edu.rcp.actions.actionSet">

Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com





Paul Keyser wrote:
> R3.1.2, WinXP
>
> The help-docs,
> http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench_advext_perspectiveExtension .htm
>
> say that:
> << The actionSet parameter identifies the id of a previously declared
> action set that should be added to the target perspective. This markup
> is analogous to using IPageLayout.addActionSet in the
> IPerspectiveFactory. >>
>
> I thought this would be the way to get an action set to appear in some
> perspectives but not others. But It does not seem to do anything at all.
>
> I have two perspectives, Q and D (let's say), and in Q I want actionset
> A to appear, but in D I do not want it to appear. After adding the
> markup as below, and even after running with -clean, the actionset A
> still appears.
>
> Any ideas on how to do what I want?
>
> Paul
>
> <extension
> point="org.eclipse.ui.perspectiveExtensions">
> <perspectiveExtension targetID="com.mun.ist.perspectiveQ">
> <actionSet id="com.mun.ist.actionSetA"/>
> </perspectiveExtension>
> </extension>
Re: [HowTo] make action set appear in some perspectives but not others? [message #453109 is a reply to message #453068] Fri, 21 July 2006 18:15 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
Thanks, but -- I did that, and it made no difference. Other ideas?

Paul
Re: [HowTo] make action set appear in some perspectives but not others? [message #453255 is a reply to message #453109] Tue, 25 July 2006 02:54 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
Ah-- "thwack it harder" is the solution. New install allows for correct operation; thanks.

Paul
Previous Topic:plug-in version rollback
Next Topic:Product Build fails unable to parse empty org.eclipse.pde.build.container.feature/feature.xml file
Goto Forum:
  


Current Time: Fri Oct 04 22:16:09 GMT 2024

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

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

Back to the top