1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 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 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.ui.workbench.action;
14 import org.simantics.utils.datastructures.hints.IHintContext.Key;
15 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
18 * @author Tuukka Lehtonen
20 public interface IWorkbenchActionHints {
23 * A hint for holding the currently active perspective id for use in other
24 * threads besides the SWT UI thread.
26 Key KEY_CURRENTPERSPECTIVE = new KeyOf(String.class);
29 * A generic hint for stating whether to remember the result of a user
32 Key KEY_REMEMBER = new KeyOf(Boolean.class);
35 * A generic hint for stating whether to always ask for input from the user
36 * regardless of whether remembered setting could be used.
38 Key KEY_ALWAYS_ASK = new KeyOf(Boolean.class);
41 * A generic hint defining the source widget of an action.
43 Key KEY_WIDGET = new KeyOf(Object.class);