summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarkus Keller2010-11-01 11:24:37 (EDT)
committer Dani Megert2011-10-06 03:41:59 (EDT)
commit83adb65957048cf7daf92f81c3e5ce515ff7525b (patch)
tree0cb7abe449a320c2dbd2783b46f531a29dc1b74c
parent10dfb6088cdb013a669d1d4f63ed4557c9792703 (diff)
downloadeclipse.platform.ui-83adb65957048cf7daf92f81c3e5ce515ff7525b.zip
eclipse.platform.ui-83adb65957048cf7daf92f81c3e5ce515ff7525b.tar.gz
eclipse.platform.ui-83adb65957048cf7daf92f81c3e5ce515ff7525b.tar.bz2
Bug 329199: ErrorEditorPart must implement setFocus()
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java
index 7b601af..543a3c5 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorEditorPart.java
@@ -10,11 +10,9 @@
*******************************************************************************/
package org.eclipse.ui.internal;
-import org.eclipse.swt.widgets.Composite;
-
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.internal.part.StatusPart;
@@ -28,6 +26,7 @@ import org.eclipse.ui.part.EditorPart;
public class ErrorEditorPart extends EditorPart {
private IStatus error;
+ private Composite parentControl;
/**
* Creates instance of the class
@@ -66,6 +65,7 @@ public class ErrorEditorPart extends EditorPart {
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
public void createPartControl(Composite parent) {
+ this.parentControl = parent;
if (error != null) {
new StatusPart(parent, error);
}
@@ -107,7 +107,7 @@ public class ErrorEditorPart extends EditorPart {
* @see org.eclipse.ui.part.WorkbenchPart#setFocus()
*/
public void setFocus() {
-
+ parentControl.setFocus();
}
/*
@@ -118,4 +118,14 @@ public class ErrorEditorPart extends EditorPart {
public void setPartName(String newName) {
super.setPartName(newName);
}
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.part.WorkbenchPart#dispose()
+ */
+ public void dispose() {
+ super.dispose();
+ parentControl = null;
+ }
}