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);
}
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);
}
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);
}
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;
}
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;
}
Aggregations