Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
18,000 | void (@NotNull XValueNode node, @NotNull XValuePlace place) { final Debugger.Variable.Kind kind = myVariable.getKind(); Icon icon = null; if (myVariable.isGlobal()) { if (kind == Debugger.Variable.Kind.VARIABLE) { icon = IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Field); } else { icon = PlatformIcons.PROPERTY_ICON; } } else if (kind == Debugger.Variable.Kind.VARIABLE) { icon = IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Variable); } else if (kind == Debugger.Variable.Kind.PARAMETER) { icon = IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Parameter); } final Value v = myVariable.getValue(); if (v.getType() == Value.XPathType.STRING) { node.setPresentation(icon, v.getType().getName(), "'" + v.getValue() + "'", false); } else { final boolean hasChildren = myVariable.getValue().getValue() instanceof Value.NodeSet; node.setPresentation(icon, v.getType().getName(), String.valueOf(v.getValue()), hasChildren); } } | computePresentation |
18,001 | void (@NotNull XCompositeNode node) { if (myVariable.getValue().getValue() instanceof Value.NodeSet set) { final XValueChildrenList list = new XValueChildrenList(); for (final Value.Node n : set.getNodes()) { list.add(n.myXPath, new NodeValue(n)); } node.addChildren(list, false); } super.computeChildren(node); } | computeChildren |
18,002 | String () { return "$" + myVariable.getName(); } | getEvaluationExpression |
18,003 | void (@NotNull XNavigatable navigatable) { navigatable.setSourcePosition(XsltSourcePosition.create(myVariable)); } | computeSourcePosition |
18,004 | String (String stringValue) { return stringValue.length() < 100 ? stringValue : stringValue.substring(0, 100) + "..."; } | clipValue |
18,005 | void (@NotNull XNavigatable navigatable) { navigatable.setSourcePosition(XsltSourcePosition.create(myNode)); } | computeSourcePosition |
18,006 | void (@NotNull XValueNode node, @NotNull XValuePlace place) { node.setPresentation(null, "node", myNode.myStringValue, false); } | computePresentation |
18,007 | boolean () { return false; } | isCodeFragmentEvaluationSupported |
18,008 | void (@NotNull String expression, @NotNull XEvaluationCallback callback, @Nullable XSourcePosition expressionPosition) { try { final Value eval = myFrame.eval(expression); callback.evaluated(new MyValue(new ExpressionResult(eval))); } catch (VMPausedException ignored) { callback.errorOccurred(XsltDebuggerBundle.message("dialog.message.target.vm.not.responding")); } catch (Debugger.EvaluationException e) { callback.errorOccurred(e.getMessage() != null ? e.getMessage() : e.toString()); } } | evaluate |
18,009 | String () { return null; } | getURI |
18,010 | int () { return -1; } | getLineNumber |
18,011 | boolean () { return false; } | isGlobal |
18,012 | Kind () { return Kind.EXPRESSION; } | getKind |
18,013 | String () { return "result"; } | getName |
18,014 | Value () { return myValue; } | getValue |
18,015 | ContextType () { return XsltContextProvider.TYPE; } | getContextType |
18,016 | XmlElement () { return null; } | getContextElement |
18,017 | boolean () { return true; } | isValid |
18,018 | NamespaceContext () { return null; } | getNamespaceContext |
18,019 | VariableContext () { return new SimpleVariableContext() { @Override public String @NotNull [] getVariablesInScope(XPathElement element) { final int size = myVariables.size(); final ArrayList<String> vars = new ArrayList<>(size); for (Debugger.Variable myVariable : myVariables) { vars.add(myVariable.getName()); } return ArrayUtilRt.toStringArray(vars); } }; } | getVariableContext |
18,020 | Set<QName> (boolean forValidation) { return null; // TODO } | getAttributes |
18,021 | Set<QName> (boolean forValidation) { return null; // TODO } | getElements |
18,022 | BreakpointManager () { return myBreakpointManager; } | getBreakpointManager |
18,023 | void (Debugger client) { myDebuggerSession = XsltDebuggerSession.getInstance(myProcessHandler); myDebuggerSession.addListener(new XsltDebuggerSession.Listener() { @Override public void debuggerSuspended() { final Debugger c = myDebuggerSession.getClient(); getSession().positionReached(new MySuspendContext(myDebuggerSession, c.getCurrentFrame(), c.getSourceFrame())); } @Override public void debuggerResumed() { } @Override public void debuggerStopped() { myBreakpointManager = new BreakpointManagerImpl(); } }); final BreakpointManager mgr = client.getBreakpointManager(); if (myBreakpointManager != mgr) { final List<Breakpoint> breakpoints = myBreakpointManager.getBreakpoints(); for (Breakpoint breakpoint : breakpoints) { final Breakpoint bp = mgr.setBreakpoint(breakpoint.getUri(), breakpoint.getLine()); bp.setEnabled(breakpoint.isEnabled()); bp.setLogMessage(breakpoint.getLogMessage()); bp.setTraceMessage(breakpoint.getTraceMessage()); bp.setCondition(breakpoint.getCondition()); bp.setSuspend(breakpoint.isSuspend()); } myBreakpointManager = mgr; } } | init |
18,024 | void () { final Debugger c = myDebuggerSession.getClient(); getSession().positionReached(new MySuspendContext(myDebuggerSession, c.getCurrentFrame(), c.getSourceFrame())); } | debuggerSuspended |
18,025 | void () { } | debuggerResumed |
18,026 | void () { myBreakpointManager = new BreakpointManagerImpl(); } | debuggerStopped |
18,027 | XsltDebugProcess (ProcessHandler handler) { return handler.getUserData(KEY); } | getInstance |
18,028 | ExecutionConsole () { return myExecutionConsole; } | createConsole |
18,029 | ProcessHandler () { return myProcessHandler; } | doGetProcessHandler |
18,030 | XDebuggerEditorsProvider () { return myEditorsProvider; } | getEditorsProvider |
18,031 | void (@Nullable XSuspendContext context) { myDebuggerSession.stepOver(); } | startStepOver |
18,032 | void (@Nullable XSuspendContext context) { myDebuggerSession.stepInto(); } | startStepInto |
18,033 | void (@Nullable XSuspendContext context) { myDebuggerSession.stepOver(); } | startStepOut |
18,034 | void () { if (myDebuggerSession != null) { myDebuggerSession.stop(); } } | stop |
18,035 | boolean () { if (myDebuggerSession == null) return super.checkCanPerformCommands(); try { return myDebuggerSession.getClient().ping(); } catch (VMPausedException e) { getSession().reportMessage(XsltDebuggerBundle.message("dialog.message.target.vm.not.responding"), MessageType.WARNING); return false; } } | checkCanPerformCommands |
18,036 | void (@Nullable XSuspendContext context) { myDebuggerSession.resume(); } | resume |
18,037 | void () { } | dispose |
18,038 | void (@NotNull XSourcePosition position, @Nullable XSuspendContext context) { final PsiFile psiFile = PsiManager.getInstance(getSession().getProject()).findFile(position.getFile()); assert psiFile != null; if (myDebuggerSession.canRunTo(position)) { myDebuggerSession.runTo(psiFile, position); } else { StatusBar.Info.set(XsltDebuggerBundle.message("status.bar.text.not.valid.position.in.file", psiFile.getName()), psiFile.getProject()); final Debugger c = myDebuggerSession.getClient(); getSession().positionReached(new MySuspendContext(myDebuggerSession, c.getCurrentFrame(), c.getSourceFrame())); } } | runToPosition |
18,039 | XExecutionStack () { return new XsltExecutionStack(XsltDebuggerBundle.message("list.item.xslt.frames"), myStyleFrame, myDebuggerSession); } | getActiveExecutionStack |
18,040 | XExecutionStack () { return new XsltExecutionStack(XsltDebuggerBundle.message("list.item.source.frames"), mySourceFrame, myDebuggerSession); } | getSourceStack |
18,041 | XSourcePosition (Debugger.Locatable location) { final VirtualFile file; try { file = VfsUtil.findFileByURL(new URI(location.getURI()).toURL()); } catch (Exception e) { // TODO log return null; } final int line = location.getLineNumber() - 1; final XSourcePosition position = XDebuggerUtil.getInstance().createPosition(file, line); return line >= 0 && position != null ? new XsltSourcePosition(location, position) : null; } | create |
18,042 | XStackFrame () { return myTopFrame; } | getTopFrame |
18,043 | void (int firstFrameIndex, XStackFrameContainer container) { try { if (myDebuggerSession.getCurrentState() == Debugger.State.SUSPENDED) { Debugger.Frame frame = myTopFrame.getFrame(); final List<XStackFrame> frames = new ArrayList<>(); frames.add(myTopFrame); while (frame != null) { frame = frame.getPrevious(); if (frame != null) { frames.add(new XsltStackFrame(frame, myDebuggerSession)); } } if (firstFrameIndex <= frames.size()) { container.addStackFrames(frames.subList(firstFrameIndex, frames.size()), true); } else { container.addStackFrames(Collections.emptyList(), true); } } } catch (VMPausedException e) { container.errorOccurred(XsltDebuggerBundle.message("dialog.message.target.vm.not.responding")); } } | computeStackFrames |
18,044 | void (boolean b) { myEnabled = b; } | setEnabled |
18,045 | void (String expr) { myCondition = expr; } | setCondition |
18,046 | void (String expr) { myLogMsg = expr; } | setLogMessage |
18,047 | String () { return myTraceMsg; } | getTraceMessage |
18,048 | void (String expr) { myTraceMsg = expr; } | setTraceMessage |
18,049 | boolean () { return mySuspend; } | isSuspend |
18,050 | void (boolean suspend) { mySuspend = suspend; } | setSuspend |
18,051 | String () { return myCondition; } | getCondition |
18,052 | String () { return myLogMsg; } | getLogMessage |
18,053 | String () { return myUri; } | getUri |
18,054 | int () { return myLine; } | getLine |
18,055 | boolean () { return myEnabled; } | isEnabled |
18,056 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final BreakpointImpl that = (BreakpointImpl)o; if (myLine != that.myLine) return false; return myUri.equals(that.myUri); } | equals |
18,057 | int () { int result; result = myUri.hashCode(); result = 31 * result + myLine; return result; } | hashCode |
18,058 | String () { return "Breakpoint{" + "myUri='" + myUri + '\'' + ", myLine=" + myLine + ", myEnabled=" + myEnabled + '}'; } | toString |
18,059 | String () { return name().toLowerCase(Locale.ENGLISH); } | getName |
18,060 | String () { return myName; } | getName |
18,061 | List<Node> () { return myNodes; } | getNodes |
18,062 | String () { return myStringValue; } | toString |
18,063 | String () { return myURI; } | getURI |
18,064 | int () { return myLineNumber; } | getLineNumber |
18,065 | String () { return "Node{" + "myURI='" + myURI + '\'' + ", myLineNumber=" + myLineNumber + ", myXPath='" + myXPath + '\'' + ", myStringValue='" + myStringValue + '\'' + '}'; } | toString |
18,066 | Breakpoint (File file, int line) { return setBreakpoint(file.toURI().toASCIIString(), line); } | setBreakpoint |
18,067 | void (Breakpoint bp) { removeBreakpoint(bp.getUri(), bp.getLine()); } | removeBreakpoint |
18,068 | String (String uri) { // hmm, this code sucks, but seems to be a good guess to ensure the same format of // strings (file:/C:/... vs, file:///C:/...) on both sides... try { try { uri = uri.replaceAll(" ", "%20"); return new File(new URI(uri)).toURI().toASCIIString(); } catch (IllegalArgumentException e) { return new URI(uri).normalize().toASCIIString(); } } catch (URISyntaxException e) { System.err.println("Failed to parse <" + uri + ">: " + e); return uri; } } | normalizeUri |
18,069 | String () { return myPrefix != null && myPrefix.length() > 0 ? myPrefix + ":" + myLocalName : myLocalName; } | getQName |
18,070 | int () { return myType; } | getType |
18,071 | QName () { return myQName; } | getQName |
18,072 | String () { return myValue; } | getValue |
18,073 | void (String uri, int lineNumber) { myURI = uri; myLineNumber = lineNumber; } | setLocation |
18,074 | int () { return myLineNumber; } | getLineNumber |
18,075 | String () { return myURI; } | getURI |
18,076 | Serializable () { return myValue; } | getValue |
18,077 | Type () { return myType; } | getType |
18,078 | int () { return myFrame.getLineNumber(); } | getLineNumber |
18,079 | String () { return myFrame.getURI(); } | getURI |
18,080 | String () { return ((Debugger.SourceFrame)myFrame).getXPath(); } | getXPath |
18,081 | String () { return ((Debugger.StyleFrame)myFrame).getInstruction(); } | getInstruction |
18,082 | String () { return myBreakpoint.getCondition(); } | getCondition |
18,083 | String () { return myBreakpoint.getLogMessage(); } | getLogMessage |
18,084 | void (String expr) { myBreakpoint.setCondition(expr); } | setCondition |
18,085 | void (boolean enabled) { myBreakpoint.setEnabled(enabled); } | setEnabled |
18,086 | void (String expr) { myBreakpoint.setLogMessage(expr); } | setLogMessage |
18,087 | boolean () { return myBreakpoint.isSuspend(); } | isSuspend |
18,088 | void (boolean suspend) { myBreakpoint.setSuspend(suspend); } | setSuspend |
18,089 | String () { return myVariable.getURI(); } | getURI |
18,090 | int () { return myVariable.getLineNumber(); } | getLineNumber |
18,091 | boolean () { return myVariable.isGlobal(); } | isGlobal |
18,092 | String () { return myVariable.getName(); } | getName |
18,093 | Value () { final Value value = myVariable.getValue(); return new ValueImpl(value.getValue(), value.getType()); } | getValue |
18,094 | void (String uri, int line) { myManager.removeBreakpoint(uri, line); } | removeBreakpoint |
18,095 | boolean () { try { return myRemote.ping(); } catch (RemoteException e) { return false; } } | ping |
18,096 | State () { try { return myRemote.getState(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getState |
18,097 | void (boolean force) { try { myRemote.stop(force); } catch (RemoteException e) { throw handleRemoteException(e); } } | stop |
18,098 | RuntimeException (RemoteException e) { Throwable t = e.getCause(); while (t != null) { if (t instanceof SocketException || t instanceof EOFException) { throw new DebuggerStoppedException(); } t = t.getCause(); } return e.getCause() instanceof RuntimeException ? (RuntimeException)e.getCause() : new RuntimeException(e); } | handleRemoteException |
18,099 | boolean () { try { return myRemote.waitForDebuggee(); } catch (RemoteException e) { throw handleRemoteException(e); } } | waitForDebuggee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.