Search in sources :

Example 1 with ProgressBar

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);
}
Also used : ProgressBar(org.eclipse.swt.widgets.ProgressBar)

Example 2 with ProgressBar

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();
}
Also used : Shell(org.eclipse.swt.widgets.Shell) ProgressBar(org.eclipse.swt.widgets.ProgressBar)

Example 3 with ProgressBar

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);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) Label(org.eclipse.swt.widgets.Label) ProgressBar(org.eclipse.swt.widgets.ProgressBar)

Example 4 with ProgressBar

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();
}
Also used : Group(org.eclipse.swt.widgets.Group) GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) FillLayout(org.eclipse.swt.layout.FillLayout) ProgressBar(org.eclipse.swt.widgets.ProgressBar)

Example 5 with ProgressBar

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("");
}
Also used : GridData(org.eclipse.swt.layout.GridData) ProgressBar(org.eclipse.swt.widgets.ProgressBar)

Aggregations

ProgressBar (org.eclipse.swt.widgets.ProgressBar)10 GridData (org.eclipse.swt.layout.GridData)5 GridLayout (org.eclipse.swt.layout.GridLayout)4 Composite (org.eclipse.swt.widgets.Composite)4 ServerInfo (com.cubrid.cubridmanager.core.common.model.ServerInfo)2 TableEditor (org.eclipse.swt.custom.TableEditor)2 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 Button (org.eclipse.swt.widgets.Button)2 Label (org.eclipse.swt.widgets.Label)2 TableItem (org.eclipse.swt.widgets.TableItem)2 ITask (com.cubrid.common.core.task.ITask)1 RunSQLFileTableContentProvider (com.cubrid.common.ui.common.sqlrunner.RunSQLFileTableContentProvider)1 RunSQLFileTableLabelProvider (com.cubrid.common.ui.common.sqlrunner.RunSQLFileTableLabelProvider)1 ViewSQLLogDialog (com.cubrid.common.ui.common.sqlrunner.dialog.ViewSQLLogDialog)1 SqlRunnerProgress (com.cubrid.common.ui.common.sqlrunner.model.SqlRunnerProgress)1 CubridNodeChangedEvent (com.cubrid.common.ui.spi.event.CubridNodeChangedEvent)1 BrokerInfos (com.cubrid.cubridmanager.core.broker.model.BrokerInfos)1 GetBrokerConfParameterTask (com.cubrid.cubridmanager.core.broker.task.GetBrokerConfParameterTask)1 EnvInfo (com.cubrid.cubridmanager.core.common.model.EnvInfo)1