summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:07 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:07 +0000
commit6b2b646a698238fd52132090960f222d02a2923a (patch)
tree3258e7455df802f3e02f92bc72041ab2a7163cb3 /pdf-over-gui/src/main/java/at/asit
parent9920295a5270c77ecf5dfed88303651eb869a509 (diff)
downloadpdf-over-6b2b646a698238fd52132090960f222d02a2923a.tar.gz
pdf-over-6b2b646a698238fd52132090960f222d02a2923a.tar.bz2
pdf-over-6b2b646a698238fd52132090960f222d02a2923a.zip
+ added progress message for waiting composite
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@160 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
index 1b609dc9..b9b74149 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
@@ -21,8 +21,10 @@ import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.ProgressBar;
+import at.asit.pdfover.gui.Messages;
import at.asit.pdfover.gui.workflow.states.State;
/**
@@ -39,10 +41,19 @@ public class WaitingComposite extends StateComposite {
super(parent, style, state);
setLayout(new FormLayout());
+ Label lbl_description = new Label(this, SWT.NATIVE);
+ FormData fd_lbl_description = new FormData();
+ fd_lbl_description.bottom = new FormAttachment(50, -10);
+ fd_lbl_description.left = new FormAttachment(0, +10);
+ fd_lbl_description.right = new FormAttachment(100, -10);
+ lbl_description.setLayoutData(fd_lbl_description);
+ lbl_description.setAlignment(SWT.CENTER);
+ lbl_description.setText(Messages.getString("waiting.message")); //$NON-NLS-1$
+
ProgressBar progressBar = new ProgressBar(this, SWT.HORIZONTAL | SWT.INDETERMINATE);
FormData fd_progressBar = new FormData();
- fd_progressBar.top = new FormAttachment(50, -15);
- fd_progressBar.bottom = new FormAttachment(50, +15);
+ fd_progressBar.top = new FormAttachment(50, +10);
+ fd_progressBar.bottom = new FormAttachment(50, +40);
fd_progressBar.left = new FormAttachment(50, -100);
fd_progressBar.right = new FormAttachment(50, +100);
progressBar.setLayoutData(fd_progressBar);