mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Borders. Deprecated methods to undeprecated.
This commit is contained in:
@@ -90,12 +90,12 @@ public class CodeStyleImportsPanel extends JPanel {
|
||||
"<% page import=\"com.company.Far\"%>");
|
||||
final JPanel labelPanel = new JPanel(new BorderLayout());
|
||||
labelPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(20, 10, 0, 0), IdeBorderFactory.createTitledBorder(
|
||||
ApplicationBundle.message("title.preview"), false, false, true)));
|
||||
ApplicationBundle.message("title.preview"), false)));
|
||||
|
||||
JPanel resultPanel = new JPanel(new BorderLayout());
|
||||
resultPanel.add(btnPanel, BorderLayout.NORTH);
|
||||
resultPanel.add(labelPanel, BorderLayout.CENTER);
|
||||
resultPanel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.jsp.imports.layout"), true, true, true));
|
||||
resultPanel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.jsp.imports.layout"), true));
|
||||
|
||||
|
||||
ActionListener actionListener = new ActionListener() {
|
||||
@@ -142,7 +142,7 @@ public class CodeStyleImportsPanel extends JPanel {
|
||||
|
||||
private JPanel createPackagesPanel() {
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
panel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.packages.to.use.import.with"), true, false, true));
|
||||
panel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.packages.to.use.import.with"), false));
|
||||
|
||||
panel.add(createPackagesTable(), BorderLayout.CENTER);
|
||||
panel.add(createPackagesButtonsPanel(), BorderLayout.EAST);
|
||||
@@ -151,7 +151,7 @@ public class CodeStyleImportsPanel extends JPanel {
|
||||
|
||||
private JPanel createImportLayoutPanel() {
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
panel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.import.layout"), true, false, true));
|
||||
panel.setBorder(IdeBorderFactory.createTitledBorder(ApplicationBundle.message("title.import.layout"), false));
|
||||
myCbLayoutStaticImportsSeparately = new JCheckBox("Layout static imports separately");
|
||||
|
||||
myCbLayoutStaticImportsSeparately.addItemListener(new ItemListener(){
|
||||
|
||||
@@ -122,7 +122,7 @@ public class JavaDocLocalInspection extends BaseLocalInspectionTool {
|
||||
private JPanel createTagsPanel(String[] tags, Options options) {
|
||||
JPanel panel = new JPanel(new GridBagLayout());
|
||||
panel.setBorder(BorderFactory.createCompoundBorder(IdeBorderFactory.createTitledBorder(
|
||||
InspectionsBundle.message("inspection.javadoc.required.tags.option.title"), false, true, true),
|
||||
InspectionsBundle.message("inspection.javadoc.required.tags.option.title"), true),
|
||||
BorderFactory.createEmptyBorder(0, 3, 3, 3)));
|
||||
|
||||
GridBagConstraints gc = new GridBagConstraints();
|
||||
@@ -170,7 +170,7 @@ public class JavaDocLocalInspection extends BaseLocalInspectionTool {
|
||||
private JPanel createScopePanel(final String[] modifiers, final Options options) {
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
panel.setBorder(BorderFactory.createCompoundBorder(IdeBorderFactory.createTitledBorder(
|
||||
InspectionsBundle.message("inspection.scope.for.title"), false, true, true),
|
||||
InspectionsBundle.message("inspection.scope.for.title"), true),
|
||||
BorderFactory.createEmptyBorder(0, 3, 3, 3)));
|
||||
|
||||
final Hashtable<Integer, JLabel> sliderLabels = new Hashtable<Integer, JLabel>();
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ public class CyclicDependenciesAction extends AnAction{
|
||||
|
||||
protected JComponent createCenterPanel() {
|
||||
myScopePanel.setBorder(IdeBorderFactory.createTitledBorder(
|
||||
AnalysisScopeBundle.message("analysis.scope.title", myAnalysisNoun), false, true, true));
|
||||
AnalysisScopeBundle.message("analysis.scope.title", myAnalysisNoun), true));
|
||||
myProjectButton.setText(AnalysisScopeBundle.message("cyclic.dependencies.scope.dialog.project.button", myAnalysisVerb));
|
||||
ButtonGroup group = new ButtonGroup();
|
||||
group.add(myProjectButton);
|
||||
|
||||
@@ -75,7 +75,7 @@ public class FindClassUsagesDialog extends JavaFindUsagesDialog<JavaClassFindUsa
|
||||
protected JPanel createFindWhatPanel() {
|
||||
JPanel findWhatPanel = new JPanel();
|
||||
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), false, true, true));
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
|
||||
findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox"), getFindUsagesOptions().isUsages, findWhatPanel, true);
|
||||
|
||||
@@ -59,7 +59,7 @@ public class FindMethodUsagesDialog extends JavaFindUsagesDialog<JavaMethodFindU
|
||||
@Override
|
||||
protected JPanel createFindWhatPanel() {
|
||||
JPanel findWhatPanel = new JPanel();
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), false, true, true));
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
|
||||
findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox"), getFindUsagesOptions().isUsages, findWhatPanel, true);
|
||||
|
||||
@@ -55,7 +55,7 @@ public class FindPackageUsagesDialog extends JavaFindUsagesDialog<JavaPackageFin
|
||||
@Override
|
||||
protected JPanel createFindWhatPanel() {
|
||||
JPanel findWhatPanel = new JPanel();
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), false, true, true));
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
|
||||
findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox"), getFindUsagesOptions().isUsages, findWhatPanel, true);
|
||||
|
||||
@@ -75,7 +75,7 @@ public class FindThrowUsagesDialog extends JavaFindUsagesDialog<JavaThrowFindUsa
|
||||
@Override
|
||||
protected JPanel createFindWhatPanel() {
|
||||
final JPanel findWhatPanel = new JPanel();
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), false, true, true));
|
||||
findWhatPanel.setBorder(IdeBorderFactory.createTitledBorder(FindBundle.message("find.what.group"), true));
|
||||
findWhatPanel.setLayout(new BoxLayout(findWhatPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
myCbUsages = addCheckboxToPanel(FindBundle.message("find.what.usages.checkbox") , myFindUsagesOptions.isUsages, findWhatPanel, true);
|
||||
|
||||
+1
-1
@@ -225,7 +225,7 @@ class AnonymousToInnerDialog extends DialogWrapper{
|
||||
}
|
||||
};
|
||||
panel.setBorder(IdeBorderFactory.createTitledBorder(
|
||||
RefactoringBundle.message("anonymousToInner.parameters.panel.border.title"), false, true, true));
|
||||
RefactoringBundle.message("anonymousToInner.parameters.panel.border.title"), true));
|
||||
return panel;
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -320,7 +320,7 @@ public String getAccessorsVisibility() {
|
||||
leftBox.add(myCbUseAccessorsWhenAccessible);
|
||||
JPanel leftPanel = new JPanel(new BorderLayout());
|
||||
leftPanel.setBorder(IdeBorderFactory.createTitledBorder(
|
||||
RefactoringBundle.message("encapsulate.fields.encapsulate.border.title"), false, true, true));
|
||||
RefactoringBundle.message("encapsulate.fields.encapsulate.border.title"), true));
|
||||
leftPanel.add(leftBox, BorderLayout.CENTER);
|
||||
leftPanel.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
|
||||
|
||||
@@ -344,7 +344,7 @@ public String getAccessorsVisibility() {
|
||||
fieldsBox.add(myRbFieldAsIs);
|
||||
JPanel fieldsVisibilityPanel = new JPanel(new BorderLayout());
|
||||
fieldsVisibilityPanel.setBorder(IdeBorderFactory.createTitledBorder(
|
||||
RefactoringBundle.message("encapsulate.fields..encapsulated.fields.visibility.border.title"), false, true, true));
|
||||
RefactoringBundle.message("encapsulate.fields..encapsulated.fields.visibility.border.title"), true));
|
||||
fieldsVisibilityPanel.add(fieldsBox, BorderLayout.CENTER);
|
||||
fieldsVisibilityPanel.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
|
||||
|
||||
@@ -355,7 +355,7 @@ public String getAccessorsVisibility() {
|
||||
methodsBox.add(myRbAccessorPrivate);
|
||||
JPanel methodsVisibilityPanel = new JPanel(new BorderLayout());
|
||||
methodsVisibilityPanel.setBorder(IdeBorderFactory.createTitledBorder(
|
||||
RefactoringBundle.message("encapsulate.fields.accessors.visibility.border.title"), false, true, true));
|
||||
RefactoringBundle.message("encapsulate.fields.accessors.visibility.border.title"), true));
|
||||
methodsVisibilityPanel.add(methodsBox, BorderLayout.CENTER);
|
||||
methodsVisibilityPanel.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
|
||||
|
||||
@@ -397,7 +397,7 @@ public String getAccessorsVisibility() {
|
||||
// CompTitledBorder titledBorder = new CompTitledBorder(label);
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
Border border = IdeBorderFactory.createTitledBorder(
|
||||
RefactoringBundle.message("encapsulate.fields.fields.to.encapsulate.border.title"), false, false, true);
|
||||
RefactoringBundle.message("encapsulate.fields.fields.to.encapsulate.border.title"), false);
|
||||
panel.setBorder(border);
|
||||
panel.add(scrollPane);
|
||||
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ public class IntroduceFieldDialogPanel extends IntroduceFieldCentralPanel {
|
||||
|
||||
JPanel initializationPanel = new JPanel();
|
||||
initializationPanel.setBorder(IdeBorderFactory.createTitledBorder(RefactoringBundle.message("initialize.in.border.title"),
|
||||
false, true, true));
|
||||
true));
|
||||
initializationPanel.setLayout(new BoxLayout(initializationPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class JavaVisibilityPanel extends VisibilityPanelBase {
|
||||
private final JRadioButton myRbPublic;
|
||||
|
||||
public JavaVisibilityPanel(boolean hasAsIs, final boolean hasEscalate) {
|
||||
setBorder(IdeBorderFactory.createTitledBorder(RefactoringBundle.message("visibility.border.title"), false, true, true,
|
||||
setBorder(IdeBorderFactory.createTitledBorder(RefactoringBundle.message("visibility.border.title"), true,
|
||||
new Insets(IdeBorderFactory.TITLED_BORDER_TOP_INSET,
|
||||
UIUtil.DEFAULT_HGAP,
|
||||
IdeBorderFactory.TITLED_BORDER_BOTTOM_INSET,
|
||||
|
||||
Reference in New Issue
Block a user