Search in sources :

Example 1 with ToolWizardDialog

use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog in project dbeaver by serge-rider.

the class PostgreToolScript method execute.

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

Example 2 with ToolWizardDialog

use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog in project dbeaver by serge-rider.

the class MySQLToolExport method execute.

@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
    ToolWizardDialog dialog = new ToolWizardDialog(window, new MySQLExportWizard(objects));
    dialog.open();
}
Also used : ToolWizardDialog(org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog)

Example 3 with ToolWizardDialog

use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog in project dbeaver by serge-rider.

the class MySQLToolImport method execute.

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

Example 4 with ToolWizardDialog

use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog in project dbeaver by serge-rider.

the class MySQLToolScript method execute.

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

Example 5 with ToolWizardDialog

use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog 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

ToolWizardDialog (org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog)7 DBSObject (org.jkiss.dbeaver.model.struct.DBSObject)5 MySQLCatalog (org.jkiss.dbeaver.ext.mysql.model.MySQLCatalog)2 PostgreSchema (org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema)2 OracleDataSource (org.jkiss.dbeaver.ext.oracle.model.OracleDataSource)1 PostgreDatabase (org.jkiss.dbeaver.ext.postgresql.model.PostgreDatabase)1