Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2004-11-16 06:07:34 -0500
committerAndre Weinand2004-11-16 06:07:34 -0500
commit99396e7a96024ad66463cdfbc0aebf1c3853f092 (patch)
tree650c0e029bb6fbfa13c79dea500c4b11ded36f33 /bundles/org.eclipse.compare/compare
parent50b7addd6701993571d0030748e2e49f26bad3b9 (diff)
downloadeclipse.platform.team-99396e7a96024ad66463cdfbc0aebf1c3853f092.tar.gz
eclipse.platform.team-99396e7a96024ad66463cdfbc0aebf1c3853f092.tar.xz
eclipse.platform.team-99396e7a96024ad66463cdfbc0aebf1c3853f092.zip
fixed #78679v20041116
Diffstat (limited to 'bundles/org.eclipse.compare/compare')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ComparePreferencePage.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ComparePreferencePage.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ComparePreferencePage.java
index 9d0afbec9..3fcd49cf0 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ComparePreferencePage.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ComparePreferencePage.java
@@ -73,10 +73,11 @@ public class ComparePreferencePage extends PreferencePage implements IWorkbenchP
private TextMergeViewer fPreviewViewer;
- private IPropertyChangeListener fPreferenceChangeListener;
+ private IPropertyChangeListener fPreferenceChangeListener;
private CompareConfiguration fCompareConfiguration;
private OverlayPreferenceStore fOverlayStore;
private Map fCheckBoxes= new HashMap();
+ private Text fFilters;
private SelectionListener fCheckBoxListener;
@@ -140,6 +141,7 @@ public class ComparePreferencePage extends PreferencePage implements IWorkbenchP
* @see IWorkbenchPreferencePage#init()
*/
public void init(IWorkbench workbench) {
+ // empty
}
/*
@@ -247,13 +249,13 @@ public class ComparePreferencePage extends PreferencePage implements IWorkbenchP
l= new Label(c2, SWT.NONE);
l.setText(Utilities.getString("ComparePreferencePage.filter.label")); //$NON-NLS-1$
- final Text t= new Text(c2, SWT.BORDER);
- t.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- t.setText(fOverlayStore.getString(PATH_FILTER));
- t.addModifyListener(
+ fFilters= new Text(c2, SWT.BORDER);
+ fFilters.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ fFilters.setText(fOverlayStore.getString(PATH_FILTER));
+ fFilters.addModifyListener(
new ModifyListener() {
public void modifyText(ModifyEvent e) {
- String filters= t.getText();
+ String filters= fFilters.getText();
String message= CompareFilter.validateResourceFilters(filters);
setValid(message == null);
setMessage(null);
@@ -336,6 +338,9 @@ public class ComparePreferencePage extends PreferencePage implements IWorkbenchP
String key= (String) fCheckBoxes.get(b);
b.setSelection(fOverlayStore.getBoolean(key));
}
+
+ if (fFilters != null)
+ fFilters.setText(fOverlayStore.getString(PATH_FILTER));
}
// overlay stuff

Back to the top