]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.ui/src/org/simantics/ui/workbench/action/IWorkbenchActionHints.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / action / IWorkbenchActionHints.java
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
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.ui.workbench.action;\r
13 \r
14 import org.simantics.utils.datastructures.hints.IHintContext.Key;\r
15 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;\r
16 \r
17 /**\r
18  * @author Tuukka Lehtonen\r
19  */\r
20 public interface IWorkbenchActionHints {\r
21 \r
22     /**\r
23      * A hint for holding the currently active perspective id for use in other\r
24      * threads besides the SWT UI thread.\r
25      */\r
26     Key KEY_CURRENTPERSPECTIVE = new KeyOf(String.class);\r
27 \r
28     /**\r
29      * A generic hint for stating whether to remember the result of a user\r
30      * action or not.\r
31      */\r
32     Key KEY_REMEMBER           = new KeyOf(Boolean.class);\r
33 \r
34     /**\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
37      */\r
38     Key KEY_ALWAYS_ASK         = new KeyOf(Boolean.class);\r
39 \r
40     /**\r
41      * A generic hint defining the source widget of an action.\r
42      */\r
43     Key KEY_WIDGET             = new KeyOf(Object.class);\r
44 \r
45 }\r