Java Code Examples for org.eclipse.core.commands.operations.IOperationHistory#removeOperationHistoryListener()
The following examples show how to use
org.eclipse.core.commands.operations.IOperationHistory#removeOperationHistoryListener() .
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: FitToViewportLockAction.java From gef with Eclipse Public License 2.0 | 6 votes |
/** * Disables all viewport listeners that react to scroll offset, viewport * transformation, or viewport-/scrollable-/content-bounds changes. */ protected void disableViewportListeners() { infiniteCanvas.horizontalScrollOffsetProperty() .removeListener(scrollOffsetChangeListener); infiniteCanvas.verticalScrollOffsetProperty() .removeListener(scrollOffsetChangeListener); contentTransform.removeEventHandler( TransformChangedEvent.TRANSFORM_CHANGED, trafoChangeListener); contentBoundsProperty.removeListener(contentBoundsChangeListener); infiniteCanvas.widthProperty().removeListener(sizeChangeListener); infiniteCanvas.heightProperty().removeListener(sizeChangeListener); IDomain domain = getViewer().getDomain(); if (domain instanceof HistoricizingDomain) { IOperationHistory history = ((HistoricizingDomain) domain) .getOperationHistory(); history.removeOperationHistoryListener(operationHistoryListener); } }
Example 2
Source File: HistoryBasedDirtyStateProvider.java From gef with Eclipse Public License 2.0 | 5 votes |
@Override public void dispose() { // unregister operation history listener IOperationHistory operationHistory = getOperationHistory(); if (operationHistory != null) { operationHistory .removeOperationHistoryListener(operationHistoryListener); } operationHistoryListener = null; saveLocation = null; }
Example 3
Source File: EmbeddedEditorFactory.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected void uninstallUndoRedoSupport(OperationHistoryListener listener) { IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory(); operationHistory.removeOperationHistoryListener(listener); }