1 /*******************************************************************************
2 * Copyright (c) 2017 Association for Decentralized Information Management
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
10 * Semantum Oy - (#7066) initial API and implementation
11 *******************************************************************************/
12 package org.simantics.views.text.internal;
14 import org.eclipse.jface.text.IUndoManager;
15 import org.eclipse.jface.text.TextViewer;
16 import org.eclipse.swt.widgets.Control;
19 * @author Tuukka Lehtonen
22 public class TextViewerConstants {
25 * The UI focus control context used for enabling normal text undo/redo for
26 * {@link TextViewer} controls.
28 public static final String CONTEXT_IN_TEXT_VIEWER = "inTextViewer";
31 * A key used for storing an {@link IUndoManager} as data of a
32 * {@link Control} using {@link Control#setData(String, Object)}.
34 public static final String KEY_UNDO_MANAGER = "undoManager";