Search in sources :

Example 1 with RightMarginForm

use of com.intellij.application.options.codeStyle.RightMarginForm in project intellij-community by JetBrains.

the class CodeStyleHtmlPanel method createUIComponents.

private void createUIComponents() {
    myRightMarginForm = new RightMarginForm(StdFileTypes.HTML.getLanguage(), getSettings());
    myRightMarginPanel = myRightMarginForm.getTopPanel();
    myJBScrollPane = new JBScrollPane() {

        @Override
        public Dimension getPreferredSize() {
            Dimension prefSize = super.getPreferredSize();
            return new Dimension(prefSize.width + 15, prefSize.height);
        }
    };
}
Also used : RightMarginForm(com.intellij.application.options.codeStyle.RightMarginForm) JBScrollPane(com.intellij.ui.components.JBScrollPane)

Example 2 with RightMarginForm

use of com.intellij.application.options.codeStyle.RightMarginForm in project intellij-community by JetBrains.

the class CodeStyleXmlPanel method createUIComponents.

private void createUIComponents() {
    myJBScrollPane = new JBScrollPane() {

        @Override
        public Dimension getPreferredSize() {
            Dimension prefSize = super.getPreferredSize();
            return new Dimension(prefSize.width + 15, prefSize.height);
        }
    };
    myRightMarginForm = new RightMarginForm(StdFileTypes.XML.getLanguage(), getSettings());
    myRightMarginPanel = myRightMarginForm.getTopPanel();
}
Also used : RightMarginForm(com.intellij.application.options.codeStyle.RightMarginForm) JBScrollPane(com.intellij.ui.components.JBScrollPane)

Aggregations

RightMarginForm (com.intellij.application.options.codeStyle.RightMarginForm)2 JBScrollPane (com.intellij.ui.components.JBScrollPane)2