Search in sources :

Example 6 with JBTextArea

use of com.intellij.ui.components.JBTextArea in project midpoint-studio by Evolveum.

the class OpDumpPanel method initLayout.

private void initLayout() {
    text = new JBTextArea();
    add(new JBScrollPane(text), BorderLayout.CENTER);
}
Also used : JBTextArea(com.intellij.ui.components.JBTextArea) JBScrollPane(com.intellij.ui.components.JBScrollPane)

Example 7 with JBTextArea

use of com.intellij.ui.components.JBTextArea in project midpoint-studio by Evolveum.

the class OpTraceRawPanel method initLayout.

private void initLayout() {
    text = new JBTextArea();
    add(new JBScrollPane(text), BorderLayout.CENTER);
}
Also used : JBTextArea(com.intellij.ui.components.JBTextArea) JBScrollPane(com.intellij.ui.components.JBScrollPane)

Example 8 with JBTextArea

use of com.intellij.ui.components.JBTextArea in project midpoint-studio by Evolveum.

the class TraceLogsPanel method initLayout.

private void initLayout() {
    DefaultActionGroup group = new DefaultActionGroup();
    SimpleCheckboxAction logsWrapText = new SimpleCheckboxAction("Wrap text") {

        @Override
        public void onStateChange() {
            logs.setLineWrap(isSelected());
            updateTexts(fullyLoaded);
        }
    };
    group.add(logsWrapText);
    currentOpOnly = new SimpleCheckboxAction("Current operation only") {

        @Override
        public void onStateChange() {
            updateTexts(fullyLoaded);
        }
    };
    group.add(currentOpOnly);
    logsShowSegmentSeparators = new SimpleCheckboxAction("Show segment separators") {

        @Override
        public void onStateChange() {
            updateTexts(fullyLoaded);
        }
    };
    group.add(logsShowSegmentSeparators);
    alwaysLoadFully = new SimpleCheckboxAction("Always load fully");
    group.add(alwaysLoadFully);
    AnAction load = new AnAction("Load", "Load full log", AllIcons.Actions.Show) {

        @Override
        public void actionPerformed(@NotNull AnActionEvent e) {
            updateTexts(true);
        }

        @Override
        public void update(@NotNull AnActionEvent e) {
            e.getPresentation().setEnabled(!fullyLoaded);
        }
    };
    group.add(load);
    ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("TraceViewLogsToolbar", group, true);
    toolbar.setTargetComponent(this);
    add(toolbar.getComponent(), BorderLayout.NORTH);
    logs = new JBTextArea();
    JBScrollPane logsScrollPane = new JBScrollPane(logs);
    add(logsScrollPane);
}
Also used : SimpleCheckboxAction(com.evolveum.midpoint.studio.ui.SimpleCheckboxAction) JBTextArea(com.intellij.ui.components.JBTextArea) NotNull(org.jetbrains.annotations.NotNull) JBScrollPane(com.intellij.ui.components.JBScrollPane)

Example 9 with JBTextArea

use of com.intellij.ui.components.JBTextArea in project StringManipulation by krasa.

the class FromTextArea method createJbTextArea.

private static JBTextArea createJbTextArea() {
    JBTextArea innerTextComponent = new JBTextArea();
    innerTextComponent.setRows(1);
    innerTextComponent.setColumns(12);
    innerTextComponent.setMinimumSize(new Dimension(100, 0));
    return innerTextComponent;
}
Also used : JBTextArea(com.intellij.ui.components.JBTextArea)

Example 10 with JBTextArea

use of com.intellij.ui.components.JBTextArea in project StringManipulation by krasa.

the class ToTextArea method createJbTextArea.

private static JBTextArea createJbTextArea() {
    JBTextArea innerTextComponent = new JBTextArea();
    innerTextComponent.setRows(1);
    innerTextComponent.setColumns(12);
    innerTextComponent.setMinimumSize(new Dimension(100, 0));
    return innerTextComponent;
}
Also used : JBTextArea(com.intellij.ui.components.JBTextArea)

Aggregations

JBTextArea (com.intellij.ui.components.JBTextArea)15 JBScrollPane (com.intellij.ui.components.JBScrollPane)7 NotNull (org.jetbrains.annotations.NotNull)4 SimpleCheckboxAction (com.evolveum.midpoint.studio.ui.SimpleCheckboxAction)3 JTextComponent (javax.swing.text.JTextComponent)3 AllIcons (com.intellij.icons.AllIcons)2 com.intellij.openapi.actionSystem (com.intellij.openapi.actionSystem)2 JBLabel (com.intellij.ui.components.JBLabel)2 BorderLayoutPanel (com.intellij.util.ui.components.BorderLayoutPanel)2 java.awt (java.awt)2 List (java.util.List)2 javax.swing (javax.swing)2 OpNode (com.evolveum.midpoint.schema.traces.OpNode)1 MidPointProjectNotifier (com.evolveum.midpoint.studio.impl.MidPointProjectNotifier)1 MidPointProjectNotifierAdapter (com.evolveum.midpoint.studio.impl.MidPointProjectNotifierAdapter)1 Format (com.evolveum.midpoint.studio.impl.trace.Format)1 FormattingContext (com.evolveum.midpoint.studio.impl.trace.FormattingContext)1 TreeTableColumnDefinition (com.evolveum.midpoint.studio.ui.TreeTableColumnDefinition)1 ViewingState (com.evolveum.midpoint.studio.ui.trace.ViewingState)1 Node (com.evolveum.midpoint.studio.ui.trace.entry.Node)1