From 93e9e40c4a935df23f233535ee7cf4b14bd33f0d Mon Sep 17 00:00:00 2001 From: Mikhail Sennikovsky Date: Wed, 5 Oct 2005 11:04:05 +0000 Subject: [PATCH] Fixed the bug in the FileListControlFieldEditor notification mechanism --- .../ui/properties/FileListControlFieldEditor.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControlFieldEditor.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControlFieldEditor.java index cbbb75616d9..829176bf26c 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControlFieldEditor.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControlFieldEditor.java @@ -14,14 +14,7 @@ package org.eclipse.cdt.managedbuilder.ui.properties; import java.util.ArrayList; import java.util.StringTokenizer; -import org.eclipse.cdt.managedbuilder.core.BuildException; -import org.eclipse.cdt.managedbuilder.core.IBuildObject; import org.eclipse.cdt.managedbuilder.core.IConfiguration; -import org.eclipse.cdt.managedbuilder.core.IHoldsOptions; -import org.eclipse.cdt.managedbuilder.core.IOption; -import org.eclipse.cdt.managedbuilder.core.IResourceConfiguration; -import org.eclipse.cdt.managedbuilder.core.ITool; -import org.eclipse.cdt.managedbuilder.core.IToolChain; import org.eclipse.core.resources.IResource; import org.eclipse.jface.preference.FieldEditor; import org.eclipse.jface.preference.IPreferenceStore; @@ -45,7 +38,7 @@ public class FileListControlFieldEditor extends FieldEditor { private static final String DEFAULT_SEPERATOR = ";"; //$NON-NLS-1$ //values - private String[] values = null; +// private String[] values = null; /** * Creates a file list control field editor. @@ -81,7 +74,7 @@ public class FileListControlFieldEditor extends FieldEditor { int type) { this(name, labelText, parent, type); browseType = type; - this.values = parseString(value); +// this.values = parseString(value); } /** @@ -115,9 +108,9 @@ public class FileListControlFieldEditor extends FieldEditor { } private void handleFileListChange(FileListControl fileList, String oldValue[], String newValue[]){ - values = fileList.getItems(); +// values = fileList.getItems(); fireValueChanged( - FileListControlFieldEditor.this.getPreferenceName(), + VALUE, createList(oldValue), createList(newValue)); }