Пример #1
0
 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;
 }
Пример #2
0
 private IProject getUninitializedTargetProject(IProject project) {
   return WorkspaceUtilities.getWorkspaceRoot()
       .getProject(project.getName() + SharpenConstants.SHARPENED_PROJECT_SUFFIX);
 }
Пример #3
0
 private IFile getSettingsFile() {
   return _project.getFile(SETTINGS_FILE);
 }