See bug 92286: [WorkbenchParts] Request new API for EditorPart
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
index 2fd439a..c7f97db 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
@@ -3066,12 +3066,12 @@
}
return null;
}
-
+
/*
- * @see EditorPart#setInput(org.eclipse.ui.IEditorInput)
+ * @see org.eclipse.ui.part.EditorPart#setInputWithNotify(org.eclipse.ui.IEditorInput)
+ * @since 3.2
*/
- public final void setInput(IEditorInput input) {
-
+ protected final void setInputWithNotify(IEditorInput input) {
try {
doSetInput(input);
@@ -3091,7 +3091,14 @@
ErrorDialog.openError(shell, title, msg, x.getStatus());
}
}
-
+
+ /*
+ * @see EditorPart#setInput(org.eclipse.ui.IEditorInput)
+ */
+ public final void setInput(IEditorInput input) {
+ setInputWithNotify(input);
+ }
+
/*
* @see ITextEditor#close
*/