Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran-dev] Photran problem with e4

Hi Eric,  (copying photran-dev)

I'm just now getting around to testing Photran with e4.  Sorry I
didn't get to this sooner.

Things look good in general.  The only problem I found is with a
dynamic menu that we contribute.  The relevant XML is below.  We
hijack the ID of JDT's "Refactor" menu to make sure there's never more
than one Refactor menu visible.  Then, we populate the menu items in
the Refactor menu dynamically, based on the active selection.  In e4,
there generally seemed to be only one item in the menu, although there
should be more than that.

Are there known issues related to dynamic menu contributions?  Or did
you want me to open a bug report with a more detailed description of
the problem?

   <extension point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?before=navigate">
         <menu
               label="%menu.label"
               id="org.eclipse.jdt.ui.refactoring.menu">
            <dynamic
                  class="org.eclipse.rephraserengine.ui.menus.RefactorMenu"
                  id="org.eclipse.rephraserengine.ui.menus.refactor">
            </dynamic>

Jeff


Back to the top