public MyTableEditor(Project project,
XDebuggerEditorsProvider debuggerEditorsProvider,
@Nullable @NonNls String historyId,
@Nullable XSourcePosition sourcePosition, @NotNull XExpression text, @NotNull final KeyAdapter actionAdapter) {
super(project, debuggerEditorsProvider, EvaluationMode.CODE_FRAGMENT, historyId, sourcePosition);
myExpression = XExpressionImpl.changeMode(text, getMode());
myEditorTextField = new EditorTextField(createDocument(myExpression), project, debuggerEditorsProvider.getFileType()) {
@Override
protected EditorEx createEditor() {
final EditorEx editor = super.createEditor();
editor.setVerticalScrollbarVisible(false);
editor.setOneLineMode(true);
editor.getContentComponent().addKeyListener(actionAdapter);
return editor;
}
@Override
protected boolean isOneLineMode() {
return true;
}
};
myEditorTextField.setFontInheritedFromLAF(false);
}
ArrayTableCellEditor.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:intellij-ce-playground
作者:
评论列表
文章目录