public void execute() { try { File root = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile(); File destFile = new File(root, "studio.properties"); if (!destFile.exists()) { URL url = ApplicationPlugin.getDefault().getBundle().getResource("/studio.properties"); File propertyFile = new File(FileLocator.toFileURL(url).getFile()); PlatformUtil.copyResource(root, propertyFile, new NullProgressMonitor()); } } catch (Exception e) { BonitaStudioLog.error(e); } }
@Override public boolean performFinish() { final boolean deleted = deleteDiagrams(page); PlatformUtil.openIntroIfNoOtherEditorOpen(); return deleted; }