Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse RCP: "File>New" menu emptied after using the same menu in the toolbar
Eclipse RCP: "File>New" menu emptied after using the same menu in the toolbar [message #1692144] Mon, 13 April 2015 21:34 Go to next message
Manuel Vonthron is currently offline Manuel VonthronFriend
Messages: 1
Registered: April 2015
Junior Member
Hi all,

I am having a strange problem with the "File>New" menu of our Eclipse RCP based software (called RT-LAB)

Our "File > New "menu contains several Wizards declared in plugin.xml. Exemple:
   <extension
         point="org.eclipse.ui.newWizards">
      <category
            id="com.opalrt.rtlab.ui.wizard.rtlabcategory"
            name="RT-LAB">
      </category>
      <primaryWizard
            id="com.opalrt.rtlab.ui.wizard.NewRtlabProjectWizard">
      </primaryWizard>
// other primaryWizard entries
      <wizard
            category="com.opalrt.rtlab.ui.wizard.rtlabcategory"
            class="com.opalrt.rtlab.ui.wizard.project.NewRtlabProjectWizard"
            finalPerspective="com.opalrt.rtlab.ui.perspective.EditionPerspective"
            icon="icons/opalrt/newlprj_wiz.gif"
            id="com.opalrt.rtlab.ui.wizard.NewRtlabProjectWizard"
            name="RT-LAB Project"
            project="true">
         <description>
            Create a new RT-LAB project
         </description>
      </wizard>
// other wizards


This gives the expected menu:

index.php/fa/21524/0/

These menus are also added to a shortcut in the toolbar

// perspective edition

        layout.addNewWizardShortcut("com.opalrt.rtlab.ui.wizard.NewRtlabProjectWizard");
        layout.addNewWizardShortcut("com.opalrt.rtlab.ui.wizard.NewRtlabTargetWizard");
        layout.addNewWizardShortcut("com.opalrt.rtlab.ui.wizard.NewRtlabModelWizard");


index.php/fa/21525/0/


What's really weird, it's that if I go over an entry in this toolbar menu, the regular File > New menu becomes empty!
No exception or any kind or error are thrown, the menu just disappears:

index.php/fa/21526/0/

Nothing changes as for the selection context and the software as to be restarted to have the menu back.
How can that be? Surprised
Re: Eclipse RCP: "File>New" menu emptied after using the same menu in the toolbar [message #1692562 is a reply to message #1692144] Thu, 16 April 2015 13:45 Go to previous message
Eclipse UserFriend
Your scenario works fine from the IDE (which uses the same mechanism). Try reproducing with a small standalone app. If it still happens, open a bug and be sure to specify what version of Eclipse Platform you're working against.

Brian.
Previous Topic:Switching binding context based on selection
Next Topic:e4 Handler enabledWhen expression
Goto Forum:
  


Current Time: Tue Mar 19 06:19:35 GMT 2024

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

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

Back to the top