Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2002-02-25 13:16:37 -0500
committerAndre Weinand2002-02-25 13:16:37 -0500
commitf18fffdbe2989225b9667c5544cde90461caee1a (patch)
treedf6ce1a9fff72d76a80f532ad4aecd3d30fec400 /bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer
parente12adb24e45560d6eb8d5b04f1937767ae7fecf9 (diff)
downloadeclipse.platform.team-f18fffdbe2989225b9667c5544cde90461caee1a.tar.gz
eclipse.platform.team-f18fffdbe2989225b9667c5544cde90461caee1a.tar.xz
eclipse.platform.team-f18fffdbe2989225b9667c5544cde90461caee1a.zip
#7681: Structured results expands import statements
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureDiffViewer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureDiffViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureDiffViewer.java
index 58f6065b7..7a766746d 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureDiffViewer.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/structuremergeviewer/StructureDiffViewer.java
@@ -147,10 +147,14 @@ public class StructureDiffViewer extends DiffTreeViewer {
if (input instanceof ICompareInput) {
compareInputChanged((ICompareInput) input);
if (input != oldInput)
- navigate(true);
+ initialSelection();
}
}
+ protected void initialSelection() {
+ expandToLevel(2);
+ }
+
/* (non Javadoc)
* Overridden to unregister all listeners.
*/

Back to the top