123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?eclipse version="3.4"?>
- <plugin>
- <extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.UnfoldEntryActionsHandler"
- description="Unfold Entry Actions"
- id="com.yakindu.sct.refactoring.unfoldEntryActions"
- name="Unfold Entry Actions">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.UnfoldExitActionsHandler"
- description="Unfold Exit Actions"
- id="com.yakindu.sct.refactoring.unfoldExitActions"
- name="Unfold Exit Actions">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.GroupStatesIntoCompositeHandler"
- description="Group states into composite state"
- id="com.yakindu.sct.refactoring.groupStates"
- name="Group Into Composite">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.FoldIncomingActionsHandler"
- description="Fold Incoming Actions"
- id="com.yakindu.sct.refactoring.foldInActions"
- name="Fold Incoming Actions">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.FoldOutgoingActionsHandler"
- description="Fold Outgoing Actions"
- id="com.yakindu.sct.refactoring.foldOutActions"
- name="Fold Outgoing Actions">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.RenameElementHandler"
- description="Rename Element"
- id="com.yakindu.sct.refactoring.renameElement"
- name="Rename Element">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.ExtractSubdiagramHandler"
- description="Extract Subdiagram"
- id="com.yakindu.sct.refactoring.extractSubDiagram"
- name="Extract Subdiagram">
- </command>
- <command
- defaultHandler="org.yakindu.sct.refactoring.handlers.impl.InlineSubdiagramHandler"
- description="Inline Subdiagram"
- id="com.yakindu.sct.refactoring.inlineSubDiagram"
- name="Inline Subdiagram">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu">
- <menu
- id="refactorMenu"
- label="Refactor">
- <command
- commandId="com.yakindu.sct.refactoring.foldInActions"
- label="Fold Incoming Actions"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.foldOutActions"
- label="Fold Outgoing Actions"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.groupStates"
- label="Group States Into Composite"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="multipleStatesSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.unfoldEntryActions"
- label="Unfold Entry Actions"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.unfoldExitActions"
- label="Unfold Exit Actions"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.extractSubDiagram"
- label="Extract Subdiagram"
- style="push">
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- <command
- commandId="com.yakindu.sct.refactoring.inlineSubDiagram"
- label="Inline Subdiagram"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <and>
- <reference
- definitionId="oneStateSelected">
- </reference>
- <with
- variable="activeEditorId">
- <equals
- value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
- </equals>
- </with>
- </and>
- </visibleWhen>
- </command>
- </menu>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="popup:org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapterContextMenu">
- <menu
- id="org.yakindu.refactoring"
- label="Refactoring">
- <command
- 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>
- </extension>
- <extension
- point="org.eclipse.core.expressions.definitions">
- <definition
- id="oneStateSelected">
- <with
- variable="selection">
- <and>
- <count
- value="1">
- </count>
- <iterate
- ifEmpty="false"
- operator="and">
- <instanceof
- value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
- </instanceof>
- </iterate>
- </and>
- </with>
- </definition>
- <definition
- id="multipleStatesSelected">
- <with
- variable="selection">
- <iterate
- ifEmpty="false"
- operator="and">
- <instanceof
- value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
- </instanceof>
- </iterate>
- </with>
- </definition>
- </extension>
- <extension
- point="org.eclipse.ui.startup">
- <startup
- class="org.yakindu.sct.refactoring.Activator">
- </startup>
- </extension>
- </plugin>
|