本文整理汇总了Java中org.jetbrains.java.debugger.JavaDebuggerEditorsProvider类的典型用法代码示例。如果您正苦于以下问题:Java JavaDebuggerEditorsProvider类的具体用法?Java JavaDebuggerEditorsProvider怎么用?Java JavaDebuggerEditorsProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JavaDebuggerEditorsProvider类属于org.jetbrains.java.debugger包,在下文中一共展示了JavaDebuggerEditorsProvider类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@Nullable
@Override
public final XDebuggerEditorsProvider getEditorsProvider(
@NotNull XLineBreakpoint<CloudLineBreakpointProperties> breakpoint,
@NotNull Project project) {
return new JavaDebuggerEditorsProvider();
}
示例2: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@Nullable
@Override
public final XDebuggerEditorsProvider getEditorsProvider(@NotNull XLineBreakpoint<P> breakpoint, @NotNull Project project) {
return new JavaDebuggerEditorsProvider();
}
示例3: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@Nullable
@Override
public final XDebuggerEditorsProvider getEditorsProvider(@NotNull XBreakpoint<T> breakpoint, @NotNull Project project) {
return new JavaDebuggerEditorsProvider();
}
示例4: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@NotNull
@Override
public XDebuggerEditorsProvider getEditorsProvider() {
return new JavaDebuggerEditorsProvider();
}
示例5: MyInstancesView
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
MyInstancesView(@NotNull XDebugSession session)
{
super(new BorderLayout(0, JBUI.scale(BORDER_LAYOUT_DEFAULT_GAP)));
Disposer.register(InstancesWindow.this.myDisposable, this);
final XValueMarkers<?, ?> markers = getValueMarkers(session);
if(markers != null)
{
final MyActionListener listener = new MyActionListener(markers);
ActionManager.getInstance().addAnActionListener(listener, InstancesWindow.this.myDisposable);
}
session.addSessionListener(myDebugSessionListener, InstancesWindow.this.myDisposable);
final JavaDebuggerEditorsProvider editorsProvider = new JavaDebuggerEditorsProvider();
myFilterConditionEditor = new ExpressionEditorWithHistory(myProject, myClassName, editorsProvider, InstancesWindow.this.myDisposable);
myFilterButton.setBorder(BorderFactory.createEmptyBorder());
final Dimension filteringButtonSize = myFilterConditionEditor.getEditorComponent().getPreferredSize();
filteringButtonSize.width = JBUI.scale(FILTERING_BUTTON_ADDITIONAL_WIDTH) + myFilterButton.getPreferredSize().width;
myFilterButton.setPreferredSize(filteringButtonSize);
final JBPanel filteringPane = new JBPanel(new BorderLayout(JBUI.scale(BORDER_LAYOUT_DEFAULT_GAP), 0));
final JBLabel sideEffectsWarning = new JBLabel("Warning: filtering may have side effects", SwingConstants.RIGHT);
sideEffectsWarning.setBorder(JBUI.Borders.empty(1, 0, 0, 0));
sideEffectsWarning.setComponentStyle(UIUtil.ComponentStyle.SMALL);
sideEffectsWarning.setFontColor(UIUtil.FontColor.BRIGHTER);
filteringPane.add(new JBLabel("Condition:"), BorderLayout.WEST);
filteringPane.add(myFilterConditionEditor.getComponent(), BorderLayout.CENTER);
filteringPane.add(myFilterButton, BorderLayout.EAST);
filteringPane.add(sideEffectsWarning, BorderLayout.SOUTH);
myProgress.addStopActionListener(this::cancelFilteringTask);
myInstancesTree = new InstancesTree(myProject, editorsProvider, markers, this::updateInstances);
myFilterButton.addActionListener(e ->
{
final String expression = myFilterConditionEditor.getExpression().getExpression();
if(!expression.isEmpty())
{
myFilterConditionEditor.saveTextInHistory();
}
myFilterButton.setEnabled(false);
myInstancesTree.rebuildTree(InstancesTree.RebuildPolicy.RELOAD_INSTANCES);
});
final StackFrameList list = new StackFrameList(myDebugProcess);
list.addListSelectionListener(e -> list.navigateToSelectedValue(false));
new DoubleClickListener()
{
@Override
protected boolean onDoubleClick(MouseEvent event)
{
list.navigateToSelectedValue(true);
return true;
}
}.installOn(list);
final InstancesWithStackFrameView instancesWithStackFrame = new InstancesWithStackFrameView(session, myInstancesTree, list, myClassName);
add(filteringPane, BorderLayout.NORTH);
add(instancesWithStackFrame.getComponent(), BorderLayout.CENTER);
final JComponent focusedComponent = myFilterConditionEditor.getEditorComponent();
UiNotifyConnector.doWhenFirstShown(focusedComponent, () -> IdeFocusManager.findInstanceByComponent(focusedComponent).requestFocus(focusedComponent, true));
}
示例6: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@Nullable
@Override
public final XDebuggerEditorsProvider getEditorsProvider(@NotNull XLineBreakpoint<P> breakpoint, @NotNull Project project)
{
return new JavaDebuggerEditorsProvider();
}
示例7: getEditorsProvider
import org.jetbrains.java.debugger.JavaDebuggerEditorsProvider; //导入依赖的package包/类
@Nullable
@Override
public final XDebuggerEditorsProvider getEditorsProvider(@NotNull XBreakpoint<T> breakpoint, @NotNull Project project)
{
return new JavaDebuggerEditorsProvider();
}