本文整理汇总了Java中com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider类的典型用法代码示例。如果您正苦于以下问题:Java XDebuggerEditorsProvider类的具体用法?Java XDebuggerEditorsProvider怎么用?Java XDebuggerEditorsProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XDebuggerEditorsProvider类属于com.intellij.xdebugger.evaluation包,在下文中一共展示了XDebuggerEditorsProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEditorsProvider
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
@Override
public XDebuggerEditorsProvider getEditorsProvider(@NotNull XLineBreakpoint<XBreakpointProperties> breakpoint, @NotNull Project project)
{
final XSourcePosition position = breakpoint.getSourcePosition();
if (position == null)
{
return null;
}
final PsiFile file = PsiManager.getInstance(project).findFile(position.getFile());
if (file == null)
{
return null;
}
return new MuleDebuggerEditorsProvider();
}
示例2: getEditorsProvider
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
@Override
public XDebuggerEditorsProvider getEditorsProvider(@NotNull XLineBreakpoint<XBreakpointProperties> breakpoint, @NotNull Project project)
{
final XSourcePosition position = breakpoint.getSourcePosition();
if (position == null)
{
return null;
}
final PsiFile file = PsiManager.getInstance(project).findFile(position.getFile());
if (file == null)
{
return null;
}
return new WeaveDebuggerEditorsProvider();
}
示例3: CodeFragmentInputComponent
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public CodeFragmentInputComponent(final @NotNull Project project,
@NotNull XDebuggerEditorsProvider editorsProvider,
final @Nullable XSourcePosition sourcePosition,
@Nullable XExpression statements,
String splitterProportionKey,
Disposable parentDisposable) {
super(XDebuggerBundle.message("dialog.title.evaluate.code.fragment"));
myMultilineEditor = new XDebuggerExpressionEditor(project, editorsProvider, "evaluateCodeFragment", sourcePosition,
statements != null ? statements : XExpressionImpl.EMPTY_CODE_FRAGMENT, true);
myMainPanel = new JPanel(new BorderLayout());
JPanel editorPanel = new JPanel(new BorderLayout());
editorPanel.add(myMultilineEditor.getComponent(), BorderLayout.CENTER);
DefaultActionGroup group = new DefaultActionGroup();
group.add(new HistoryNavigationAction(false, IdeActions.ACTION_PREVIOUS_OCCURENCE, parentDisposable));
group.add(new HistoryNavigationAction(true, IdeActions.ACTION_NEXT_OCCURENCE, parentDisposable));
editorPanel.add(ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false).getComponent(), BorderLayout.EAST);
//myMainPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.label.text.code.fragment")), BorderLayout.NORTH);
myMainPanel.add(editorPanel, BorderLayout.CENTER);
if (statements != null) {
myMultilineEditor.setExpression(statements);
}
mySplitterProportionKey = splitterProportionKey;
}
示例4: init
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public void init(Project project, XBreakpointManager breakpointManager, @NotNull B breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) {
init(project, breakpointManager, breakpoint);
if (debuggerEditorsProvider != null) {
ActionListener listener = new ActionListener() {
public void actionPerformed(final ActionEvent e) {
onCheckboxChanged();
}
};
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, LOG_EXPRESSION_HISTORY_ID, myBreakpoint.getSourcePosition());
JComponent logExpressionComponent = myLogExpressionComboBox.getComponent();
myLogExpressionPanel.add(logExpressionComponent, BorderLayout.CENTER);
myLogExpressionComboBox.setEnabled(false);
myTemporaryCheckBox.setVisible(breakpoint instanceof XLineBreakpoint);
myLogExpressionCheckBox.addActionListener(listener);
DebuggerUIUtil.focusEditorOnCheck(myLogExpressionCheckBox, myLogExpressionComboBox.getEditorComponent());
}
else {
myExpressionPanel.getParent().remove(myExpressionPanel);
}
}
示例5: MyTableEditor
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
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);
}
示例6: getEditorsProvider
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
@Override
public XDebuggerEditorsProvider getEditorsProvider(@NotNull XLineBreakpoint<XBreakpointProperties> breakpoint, @NotNull Project project) {
final XSourcePosition position = breakpoint.getSourcePosition();
if (position == null) {
return null;
}
final PsiFile file = PsiManager.getInstance(project).findFile(position.getFile());
if (file == null) {
return null;
}
final XsltChecker.LanguageLevel level = XsltSupport.getXsltLanguageLevel(file);
if (level == XsltChecker.LanguageLevel.V1) {
return myMyEditorsProvider1;
} else if (level == XsltChecker.LanguageLevel.V2) {
return myMyEditorsProvider2;
}
return null;
}
示例7: getEditorsProvider
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
@NotNull
@Override
public XDebuggerEditorsProvider getEditorsProvider() {
return new XDebuggerEditorsProvider() {
@NotNull
@Override
public FileType getFileType() {
return SquirrelFileType.INSTANCE;
}
@NotNull
@Override
public Document createDocument(@NotNull Project project,
@NotNull String text,
@Nullable XSourcePosition sourcePosition,
@NotNull EvaluationMode mode) {
LightVirtualFile file = new LightVirtualFile("plain-text-squirrel-debugger.nut", text);
//noinspection ConstantConditions
return FileDocumentManager.getInstance().getDocument(file);
}
};
}
示例8: XDebuggerMultilineEditor
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public XDebuggerMultilineEditor(Project project,
XDebuggerEditorsProvider debuggerEditorsProvider,
@Nullable @NonNls String historyId,
@Nullable XSourcePosition sourcePosition, @NotNull String text) {
super(project, debuggerEditorsProvider, EvaluationMode.CODE_FRAGMENT, historyId, sourcePosition);
myEditorTextField = new EditorTextField(createDocument(text), project, debuggerEditorsProvider.getFileType()) {
@Override
protected EditorEx createEditor() {
final EditorEx editor = super.createEditor();
editor.setVerticalScrollbarVisible(true);
return editor;
}
@Override
protected boolean isOneLineMode() {
return false;
}
};
}
示例9: init
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public void init(Project project, XBreakpointManager breakpointManager, @NotNull B breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) {
init(project, breakpointManager, breakpoint);
if (debuggerEditorsProvider != null) {
ActionListener listener = new ActionListener() {
public void actionPerformed(final ActionEvent e) {
onCheckboxChanged();
}
};
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, "breakpointLogExpression", myBreakpoint.getSourcePosition());
JComponent logExpressionComponent = myLogExpressionComboBox.getComponent();
myLogExpressionPanel.add(logExpressionComponent, BorderLayout.CENTER);
myLogExpressionComboBox.setEnabled(false);
myTemporaryCheckBox.setVisible(breakpoint instanceof XLineBreakpoint);
myLogExpressionCheckBox.addActionListener(listener);
DebuggerUIUtil.focusEditorOnCheck(myLogExpressionCheckBox, logExpressionComponent);
}
else {
myLogExpressionCheckBox.setVisible(false);
}
}
示例10: CodeFragmentInputComponent
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public CodeFragmentInputComponent(final @Nonnull Project project,
@Nonnull XDebuggerEditorsProvider editorsProvider,
final @Nullable XSourcePosition sourcePosition,
@Nullable XExpression statements,
String splitterProportionKey,
Disposable parentDisposable) {
super(XDebuggerBundle.message("dialog.title.evaluate.code.fragment"));
myMultilineEditor = new XDebuggerExpressionEditor(project, editorsProvider, "evaluateCodeFragment", sourcePosition,
statements != null ? statements : XExpressionImpl.EMPTY_CODE_FRAGMENT, true, true, false);
myMainPanel = new JPanel(new BorderLayout());
JPanel editorPanel = new JPanel(new BorderLayout());
editorPanel.add(myMultilineEditor.getComponent(), BorderLayout.CENTER);
DefaultActionGroup group = new DefaultActionGroup();
group.add(new HistoryNavigationAction(false, IdeActions.ACTION_PREVIOUS_OCCURENCE, parentDisposable));
group.add(new HistoryNavigationAction(true, IdeActions.ACTION_NEXT_OCCURENCE, parentDisposable));
editorPanel.add(ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false).getComponent(), BorderLayout.EAST);
//myMainPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.label.text.code.fragment")), BorderLayout.NORTH);
myMainPanel.add(editorPanel, BorderLayout.CENTER);
if (statements != null) {
myMultilineEditor.setExpression(statements);
}
mySplitterProportionKey = splitterProportionKey;
}
示例11: XInspectDialog
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public XInspectDialog(@Nonnull Project project,
XDebuggerEditorsProvider editorsProvider,
XSourcePosition sourcePosition,
@Nonnull String name,
@Nonnull XValue value,
XValueMarkers<?, ?> markers) {
super(project, false);
setTitle(XDebuggerBundle.message("inspect.value.dialog.title", name));
setModal(false);
Pair<XValue, String> initialItem = Pair.create(value, name);
XDebuggerTreeCreator creator = new XDebuggerTreeCreator(project, editorsProvider, sourcePosition, markers);
myDebuggerTreePanel = new DebuggerTreeWithHistoryPanel<Pair<XValue, String>>(initialItem, creator, project);
init();
}
示例12: init
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public void init(Project project, XBreakpointManager breakpointManager, @Nonnull XBreakpointBase breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) {
init(project, breakpointManager, breakpoint);
if (debuggerEditorsProvider != null) {
ActionListener listener = new ActionListener() {
public void actionPerformed(final ActionEvent e) {
onCheckboxChanged();
}
};
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, LOG_EXPRESSION_HISTORY_ID, myBreakpoint.getSourcePosition(), true);
JComponent logExpressionComponent = myLogExpressionComboBox.getComponent();
myLogExpressionPanel.add(logExpressionComponent, BorderLayout.CENTER);
myLogExpressionComboBox.setEnabled(false);
myTemporaryCheckBox.setVisible(breakpoint instanceof XLineBreakpoint);
myLogExpressionCheckBox.addActionListener(listener);
DebuggerUIUtil.focusEditorOnCheck(myLogExpressionCheckBox, myLogExpressionComboBox.getEditorComponent());
}
else {
myExpressionPanel.getParent().remove(myExpressionPanel);
}
}
示例13: JavaScriptLineBreakpointType
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public JavaScriptLineBreakpointType()
{
super("javascript", "JavaScript Breakpoints", new XDebuggerEditorsProvider()
{
@NotNull
@Override
public FileType getFileType()
{
return JavaScriptFileType.INSTANCE;
}
@NotNull
@Override
public Document createDocument(@NotNull Project project, @NotNull String s, @Nullable XSourcePosition sourcePosition, @NotNull EvaluationMode evaluationMode)
{
return JSDebuggerSupportUtils.createDocument(s, project, sourcePosition == null ? null : sourcePosition.getFile(), sourcePosition == null ? 0 : sourcePosition.getOffset());
}
});
}
示例14: ReturnExpressionDialog
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public ReturnExpressionDialog(@NotNull Project project,
XDebuggerEditorsProvider provider,
DebugProcessImpl process,
JavaStackFrame frame) {
super(project);
myProject = project;
myEditorsProvider = provider;
myProcess = process;
myFrame = frame;
myEditor = new XDebuggerExpressionEditor(myProject, myEditorsProvider, "forceReturnValue", myFrame.getSourcePosition(),
XExpressionImpl.EMPTY_EXPRESSION, false);
setTitle("Return Value");
init();
}
示例15: XDebuggerTreeCreator
import com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider; //导入依赖的package包/类
public XDebuggerTreeCreator(@NotNull Project project, XDebuggerEditorsProvider editorsProvider, XSourcePosition sourcePosition,
XValueMarkers<?, ?> markers) {
myProject = project;
myProvider = editorsProvider;
myPosition = sourcePosition;
myMarkers = markers;
}