1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

bug 288032: [Scanner Discovery] One can't change arguments of scanner discovery command

Added disablement of command and arguments when checkbox is disabled
This commit is contained in:
Andrew Gvozdev 2009-08-31 00:39:53 +00:00
parent 622b077bbf
commit 6c7528057e

View file

@ -155,7 +155,7 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
// bopLoadButton.setEnabled(sipEnabledButton.getSelection());
handleSIPEnabledButtonSelected();
}
});
@ -218,6 +218,8 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
instance = this;
}
initializeValues();
handleSIPEnabledButtonSelected();
}
protected boolean handleModifyOpenFileText() {
@ -239,6 +241,11 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
getContainer().updateContainer();
}
protected void handleSIPEnabledButtonSelected() {
sipRunCommandText.setEnabled(sipEnabledButton.getSelection());
sipRunArgsText.setEnabled(sipEnabledButton.getSelection());
}
private String getBopOpenFileText() {
// from project relative path to absolute path
String fileName = bopOpenFileText.getText().trim();