public void start(int total) { setMaximum(total); reset(); }
public ProgressBar() { super(); setForeground(getStatusColor()); }
bar.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); bar.setMaximum(10); bar.setSelection(5); if (bar.isDisposed()) return; bar.dispose(); bar = new ProgressBar(barParent, indeterminate ? SWT.INDETERMINATE : SWT.SMOOTH); bar.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); bar.setMaximum(10); bar.setSelection(5); barParent.layout();
public void run() while (!progressBar.isDisposed()) public void run() if (!progressBar.isDisposed()) progressBar.setSelection((progress += INCREMENT) % (progressBar.getMaximum() + INCREMENT)); progressBar.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false)); progressBar.setMaximum(100);
return; bar.setMinimum(0); bar.setMaximum(files.length); bar.setSelection(0); public void run() bar.setSelection(bar.getSelection() + 1); public void run() bar.setSelection(0);
protected void reset() { fCounterPanel.reset(); fProgressIndicator.reset(); fRerunButton.setEnabled(false); fFailureView.clear(); fFailures.clear(); }
fProgressIndicator= new MacProgressBar(fStatusLine); else fProgressIndicator= new ProgressBar(); fCounterPanel= createCounterPanel();
protected void updateBarColor() { setForeground(getStatusColor()); } }