Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2007-01-22 17:59:15 +0000
committerDavid Inglis2007-01-22 17:59:15 +0000
commit58b3ace8dbded4cef42b90c023ac85e8c5832923 (patch)
tree85ff309076eb4a04c0091689018c3aa77bdfc6d8 /debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse
parentc2f52f81deaa48a1e20285ab4c6e33316536be74 (diff)
downloadorg.eclipse.cdt-58b3ace8dbded4cef42b90c023ac85e8c5832923.tar.gz
org.eclipse.cdt-58b3ace8dbded4cef42b90c023ac85e8c5832923.tar.xz
org.eclipse.cdt-58b3ace8dbded4cef42b90c023ac85e8c5832923.zip
[merge from 3_1]
fixed case where apply button would not get enabled bug#171239
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
index 6d8fef92b50..3a803fe4b91 100644
--- a/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
+++ b/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/SolibSearchPathBlock.java
@@ -30,6 +30,7 @@ import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.debug.mi.core.IMILaunchConfigurationConstants;
import org.eclipse.cdt.debug.mi.core.MICoreUtils;
import org.eclipse.cdt.debug.mi.internal.ui.dialogfields.DialogField;
+import org.eclipse.cdt.debug.mi.internal.ui.dialogfields.IDialogFieldListener;
import org.eclipse.cdt.debug.mi.internal.ui.dialogfields.IListAdapter;
import org.eclipse.cdt.debug.mi.internal.ui.dialogfields.LayoutUtil;
import org.eclipse.cdt.debug.mi.internal.ui.dialogfields.ListDialogField;
@@ -73,7 +74,7 @@ import org.eclipse.ui.dialogs.CheckedTreeSelectionDialog;
/**
* The UI component to access the shared libraries search path.
*/
-public class SolibSearchPathBlock extends Observable implements IMILaunchConfigurationComponent {
+public class SolibSearchPathBlock extends Observable implements IMILaunchConfigurationComponent, IDialogFieldListener {
class AddDirectoryDialog extends Dialog {
@@ -252,6 +253,8 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
fDirList.setUpButtonIndex( 1 );
fDirList.setDownButtonIndex( 2 );
fDirList.setRemoveButtonIndex( 3 );
+
+ fDirList.setDialogFieldListener(this);
}
/* (non-Javadoc)
@@ -578,4 +581,9 @@ public class SolibSearchPathBlock extends Observable implements IMILaunchConfigu
String name = path.lastSegment();
return ( name.indexOf( ".so." ) >= 0 ); //$NON-NLS-1$
}
+
+ public void dialogFieldChanged(DialogField field) {
+ setChanged();
+ notifyObservers();
+ }
}

Back to the top