Java 类org.eclipse.ui.operations.IWorkbenchOperationSupport 实例源码

项目:OpenSPIFe    文件:EMFTreeTableColumn.java   
@Override
public void modify(T facet, Object value, IUndoContext undoContext) {
    IUndoableOperation operation = new PropertyDescriptorUpdateOperation("Set value", facet, itemPropertyDescriptor, value);
    operation = EMFDetailUtils.addContributorOperations(operation, facet, itemPropertyDescriptor, value);
    operation.addContext(undoContext);
    IWorkbenchOperationSupport operationSupport = PlatformUI.getWorkbench().getOperationSupport();
    IOperationHistory operationHistory = operationSupport.getOperationHistory();
    try {
        IStatus execute = operationHistory.execute(operation, null, null);
        if(execute.matches(IStatus.ERROR)) {
            throw new ExecutionException(execute.getMessage());
        }
    } catch (ExecutionException e) {
        LogUtil.error(e);
    }
}
项目:gef-gwt    文件:Workbench.java   
@Override
public IWorkbenchOperationSupport getOperationSupport() {
    // TODO Auto-generated method stub
    return null;
}
项目:gef-gwt    文件:IWorkbench.java   
/**
 * <p>
 * Returns the undoable operation support for the workbench.
 * </p>
 * 
 * @return the workbench operation support
 * 
 * @since 3.1
 */
public IWorkbenchOperationSupport getOperationSupport();