Search in sources :

Example 1 with PathMacroListEditor

use of com.intellij.application.options.pathMacros.PathMacroListEditor in project intellij-community by JetBrains.

the class UndefinedMacrosConfigurable method createComponent.

public JComponent createComponent() {
    final JPanel mainPanel = new JPanel(new BorderLayout());
    // important: do not allow to remove or change macro name for already defined macros befor project is loaded
    myEditor = new PathMacroListEditor(myUndefinedMacroNames);
    final JComponent editorPanel = myEditor.getPanel();
    mainPanel.add(editorPanel, BorderLayout.CENTER);
    final JLabel textLabel = new JLabel(myText);
    textLabel.setUI(new MultiLineLabelUI());
    textLabel.setBorder(IdeBorderFactory.createEmptyBorder(6, 6, 6, 6));
    mainPanel.add(textLabel, BorderLayout.NORTH);
    return mainPanel;
}
Also used : MultiLineLabelUI(com.intellij.openapi.ui.MultiLineLabelUI) PathMacroListEditor(com.intellij.application.options.pathMacros.PathMacroListEditor)

Aggregations

PathMacroListEditor (com.intellij.application.options.pathMacros.PathMacroListEditor)1 MultiLineLabelUI (com.intellij.openapi.ui.MultiLineLabelUI)1