Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2004-10-26 08:27:54 -0400
committerAndre Weinand2004-10-26 08:27:54 -0400
commit74ed64249ecaa65e1071f9d355e4e0e2b6862bfb (patch)
tree1a14ce80776991f941adde15c7b85ac62daa42d6 /bundles/org.eclipse.compare/compare
parent20cdc8137bc52d449a6865a163884a54e9397e09 (diff)
downloadeclipse.platform.team-74ed64249ecaa65e1071f9d355e4e0e2b6862bfb.tar.gz
eclipse.platform.team-74ed64249ecaa65e1071f9d355e4e0e2b6862bfb.tar.xz
eclipse.platform.team-74ed64249ecaa65e1071f9d355e4e0e2b6862bfb.zip
fixed #65981: empty compare viewer has no focus
Diffstat (limited to 'bundles/org.eclipse.compare/compare')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareViewerPane.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareViewerPane.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareViewerPane.java
index 5246ae1c4..54f6b00dc 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareViewerPane.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareViewerPane.java
@@ -85,7 +85,8 @@ public class CompareViewerPane extends ViewForm {
*/
public void setText(String label) {
CLabel cl= (CLabel) getTopLeft();
- cl.setText(label);
+ if (cl != null)
+ cl.setText(label);
}
/**
@@ -96,7 +97,8 @@ public class CompareViewerPane extends ViewForm {
*/
public void setImage(Image image) {
CLabel cl= (CLabel) getTopLeft();
- cl.setImage(image);
+ if (cl != null)
+ cl.setImage(image);
}
/**

Back to the top