]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/plugin.xml
Option for exporting tg and pgraph with sharedlibrary
[simantics/platform.git] / bundles / org.simantics.modeling.ui / plugin.xml
index 41bf9eccc5170e1ee55b1653c4c7dab4e1d2ea30..578c752ba37504fe7e6b46024d17081cdeb3829a 100644 (file)
          <activeWhen>
             <with
                   variable="activeContexts">
+            <and>
                <test
                      property="org.simantics.ui.tester.canUndo">
                </test>
+               <iterate
+                     ifEmpty="false"
+                     operator="and">
+                  <not>
+                     <equals
+                           value="org.simantics.modeling.ui.diagramming.inlineEdit">
+                     </equals>
+                  </not>
+               </iterate>
+            </and>
             </with>
          </activeWhen>
       </handler>
          <activeWhen>
             <with
                   variable="activeContexts">
+            <and>
                <test
                      property="org.simantics.ui.tester.canRedo">
                </test>
+               <iterate
+                     ifEmpty="false"
+                     operator="and">
+                  <not>
+                     <equals
+                           value="org.simantics.modeling.ui.diagramming.inlineEdit">
+                     </equals>
+                  </not>
+               </iterate>
+            </and>
             </with>
          </activeWhen>
       </handler>
                class="org.simantics.diagram.handler.ConnectionRoutingMenuContribution"
                id="connectionRouting">
          </dynamic>
+         <dynamic
+               class="org.simantics.modeling.ui.actions.SwitchComponentTypeContribution"
+               id="org.simantics.modeling.ui.switchComponentType">
+         </dynamic>
       </menuContribution>
       <menuContribution
             locationURI="toolbar:org.simantics.browsing.ui.graph.propertyView">