Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » org.eclipse.main.menu not showing
org.eclipse.main.menu not showing [message #68971] Thu, 23 July 2009 20:04 Go to next message
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

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>

------------------
Re: org.eclipse.main.menu not showing [message #69075 is a reply to message #68971] Sat, 25 July 2009 07:14 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Joey,

I added the plugin.xml to the article (
http://www.vogella.de/articles/RichClientPlatform/article.ht ml )so that
you can easily compare your plugin.xml

But from what I see your plugin.xml looks alright. Can you please use
the magic -consoleLog parameter in your launch configuration? This is
described in the chapter before the command chapter in the same article.
Perhaps you have a problem with the handler?

Best regards, Lars

P.S. for problems with my articles you could also use the vogella.de
google group http://groups.google.com/group/vogella there I have a
closer watch at.


Joey Mink wrote:
> 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>
>
> ------------------
>




--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
Re: org.eclipse.main.menu not showing [message #599896 is a reply to message #68971] Sat, 25 July 2009 07:14 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Joey,

I added the plugin.xml to the article (
http://www.vogella.de/articles/RichClientPlatform/article.ht ml )so that
you can easily compare your plugin.xml

But from what I see your plugin.xml looks alright. Can you please use
the magic -consoleLog parameter in your launch configuration? This is
described in the chapter before the command chapter in the same article.
Perhaps you have a problem with the handler?

Best regards, Lars

P.S. for problems with my articles you could also use the vogella.de
google group http://groups.google.com/group/vogella there I have a
closer watch at.


Joey Mink wrote:
> 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>
>
> ------------------
>




--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
Previous Topic:Re: Modifying plugin.xml
Next Topic:[API Tools] Binary compatibility rules ("How to evolve Java APIs")
Goto Forum:
  


Current Time: Fri Apr 19 20:08:10 GMT 2024

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

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

Back to the top