summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-10-23 17:00:12 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-10-23 17:00:12 +0200
commit74ff027ae135c9280912009d23cbd9945121b088 (patch)
tree4c08585da4dacb680178d9eb4307a956a0cb2b0c /trunk/pdf-over-gui/src/main/java/at
parente96e9dd6bcab614a60fa491ef68017bea4862af3 (diff)
downloadpdf-over-74ff027ae135c9280912009d23cbd9945121b088.tar.gz
pdf-over-74ff027ae135c9280912009d23cbd9945121b088.tar.bz2
pdf-over-74ff027ae135c9280912009d23cbd9945121b088.zip
+ fixed Warnings
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java31
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java3
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java4
3 files changed, 28 insertions, 10 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
index a7a1b6aa..522b3bad 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java
@@ -41,6 +41,9 @@ import at.asit.pdfover.signator.BKUs;
*/
public class BKUSelectionComposite extends StateComposite {
+ /**
+ * Margin for button
+ */
public static final int btnMargin = 2;
/**
@@ -115,12 +118,12 @@ public class BKUSelectionComposite extends StateComposite {
Button btn_mobile = new Button(this, SWT.NATIVE | SWT.RESIZE);
- btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
+ //btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
//Point mobile_size = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT);
FormData fd_btn_mobile = new FormData();
//fd_btn_mobile.left = new FormAttachment(40, 0);
fd_btn_mobile.right = new FormAttachment(50, -5);
- fd_btn_mobile.top = new FormAttachment(40, 0);
+ fd_btn_mobile.top = new FormAttachment(40, -20);
//fd_btn_mobile.bottom = new FormAttachment(55, 0);
btn_mobile.setLayoutData(fd_btn_mobile);
btn_mobile.addSelectionListener(new MobileSelectionListener());
@@ -134,12 +137,12 @@ public class BKUSelectionComposite extends StateComposite {
btn_mobile.setFont(new Font(Display.getCurrent(), fD_btn_mobile[0]));
Button btn_card = new Button(this, SWT.NATIVE | SWT.RESIZE);
- btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
+ //btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
//Point card_size = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT);
FormData fd_btn_card = new FormData();
fd_btn_card.left = new FormAttachment(50, 5);
//fd_btn_card.right = new FormAttachment(60, 0);
- fd_btn_card.top = new FormAttachment(40, 0);
+ fd_btn_card.top = new FormAttachment(40, -20);
//fd_btn_card.bottom = new FormAttachment(55, 0);
btn_card.setLayoutData(fd_btn_card);
btn_card.addSelectionListener(new LocalSelectionListener());
@@ -152,6 +155,25 @@ public class BKUSelectionComposite extends StateComposite {
btn_card.setImage(karte);
+ Button btnMobile = new Button(this, SWT.NONE);
+ FormData fd_btnMobile = new FormData();
+ fd_btnMobile.top = new FormAttachment(btn_mobile, 10);
+ //fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
+ fd_btnMobile.right = new FormAttachment(50, -5);
+ fd_btnMobile.width = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ btnMobile.setLayoutData(fd_btnMobile);
+ btnMobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$
+ btnMobile.addSelectionListener(new MobileSelectionListener());
+
+ Button btnCard = new Button(this, SWT.NONE);
+ FormData fd_btnCard = new FormData();
+ fd_btnCard.top = new FormAttachment(btn_card, 10);
+ //fd_btnMobile.left = new FormAttachment(btn_mobile, 0);
+ fd_btnCard.left = new FormAttachment(50, 5);
+ fd_btnCard.width = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
+ btnCard.setLayoutData(fd_btnCard);
+ btnCard.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$
+ btnCard.addSelectionListener(new LocalSelectionListener());
//this.pack();
}
@@ -167,5 +189,4 @@ public class BKUSelectionComposite extends StateComposite {
public void doLayout() {
this.layout(true, true);
}
-
}
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
index a158d7ca..cafcc64e 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
@@ -26,9 +26,6 @@ import at.asit.pdfover.gui.composites.DataSourceSelectComposite;
import at.asit.pdfover.gui.workflow.ConfigProvider;
import at.asit.pdfover.gui.workflow.StateMachine;
import at.asit.pdfover.gui.workflow.Status;
-import at.asit.pdfover.signator.FileNameEmlbem;
-import at.asit.pdfover.signator.SignatureException;
-import at.asit.pdfover.signator.SignatureParameter;
/**
* Selects the data source for the signature process.
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
index 92cdb774..b4398581 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java
@@ -170,7 +170,7 @@ public class PrepareConfigurationState extends State {
log.error(
"Failed to write PDF Over config file to config directory", e); //$NON-NLS-1$
throw new InitializationException(
- "Failed to write PDF Over config file to config directory",
+ "Failed to write PDF Over config file to config directory", //$NON-NLS-1$
e);
} finally {
if (pdfOverConfig != null) {
@@ -201,7 +201,7 @@ public class PrepareConfigurationState extends State {
log.error(
"Failed to create local configuration directory!", e); //$NON-NLS-1$
throw new InitializationException(
- "Failed to create local configuration directory!",
+ "Failed to create local configuration directory!", //$NON-NLS-1$
e);
}
allOK = true;