public String getDefaultConfigFile() { // System.out.println("BuildConfigurationManager#getDefaultConfigFile"); List list = Ajde.getDefault().getProjectProperties().getProjectSourceFiles(); String string = Ajde.getDefault().getProjectProperties().getProjectName(); String string_0_ = (Ajde.getDefault().getProjectProperties().getOutputPath() + '/' + "default-config.lst"); return string_0_; }
public List getConfigFiles() { // System.out.println("BuildConfigurationManager#getConfigFiles"); ArrayList arraylist = new ArrayList(); // arraylist.add("<all project files>"); Repository repository = null; Project project = OpenProjects.getDefault().getMainProject(); if (project == null) { Ajde.getDefault().getErrorHandler().handleWarning("Please set a project as main project"); return arraylist; } SourceGroup[] sourceGroups = ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA); for (SourceGroup sourceGroup : sourceGroups) { arraylist.addAll( getLstFilesInDir(FileUtil.toFile(sourceGroup.getRootFolder()).getAbsolutePath())); } if (arraylist.size() == 0) Ajde.getDefault() .getErrorHandler() .handleWarning("Could not find any \".lst\" in the main project."); return arraylist; }
public void testFindNonExistent() { List matches = Ajde.getDefault().getStructureSearchManager().findMatches("mumbleNodeDesNotExist", null); assertTrue("non existent", matches.isEmpty()); }
public void testFindPatternAndKindMatch() { Ajde.getDefault() .getStructureSearchManager() .findMatches("Point", IProgramElement.Kind.CONSTRUCTOR); assertTrue("non existent node", true); }
public void testFindPatternMatch() { Ajde.getDefault().getStructureSearchManager().findMatches("Point", null); assertTrue("non existent node", true); }