Search in sources :

Example 1 with TextualFunctionRunnable

use of org.whole.lang.e4.ui.jobs.TextualFunctionRunnable in project whole by wholeplatform.

the class AbstractModelTextAction method run.

@Override
public void run() {
    ESelectionService selectionService = getContext().get(ESelectionService.class);
    IBindingManager bm = (IBindingManager) selectionService.getSelection();
    ISynchronizableRunnable runnable = new TextualFunctionRunnable(getContext(), bm, getText(), getBehaviorUri());
    runnable.syncExec(3000);
}
Also used : TextualFunctionRunnable(org.whole.lang.e4.ui.jobs.TextualFunctionRunnable) ISynchronizableRunnable(org.whole.lang.e4.ui.jobs.ISynchronizableRunnable) IBindingManager(org.whole.lang.bindings.IBindingManager) ESelectionService(org.eclipse.e4.ui.workbench.modeling.ESelectionService)

Aggregations

ESelectionService (org.eclipse.e4.ui.workbench.modeling.ESelectionService)1 IBindingManager (org.whole.lang.bindings.IBindingManager)1 ISynchronizableRunnable (org.whole.lang.e4.ui.jobs.ISynchronizableRunnable)1 TextualFunctionRunnable (org.whole.lang.e4.ui.jobs.TextualFunctionRunnable)1