Examples of containsCategory()


Examples of edu.umd.cs.findbugs.config.ProjectFilterSettings.containsCategory()

      if (enabled != null) {
        return enabled;
      }
      final ProjectFilterSettings filterSettings = _preferences.getUserPreferences().getFilterSettings();
      for (final BugPattern pattern : factory.getReportedBugPatterns()) {
        if (filterSettings.containsCategory(pattern.getCategory())) {
          //enabledDetectors.put(factory, Boolean.TRUE);
          return true;
        }
      }
      //enabledDetectors.put(factory, Boolean.FALSE);
View Full Code Here

Examples of edu.umd.cs.findbugs.config.ProjectFilterSettings.containsCategory()

        chkEnableBugCategoryList = new LinkedList<Button>();
        ProjectFilterSettings origFilterSettings = propertyPage.getOriginalUserPreferences().getFilterSettings();
        for (String category : bugCategoryList) {
            Button checkBox = new Button(checkBoxGroup, SWT.CHECK);
            checkBox.setText(I18N.instance().getBugCategoryDescription(category));
            checkBox.setSelection(origFilterSettings.containsCategory(category));
            GridData layoutData = new GridData();
            layoutData.horizontalIndent = 10;
            checkBox.setLayoutData(layoutData);

            // Every time a checkbox is clicked, rebuild the detector factory
View Full Code Here

Examples of edu.umd.cs.findbugs.config.ProjectFilterSettings.containsCategory()

        ProjectFilterSettings filterSettings = prefs.getFilterSettings();
        minRankSlider.setSelection(filterSettings.getMinRank());
        updateRankValueLabel();
        minPriorityCombo.setText(filterSettings.getMinPriority());
        for (Button checkBox : chkEnableBugCategoryList) {
            checkBox.setSelection(filterSettings.containsCategory((String) checkBox.getData()));
        }
        syncSelectedCategories();
    }

    protected List<Button> getChkEnableBugCategoryList() {
View Full Code Here

Examples of edu.umd.cs.findbugs.config.ProjectFilterSettings.containsCategory()

            if (enabled != null) {
                return enabled.booleanValue();
            }
            ProjectFilterSettings filterSettings = tab.getCurrentProps().getFilterSettings();
            for (BugPattern pattern : factory.getReportedBugPatterns()) {
                if (filterSettings.containsCategory(pattern.getCategory())) {
                    enabledDetectors.put(factory, Boolean.TRUE);
                    return true;
                }
            }
            enabledDetectors.put(factory, Boolean.FALSE);
View Full Code Here

Examples of io.ADXIniParser.containsCategory()

  @Override
  public void init(ADXGame game) {
   
    // LoadĀ options
    ADXIniParser ini = new ADXIniParser(optionPath);
    if (ini.containsCategory("GLOBAL")) {
      if (ini.containsKey("GLOBAL", "gridXSize")) {
        gridXSize = ini.getIntValue("GLOBAL", "gridXSize");
      }
      if (ini.containsKey("GLOBAL", "gridYSize")) {
        gridYSize = ini.getIntValue("GLOBAL", "gridYSize");
View Full Code Here

Examples of io.ADXIniParser.containsCategory()

      }
      int assets = ini.getIntValue("GLOBAL", "assets");
      String id;
      for (int i = 0; i < assets; i++) {
        id = "a" + i;
        if (ini.containsCategory(id)) {
          lAsset.add(new Asset(
              ini.getIntValue(id, "id"),
              ini.getValue(id, "name"),
              ini.getValue(id, "path"),
              ini.getIntValue(id, "canSpray") == 1,
View Full Code Here

Examples of io.ADXIniParser.containsCategory()

        }
      }
      int layers = ini.getIntValue("GLOBAL", "layers");
      for (int i = 0; i < layers; i++) {
        id = "l" + i;
        if (ini.containsCategory(id)) {
          lLayer.add(new Layer(
              ini.getIntValue(id, "id"),
              ini.getValue(id, "name")
            ));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.