From 3aa8e58009e8ff07e64d306faa2e046f9712c990 Mon Sep 17 00:00:00 2001 From: Philippe Herlin Date: Mon, 17 Mar 2003 23:37:34 +0000 Subject: [PATCH] no more used git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1548 51baf565-9d33-0410-a72c-fc3788e3496d --- .../sourceforge/pmd/eclipse/util/Common.java | 14 --- .../pmd/eclipse/util/ProgressDialog.java | 86 ------------------- 2 files changed, 100 deletions(-) delete mode 100644 pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/Common.java delete mode 100644 pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/ProgressDialog.java diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/Common.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/Common.java deleted file mode 100644 index 0abc6f1681..0000000000 --- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/Common.java +++ /dev/null @@ -1,14 +0,0 @@ -package net.sourceforge.pmd.eclipse.util; - -/** - * @author David Craine - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. - */ -public class Common { - public static ProgressDialog PMD_DIALOG; - -} diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/ProgressDialog.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/ProgressDialog.java deleted file mode 100644 index 6ab4cb7529..0000000000 --- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/util/ProgressDialog.java +++ /dev/null @@ -1,86 +0,0 @@ -package net.sourceforge.pmd.eclipse.util; - -import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.jface.dialogs.ProgressIndicator; -import org.eclipse.jface.window.ApplicationWindow; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; - -/** - * @author David Craine - * - * To change this generated comment edit the template variable "typecomment": - * Window>Preferences>Java>Templates. - * To enable and disable the creation of type comments go to - * Window>Preferences>Java>Code Generation. - */ -public class ProgressDialog extends ApplicationWindow { - private ProgressIndicator progressIndicator; - private Label label; - private Composite entryTable; - public static final int UNKNOWN = -1; - private int max=UNKNOWN; - private String title; - - - /** - * Constructor for ProgressDialog. - * @param parentShell - */ - public ProgressDialog(Shell parentShell, String title, int max) { - super(parentShell); - this.title = title; - - } - /** - * @see org.eclipse.jface.window.Window#configureShell(Shell) - */ - protected void configureShell(Shell newShell) { - super.configureShell(newShell); - - newShell.setText(title); - entryTable = new Composite(newShell, SWT.NULL); - GridLayout layout = new GridLayout(); - layout.numColumns = 1; - entryTable.setLayout(layout); - - //create the label - label = new Label(entryTable, SWT.NULL); - label.setText(""); - GridData data = new GridData(GridData.FILL_HORIZONTAL); - data.horizontalSpan = 1; - label.setLayoutData(data); - - progressIndicator = new ProgressIndicator(entryTable); - data = new GridData(GridData.FILL_HORIZONTAL); - data.horizontalSpan = 1; - data.verticalSpan = 10; - progressIndicator.setLayoutData(data); - if (max==UNKNOWN) - progressIndicator.beginAnimatedTask(); - else - progressIndicator.beginTask(max); - - - } - - public void show() { - this.create(); - this.getShell().setSize(300,200); - this.open(); - } - - - public void worked(double work) { - progressIndicator.worked(work); - } - - public void setMessage(String msg) { - label.setText(msg); - } -}