package org.simantics.ui.workbench.action;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
session.asyncRequest(new ChooseActionRequest(shell, null, input, WorkbenchUtils.getCurrentPerspectiveId(), rememberAction, alwaysAsk, neverPromptForAction));
}
+ /**
+ * Perform a default workbench action on the specified input object using
+ * {@link ChooseActionRequest} from the current thread. The current thread
+ * must be the SWT UI thread.
+ *
+ * @param control the control contained
+ */
+ public static void performDefaultAction(Control control, Object input) {
+ new PerformDefaultAction("Perform Default Action", control, input).run();
+ }
+
}