use of org.eclipse.swt.widgets.ProgressBar in project cogtool by cogtool.
the class SimpleProgressBar method buildAndDisplay.
/**
* Build and display the progress bar
*/
public void buildAndDisplay() {
addAboveBar();
bar = new ProgressBar(shell, barStyle);
bar.setBounds(20, 10, MULTIPLIER, 15);
addBelowBar();
shell.open();
bar.setMaximum(MULTIPLIER);
}
use of org.eclipse.swt.widgets.ProgressBar in project translationstudio8 by heartsome.
the class ExcelExportProgessBar method open.
public void open(int minValue, int maxValue) {
childShell = new Shell(shell.getDisplay(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
childShell.setText("Exporting to Excel.. please wait");
progressBar = new ProgressBar(childShell, SWT.SMOOTH);
progressBar.setMinimum(minValue);
progressBar.setMaximum(maxValue);
progressBar.setBounds(0, 0, 400, 25);
progressBar.setFocus();
childShell.pack();
childShell.open();
}
use of org.eclipse.swt.widgets.ProgressBar in project translationstudio8 by heartsome.
the class LicenseManageDialog method createBarComp.
private void createBarComp(Composite parent) {
Composite barComp = new Composite(parent, SWT.NONE);
GridLayout barLayout = new GridLayout();
barLayout.marginTop = 10;
barComp.setLayout(barLayout);
barComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
label4 = new Label(barComp, SWT.NONE);
label4.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
bar = new ProgressBar(barComp, SWT.NONE);
bar.setMaximum(10);
bar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
setVisible(false);
}
use of org.eclipse.swt.widgets.ProgressBar in project tdi-studio-se by Talend.
the class AbstractSQLExecution method displayProgress.
/**
* Display progress bar on tab until results are ready.
*/
protected final void displayProgress() {
clearCanvas();
// set label to running
//$NON-NLS-1$
parentTab.setText(Messages.getString("AbstractSQLExecution.Running"));
GridLayout gLayout = new GridLayout();
gLayout.numColumns = 2;
gLayout.marginLeft = 0;
gLayout.horizontalSpacing = 0;
gLayout.verticalSpacing = 0;
gLayout.marginWidth = 0;
gLayout.marginHeight = 50;
composite.setLayout(gLayout);
group = new Group(composite, SWT.NULL);
group.setLayout(new GridLayout());
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
group.setText(progressMessage);
// add progress bar
Composite pbComposite = new Composite(group, SWT.FILL);
FillLayout pbLayout = new FillLayout();
pbLayout.marginHeight = 2;
pbLayout.marginWidth = 5;
pbComposite.setLayout(pbLayout);
pbComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
ProgressBar pb = new ProgressBar(pbComposite, SWT.HORIZONTAL | SWT.INDETERMINATE | SWT.BORDER);
pb.setVisible(true);
pb.setEnabled(true);
pbComposite.layout();
composite.layout();
}
use of org.eclipse.swt.widgets.ProgressBar in project cubrid-manager by CUBRID.
the class DataCompareEditorPart method createProgress.
private void createProgress(Composite parent) {
progressBar = new ProgressBar(parent, SWT.SMOOTH);
progressBar.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
progressBar.setSelection(0);
progressBar.setMinimum(0);
progressBar.setMaximum(100);
progressBar.setToolTipText("");
}
Aggregations