mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
consistency: createCloseButton is now used
git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@432 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
parent
61e906dd74
commit
1dcdfd98ca
@ -7,7 +7,6 @@ import java.io.File;
|
||||
|
||||
import net.azib.ipscan.config.Labels;
|
||||
import net.azib.ipscan.config.OpenersConfig;
|
||||
import net.azib.ipscan.config.Platform;
|
||||
import net.azib.ipscan.config.OpenersConfig.Opener;
|
||||
import net.azib.ipscan.fetchers.Fetcher;
|
||||
import net.azib.ipscan.fetchers.FetcherRegistry;
|
||||
@ -129,17 +128,8 @@ public class EditOpenersDialog extends AbstractModalDialog {
|
||||
editFieldsGroup.layout();
|
||||
editFieldsGroup.pack();
|
||||
|
||||
// no close button on Mac
|
||||
if (!Platform.MAC_OS) {
|
||||
Button closeButton = new Button(shell, SWT.NONE);
|
||||
closeButton.setText(Labels.getLabel("button.close"));
|
||||
closeButton.setLayoutData(LayoutHelper.formData(85, SWT.DEFAULT, null, new FormAttachment(editFieldsGroup, 0, SWT.RIGHT), new FormAttachment(editFieldsGroup, 6), null));
|
||||
closeButton.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
shell.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
Button closeButton = createCloseButton();
|
||||
closeButton.setLayoutData(LayoutHelper.formData(85, SWT.DEFAULT, null, new FormAttachment(editFieldsGroup, 0, SWT.RIGHT), new FormAttachment(editFieldsGroup, 6), null));
|
||||
|
||||
shell.pack();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user