예제 #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);
 }