public static ISharpenProject create(IProject project, IProgressMonitor monitor) throws CoreException { if (!project.hasNature(SharpenNature.NATURE_ID)) { return null; } ISharpenProject cached = (ISharpenProject) project.getSessionProperty(PROJECT_SESSION_KEY); if (null == cached) { cached = new SharpenProject(project); project.setSessionProperty(PROJECT_SESSION_KEY, cached); } return cached; }
private IProject getUninitializedTargetProject(IProject project) { return WorkspaceUtilities.getWorkspaceRoot() .getProject(project.getName() + SharpenConstants.SHARPENED_PROJECT_SUFFIX); }
private IFile getSettingsFile() { return _project.getFile(SETTINGS_FILE); }