]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.text/plugin.xml
Added org.simantics.views.text[.ontology] for modelled source viewers
[simantics/platform.git] / bundles / org.simantics.views.text / plugin.xml
diff --git a/bundles/org.simantics.views.text/plugin.xml b/bundles/org.simantics.views.text/plugin.xml
new file mode 100644 (file)
index 0000000..d2c9091
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+    Copyright (c) 2017 Association for Decentralized Information Management in
+    Industry THTH ry.
+    All rights reserved. This program and the accompanying materials
+    are made available under the terms of the Eclipse Public License v1.0
+    which accompanies this distribution, and is available at
+    http://www.eclipse.org/legal/epl-v10.html
+   
+    Contributors:
+        Semantum Oy - (#7066) undo/redo support for markup editor
+ -->
+
+<plugin>
+
+   <extension
+         point="org.eclipse.core.expressions.definitions">
+      <definition
+            id="org.simantics.views.text.inTextViewer">
+         <with variable="activeFocusControlId">
+            <equals value="inTextViewer"/>
+         </with>
+      </definition>
+   </extension>
+
+   <extension
+         point="org.eclipse.ui.handlers">
+      <handler
+            class="org.simantics.views.text.internal.TextViewerUndoHandler:undo"
+            commandId="org.eclipse.ui.edit.undo">
+         <activeWhen>
+            <reference definitionId="org.simantics.views.text.inTextViewer" />
+         </activeWhen>
+      </handler>
+      <handler
+            class="org.simantics.views.text.internal.TextViewerUndoHandler:redo"
+            commandId="org.eclipse.ui.edit.redo">
+         <activeWhen>
+            <reference definitionId="org.simantics.views.text.inTextViewer" />
+         </activeWhen>
+      </handler>
+   </extension>
+
+</plugin>