X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.views.text%2Fsrc%2Forg%2Fsimantics%2Fviews%2Ftext%2Finternal%2FTextViewerConstants.java;fp=bundles%2Forg.simantics.views.text%2Fsrc%2Forg%2Fsimantics%2Fviews%2Ftext%2Finternal%2FTextViewerConstants.java;h=2924dc3ec77a93ae9eb49bcfe87304d21b8f36a3;hb=5b3a1f2d3bffe5a79e344b55087fb161541a4301;hp=0000000000000000000000000000000000000000;hpb=894991ee53490cb8e28dd48b0da686203411324a;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.views.text/src/org/simantics/views/text/internal/TextViewerConstants.java b/bundles/org.simantics.views.text/src/org/simantics/views/text/internal/TextViewerConstants.java new file mode 100644 index 000000000..2924dc3ec --- /dev/null +++ b/bundles/org.simantics.views.text/src/org/simantics/views/text/internal/TextViewerConstants.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * 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) initial API and implementation + *******************************************************************************/ +package org.simantics.views.text.internal; + +import org.eclipse.jface.text.IUndoManager; +import org.eclipse.jface.text.TextViewer; +import org.eclipse.swt.widgets.Control; + +/** + * @author Tuukka Lehtonen + * @since 1.28.0 + */ +public class TextViewerConstants { + + /** + * The UI focus control context used for enabling normal text undo/redo for + * {@link TextViewer} controls. + */ + public static final String CONTEXT_IN_TEXT_VIEWER = "inTextViewer"; + + /** + * A key used for storing an {@link IUndoManager} as data of a + * {@link Control} using {@link Control#setData(String, Object)}. + */ + public static final String KEY_UNDO_MANAGER = "undoManager"; + +}