Bug 199021 Error message pops up several times when click an invalid dataset
Description: There is a sqlserver datasource and dataset, remove the jtds driver to let the dataset invalid. Double click on the dataset, the error message will pop up serveral times. Build version:2.2.0.v20070807-0630 Steps to reproduce: 1. Create a sqlserver datasource and dataset. 2. Remove the jtds driver, and the dataset will be invalid. 3. Double click on the dataset. Expect result: Error message pops up once to indicate the problem. Actual result: Error message pops up serveral times.
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.PlatformUI;
/**
 * The JDBC SQL DatasetEditor page which enable user to browse the catalog of
 * the selected data source and input the sql text. The page extends the
 * <code>DataSetWizardPage</code> it could be loaded as a custom page for jdbc
 * ui.
 */
public class SQLDataSetEditorPage extends DataSetWizardPage
{
	
	private Image schemaImage, tableImage, viewImage, dataBaseImage,
			columnImage;
	
	private Document doc = null;
	private SourceViewer viewer = null;
	private TreeItem rootNode = null;
	private Text searchTxt = null;
	private ComboViewer filterComboViewer = null;
	private Combo schemaCombo = null;
	private Label schemaLabel = null;
	private Tree availableDbObjectsTree = null;
	private Button identifierQuoteStringCheckBox = null;