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:
parent
622b077bbf
commit
6c7528057e
1 changed files with 30 additions and 23 deletions
|
@ -155,7 +155,7 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
|
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
// bopLoadButton.setEnabled(sipEnabledButton.getSelection());
|
handleSIPEnabledButtonSelected();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -218,6 +218,8 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
initializeValues();
|
initializeValues();
|
||||||
|
|
||||||
|
handleSIPEnabledButtonSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean handleModifyOpenFileText() {
|
protected boolean handleModifyOpenFileText() {
|
||||||
|
@ -239,6 +241,11 @@ public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
getContainer().updateContainer();
|
getContainer().updateContainer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void handleSIPEnabledButtonSelected() {
|
||||||
|
sipRunCommandText.setEnabled(sipEnabledButton.getSelection());
|
||||||
|
sipRunArgsText.setEnabled(sipEnabledButton.getSelection());
|
||||||
|
}
|
||||||
|
|
||||||
private String getBopOpenFileText() {
|
private String getBopOpenFileText() {
|
||||||
// from project relative path to absolute path
|
// from project relative path to absolute path
|
||||||
String fileName = bopOpenFileText.getText().trim();
|
String fileName = bopOpenFileText.getText().trim();
|
||||||
|
|
Loading…
Add table
Reference in a new issue