diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-10-23 17:29:36 +0200 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-10-23 17:30:38 +0200 |
commit | d774e52ce5ae0d97c9bb658ca9767de7e627df5a (patch) | |
tree | a0d1f21a512bb802f426f1539b60b6678f9690b9 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java | |
parent | 74ff027ae135c9280912009d23cbd9945121b088 (diff) | |
download | pdf-over-d774e52ce5ae0d97c9bb658ca9767de7e627df5a.tar.gz pdf-over-d774e52ce5ae0d97c9bb658ca9767de7e627df5a.tar.bz2 pdf-over-d774e52ce5ae0d97c9bb658ca9767de7e627df5a.zip |
Listener --> Adapter
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java index 67cd7253..c3b7973f 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java @@ -30,10 +30,10 @@ import at.asit.pdfover.signator.BKUs; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.TabFolder; +import org.eclipse.swt.events.FocusAdapter; import org.eclipse.swt.events.FocusEvent; -import org.eclipse.swt.events.FocusListener; +import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Font; import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.layout.FormLayout; @@ -117,18 +117,13 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { fD_btnAutomatischePositionierung[0].setHeight(TEXT_SIZE_BUTTON); this.btnAutomatischePositionierung.setFont(new Font(Display.getCurrent(), fD_btnAutomatischePositionierung[0])); - this.btnAutomatischePositionierung.addSelectionListener(new SelectionListener() { + this.btnAutomatischePositionierung.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { AdvancedConfigurationComposite.this.performPositionSelection( AdvancedConfigurationComposite.this.btnAutomatischePositionierung.getSelection()); } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - // Nothing to do - } }); Group grpBkuAuswahl = new Group(advancedComposite, SWT.NONE); @@ -168,7 +163,7 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { this.cmbBKUAuswahl.setLayoutData(fd_cmbBKUAuswahl); - this.cmbBKUAuswahl.addSelectionListener(new SelectionListener() { + this.cmbBKUAuswahl.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -178,11 +173,6 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { performBKUSelectionChanged(AdvancedConfigurationComposite.this.cmbBKUAuswahl.getItem(selectionIndex)); } } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - // Nothing to do here - } }); Group grpSpeicherort = new Group(advancedComposite, SWT.NONE); @@ -220,17 +210,12 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { fD_txtOutputFolder[0].setHeight(TEXT_SIZE_NORMAL); this.txtOutputFolder.setFont(new Font(Display.getCurrent(), fD_txtOutputFolder[0])); - this.txtOutputFolder.addFocusListener(new FocusListener() { + this.txtOutputFolder.addFocusListener(new FocusAdapter() { @Override public void focusLost(FocusEvent e) { performOutputFolderChanged(AdvancedConfigurationComposite.this.txtOutputFolder.getText()); } - - @Override - public void focusGained(FocusEvent e) { - // Nothing to do here! - } }); Button btnBrowse = new Button(grpSpeicherort, SWT.NONE); @@ -246,7 +231,7 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { btnBrowse.setLayoutData(fd_btnBrowse); btnBrowse.setText(Messages.getString("common.browse")); //$NON-NLS-1$ - btnBrowse.addSelectionListener(new SelectionListener() { + btnBrowse.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { @@ -273,11 +258,6 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { performOutputFolderChanged(dir); } } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - // Nothing to do - } }); tabFolder.setSelection(advancedTabItem); |