public boolean openDBD(File file, boolean importDBD) throws IOException {  if (DataProvider.getInstance().getLoadedDBDs().contains(file)) { Console.getInstance().println(); Console.getInstance().println("o) DBD file '"+file.getAbsolutePath()+"' is already loaded."); return true; }  setCursor(hourCursor);  com.cosylab.vdct.dbd.DBDData dbdData = null; if (importDBD) dbdData = DataProvider.getInstance().getDbdDB();   dbdData = DBDResolver.resolveDBD(dbdData, file.getAbsolutePath());  if (dbdData==null) { restoreCursor(); return false; }  if (!importDBD) { DataProvider.getInstance().setDbdDB(dbdData); if (viewGroup==null) initializeWorkspace(); }   DataProvider.getInstance().getLoadedDBDs().addElement(file.getAbsoluteFile()); DataProvider.getInstance().getDBDs().addElement(file.getAbsoluteFile());  restoreCursor(); return true;
public boolean openDBD(File file) throws IOException { return openDBD(file, false);
public boolean openDBD(File file, boolean importDBD) throws IOException {	if (DataProvider.getInstance().getLoadedDBDs().contains(file))	{		Console.getInstance().println();		Console.getInstance().println("o) DBD file '"+file.getAbsolutePath()+"' is already loaded.");		return true;	}	setCursor(hourCursor);	com.cosylab.vdct.dbd.DBDData dbdData = null;	if (importDBD)		dbdData = DataProvider.getInstance().getDbdDB();		/*	if (getAppletBase()!=null) 	//applet support !!!		try {			dbdData = DBDResolver.resolveDBDasURL(dbdData, new java.net.URL(getAppletBase(), file.getAbsolutePath()));		} catch (java.net.MalformedURLException e) {			Console.getInstance().println(e); 		}	else */	 	dbdData = DBDResolver.resolveDBD(dbdData, file.getAbsolutePath());	if (dbdData==null) {		restoreCursor();		return false;	}		if (!importDBD)	{		DataProvider.getInstance().setDbdDB(dbdData);		if (viewGroup==null) initializeWorkspace();	}	// add to list of DBDs	DataProvider.getInstance().getLoadedDBDs().addElement(file.getAbsoluteFile());	DataProvider.getInstance().getDBDs().addElement(file.getAbsoluteFile());	restoreCursor();	return true;}