Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2002-06-07 15:21:53 -0400
committerAndre Weinand2002-06-07 15:21:53 -0400
commite2842965a9421d92715ae31883b74a62e8dd0059 (patch)
tree432f33b93165bd223a1817a6838ab6ef4b24e155
parent84c135350e13e3740606290af8352742c7e9dc36 (diff)
downloadeclipse.platform.team-e2842965a9421d92715ae31883b74a62e8dd0059.tar.gz
eclipse.platform.team-e2842965a9421d92715ae31883b74a62e8dd0059.tar.xz
eclipse.platform.team-e2842965a9421d92715ae31883b74a62e8dd0059.zip
fix fix for #13730v20020608
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java27
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java27
2 files changed, 54 insertions, 0 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
index dad21a2fc..fdbe766f7 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
@@ -413,6 +413,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructureInputPane.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed1(s);
+ }
+ }
+ );
fStructureInputPane.addDoubleClickListener(
new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
@@ -429,6 +438,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructurePane1.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed2(s);
+ }
+ }
+ );
// setup the wiring for third pane
fStructurePane2.addOpenListener(
@@ -438,6 +456,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructurePane2.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed3(s);
+ }
+ }
+ );
// now deal with activation/deactivation
Listener activationListener= new Listener() {
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
index dad21a2fc..fdbe766f7 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/CompareEditorInput.java
@@ -413,6 +413,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructureInputPane.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed1(s);
+ }
+ }
+ );
fStructureInputPane.addDoubleClickListener(
new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
@@ -429,6 +438,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructurePane1.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed2(s);
+ }
+ }
+ );
// setup the wiring for third pane
fStructurePane2.addOpenListener(
@@ -438,6 +456,15 @@ public abstract class CompareEditorInput implements IEditorInput, IPropertyChang
}
}
);
+ fStructurePane2.addSelectionChangedListener(
+ new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent e) {
+ ISelection s= e.getSelection();
+ if (s == null || s.isEmpty())
+ feed3(s);
+ }
+ }
+ );
// now deal with activation/deactivation
Listener activationListener= new Listener() {

Back to the top