Package org.twodividedbyzero.idea.findbugs.gui.preferences.model

Examples of org.twodividedbyzero.idea.findbugs.gui.preferences.model.BugCategoryTableModel


      _categoryTable.setCellSelectionEnabled(false);
      _categoryTable.setRowSelectionAllowed(true);
      _categoryTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
      _categoryTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

      final BugCategoryTableModel model = new BugCategoryTableModel();
      _categoryTable.setModel(model);
      _categoryTable.getColumnModel().getColumn(0).setPreferredWidth(20);
      _categoryTable.getColumnModel().getColumn(1).setPreferredWidth(180);
      _categoryTable.getColumnModel().getColumn(2).setPreferredWidth(170);
      _categoryTable.setOpaque(false);

      syncTableModel(model);

      model.addTableModelListener(new TableModelListener() {
        public void tableChanged(final TableModelEvent e) {
          if (e.getColumn() == 0 && TableModelEvent.UPDATE == e.getType()) {
            final String enabled = String.valueOf(model.getValueAt(e.getFirstRow(), 0));
            final String category = String.valueOf(model.getValueAt(e.getFirstRow(), 2));

            _parent.getDetectorConfig().getModel().enableCategory(category, Boolean.valueOf(enabled));

            updatePreferences(category, enabled);
          }
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.gui.preferences.model.BugCategoryTableModel

Copyright © 2018 www.massapicom. 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.