if (getProjectName() != null) { attributeList = attributeList.addAttribute(PROJECTNAME_ATTRIBUTE_NAME, getProjectName());
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }
/** * Extracts the module name from the specified project. If empty then the * provided default name is used. * * @param defaultName * the default module name to use * @param project * the maven 2 project * @return the module name to use */ private String extractModuleName(final String defaultName, final Project project) { if (StringUtils.isBlank(project.getProjectName())) { return defaultName; } else { return project.getProjectName(); } } }
/** * Extracts the module name from the specified project. If empty then the provided default name is used. * * @param defaultName * the default module name to use * @param project * the maven 2 project * @return the module name to use */ private String extractModuleName(final String defaultName, final Project project) { if (StringUtils.isBlank(project.getProjectName())) { return defaultName; } else { return project.getProjectName(); } }
/** * Extracts the module name from the specified project. If empty then the * provided default name is used. * * @param defaultName * the default module name to use * @param project * the maven 2 project * @return the module name to use */ private String extractModuleName(final String defaultName, final Project project) { if (StringUtils.isBlank(project.getProjectName())) { return defaultName; } else { return project.getProjectName(); } } }
/** * Changes the title based on curProject and saveFile. */ public void updateTitle() { Project project = getProject(); String name = project.getProjectName(); if ((name == null || "".equals(name.trim())) && saveFile != null) { name = saveFile.getAbsolutePath(); } if (name == null) { name = "";//Project.UNNAMED_PROJECT; } String oldTitle = this.getTitle(); String newTitle = TITLE_START_TXT + ("".equals(name.trim()) ? "" : " - " + name); if (oldTitle.equals(newTitle)) { return; } this.setTitle(newTitle); }
fb.setUserPreferences(getUserPreferences()); fb.setProgressCallback(progressCallback); fb.setProjectName(p.getProjectName());
cloud.setMode(Cloud.Mode.COMMUNAL); out.printf("Cloud sync and summary report for %s%n", bugCollection.getProject().getProjectName());
sourceModel.addElement(i); projectName.setText(curProject.getProjectName()); projectName.addKeyListener(new KeyAdapter() { @Override
if (getProjectName() != null) { attributeList = attributeList.addAttribute(PROJECTNAME_ATTRIBUTE_NAME, getProjectName());
String name = p.getProjectName(); if (name == null) { name = Project.UNNAMED_PROJECT;
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }