Disable preferences menu when not connected to a data source
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 25 Oct 2018 10:53:06 +0000 (12:53 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 25 Oct 2018 10:53:06 +0000 (12:53 +0200)
eu.etaxonomy.taxeditor.workbench/fragment.e4xmi

index 42f8c1f04ca2f086e3c53411ff18d80d89879414..c629bc5e30936a1f2408892d878b4d85b622098a 100644 (file)
@@ -44,7 +44,9 @@
           <children xsi:type="menu:MenuSeparator" xmi:id="_OUNVYLMnEeeMU61m8yqdaA" elementId="eu.etaxonomy.taxeditor.workbench.menuseparator.referencing"/>
         </children>
         <children xsi:type="menu:MenuSeparator" xmi:id="_FaGnuCQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.windowMenu.last"/>
-        <children xsi:type="menu:HandledMenuItem" xmi:id="_FaGnuSQNEeen_7LZsZSNoA" elementId="org.eclipse.ui.main.menu.window.preferences" label="%command.label.12" command="_l9kXoB7PEeeC-JvycL9ysA"/>
+        <children xsi:type="menu:HandledMenuItem" xmi:id="_FaGnuSQNEeen_7LZsZSNoA" elementId="org.eclipse.ui.main.menu.window.preferences" label="%command.label.12" command="_l9kXoB7PEeeC-JvycL9ysA">
+          <visibleWhen xsi:type="ui:CoreExpression" xmi:id="_B_WRsNhEEeijwMElCRdOhg" coreExpressionId="isCdmStoreConnected"/>
+        </children>
       </children>
       <children xsi:type="menu:Menu" xmi:id="_FaGnuiQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.workbench.menu.admin" label="%menu.label.4" mnemonics="A">
         <children xsi:type="menu:HandledMenuItem" xmi:id="_b4RFsCQsEeeq76l4saMAFQ" elementId="eu.etaxonomy.taxeditor.workbench.menu.admin.dbpreferences" label="%command.label.23" command="_VawPsCQsEeeq76l4saMAFQ">