/** * DOC mhelleboid Comment method "getTempFolder". * * @param project TODO * @return */ private IPath getTempFolderPath(Project project) { IProject iProject; IFolder iFolder = null; try { iProject = ResourceModelHelper.getProject(project); iFolder = ResourceUtils.getFolder(iProject, RepositoryConstants.TEMP_DIRECTORY, false); if (!iFolder.exists()) { ResourceUtils.createFolder(iFolder); } } catch (PersistenceException e) { // e.printStackTrace(); ExceptionHandler.process(e); } return iFolder.getFullPath(); }
@Override public RootContainer<String, IRepositoryViewObject> getRoutineFromProject(Project project) throws PersistenceException { RootContainer<String, IRepositoryViewObject> toReturn = new RootContainer<String, IRepositoryViewObject>(); ERepositoryObjectType type = ERepositoryObjectType.ROUTINES; if (type != null) { IProject fsProject = ResourceUtils.getProject(project); IFolder objectFolder = ResourceUtils.getFolder(fsProject, ERepositoryObjectType.getFolderName(type), true); addFolderMembers(project, type, toReturn, objectFolder, true); saveProject(project); } return toReturn; }