|
@@ -33,7 +33,27 @@
|
|
|
definitionId="org.yakindu.sct.generator.genmodel.SGen.Editor.opened">
|
|
|
</reference>
|
|
|
</activeWhen>
|
|
|
- </handler>
|
|
|
+ </handler>
|
|
|
+ <!-- copy qualified name -->
|
|
|
+ <handler
|
|
|
+ class="org.yakindu.sct.generator.genmodel.ui.SGenExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler"
|
|
|
+ commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName">
|
|
|
+ <activeWhen>
|
|
|
+ <reference definitionId="org.yakindu.sct.generator.genmodel.SGen.Editor.opened" />
|
|
|
+ </activeWhen>
|
|
|
+ </handler>
|
|
|
+ <handler
|
|
|
+ class="org.yakindu.sct.generator.genmodel.ui.SGenExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler"
|
|
|
+ commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName">
|
|
|
+ <activeWhen>
|
|
|
+ <and>
|
|
|
+ <reference definitionId="org.yakindu.sct.generator.genmodel.SGen.XtextEditor.opened" />
|
|
|
+ <iterate>
|
|
|
+ <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
|
|
|
+ </iterate>
|
|
|
+ </and>
|
|
|
+ </activeWhen>
|
|
|
+ </handler>
|
|
|
</extension>
|
|
|
<extension point="org.eclipse.core.expressions.definitions">
|
|
|
<definition id="org.yakindu.sct.generator.genmodel.SGen.Editor.opened">
|
|
@@ -46,6 +66,16 @@
|
|
|
</with>
|
|
|
</and>
|
|
|
</definition>
|
|
|
+ <definition id="org.yakindu.sct.generator.genmodel.SGen.XtextEditor.opened">
|
|
|
+ <and>
|
|
|
+ <reference definitionId="isXtextEditorActive"/>
|
|
|
+ <with variable="activeEditor">
|
|
|
+ <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
|
|
|
+ value="org.yakindu.sct.generator.genmodel.SGen"
|
|
|
+ forcePluginActivation="true"/>
|
|
|
+ </with>
|
|
|
+ </and>
|
|
|
+ </definition>
|
|
|
</extension>
|
|
|
<extension
|
|
|
point="org.eclipse.ui.preferencePages">
|
|
@@ -96,6 +126,19 @@
|
|
|
id="org.yakindu.sct.generator.genmodel.SGen.validate"
|
|
|
name="Validate">
|
|
|
</command>
|
|
|
+ <!-- copy qualified name -->
|
|
|
+ <command
|
|
|
+ id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
|
+ categoryId="org.eclipse.ui.category.edit"
|
|
|
+ description="Copy the qualified name for the selected element"
|
|
|
+ name="Copy Qualified Name">
|
|
|
+ </command>
|
|
|
+ <command
|
|
|
+ id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
|
|
|
+ categoryId="org.eclipse.ui.category.edit"
|
|
|
+ description="Copy the qualified name for the selected element"
|
|
|
+ name="Copy Qualified Name">
|
|
|
+ </command>
|
|
|
</extension>
|
|
|
<extension point="org.eclipse.ui.menus">
|
|
|
<menuContribution
|
|
@@ -111,6 +154,36 @@
|
|
|
</visibleWhen>
|
|
|
</command>
|
|
|
</menuContribution>
|
|
|
+ <!-- copy qualified name -->
|
|
|
+ <menuContribution locationURI="popup:#TextEditorContext?after=copy">
|
|
|
+ <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
|
+ style="push" tooltip="Copy Qualified Name">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <reference definitionId="org.yakindu.sct.generator.genmodel.SGen.Editor.opened" />
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ </menuContribution>
|
|
|
+ <menuContribution locationURI="menu:edit?after=copy">
|
|
|
+ <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
|
+ style="push" tooltip="Copy Qualified Name">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <reference definitionId="org.yakindu.sct.generator.genmodel.SGen.Editor.opened" />
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ </menuContribution>
|
|
|
+ <menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions">
|
|
|
+ <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
|
|
|
+ style="push" tooltip="Copy Qualified Name">
|
|
|
+ <visibleWhen checkEnabled="false">
|
|
|
+ <and>
|
|
|
+ <reference definitionId="org.yakindu.sct.generator.genmodel.SGen.XtextEditor.opened" />
|
|
|
+ <iterate>
|
|
|
+ <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
|
|
|
+ </iterate>
|
|
|
+ </and>
|
|
|
+ </visibleWhen>
|
|
|
+ </command>
|
|
|
+ </menuContribution>
|
|
|
</extension>
|
|
|
<extension point="org.eclipse.ui.menus">
|
|
|
<menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
|
|
@@ -238,7 +311,7 @@
|
|
|
<!-- Rename Refactoring -->
|
|
|
<extension point="org.eclipse.ui.handlers">
|
|
|
<handler
|
|
|
- class="org.yakindu.sct.generator.genmodel.ui.SGenExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
|
|
|
+ class="org.yakindu.sct.generator.genmodel.ui.SGenExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler"
|
|
|
commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
|
|
|
<activeWhen>
|
|
|
<reference
|