@Override public void init(IWorkbench workbench, IStructuredSelection selection) { page = new NewBrsWizardPage("newBrsWizardPage", selection); page.setTitle("BRS"); page.setDescription("Create a new brs"); addPage(page); }
@Override public boolean performFinish() { IContainer c = RcpUtils.findContainerByPath(null, page.getFolderPath()); if (c != null) { try { IFile sigFile = RcpUtils.findFileByPath(null, page.getSignaturePath()); IFile bigFile = RcpUtils.getFile(c, page.getFileName()); NewBrsWizard.createBigraph(sigFile, bigFile); UI.openInEditor(bigFile); return true; } catch (CoreException e) { page.setErrorMessage(e.getLocalizedMessage()); } catch (LoadFailedException e) { page.setErrorMessage(e.getLocalizedMessage()); } catch (SaveFailedException e) { page.setErrorMessage(e.getLocalizedMessage()); } } return false; }