List of usage examples for org.eclipse.jface.wizard WizardDialog setMinimumPageSize
public void setMinimumPageSize(Point size)
From source file:com.google.gdt.eclipse.managedapis.ui.ApiImportProjectHandler.java
License:Open Source License
public Object execute(ExecutionEvent event) { IProject project = null;/*from www.j a v a 2 s .c o m*/ try { project = ActiveProjectFinder.getInstance().getProject(); if (project != null && !project.exists()) { MessageDialog.openInformation(Display.getDefault().getActiveShell(), "Google Plugin for Eclipse", "Project " + project.getName() + " does not exist. Please select a different project and try to add a Google API again."); } else if (project != null && !project.isOpen()) { MessageDialog.openInformation(Display.getDefault().getActiveShell(), "Google Plugin for Eclipse", "Project " + project.getName() + " is not open. Please open the project and try to add a Google API again."); } else if (project == null || AppEngineAndroidCheckDialog.isAppEngineAndroidProject(project)) { ApiImportWizard wizard = new ApiImportWizard(); wizard.setProject(project); wizard.setResources(ManagedApiPlugin.getDefault().getResources()); WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(), wizard); dialog.setMinimumPageSize(wizard.getPreferredPageSize()); dialog.open(); } } catch (CoreException e) { ManagedApiLogger.log(IStatus.ERROR, e); MessageDialog.openError(Display.getDefault().getActiveShell(), "Google Plugin for Eclipse", "There was a problem retrieving information for Project " + project != null ? project.getName() : "(unknown)" + " . See the Error Log for details."); } return null; }
From source file:net.sourceforge.eclipseccase.ui.wizards.ResizableWizard.java
License:Open Source License
protected static int open(Shell shell, ResizableWizard wizard) { final WizardDialog dialog = new WizardDialog(shell, wizard); dialog.setMinimumPageSize(wizard.loadSize()); return dialog.open(); }
From source file:org.eclipse.mylyn.internal.team.ccvs.CvsCommitWorkflowProvider.java
License:Open Source License
@Override public void commit(IResource[] resources) { try {/*from ww w. j a v a 2 s. co m*/ CommitContextWizard wizard = new CommitContextWizard(resources, null); Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); if (shell != null && !shell.isDisposed() && wizard.hasOutgoingChanges()) { wizard.loadSize(); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.setMinimumPageSize(wizard.loadSize()); dialog.create(); dialog.setTitle(WIZARD_LABEL); dialog.setBlockOnOpen(true); dialog.open(); } } catch (CVSException e) { } }