Create a menu in a perspective in Eclipse
Posted
by Krt_Malta
on Stack Overflow
See other posts from Stack Overflow
or by Krt_Malta
Published on 2010-04-18T08:47:16Z
Indexed on
2010/04/18
8:53 UTC
Read the original article
Hit count: 369
Hi.
I am developing an Eclipse plug-in and I'd like to associate a new menu (at the top of the screen along with File, Edit etc) with a perspective I'm creating.
I did the menu ok but it is being displayed even in other perspectives. How can I associate it only with my perspective? This is the code I am using in plugin.xml:
<plugin>
<extension point="org.eclipse.ui.perspectives">
<perspective
class="org.eclipse.ui.articles.perspective.API_Development"
id="org.eclipse.ui.articles.perspective.API_Development"
name="API Development">
</perspective>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="Sample Action Set"
visible="true"
id="API_Development_Menu.actionSet">
<menu
label="API Development"
id="sampleMenu">
<separator
name="sampleGroup">
</separator>
</menu>
</actionSet>
</extension>
</plugin>
Thanks and regards, Kurt
© Stack Overflow or respective owner