Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2007-01-22 17:23:51 +0000
committerDavid Inglis2007-01-22 17:23:51 +0000
commitaa7dc430282b7a2792fb3129c5bd4abdd0e3f72c (patch)
tree93d2a60ddf27c14bcb6cb0b60779244332195f9e
parentfa38de345672caf46d9afe0750684b52d7d930cb (diff)
downloadorg.eclipse.cdt-aa7dc430282b7a2792fb3129c5bd4abdd0e3f72c.tar.gz
org.eclipse.cdt-aa7dc430282b7a2792fb3129c5bd4abdd0e3f72c.tar.xz
org.eclipse.cdt-aa7dc430282b7a2792fb3129c5bd4abdd0e3f72c.zip
fixed case where apply button would not get enabled
bug#171239
-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 6d8fef92b5..3a803fe4b9 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