1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.ui.workbench.action;
\r
14 import org.simantics.utils.datastructures.hints.IHintContext.Key;
\r
15 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
\r
18 * @author Tuukka Lehtonen
\r
20 public interface IWorkbenchActionHints {
\r
23 * A hint for holding the currently active perspective id for use in other
\r
24 * threads besides the SWT UI thread.
\r
26 Key KEY_CURRENTPERSPECTIVE = new KeyOf(String.class);
\r
29 * A generic hint for stating whether to remember the result of a user
\r
32 Key KEY_REMEMBER = new KeyOf(Boolean.class);
\r
35 * A generic hint for stating whether to always ask for input from the user
\r
36 * regardless of whether remembered setting could be used.
\r
38 Key KEY_ALWAYS_ASK = new KeyOf(Boolean.class);
\r
41 * A generic hint defining the source widget of an action.
\r
43 Key KEY_WIDGET = new KeyOf(Object.class);
\r