Search in sources :

Example 1 with OracleDataSource

use of org.jkiss.dbeaver.ext.oracle.model.OracleDataSource in project dbeaver by serge-rider.

the class OracleToolScript method execute.

@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
    for (DBSObject object : objects) {
        if (object.getDataSource() instanceof OracleDataSource) {
            ToolWizardDialog dialog = new ToolWizardDialog(window, new OracleScriptExecuteWizard((OracleDataSource) object.getDataSource()));
            dialog.open();
        }
    }
}
Also used : DBSObject(org.jkiss.dbeaver.model.struct.DBSObject) ToolWizardDialog(org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog) OracleDataSource(org.jkiss.dbeaver.ext.oracle.model.OracleDataSource)

Aggregations

OracleDataSource (org.jkiss.dbeaver.ext.oracle.model.OracleDataSource)1 DBSObject (org.jkiss.dbeaver.model.struct.DBSObject)1 ToolWizardDialog (org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog)1