]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.views.text/src/org/simantics/views/text/internal/TextViewerConstants.java
Merge branch 'feature/funcwrite'
[simantics/platform.git] / bundles / org.simantics.views.text / src / org / simantics / views / text / internal / TextViewerConstants.java
1 /*******************************************************************************
2  * Copyright (c) 2017 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     Semantum Oy - (#7066) initial API and implementation
11  *******************************************************************************/
12 package org.simantics.views.text.internal;
13
14 import org.eclipse.jface.text.IUndoManager;
15 import org.eclipse.jface.text.TextViewer;
16 import org.eclipse.swt.widgets.Control;
17
18 /**
19  * @author Tuukka Lehtonen
20  * @since 1.28.0
21  */
22 public class TextViewerConstants {
23
24         /**
25          * The UI focus control context used for enabling normal text undo/redo for
26          * {@link TextViewer} controls.
27          */
28         public static final String CONTEXT_IN_TEXT_VIEWER = "inTextViewer";
29
30         /**
31          * A key used for storing an {@link IUndoManager} as data of a
32          * {@link Control} using {@link Control#setData(String, Object)}.
33          */
34         public static final String KEY_UNDO_MANAGER = "undoManager";
35
36 }