Java 类com.intellij.ui.classFilter.ClassFilterEditor 实例源码

项目:intellij-ce-playground    文件:EditClassFiltersDialog.java   
protected JComponent createCenterPanel() {
  JPanel contentPanel = new JPanel(new BorderLayout());

  Box mainPanel = Box.createHorizontalBox();

  myClassFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassFilterEditor.setPreferredSize(JBUI.size(400, 200));
  myClassFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.inclusion.filters.group"), false));
  mainPanel.add(myClassFilterEditor);

  myClassExclusionFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassExclusionFilterEditor.setPreferredSize(JBUI.size(400, 200));
  myClassExclusionFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.exclusion.filters.group"), false));
  mainPanel.add(myClassExclusionFilterEditor);

  contentPanel.add(mainPanel, BorderLayout.CENTER);

  return contentPanel;
}
项目:tools-idea    文件:EditClassFiltersDialog.java   
protected JComponent createCenterPanel() {
  JPanel contentPanel = new JPanel(new BorderLayout());

  Box mainPanel = Box.createHorizontalBox();

  myClassFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassFilterEditor.setPreferredSize(new Dimension(400, 200));
  myClassFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.inclusion.filters.group"), false));
  mainPanel.add(myClassFilterEditor);

  myClassExclusionFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassExclusionFilterEditor.setPreferredSize(new Dimension(400, 200));
  myClassExclusionFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.exclusion.filters.group"), false));
  mainPanel.add(myClassExclusionFilterEditor);

  contentPanel.add(mainPanel, BorderLayout.CENTER);

  return contentPanel;
}
项目:tools-idea    文件:DebuggerSteppingConfigurable.java   
public JComponent createComponent() {
  final JPanel panel = new JPanel(new GridBagLayout());
  myProject = JavaDebuggerSupport.getCurrentProject();
  myCbSkipSyntheticMethods = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.synthetic.methods"));
  myCbSkipConstructors = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.constructors"));
  myCbSkipClassLoaders = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.classloaders"));
  myCbSkipSimpleGetters = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.simple.getters"));
  myCbStepInfoFiltersEnabled = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.step.filters.list.header"));
  panel.add(myCbSkipSyntheticMethods, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipConstructors, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipClassLoaders, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipSimpleGetters, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbStepInfoFiltersEnabled, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 0, 0, 0),0, 0));

  mySteppingFilterEditor = new ClassFilterEditor(myProject, null, "reference.viewBreakpoints.classFilters.newPattern");
  panel.add(mySteppingFilterEditor, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 0, 0),0, 0));

  myCbStepInfoFiltersEnabled.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
      mySteppingFilterEditor.setEnabled(myCbStepInfoFiltersEnabled.isSelected());
    }
  });
  return panel;
}
项目:consulo-java    文件:EditClassFiltersDialog.java   
protected JComponent createCenterPanel() {
  JPanel contentPanel = new JPanel(new BorderLayout());

  Box mainPanel = Box.createHorizontalBox();

  myClassFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassFilterEditor.setPreferredSize(new Dimension(400, 200));
  myClassFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.inclusion.filters.group"), false));
  mainPanel.add(myClassFilterEditor);

  myClassExclusionFilterEditor = new ClassFilterEditor(myProject, myChooserFilter, "reference.viewBreakpoints.classFilters.newPattern");
  myClassExclusionFilterEditor.setPreferredSize(new Dimension(400, 200));
  myClassExclusionFilterEditor.setBorder(IdeBorderFactory.createTitledBorder(
    DebuggerBundle.message("class.filters.dialog.exclusion.filters.group"), false));
  mainPanel.add(myClassExclusionFilterEditor);

  contentPanel.add(mainPanel, BorderLayout.CENTER);

  return contentPanel;
}
项目:consulo-java    文件:DebuggerSteppingConfigurable.java   
@Override
@NotNull
public JComponent getComponent()
{
    final JPanel panel = new JPanel(new GridBagLayout());
    myCbSkipSyntheticMethods = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.synthetic.methods"));
    myCbSkipConstructors = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.constructors"));
    myCbSkipClassLoaders = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.classLoaders"));
    myCbSkipSimpleGetters = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.simple.getters"));
    myCbStepInfoFiltersEnabled = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.step.filters.list.header"));
    panel.add(myCbSkipSyntheticMethods, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    panel.add(myCbSkipConstructors, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    panel.add(myCbSkipClassLoaders, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    panel.add(myCbSkipSimpleGetters, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    panel.add(myCbStepInfoFiltersEnabled, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(8, 0, 0, 0), 0, 0));

    mySteppingFilterEditor = new ClassFilterEditor(JavaDebuggerSupport.getContextProjectForEditorFieldsInDebuggerConfigurables(), null,
            "reference.viewBreakpoints.classFilters.newPattern");
    panel.add(mySteppingFilterEditor, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 0), 0, 0));

    myCbStepInfoFiltersEnabled.addActionListener(new ActionListener()
    {
        @Override
        public void actionPerformed(ActionEvent e)
        {
            mySteppingFilterEditor.setEnabled(myCbStepInfoFiltersEnabled.isSelected());
        }
    });
    return panel;
}
项目:intellij-ce-playground    文件:DebuggerSteppingConfigurable.java   
@Override
@NotNull
public JComponent getComponent() {
  final JPanel panel = new JPanel(new GridBagLayout());
  myCbSkipSyntheticMethods = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.synthetic.methods"));
  myCbSkipConstructors = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.constructors"));
  myCbSkipClassLoaders = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.classLoaders"));
  myCbSkipSimpleGetters = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.skip.simple.getters"));
  myCbStepInfoFiltersEnabled = new JCheckBox(DebuggerBundle.message("label.debugger.general.configurable.step.filters.list.header"));
  panel.add(myCbSkipSyntheticMethods, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipConstructors, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipClassLoaders, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbSkipSimpleGetters, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0),0, 0));
  panel.add(myCbStepInfoFiltersEnabled, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 0, 0, 0),0, 0));

  mySteppingFilterEditor = new ClassFilterEditor(JavaDebuggerSupport.getContextProjectForEditorFieldsInDebuggerConfigurables(), null, "reference.viewBreakpoints.classFilters.newPattern");
  panel.add(mySteppingFilterEditor, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 5, 0, 0),0, 0));

  myCbStepInfoFiltersEnabled.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      mySteppingFilterEditor.setEnabled(myCbStepInfoFiltersEnabled.isSelected());
    }
  });

  myRbEvaluateFinallyAlways = new JRadioButton(DebuggerBundle.message("label.debugger.general.configurable.evaluate.finally.always"));
  myRbEvaluateFinallyNever = new JRadioButton(DebuggerBundle.message("label.debugger.general.configurable.evaluate.finally.never"));
  myRbEvaluateFinallyAsk = new JRadioButton(DebuggerBundle.message("label.debugger.general.configurable.evaluate.finally.ask"));

  int cbLeftOffset = 0;
  final Border border = myCbSkipSimpleGetters.getBorder();
  if (border != null) {
    final Insets insets = border.getBorderInsets(myCbSkipSimpleGetters);
    if (insets != null) {
      cbLeftOffset = insets.left;
    }
  }

  final ButtonGroup group = new ButtonGroup();
  group.add(myRbEvaluateFinallyAlways);
  group.add(myRbEvaluateFinallyNever);
  group.add(myRbEvaluateFinallyAsk);
  final Box box = Box.createHorizontalBox();
  box.add(myRbEvaluateFinallyAlways);
  box.add(myRbEvaluateFinallyNever);
  box.add(myRbEvaluateFinallyAsk);
  final JPanel evalFinallyPanel = new JPanel(new BorderLayout());
  evalFinallyPanel.add(box, BorderLayout.CENTER);
  evalFinallyPanel.add(new JLabel(DebuggerBundle.message("label.debugger.general.configurable.evaluate.finally.on.pop")), BorderLayout.WEST);
  panel.add(evalFinallyPanel, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(4, cbLeftOffset, 0, 0), 0, 0));

  return panel;
}