mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-17 13:29:55 +00:00
Whenever editing the file import, we deselect all items in the list and disable the edit and remove button to prevent errors. #125
This commit is contained in:
parent
520076abb6
commit
e68741cffe
@ -110,7 +110,7 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
editSelection();
|
editSelection();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
TableColumn column = new TableColumn(fileTable, SWT.LEFT);
|
TableColumn column = new TableColumn(fileTable, SWT.LEFT);
|
||||||
column.setText(textBundle.get("SourceColumnHeader")); //$NON-NLS-1$
|
column.setText(textBundle.get("SourceColumnHeader")); //$NON-NLS-1$
|
||||||
column.setWidth(130);
|
column.setWidth(130);
|
||||||
@ -336,6 +336,9 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
getAddressText().dispose();
|
getAddressText().dispose();
|
||||||
getRawCheckBox().dispose();
|
getRawCheckBox().dispose();
|
||||||
dialog.close();
|
dialog.close();
|
||||||
|
getRemoveButton().setEnabled(false);
|
||||||
|
getEditButton().setEnabled(false);
|
||||||
|
getFileTable().deselectAll();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
button = new Button(composite, SWT.PUSH);
|
button = new Button(composite, SWT.PUSH);
|
||||||
@ -343,6 +346,9 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
dialog.setDefaultButton(button);
|
dialog.setDefaultButton(button);
|
||||||
button.addSelectionListener(new SelectionAdapter() {
|
button.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
|
getRemoveButton().setEnabled(false);
|
||||||
|
getEditButton().setEnabled(false);
|
||||||
|
getFileTable().deselectAll();
|
||||||
try {
|
try {
|
||||||
// Make an attempt at validating before accepting the change
|
// Make an attempt at validating before accepting the change
|
||||||
ImportSpecification temp = new ImportSpecification(spec);
|
ImportSpecification temp = new ImportSpecification(spec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user