[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: How to add views to Perspective->Show View menu...
|
Miriam,
That depends what your are trying to do.
If you are creating your own perpective, then create a class that implements
the IPerspectiveFactory (see the org.eclipse.ui.Perspective extension point
for more info). You'll be given a IPageLayout which you can call
addShowViewShortcut().
If you want to add your view to other known perspectives, then use the
extension point org.eclipse.ui.PerspectiveExtension Use the attribute
viewShortcut to add your view.
Look at the org.eclipse.jdt.ui plugin XML file for examples on how to use
these extension points.
Simon :-)
"Miriam Ford" <miriamf@xxxxxxxxxx> wrote in message
news:3B670158.E18F05FF@xxxxxxxxxxxxx
> Hello,
>
> I'm trying to add a view to be listed under the Perspective->Show View
> menu option. Right now the view is not listed there (only Other... is
> listed), but the user can still get to my view by going through
> Perspective->Show View->Other... and then selecting my view from my
> category listing. I want to be able to do both. Can anyone help?
>
> Here's what I have on my plugin.xml file:
>
> <extension point="org.eclipse.ui.views">
> <category
> id="com.ibm.myplugin.views"
> name="My Category">
> </category>
> <view
> id="com.ibm.myplugin.views.test"
> name="A Test View"
> icon="icons/testicon.gif"
> category="com.ibm.myplugin.views"
> class="org.eclipse.ui.views.navigator.ResourceNavigator">
> </view>
> </extension>
>
> Thanks for your help.
> --
> Miriam Ford
> IBM, Voice Systems Development
> 8051 Congress Avenue
> Boca Raton, Florida 33487
> (561)862-3304, T/L 975-3304
> email: miriamf@xxxxxxxxxx
>
>