1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
package org.jetbrains.debugger;
import com.intellij.openapi.util.ActionCallback;
import com.intellij.xdebugger.evaluation.XDebuggerEvaluator;
import com.intellij.xdebugger.frame.XCompositeNode;
import com.intellij.xdebugger.frame.XNavigatable;
import com.intellij.xdebugger.frame.XValueNode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.debugger.frame.CallFrameView;
import org.jetbrains.debugger.values.ObjectValue;
import org.jetbrains.debugger.values.Value;
import javax.swing.*;
import java.util.List;
public interface DebuggerViewSupport {
@Nullable
SourceInfo getSourceInfo(@Nullable Script script, @NotNull CallFrame frame);
@Nullable
SourceInfo getSourceInfo(@Nullable String functionName, @NotNull String scriptUrl, int line, int column);
@Nullable
SourceInfo getSourceInfo(@Nullable String functionName, @NotNull Script script, int line, int column);
Vm getVm();
@NotNull
String propertyNamesToString(@NotNull List<String> list, boolean quotedAware);
// Please, don't hesitate to ask to share some generic implementations. Don't reinvent the wheel and keep in mind - user expects the same UI across all IDEA-based IDEs.
void computeObjectPresentation(@NotNull ObjectValue value, @NotNull Variable variable, @NotNull VariableContext context, @NotNull XValueNode node, @NotNull Icon icon);
void computeArrayPresentation(@NotNull Value value, @NotNull Variable variable, @NotNull VariableContext context, @NotNull XValueNode node, @NotNull Icon icon);
@NotNull
XDebuggerEvaluator createFrameEvaluator(@NotNull CallFrameView frame);
/**
* {@link org.jetbrains.debugger.values.FunctionValue} is special case and handled by SDK
*/
boolean canNavigateToSource(@NotNull Variable variable, @NotNull VariableContext context);
void computeSourcePosition(@NotNull Variable variable, @NotNull VariableContext context, @NotNull XNavigatable navigatable);
// return null if you don't need to add additional properties
@Nullable
ActionCallback computeAdditionalObjectProperties(@NotNull ObjectValue value, @NotNull Variable variable, @NotNull VariableContext context, @NotNull XCompositeNode node);
@NotNull
MemberFilter createMemberFilter(@NotNull VariableContext context);
@NotNull
String normalizeMemberName(@NotNull Variable variable);
@Nullable
Value transformErrorOnGetUsedReferenceValue(@Nullable Value value, @Nullable String error);
boolean isInLibraryContent(@NotNull SourceInfo sourceInfo, @Nullable Script script);
}
|