Perspective action [message #93579] |
Mon, 14 July 2003 19:41  |
Eclipse User |
|
|
|
Originally posted by: luis_benitez.nospam.us.ibm.com
Hello,
How do I contribute an action so that it only appears when that perspective
is active (open) ? Is there something special that I would do on plugin.xml
?
Thanks,
-Luis
|
|
|
|
|
Re: Perspective action [message #93631 is a reply to message #93606] |
Mon, 14 July 2003 20:18   |
Eclipse User |
|
|
|
Originally posted by: luis_benitez.nospam.us.ibm.com
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C34A45.0C7E2BA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Matt,
Thanks for the quick response. I tried your suggestion, however, when I =
switch perspectives, the actions still remain. I'm using RCP M7 I =
believe. Here's the code that swithches perspectives, perhaps, I'm =
doing something wrong ?:
if ( action to switchperspective ) {
workbench.showPerspective( "perspectiveID" );
}
Let me know if I'm missing something.
Thanks
-Luis
<Matthew_Hatem@notesdev.ibm.com> wrote in message =
news:bevfr0$698$2@eclipse.org...
Sorry for the ugly post, this is a little better=20
<extension point=3D"org.eclipse.ui.perspectiveExtensions">=20
<perspectiveExtension targetID=3D"your.perspective.id">=20
<actionSet id=3D"your.actionset.id" />=20
</perspectiveExtension>=20
</extension>=20
-m@=20
------=_NextPart_000_000F_01C34A45.0C7E2BA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Matt,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for the quick response. I =
tried your=20
suggestion, however, when I switch perspectives, the actions still =
remain. =20
I'm using RCP M7 I believe. Here's the code that swithches =
perspectives,=20
perhaps, I'm doing something wrong ?:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>if ( action to switchperspective ) =
{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =
workbench.showPerspective(=20
"perspectiveID" );</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Let me know if I'm missing =
something.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-Luis</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><<A=20
=
href=3D"mailto:Matthew_Hatem@notesdev.ibm.com">Matthew_Hatem@notesdev.ibm=
..com</A>>=20
wrote in message <A=20
=
href=3D"news:bevfr0$698$2@eclipse.org">news:bevfr0$698$2@eclipse.org</A>.=
...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Sorry for the ugly post, this is a little =
better</FONT>=20
<BR><BR><FONT face=3Dsans-serif size=3D2><extension=20
point=3D"org.eclipse.ui.perspectiveExtensions"> </FONT><BR><FONT=20
face=3Dsans-serif size=3D2> =
<perspectiveExtension=20
targetID=3D"your.perspective.id"> </FONT><BR><FONT =
face=3Dsans-serif=20
size=3D2> =
<actionSet=20
id=3D"your.actionset.id" /> </FONT><BR><FONT face=3Dsans-serif =
size=3D2> =20
</perspectiveExtension> </FONT><BR><FONT=20
face=3Dsans-serif size=3D2></extension> </FONT><BR><BR><FONT =
face=3Dsans-serif=20
size=3D2>-m@</FONT> <BR></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000F_01C34A45.0C7E2BA0--
|
|
|
|
Re: Perspective action [message #94141 is a reply to message #93952] |
Tue, 15 July 2003 13:27  |
Eclipse User |
|
|
|
Originally posted by: luis_benitez.nospam.us.ibm.com
Hi Richard,
You hit the nail in the head. When I switch perspectives now, the actions
go away.
Thanks,
-Luis
"Richard L. Kulp" <richkulp@NOSPAM.us.ibm.com> wrote in message
news:bf111p$ms8$1@eclipse.org...
> Make sure that on your actionset definition, not the perspective
> extension definition, that you don't have visible="true", or to be safe
> make it visible="false" (I don't know what the default is). If you have
> this it would make it visible in all perspectives.
>
> Rich
>
|
|
|
Powered by
FUDForum. Page generated in 0.04089 seconds