فهرست منبع

#1359 : ensure rename is not visible in custom editors by default (#1360)

* custom editors have to contribute the menu entry explicitly
* supports customizations for languages other than Stext(/languages
based on base.types)
Johannes Dicks 8 سال پیش
والد
کامیت
1f5c803ba5
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      plugins/org.yakindu.sct.refactoring/plugin.xml

+ 9 - 0
plugins/org.yakindu.sct.refactoring/plugin.xml

@@ -206,6 +206,15 @@
                   commandId="com.yakindu.sct.refactoring.renameElement"
                   label="Rename..."
                   style="push">
+               <visibleWhen
+                     checkEnabled="false">
+                  <with
+                        variable="activeEditorId">
+                     <equals
+                           value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
+                     </equals>
+                  </with>
+               </visibleWhen>
             </command>
          </menu>
       </menuContribution>