mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-02 12:41:32 +00:00
Now enables/disables the address component as appropriate.
This commit is contained in:
parent
0d233deaf3
commit
d14399a834
|
@ -242,6 +242,20 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||||
layoutData = new GridData();
|
layoutData = new GridData();
|
||||||
layoutData.widthHint = 75;
|
layoutData.widthHint = 75;
|
||||||
addressText.setLayoutData(layoutData);
|
addressText.setLayoutData(layoutData);
|
||||||
|
if (spec.hasFiletype()) {
|
||||||
|
addressText.setEnabled(
|
||||||
|
wizard.getDisk().needsAddress(spec.getFiletype()));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable/disable the address component:
|
||||||
|
filetypes.addSelectionListener(new SelectionAdapter() {
|
||||||
|
public void widgetSelected(SelectionEvent event) {
|
||||||
|
String filetype = filetypes.getItem(
|
||||||
|
filetypes.getSelectionIndex());
|
||||||
|
addressText.setEnabled(
|
||||||
|
wizard.getDisk().needsAddress(filetype));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Bottom row of buttons
|
// Bottom row of buttons
|
||||||
layoutData = new GridData();
|
layoutData = new GridData();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user