--- /dev/null
+<?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>