public void addPages() { channel = new ModelChannel("newBlockWizard"); new NewMetroProjectWizardController().initialize(); projectPage = new WizardNewProjectCreationPage("mainPage"); // $NON-NLS-1$ String title = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.title"); // $NON-NLS-1$ projectPage.setTitle(title); String descr = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.description"); // $NON-NLS-1$ projectPage.setDescription(descr); addPage(projectPage); selectionPage = new NewMetroProjectSelectionPage("selectionPage", channel); title = MetroStudioUI.getResourceString("new.blockDevelopment.selectionPage.title"); // $NON-NLS-1$ selectionPage.setTitle(title); descr = MetroStudioUI.getResourceString("new.blockDevelopment.mainPage.description"); // $NON-NLS-1$ selectionPage.setDescription(descr); addPage(selectionPage); }
public void init(IWorkbench workbench, IStructuredSelection selection) { String title = MetroStudioUI.getResourceString("new.blockDevelopment.window.title"); // $NON-NLS-1$ setWindowTitle(title); ImageDescriptor imgDescr = MetroStudioUI.getImageDescriptor("icons/full/wizban/newjprj_wiz.gif"); // $NON-NLS-1$ setDefaultPageImageDescriptor(imgDescr); }