1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

[merge from 3_1]

fixed case where apply button would not get enabled
bug#171239
This commit is contained in:
David Inglis 2007-01-22 17:59:15 +00:00
parent c2f52f81de
commit 58b3ace8db

View file

@ -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();
}
}