Search in sources :

Example 1 with EditProjectWizard

use of org.jkiss.dbeaver.ui.project.EditProjectWizard in project dbeaver by serge-rider.

the class ProjectHandlerImpl method openResource.

@Override
public void openResource(@NotNull IResource resource) {
    DBPProject project = DBWorkbench.getPlatform().getWorkspace().getProject((IProject) resource);
    if (project == null) {
        DBWorkbench.getPlatformUI().showError("No project", "Can't get project metadata for resource " + resource.getName());
        return;
    }
    MultiPageWizardDialog dialog = new MultiPageWizardDialog(UIUtils.getActiveWorkbenchWindow(), new EditProjectWizard(project));
    dialog.open();
}
Also used : EditProjectWizard(org.jkiss.dbeaver.ui.project.EditProjectWizard) DBPProject(org.jkiss.dbeaver.model.app.DBPProject) MultiPageWizardDialog(org.jkiss.dbeaver.ui.dialogs.MultiPageWizardDialog)

Example 2 with EditProjectWizard

use of org.jkiss.dbeaver.ui.project.EditProjectWizard in project dbeaver by dbeaver.

the class ProjectHandlerImpl method openResource.

@Override
public void openResource(@NotNull IResource resource) {
    DBPProject project = DBWorkbench.getPlatform().getWorkspace().getProject((IProject) resource);
    if (project == null) {
        DBWorkbench.getPlatformUI().showError("No project", "Can't get project metadata for resource " + resource.getName());
        return;
    }
    MultiPageWizardDialog dialog = new MultiPageWizardDialog(UIUtils.getActiveWorkbenchWindow(), new EditProjectWizard(project));
    dialog.open();
}
Also used : EditProjectWizard(org.jkiss.dbeaver.ui.project.EditProjectWizard) DBPProject(org.jkiss.dbeaver.model.app.DBPProject) MultiPageWizardDialog(org.jkiss.dbeaver.ui.dialogs.MultiPageWizardDialog)

Aggregations

DBPProject (org.jkiss.dbeaver.model.app.DBPProject)2 MultiPageWizardDialog (org.jkiss.dbeaver.ui.dialogs.MultiPageWizardDialog)2 EditProjectWizard (org.jkiss.dbeaver.ui.project.EditProjectWizard)2