From e4767bccc7324d4b61a334bf6c0558d0080045e2 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Wed, 6 Jul 2022 12:33:33 +0200 Subject: remove NON-NLS comments, cleanup whitespace --- .../gui/composites/WaitingForAppComposite.java | 52 +++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingForAppComposite.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingForAppComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingForAppComposite.java index 310a38e9..ca865df9 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingForAppComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingForAppComposite.java @@ -31,15 +31,15 @@ import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; /** - * + * */ public class WaitingForAppComposite extends StateComposite { private Label lbl_description; - private Button btn_sms; + private Button btn_sms; private Button btn_cancel; - private Boolean isUserSMS = false; - private Boolean userCancel = false; - private Boolean isDone = false; + private Boolean isUserSMS = false; + private Boolean userCancel = false; + private Boolean isDone = false; /** * @return the isDone @@ -59,12 +59,12 @@ public class WaitingForAppComposite extends StateComposite { * Create the composite. * @param parent * @param style - * @param state + * @param state */ public WaitingForAppComposite(Composite parent, int style, State state) { super(parent, style, state); setLayout(new FormLayout()); - + this.lbl_description = new Label(this, SWT.NATIVE); FormData fd_lbl_description = new FormData(); fd_lbl_description.bottom = new FormAttachment(50, -10); @@ -72,8 +72,8 @@ public class WaitingForAppComposite extends StateComposite { fd_lbl_description.right = new FormAttachment(100, -10); this.lbl_description.setLayoutData(fd_lbl_description); this.lbl_description.setAlignment(SWT.CENTER); - this.lbl_description.setText(Messages.getString("waiting_for_app.message")); //$NON-NLS-1$ - + this.lbl_description.setText(Messages.getString("waiting_for_app.message")); // + ProgressBar progressBar = new ProgressBar(this, SWT.HORIZONTAL | SWT.INDETERMINATE); FormData fd_progressBar = new FormData(); fd_progressBar.top = new FormAttachment(50, +10); @@ -81,30 +81,30 @@ public class WaitingForAppComposite extends StateComposite { fd_progressBar.left = new FormAttachment(50, -100); fd_progressBar.right = new FormAttachment(50, +100); progressBar.setLayoutData(fd_progressBar); - + this.btn_sms = new Button(this, SWT.NONE); this.btn_sms.addSelectionListener(new SMSSelectionListener()); - + FormData fd_btnSMS = new FormData(); fd_btnSMS.top = new FormAttachment(progressBar, 24); fd_btnSMS.right = new FormAttachment(progressBar, 0, SWT.RIGHT); this.btn_sms.setLayoutData(fd_btnSMS); - this.btn_sms.setText(Messages.getString("SMS tan")); //$NON-NLS-1$ - + this.btn_sms.setText(Messages.getString("SMS tan")); // + this.btn_cancel = new Button(this, SWT.NONE); this.btn_cancel.addSelectionListener(new CancelSelectionListener()); FormData fd_btnCancel = new FormData(); fd_btnCancel.top = new FormAttachment(btn_sms, 0, SWT.TOP); fd_btnCancel.right = new FormAttachment(btn_sms, -6); this.btn_cancel.setLayoutData(fd_btnCancel); - this.btn_cancel.setText(Messages.getString("WaitingForAppComposite.btnCancel.text")); //$NON-NLS-1$ - + this.btn_cancel.setText(Messages.getString("WaitingForAppComposite.btnCancel.text")); // + reloadResources(); } - + /** - * + * */ private final class CancelSelectionListener extends SelectionAdapter { /** @@ -120,7 +120,7 @@ public class WaitingForAppComposite extends StateComposite { WaitingForAppComposite.this.btn_sms.setEnabled(false); } } - + private final class SMSSelectionListener extends SelectionAdapter { /** * Empty constructor @@ -139,9 +139,9 @@ public class WaitingForAppComposite extends StateComposite { WaitingForAppComposite.this.btn_cancel.setEnabled(false); } } - + public void setUserSMS(boolean b) { - this.isUserSMS = b; + this.isUserSMS = b; } @Override @@ -162,10 +162,10 @@ public class WaitingForAppComposite extends StateComposite { */ @Override public void reloadResources() { - this.lbl_description.setText(Messages.getString("waiting_for_app.message")); //$NON-NLS-1$ - this.btn_sms.setText(Messages.getString("tanEnter.SMS")); //$NON-NLS-1$ - this.btn_cancel.setText(Messages.getString("common.Cancel")); //$NON-NLS-1$ - this.btn_sms.setText(Messages.getString("tanEnter.SMS")); //$NON-NLS-1$ + this.lbl_description.setText(Messages.getString("waiting_for_app.message")); // + this.btn_sms.setText(Messages.getString("tanEnter.SMS")); // + this.btn_cancel.setText(Messages.getString("common.Cancel")); // + this.btn_sms.setText(Messages.getString("tanEnter.SMS")); // } /** @@ -179,8 +179,8 @@ public class WaitingForAppComposite extends StateComposite { * @param b */ public void setUserCancel(boolean b) { - this.userCancel = b; - + this.userCancel = b; + } /** -- cgit v1.2.3