]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.ui/src/org/simantics/ui/workbench/action/IWorkbenchActionHints.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / action / IWorkbenchActionHints.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 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  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.ui.workbench.action;
13
14 import org.simantics.utils.datastructures.hints.IHintContext.Key;
15 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
16
17 /**
18  * @author Tuukka Lehtonen
19  */
20 public interface IWorkbenchActionHints {
21
22     /**
23      * A hint for holding the currently active perspective id for use in other
24      * threads besides the SWT UI thread.
25      */
26     Key KEY_CURRENTPERSPECTIVE = new KeyOf(String.class);
27
28     /**
29      * A generic hint for stating whether to remember the result of a user
30      * action or not.
31      */
32     Key KEY_REMEMBER           = new KeyOf(Boolean.class);
33
34     /**
35      * A generic hint for stating whether to always ask for input from the user
36      * regardless of whether remembered setting could be used.
37      */
38     Key KEY_ALWAYS_ASK         = new KeyOf(Boolean.class);
39
40     /**
41      * A generic hint defining the source widget of an action.
42      */
43     Key KEY_WIDGET             = new KeyOf(Object.class);
44
45 }