use of org.eclipse.ltk.core.refactoring.IUndoManagerListener in project che by eclipse.
the class UndoManager2 method fireChangePerformed.
private void fireChangePerformed(final Change change) {
if (fListeners == null)
return;
Object[] listeners = fListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
final IUndoManagerListener listener = (IUndoManagerListener) listeners[i];
SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
listener.changePerformed(UndoManager2.this, change);
}
public void handleException(Throwable exception) {
RefactoringCorePlugin.log(exception);
}
});
}
}
use of org.eclipse.ltk.core.refactoring.IUndoManagerListener in project che by eclipse.
the class UndoManager2 method fireRedoStackChanged.
private void fireRedoStackChanged() {
if (fListeners == null)
return;
Object[] listeners = fListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
final IUndoManagerListener listener = (IUndoManagerListener) listeners[i];
SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
listener.redoStackChanged(UndoManager2.this);
}
public void handleException(Throwable exception) {
RefactoringCorePlugin.log(exception);
}
});
}
}
use of org.eclipse.ltk.core.refactoring.IUndoManagerListener in project che by eclipse.
the class UndoManager2 method fireUndoStackChanged.
private void fireUndoStackChanged() {
if (fListeners == null)
return;
Object[] listeners = fListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
final IUndoManagerListener listener = (IUndoManagerListener) listeners[i];
SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
listener.undoStackChanged(UndoManager2.this);
}
public void handleException(Throwable exception) {
RefactoringCorePlugin.log(exception);
}
});
}
}
use of org.eclipse.ltk.core.refactoring.IUndoManagerListener in project che by eclipse.
the class UndoManager2 method fireAboutToPerformChange.
//---- event firing methods -------------------------------------------------
private void fireAboutToPerformChange(final Change change) {
if (fListeners == null)
return;
Object[] listeners = fListeners.getListeners();
for (int i = 0; i < listeners.length; i++) {
final IUndoManagerListener listener = (IUndoManagerListener) listeners[i];
SafeRunner.run(new ISafeRunnable() {
public void run() throws Exception {
listener.aboutToPerformChange(UndoManager2.this, change);
}
public void handleException(Throwable exception) {
RefactoringCorePlugin.log(exception);
}
});
}
}
Aggregations