protected JComponent createCenterPanel() { if (!myCanBeOpenInBrowser) return null; OptionGroup optionGroup = new OptionGroup(InspectionsBundle.message("inspection.export.options.panel.title")); addOptions(optionGroup); return optionGroup.createPanel(); }
protected JComponent createNorthPanel() { OptionGroup optionGroup = new OptionGroup(); myTargetDirectoryField = new TextFieldWithBrowseButton(); optionGroup.add( com.intellij.codeEditor.printing.ExportToHTMLDialog.assignLabel( myTargetDirectoryField, myProject)); return optionGroup.createPanel(); }
protected void addOptions(OptionGroup optionGroup) { myCbOpenInBrowser = new JCheckBox(); myCbOpenInBrowser.setText(InspectionsBundle.message("inspection.export.open.option")); optionGroup.add(myCbOpenInBrowser); }
private JPanel createGeneralOptionsPanel() { OptionGroup group = new OptionGroup(ApplicationBundle.message("title.general")); myCbUseSingleClassImports = new JCheckBox(ApplicationBundle.message("checkbox.use.single.class.import")); group.add(myCbUseSingleClassImports); myCbUseFQClassNames = new JCheckBox(ApplicationBundle.message("checkbox.use.fully.qualified.class.names")); group.add(myCbUseFQClassNames); myCbInsertInnerClassImports = new JCheckBox(ApplicationBundle.message("checkbox.insert.imports.for.inner.classes")); group.add(myCbInsertInnerClassImports); myFqnInJavadocOption = new FullyQualifiedNamesInJavadocOptionProvider(mySettings); group.add(myFqnInJavadocOption.getPanel()); myClassCountField = new JTextField(3); myNamesCountField = new JTextField(3); final JPanel panel = new JPanel(new GridBagLayout()); panel.add( new JLabel(ApplicationBundle.message("editbox.class.count.to.use.import.with.star")), new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 3, 0, 0), 0, 0)); panel.add( myClassCountField, new GridBagConstraints( 1, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 1, 0, 0), 0, 0)); panel.add( new JLabel(ApplicationBundle.message("editbox.names.count.to.use.static.import.with.star")), new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 0.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 3, 0, 0), 0, 0)); panel.add( myNamesCountField, new GridBagConstraints( 1, GridBagConstraints.RELATIVE, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 1, 0, 0), 0, 0)); group.add(panel); return group.createPanel(); }