summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorRemy Suen2010-12-14 08:23:42 (EST)
committer Dani Megert2011-10-06 08:14:19 (EDT)
commit37f4f87a1751c1ffd0394a8a604a9a1e46b9af4a (patch)
tree7b56d406534db812fc8504ad164ca21c5ab91bf0
parentcd69e639dd73035c393478ab8e836a17c297a7f1 (diff)
downloadeclipse.platform.ui-37f4f87a1751c1ffd0394a8a604a9a1e46b9af4a.zip
eclipse.platform.ui-37f4f87a1751c1ffd0394a8a604a9a1e46b9af4a.tar.gz
eclipse.platform.ui-37f4f87a1751c1ffd0394a8a604a9a1e46b9af4a.tar.bz2
Bug 332216 [ViewMgmt] ErrorViewPart must implement setFocus() method
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorViewPart.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorViewPart.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorViewPart.java
index e07c3e5..e18d5d4 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorViewPart.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ErrorViewPart.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
+ * Copyright (c) 2005, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -25,6 +25,7 @@ import org.eclipse.ui.part.ViewPart;
public class ErrorViewPart extends ViewPart {
private IStatus error;
+ private Composite parentControl;
/**
* Creates instance of the class
@@ -47,6 +48,7 @@ public class ErrorViewPart extends ViewPart {
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
public void createPartControl(Composite parent) {
+ parentControl = parent;
if (error != null) {
new StatusPart(parent, error);
}
@@ -67,6 +69,17 @@ public class ErrorViewPart extends ViewPart {
* @see org.eclipse.ui.part.WorkbenchPart#setFocus()
*/
public void setFocus() {
+ parentControl.setFocus();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.part.WorkbenchPart#dispose()
+ */
+ public void dispose() {
+ super.dispose();
+ parentControl = null;
}
}