List of usage examples for org.eclipse.jface.wizard IWizard getWindowTitle
String getWindowTitle();
From source file:com.appnativa.studio.Studio.java
License:Open Source License
public static void openWizard(String id, Shell shell) { // First see if this is a "new wizard". IWizardDescriptor descriptor = PlatformUI.getWorkbench().getNewWizardRegistry().findWizard(id); // If not check if it is an "import wizard". if (descriptor == null) { descriptor = PlatformUI.getWorkbench().getImportWizardRegistry().findWizard(id); }//from ww w . j a v a 2 s . co m // Or maybe an export wizard if (descriptor == null) { descriptor = PlatformUI.getWorkbench().getExportWizardRegistry().findWizard(id); } try { // Then if we have a wizard, open it. if (descriptor != null) { IWizard wizard = descriptor.createWizard(); WizardDialog wd = new WizardDialog(shell, wizard); wd.setTitle(wizard.getWindowTitle()); wd.open(); } } catch (CoreException e) { e.printStackTrace(); } }
From source file:com.google.gdt.eclipse.gph.hge.HgInstallStatusWizardPage.java
License:Open Source License
/** * Create a new HgInstallStatusWizardPage. *///from ww w .ja va 2 s . c om public HgInstallStatusWizardPage(IWizard wizard) { super("HgInstallStatusWizardPage"); setTitle(wizard.getWindowTitle()); }
From source file:com.google.gdt.eclipse.gph.wizards.ShowErrorPage.java
License:Open Source License
public ShowErrorPage(IWizard wizard, IStatus status) { super("showErrorPage"); this.status = status; setTitle(wizard.getWindowTitle()); setDescription(DEFAULT_MESSAGE);/*w w w . j a va 2 s .c o m*/ }
From source file:com.google.gdt.eclipse.managedapis.ui.ProjectSelectionPage.java
License:Open Source License
protected ProjectSelectionPage(IWizard wizard, ImageDescriptor wizardIcon) { super("projectSelectionPage"); setTitle(wizard.getWindowTitle()); setDescription("Choose a project to add Google APIs to."); if (wizardIcon != null) { setImageDescriptor(wizardIcon);//from w w w . j av a 2s .c o m } setPageComplete(false); }
From source file:com.netxforge.screens.editing.base.WizardUtil.java
License:Open Source License
public static IWizard openWizard(String id, IStructuredSelection selection, boolean blockOnOpen) { // First see if this is a "new wizard". IWizardDescriptor descriptor = PlatformUI.getWorkbench().getNewWizardRegistry().findWizard(id); // If not check if it is an "import wizard". if (descriptor == null) { descriptor = PlatformUI.getWorkbench().getImportWizardRegistry().findWizard(id); }/*from www . java 2 s.c o m*/ // Or maybe an export wizard if (descriptor == null) { descriptor = PlatformUI.getWorkbench().getExportWizardRegistry().findWizard(id); } try { // Then if we have a wizard, open it. if (descriptor != null) { IWizard wizard = descriptor.createWizard(); if (wizard instanceof IWorkbenchWizard) { ((IWorkbenchWizard) wizard).init(PlatformUI.getWorkbench(), selection); } WizardDialog wd = new WizardDialog(Display.getCurrent().getActiveShell(), wizard); wd.setTitle(wizard.getWindowTitle()); wd.setBlockOnOpen(blockOnOpen); wd.open(); return wizard; } } catch (CoreException e) { e.printStackTrace(); } return null; }
From source file:com.nextep.datadesigner.gui.model.InvokableController.java
License:Open Source License
/** * Opens a wizard dialog on the specified wizard * /*from w w w . ja v a 2s .com*/ * @param wizard to open */ protected int openWizardDialog(IWizard wizard) { if (CoreUiPlugin.getDefault().getWorkbench() != null && CoreUiPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow() != null) { if (rootShell == null) { this.rootShell = CoreUiPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(); } } else { this.rootShell = Display.getCurrent().getActiveShell(); } WizardDialog d = new WizardDialog(rootShell, wizard); d.setTitle(wizard.getWindowTitle()); d.setBlockOnOpen(true); d.open(); return d.getReturnCode(); }
From source file:com.persistent.ui.projwizard.ContextMenuHandler.java
License:Open Source License
@Override public Object execute(ExecutionEvent arg0) throws ExecutionException { try {//from w w w . ja v a2 s . c o m IWizardDescriptor des = PlatformUI.getWorkbench().getNewWizardRegistry() .findWizard(Messages.waWizardId); if (des != null) { IWizard wizard = des.createWizard(); WizardDialog wizDialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard); Activator.getDefault().setContextMenu(true); wizDialog.setTitle(wizard.getWindowTitle()); wizDialog.open(); } } catch (Exception ex) { PluginUtil.displayErrorDialogAndLog(new Shell(), Messages.pWizErrTitle, Messages.wzrdCrtErMsg, ex); } return null; }
From source file:com.persistent.ui.toolbar.WANewProject.java
License:Open Source License
@Override public Object execute(ExecutionEvent arg0) throws ExecutionException { try {//from ww w . j a va 2s. c om IWizardDescriptor des = PlatformUI.getWorkbench().getNewWizardRegistry() .findWizard(Messages.waWizardId); if (des != null) { IWizard wizard = des.createWizard(); WizardDialog wizDialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard); wizDialog.setTitle(wizard.getWindowTitle()); wizDialog.open(); } } catch (NullPointerException ex) { PluginUtil.displayErrorDialogAndLog(new Shell(), Messages.errTtl, Messages.wzrdCrtErMsg + Messages.instSDK, ex); } catch (Exception ex) { PluginUtil.displayErrorDialogAndLog(new Shell(), Messages.errTtl, Messages.wzrdCrtErMsg, ex); } return null; }
From source file:com.siteview.mde.internal.runtime.spy.sections.ActiveWizardSection.java
License:Open Source License
public void build(ScrolledForm form, SpyFormToolkit toolkit, ExecutionEvent event) { final Shell shell = HandlerUtil.getActiveShell(event); Object object = shell.getData(); if (object == null) return;/*from w w w . j a v a 2 s. c o m*/ Class clazz = object.getClass(); if (object instanceof WizardDialog) { WizardDialog dialog = (WizardDialog) object; IWizardPage page = dialog.getCurrentPage(); IWizard wizard = page.getWizard(); clazz = wizard.getClass(); Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR); section.clientVerticalSpacing = 9; // the active wizard FormText text = toolkit.createFormText(section, true); section.setClient(text); TableWrapData td = new TableWrapData(); td.align = TableWrapData.FILL; td.grabHorizontal = true; section.setLayoutData(td); StringBuffer buffer = new StringBuffer(); buffer.append("<form>"); //$NON-NLS-1$ section.setText(NLS.bind(MDERuntimeMessages.SpyDialog_activeWizard_title, wizard.getWindowTitle())); buffer.append(toolkit.createClassSection(text, MDERuntimeMessages.SpyDialog_activeWizard_desc, new Class[] { clazz })); PackageAdmin admin = PDERuntimePlugin.getDefault().getPackageAdmin(); Bundle bundle = admin.getBundle(clazz); toolkit.generatePluginDetailsText(bundle, null, "wizard", buffer, text); //$NON-NLS-1$ buffer.append("</form>"); //$NON-NLS-1$ text.setText(buffer.toString(), true, false); } }
From source file:hydrograph.ui.graph.utility.SubJobUtility.java
License:Apache License
/** * Open sub graph save dialog.// w ww. j ava 2 s .c o m * * @return the i file */ public IFile openSubJobSaveDialog() { IFile iFile = null; IWizardDescriptor descriptor = PlatformUI.getWorkbench().getNewWizardRegistry() .findWizard(Messages.JOB_WIZARD_ID); if (descriptor != null) { IWizard wizard = null; try { wizard = descriptor.createWizard(); } catch (CoreException coreException) { logger.error("Error while opening create job wizard", coreException); } WizardDialog wizardDialog = new WizardDialog(Display.getDefault().getActiveShell(), wizard); wizardDialog.setTitle(wizard.getWindowTitle()); wizardDialog.open(); JobCreationPage jobCreationPage = (JobCreationPage) wizardDialog.getSelectedPage(); iFile = jobCreationPage.getNewFile(); } return iFile; }