import java.util.List;
import java.util.Set;
+import com.quantum.ImageStore;
import com.quantum.Messages;
-import com.quantum.QuantumPlugin;
import com.quantum.model.Bookmark;
import com.quantum.model.ConnectionException;
import com.quantum.model.NotConnectedException;
import com.quantum.model.Schema;
import com.quantum.ui.dialog.ExceptionDisplayDialog;
+import com.quantum.ui.dialog.SQLExceptionDialog;
import com.quantum.ui.dialog.SimpleSelectionDialog;
import com.quantum.util.connection.ConnectionUtil;
public Image getColumnImage(Object element, int columnIndex) {
if (columnIndex == 0) {
- return QuantumPlugin.getImage("schema.gif");
+ return ImageStore.getImage(ImageStore.SCHEMA);
} else {
return null;
}
SimpleSelectionDialog dialog = new SimpleSelectionDialog(
getShell(), Messages.getString(getClass(), "addSchemaDialog"),
schemaList.toArray(),
- QuantumPlugin.getImage("schema.gif"), true);
+ ImageStore.getImage(ImageStore.SCHEMA), true);
int result = dialog.open();
if (result == SimpleSelectionDialog.OK
&& !dialog.getSelection().isEmpty()) {
} catch (ConnectionException e) {
ExceptionDisplayDialog.openError(getShell(), null, null, e);
} catch (SQLException e) {
- ExceptionDisplayDialog.openError(getShell(), null, null, e);
+ SQLExceptionDialog.openException(getShell(), bookmark, e);
}
}