org.eclipse.main.menu not showing [message #599866] |
Thu, 23 July 2009 20:04 |
|
Hi,
Please advise if I am posting this question in the wrong forum...
I am trying to come up to speed on eclipse plug-in development, and have
been working on this tutorial (after some simpler ones):
http://www.vogella.de/articles/RichClientPlatform/article.ht ml
I'm stuck just before step 6, as I'm unable to add the simple main menu
that would expose File->Exit. I've restarted from the beginning about 3
times and have meticulously inspected my source files, plugin.xml, etc.,
and can find nothing that appears to be wrong. I also do not find any
error messages showing up in the console log.
When I click the "Launch an Eclipse application" hyperlink from the
Overview tab, the application opens successfully, but it looks as it did
before I added the main menu.
Attached below is my plugin.xml, assuming that's of any use. Thanks for
reading!
----plugin.xml----
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="de.vogella.rcp.commands.first.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RCP Perspective"
class="de.vogella.rcp.commands.first.Perspective"
id="de.vogella.rcp.commands.first.perspective">
</perspective>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="de.vogella.rcp.commands.first.application"
name="Hello RCP">
<property
name="windowImages"
value="icons/alt_window_16.gif,icons/alt_window_32.gif">
</property>
</product>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="de.vogella.rcp.commands.first.commands.ExitHandler "
id="de.vogella.rcp.commands.first.commands.Exit"
name="Exit">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu">
<menu
id="fileMenu"
label="File">
<command
commandId="de.vogella.rcp.commands.first.commands.Exit"
label="Exit"
style="push"
tooltip="Exit the app">
</command>
</menu>
</menuContribution>
</extension>
</plugin>
------------------
|
|
|
Powered by
FUDForum. Page generated in 0.03789 seconds