diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:50 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:50 +0000 |
commit | 56f0f632e4c23e7678b70a7458499d118d5f2848 (patch) | |
tree | b69e401097f6a1e73605a4ff8a91069560ab1bc1 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | |
parent | ee39c68248d511cb63e9b30506201fd19a2e400a (diff) | |
download | pdf-over-56f0f632e4c23e7678b70a7458499d118d5f2848.tar.gz pdf-over-56f0f632e4c23e7678b70a7458499d118d5f2848.tar.bz2 pdf-over-56f0f632e4c23e7678b70a7458499d118d5f2848.zip |
replace Listeners with the corresponding Adapters
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12401 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index ccf95cca..8d5eb1f7 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -22,8 +22,8 @@ import java.util.Map; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CLabel; import org.eclipse.swt.custom.StackLayout; +import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormLayout; @@ -48,12 +48,11 @@ public class MainWindow { /** * Selection Listener for Position Button */ - private final class PositionSelectionListener implements SelectionListener { + private final class PositionSelectionListener extends SelectionAdapter { /** - * Default constructor + * Empty constructor */ public PositionSelectionListener() { - // Nothing to do here } @Override @@ -61,23 +60,16 @@ public class MainWindow { MainWindow.this.stateMachine.jumpToState(new PositioningState( MainWindow.this.stateMachine)); } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - // Nothing to do here - } } /** * Selection Listener for Open Button */ - private final class DataSourceSelectionListener implements - SelectionListener { + private final class DataSourceSelectionListener extends SelectionAdapter { /** - * Default constructor + * Empty constructor */ public DataSourceSelectionListener() { - // Nothing to do here } @Override @@ -86,11 +78,6 @@ public class MainWindow { .jumpToState(new OpenState( MainWindow.this.stateMachine)); } - - @Override - public void widgetDefaultSelected(SelectionEvent e) { - // Nothing to do here - } } /** @@ -108,6 +95,9 @@ public class MainWindow { private Button btn_open; private Button btn_config; + /** + * Main bar Buttons + */ public enum Buttons { CONFIG, OPEN, POSITION, SIGN, FINAL } |