org.eclipse.core.commands.operations.IOperationApprover Java Examples

The following examples show how to use org.eclipse.core.commands.operations.IOperationApprover. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaEditor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected IOperationApprover getUndoRedoOperationApprover(IUndoContext undoContext) {
	// since IResource is a more general way to compare java elements, we
	// use this as the preferred class for comparing objects.
	return new NonLocalUndoUserApprover(undoContext, this, new Object [] { getInputJavaElement() }, IResource.class);
}
 
Example #2
Source File: BonitaOperationHistory.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addOperationApprover(final IOperationApprover approver) {
    defaultOperationHistory.addOperationApprover(approver);
}
 
Example #3
Source File: BonitaOperationHistory.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeOperationApprover(final IOperationApprover approver) {
    defaultOperationHistory.removeOperationApprover(approver);
}