Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
294,400
|
void (MouseEvent e) { onClick.run(); releaseMouseListener(); }
|
mouseClicked
|
294,401
|
void (MouseEvent e) { updateTable(true); }
|
mouseEntered
|
294,402
|
void (MouseEvent e) { updateTable(false); }
|
mouseExited
|
294,403
|
void () { ThreadingAssertions.assertEventDispatchThread(); if (isInClickableMode()) { removeMouseListener(myMouseListener); myMouseListener = null; setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); setBackground(JBColor.background()); } }
|
releaseMouseListener
|
294,404
|
void (boolean value) { setPaintBusy(value); }
|
setBusy
|
294,405
|
void () { String newPattern = "*" + myFilteringPattern; if (myMatcher.getPattern().equals(newPattern)) { return; } myMatcher = NameUtil.buildMatcher(newPattern).build(); fireTableDataChanged(); if (getSelectedClass() == null && getRowCount() > 0) { getSelectionModel().setSelectionInterval(0, 0); } }
|
run
|
294,406
|
void (@NotNull List<? extends TypeInfo> classes) { myIsShowCounts = false; final LinkedHashMap<TypeInfo, Long> class2Count = new LinkedHashMap<>(); classes.forEach(x -> class2Count.put(x, 0L)); updateCountsInternal(class2Count); }
|
updateClassesOnly
|
294,407
|
void (@NotNull Map<TypeInfo, Long> class2Count) { myIsShowCounts = true; updateCountsInternal(class2Count); }
|
updateContent
|
294,408
|
void () { myModel.show(); }
|
showContent
|
294,409
|
void (@NotNull Map<TypeInfo, Long> class2Count) { releaseMouseListener(); getEmptyText().setText(StatusText.getDefaultEmptyText()); final TypeInfo selectedClass = myModel.getSelectedClassBeforeHide(); int newSelectedIndex = -1; final boolean isInitialized = !myItems.isEmpty(); myItems = List.copyOf(class2Count.keySet()); int i = 0; for (final TypeInfo ref : class2Count.keySet()) { if (ref.equals(selectedClass)) { newSelectedIndex = i; } final DiffValue oldValue = isInitialized && !myCounts.containsKey(ref) ? new DiffValue(0, 0) : myCounts.getOrDefault(ref, UNKNOWN_VALUE); myCounts.put(ref, oldValue.update(class2Count.get(ref))); i++; } showContent(); if (newSelectedIndex != -1 && !myModel.isHidden()) { final int ix = convertRowIndexToView(newSelectedIndex); changeSelection(ix, DiffViewTableModel.CLASSNAME_COLUMN_INDEX, false, false); } fireTableDataChanged(); }
|
updateCountsInternal
|
294,410
|
Object (@NotNull @NonNls String dataId) { if (SELECTED_CLASS_KEY.is(dataId)) { return getSelectedClass(); } if (REF_COUNT_PROVIDER_KEY.is(dataId)) { return myCountProvider; } return myParent.getData(dataId); }
|
getData
|
294,411
|
void (@NotNull @NlsContexts.StatusText String emptyText) { clearSelection(); releaseMouseListener(); getEmptyText().setText(emptyText); myItems = Collections.emptyList(); myCounts.clear(); myModel.mySelectedClassWhenHidden = null; fireTableDataChanged(); }
|
clean
|
294,412
|
void () { ApplicationManager.getApplication().invokeLater(() -> clean("")); }
|
dispose
|
294,413
|
boolean () { if (ApplicationManager.getApplication().isUnitTestMode() || ApplicationManager.getApplication().isHeadlessEnvironment()) return false; try { return getMousePosition() != null; } catch (NullPointerException e) { // A workaround for https://bugs.openjdk.org/browse/JDK-6840067 return false; } }
|
isUnderMouseCursor
|
294,414
|
TrackingType (int row) { TypeInfo ref = (TypeInfo)getValueAt(row, convertColumnIndexToView(DiffViewTableModel.CLASSNAME_COLUMN_INDEX)); return myInstancesTracker.getTrackingType(ref.name()); }
|
getTrackingType
|
294,415
|
void () { myModel.fireTableDataChanged(); }
|
fireTableDataChanged
|
294,416
|
int () { return myIsWithContent ? myItems.size() : 0; }
|
getRowCount
|
294,417
|
Object (int ix) { return getTypeInfoAt(ix); }
|
getValue
|
294,418
|
Object (int ix) { return myCounts.getOrDefault(getTypeInfoAt(ix), UNKNOWN_VALUE).myCurrentCount; }
|
getValue
|
294,419
|
Object (int ix) { return myCounts.getOrDefault(getTypeInfoAt(ix), UNKNOWN_VALUE); }
|
getValue
|
294,420
|
TypeInfo (int ix) { return myItems.get(ix); }
|
getTypeInfoAt
|
294,421
|
int (@NotNull DiffValue o) { return Long.compare(diff(), o.diff()); }
|
compareTo
|
294,422
|
void (@NotNull JTable table, @Nullable Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (hasFocus) { setBorder(new EmptyBorder(getBorder().getBorderInsets(this))); } if (value != null) { addText(value, isSelected, row); } }
|
customizeCellRenderer
|
294,423
|
void (@NotNull Object value, boolean isSelected, int row) { String presentation = ((TypeInfo)value).name(); append(" "); if (isSelected) { FList<TextRange> textRanges = myMatcher.matchingFragments(presentation); if (textRanges != null) { SimpleTextAttributes attributes = new SimpleTextAttributes(getBackground(), getForeground(), null, SimpleTextAttributes.STYLE_SEARCH_MATCH); SpeedSearchUtil.appendColoredFragments(this, presentation, textRanges, SimpleTextAttributes.REGULAR_ATTRIBUTES, attributes); } } else { append(String.format("%s", presentation), SimpleTextAttributes.REGULAR_ATTRIBUTES); } }
|
addText
|
294,424
|
void (@NotNull Object value, boolean isSelected, int row) { if (myIsShowCounts) { setTextAlign(SwingConstants.RIGHT); appendText(value, row); } }
|
addText
|
294,425
|
void () { ApplicationManager.getApplication().invokeLater(() -> close(OK_EXIT_CODE)); }
|
sessionStopped
|
294,426
|
void (@Nullable String message) { setTitle(message == null ? XDebuggerBundle.message("memory.view.instances.dialog.title", className) : XDebuggerBundle.message("memory.view.instances.dialog.title.warning", className, message)); }
|
addWarningMessage
|
294,427
|
String () { return "#org.jetbrains.debugger.memory.view.InstancesWindow"; }
|
getDimensionServiceKey
|
294,428
|
void (@NotNull VirtualFile file, @NotNull Document document) { myExecutionPointManager.updateExecutionPosition(file, true); }
|
fileContentLoaded
|
294,429
|
void (@NotNull VirtualFile file, @NotNull Document document) { myExecutionPointManager.updateExecutionPosition(file, true); }
|
fileContentReloaded
|
294,430
|
void (@NotNull XBreakpoint<?> breakpoint) { updateActiveNonLineBreakpointGutterIconRenderer(breakpoint); }
|
breakpointChanged
|
294,431
|
void (@NotNull XBreakpoint<?> breakpoint) { updateActiveNonLineBreakpointGutterIconRenderer(breakpoint); }
|
breakpointRemoved
|
294,432
|
void (@NotNull XBreakpoint<?> breakpoint) { XDebugSessionImpl session = getCurrentSession(); if (session != null && breakpoint == session.getActiveNonLineBreakpoint()) { session.updateExecutionPointGutterIconRenderer(); } }
|
updateActiveNonLineBreakpointGutterIconRenderer
|
294,433
|
void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { if (descriptor != null && ToolWindowId.DEBUG.equals(executor.getToolWindowId())) { XDebugSessionImpl session = mySessions.get(descriptor.getProcessHandler()); if (session != null) { session.activateSession(true); } else { setCurrentSession(null); } } }
|
contentSelected
|
294,434
|
void (@Nullable RunContentDescriptor descriptor, @NotNull Executor executor) { if (descriptor != null && ToolWindowId.DEBUG.equals(executor.getToolWindowId())) { mySessions.remove(descriptor.getProcessHandler()); } }
|
contentRemoved
|
294,435
|
void (@NotNull IdeaPluginDescriptor pluginDescriptor) { XDebugSession[] sessions = getDebugSessions(); for (XDebugSession session : sessions) { XDebugProcess process = session.getDebugProcess(); if (process.dependsOnPlugin(pluginDescriptor)) { throw new CannotUnloadPluginException("Plugin is not unload-safe because of the started debug session"); } } }
|
checkUnloadPlugin
|
294,436
|
void () { }
|
dispose
|
294,437
|
void () { myBreakpointManager.init(); }
|
initializeComponent
|
294,438
|
XBreakpointManagerImpl () { return myBreakpointManager; }
|
getBreakpointManager
|
294,439
|
XDebuggerWatchesManager () { return myWatchesManager; }
|
getWatchesManager
|
294,440
|
XDebuggerPinToTopManager () { return myPinToTopManager; }
|
getPinToTopManager
|
294,441
|
XDebuggerExecutionPointManager () { return myExecutionPointManager; }
|
getExecutionPointManager
|
294,442
|
Project () { return myProject; }
|
getProject
|
294,443
|
void () { ApplicationManager.getApplication().invokeLater(() -> { Editor editor = FileEditorManager.getInstance(myProject).getSelectedTextEditor(); if (editor == null) { return; } reshowInlayToolbar(editor); }); }
|
sessionPaused
|
294,444
|
void (@Nullable XDebugSession previousSession, @Nullable XDebugSession currentSession) { myBreakpointManager.getLineBreakpointManager().queueAllBreakpointsUpdate(); ApplicationManager.getApplication().invokeLater(() -> { ValueLookupManager.getInstance(myProject).hideHint(); }, myProject.getDisposed()); if (!myProject.isDisposed()) { myProject.getMessageBus().syncPublisher(TOPIC).currentSessionChanged(previousSession, currentSession); if (currentSession != null && previousSession != null) { XDebuggerActionsCollector.sessionChanged.log(); } } }
|
onActiveSessionChanged
|
294,445
|
XDebugSession (@NotNull ExecutionConsole executionConsole) { synchronized (mySessions) { for (final XDebugSessionImpl debuggerSession : mySessions.values()) { XDebugSessionTab sessionTab = debuggerSession.getSessionTab(); if (sessionTab != null) { RunContentDescriptor contentDescriptor = sessionTab.getRunContentDescriptor(); if (contentDescriptor != null && executionConsole == contentDescriptor.getExecutionConsole()) { return debuggerSession; } } } } return null; }
|
getDebugSession
|
294,446
|
XDebugSessionImpl () { return myActiveSession.get(); }
|
getCurrentSession
|
294,447
|
XDebuggerState () { XDebuggerState state = myState; myBreakpointManager.saveState(state.getBreakpointManagerState()); myWatchesManager.saveState(state.getWatchesManagerState()); myPinToTopManager.saveState(state.getPinToTopManagerState()); return state; }
|
getState
|
294,448
|
void (@NotNull XDebuggerState state) { myState = state; myBreakpointManager.loadState(state.getBreakpointManagerState()); myWatchesManager.loadState(state.getWatchesManagerState()); myPinToTopManager.loadState(state.getPinToTopManagerState()); }
|
loadState
|
294,449
|
void () { myBreakpointManager.noStateLoaded(); }
|
noStateLoaded
|
294,450
|
NotificationGroup () { return NotificationGroupManager.getInstance().getNotificationGroup("Debugger messages"); }
|
getNotificationGroup
|
294,451
|
void (@NotNull EditorMouseEvent e) { if (!ExperimentalUI.isNewUI() || !ShowBreakpointsOverLineNumbersAction.isSelected()) return; Editor editor = e.getEditor(); if (editor.getProject() != myProject || editor.getEditorKind() != EditorKind.MAIN_EDITOR) return; EditorGutter editorGutter = editor.getGutter(); if (editorGutter instanceof EditorGutterComponentEx gutter) { if (e.getArea() == EditorMouseEventArea.LINE_NUMBERS_AREA && EditorUtil.isBreakPointsOnLineNumbers()) { int line = EditorUtil.yToLogicalLineNoCustomRenderers(editor, e.getMouseEvent().getY()); Document document = editor.getDocument(); if (DocumentUtil.isValidLine(line, document)) { XSourcePositionImpl position = XSourcePositionImpl.create(FileDocumentManager.getInstance().getFile(document), line); if (position != null) { if (myLastPosition == null || !myLastPosition.getFile().equals(position.getFile()) || myLastPosition.getLine() != line) { // drop an icon first and schedule the available types calculation clear(gutter); myLastPosition = position; lineChangeHandler.lineChanged(editor, position); } return; } } } if (myLastIcon != null) { clear(gutter); myLastPosition = null; lineChangeHandler.exitedGutter(); } } }
|
mouseMoved
|
294,452
|
void (EditorGutterComponentEx gutter) { updateActiveLineNumberIcon(gutter, null, null); myLastIcon = null; }
|
clear
|
294,453
|
void (@NotNull EditorGutterComponentEx gutter, @Nullable Icon icon, @Nullable Integer line) { if (gutter.getClientProperty("editor.gutter.context.menu") != null) return; boolean requireRepaint = false; if (gutter.getClientProperty("line.number.hover.icon") != icon) { gutter.putClientProperty("line.number.hover.icon", icon); gutter.putClientProperty("line.number.hover.icon.context.menu", icon == null ? null : ActionManager.getInstance().getAction("XDebugger.Hover.Breakpoint.Context.Menu")); if (icon != null) { gutter.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); // Editor updates cursor on MouseMoved, set it explicitly } requireRepaint = true; } if (!Objects.equals(gutter.getClientProperty("active.line.number"), line)) { gutter.putClientProperty("active.line.number", line); requireRepaint = true; } if (requireRepaint) { gutter.repaint(); } }
|
updateActiveLineNumberIcon
|
294,454
|
void (@NotNull EditorMouseEvent e) { if (!isEnabled(e)) { removeHighlighter(e); return; } removeHighlighter(e); int lineNumber = getLineNumber(e); if (lineNumber < 0) { return; } Editor editor = e.getEditor(); myCurrentHighlighter = editor.getMarkupModel().addLineHighlighter(DebuggerColors.NOT_TOP_FRAME_ATTRIBUTES, lineNumber, DebuggerColors.EXECUTION_LINE_HIGHLIGHTERLAYER); HintHint hint = new HintHint(e.getMouseEvent()).setAwtTooltip(true).setPreferredPosition(Balloon.Position.above).setStatus(HintHint.Status.Info); String text = UIUtil.removeMnemonic(ActionsBundle.actionText(XDebuggerActions.RUN_TO_CURSOR)); TooltipController.getInstance() .showTooltipByMouseMove(editor, new RelativePoint(e.getMouseEvent()), new LineTooltipRenderer(text, new Object[]{text}), false, RUN_TO_CURSOR_TOOLTIP_GROUP, hint); IdeGlassPaneUtil.find(e.getMouseEvent().getComponent()).setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR), this); }
|
mouseMoved
|
294,455
|
void (@NotNull EditorMouseEvent e) { removeHighlighter(e); }
|
mouseExited
|
294,456
|
void (@NotNull EditorMouseEvent e) { if (myCurrentHighlighter != null) { myCurrentHighlighter.dispose(); TooltipController.getInstance().cancelTooltip(RUN_TO_CURSOR_TOOLTIP_GROUP, e.getMouseEvent(), true); IdeGlassPaneUtil.find(e.getMouseEvent().getComponent()).setCursor(null, this); myCurrentHighlighter = null; } }
|
removeHighlighter
|
294,457
|
void (@NotNull EditorMouseEvent e) { if (e.getMouseEvent().getButton() == MouseEvent.BUTTON1 && isEnabled(e)) { int lineNumber = getLineNumber(e); XDebugSessionImpl session = getCurrentSession(); if (session != null && lineNumber >= 0) { XSourcePositionImpl position = XSourcePositionImpl.create(e.getEditor().getVirtualFile(), lineNumber); if (position != null) { e.consume(); AnAction action = ActionManager.getInstance().getAction(IdeActions.ACTION_RUN_TO_CURSOR); if (action == null) throw new AssertionError("'" + IdeActions.ACTION_RUN_TO_CURSOR + "' action not found"); DataContext dataContext = DataManager.getInstance().getDataContext(e.getMouseEvent().getComponent()); AnActionEvent event = AnActionEvent.createFromAnAction(action, e.getMouseEvent(), ActionPlaces.EDITOR_GUTTER, dataContext); ActionUtil.performDumbAwareWithCallbacks(action, event, () -> session.runToPosition(position, false)); } } } }
|
mousePressed
|
294,458
|
int (@NotNull EditorMouseEvent event) { Editor editor = event.getEditor(); if (event.getVisualPosition().line >= ((EditorImpl)editor).getVisibleLineCount()) { return -1; } int lineStartOffset = EditorUtil.getNotFoldedLineStartOffset(editor, event.getOffset()); int documentLine = editor.getDocument().getLineNumber(lineStartOffset); return documentLine < editor.getDocument().getLineCount() ? documentLine : -1; }
|
getLineNumber
|
294,459
|
List<XExpression> (String confName) { return ContainerUtil.notNullize(watches.get(confName)); }
|
getWatches
|
294,460
|
void (@NotNull String configurationName, @NotNull List<XExpression> expressions) { if (expressions.isEmpty()) { watches.remove(configurationName); } else { watches.put(configurationName, expressions); } }
|
setWatches
|
294,461
|
List<InlineWatch> () { return inlineWatches.values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); }
|
getInlineWatches
|
294,462
|
WatchesManagerState (@NotNull WatchesManagerState state) { List<ConfigurationState> expressions = state.getExpressions(); expressions.clear(); watches.forEach((key, value) -> expressions.add(new ConfigurationState(key, value))); List<InlineWatchState> inlineExpressionStates = state.getInlineExpressionStates(); inlineExpressionStates.clear(); inlineWatches.values().stream() .flatMap(l -> l.stream()) .forEach((value) -> { inlineExpressionStates.add(new InlineWatchState(value.getExpression(), value.getLine(), value.getPosition().getFile().getUrl())); }); return state; }
|
saveState
|
294,463
|
void () { watches.clear(); inlineWatches.clear(); }
|
clearContext
|
294,464
|
void (@NotNull WatchesManagerState state) { clearContext(); for (ConfigurationState configurationState : state.getExpressions()) { List<WatchState> expressionStates = configurationState.getExpressionStates(); if (!ContainerUtil.isEmpty(expressionStates)) { watches.put(configurationState.getName(), ContainerUtil.mapNotNull(expressionStates, XExpressionState::toXExpression)); } } VirtualFileManager fileManager = VirtualFileManager.getInstance(); XDebuggerUtil debuggerUtil = XDebuggerUtil.getInstance(); for (InlineWatchState inlineWatchState : state.getInlineExpressionStates()) { if (inlineWatchState == null || inlineWatchState.getFileUrl() == null || inlineWatchState.getWatchState() == null) continue; VirtualFile file = fileManager.findFileByUrl(inlineWatchState.getFileUrl()); XSourcePosition position = debuggerUtil.createPosition(file, inlineWatchState.getLine()); XExpression expression = inlineWatchState.getWatchState().toXExpression(); if (position == null || expression == null) continue; InlineWatch watch = new InlineWatch(expression, position); inlineWatches.computeIfAbsent(inlineWatchState.getFileUrl(), (k) -> new HashSet<>()).add(watch); } ApplicationManager.getApplication().invokeLater(() -> { inlineWatches.values().stream().flatMap(set -> set.stream()).forEach(InlineWatch::setMarker); }, ModalityState.nonModal(), myProject.getDisposed()); }
|
loadState
|
294,465
|
void (@NotNull XSourcePosition presentationPosition, @NotNull Editor mainEditor, @NotNull XDebugSession session, @Nullable XExpression expression) { InlineWatchInplaceEditor inplaceEditor = new InlineWatchInplaceEditor(presentationPosition, session, mainEditor, expression); inplaceEditor.show(); }
|
showInplaceEditor
|
294,466
|
void (List<InlineWatch> removed, XInlineWatchesView watchesView) { inlineWatches.values().forEach(set -> removed.forEach(set::remove)); getWatchesViews().filter(v -> v != watchesView).forEach(view -> view.removeInlineWatches(removed)); }
|
inlineWatchesRemoved
|
294,467
|
void (@NotNull final DocumentEvent e) { final Document document = e.getDocument(); Collection<InlineWatch> inlines = getDocumentInlines(document); if (!inlines.isEmpty()) { myInlinesUpdateQueue.queue(new Update(document) { @Override public void run() { updateInlines(document); } }); } }
|
documentChanged
|
294,468
|
void () { updateInlines(document); }
|
run
|
294,469
|
void (@NotNull XExpression expression, int index, XSourcePosition position, boolean navigateToWatchNode) { ThreadingAssertions.assertEventDispatchThread(); InlineWatch watch = new InlineWatch(expression, position); watch.setMarker(); String fileUrl = position.getFile().getUrl(); inlineWatches.computeIfAbsent(fileUrl, (k) -> new HashSet<>()).add(watch); getWatchesViews().forEach(view -> view.addInlineWatchExpression(watch, index, navigateToWatchNode)); }
|
addInlineWatchExpression
|
294,470
|
void (@NotNull Document document) { @NotNull Collection<InlineWatch> inlines = getDocumentInlines(document); if (inlines.isEmpty()) return; Set<InlineWatch> toRemove = new HashSet<>(); for (InlineWatch inlineWatch : inlines) { inlineWatch.updatePosition(); if (!inlineWatch.isValid()) { toRemove.add(inlineWatch); } } removeInlines(toRemove); }
|
updateInlines
|
294,471
|
void (Collection<InlineWatch> remove) { for (InlineWatch watch : remove) { inlineWatches.get(watch.getPosition().getFile().getUrl()).remove(watch); } getWatchesViews().forEach(view -> view.removeInlineWatches(remove)); }
|
removeInlines
|
294,472
|
Stream<XInlineWatchesView> () { return Arrays.stream(XDebuggerManager.getInstance(myProject).getDebugSessions()) .map(s -> ((XDebugSessionImpl)s).getSessionTab()) .filter(t -> t != null && t.getWatchesView() instanceof XInlineWatchesView) .map(t -> (XInlineWatchesView)t.getWatchesView()); }
|
getWatchesViews
|
294,473
|
Collection<InlineWatch> (Document document) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null) { Set<InlineWatch> inlineWatches = this.inlineWatches.get(file.getUrl()); if (inlineWatches != null) { return new ArrayList<>(inlineWatches); } } return Collections.emptyList(); }
|
getDocumentInlines
|
294,474
|
VirtualFile () { return myFile; }
|
getFile
|
294,475
|
XSourcePositionImpl (@Nullable VirtualFile file, final int offset) { if (file == null) return null; return new XSourcePositionImpl(file) { private final NotNullLazyValue<Integer> myLine = NotNullLazyValue.atomicLazy(() -> { return ReadAction.compute(() -> { Document document = FileDocumentManager.getInstance().getDocument(file); if (document == null) { return -1; } return DocumentUtil.isValidOffset(offset, document) ? document.getLineNumber(offset) : -1; }); }); @Override public int getLine() { return myLine.getValue(); } @Override public int getOffset() { return offset; } }; }
|
createByOffset
|
294,476
|
int () { return myLine.getValue(); }
|
getLine
|
294,477
|
int () { return offset; }
|
getOffset
|
294,478
|
XSourcePositionImpl (@Nullable PsiElement element) { if (element == null) return null; PsiFile psiFile = element.getContainingFile(); if (psiFile == null) return null; final VirtualFile file = psiFile.getVirtualFile(); if (file == null) return null; final SmartPsiElementPointer<PsiElement> pointer = SmartPointerManager.getInstance(element.getProject()).createSmartPsiElementPointer(element); return new XSourcePositionImpl(file) { private final NotNullLazyValue<XSourcePosition> myDelegate = NotNullLazyValue.atomicLazy(() -> { return ReadAction.compute(() -> { PsiElement elem = pointer.getElement(); return XSourcePositionImpl.createByOffset(pointer.getVirtualFile(), elem != null ? elem.getTextOffset() : -1); }); }); @Override public int getLine() { return myDelegate.getValue().getLine(); } @Override public int getOffset() { return myDelegate.getValue().getOffset(); } @NotNull @Override public Navigatable createNavigatable(@NotNull Project project) { // no need to create delegate here, it may be expensive if (myDelegate.isComputed()) { return myDelegate.getValue().createNavigatable(project); } PsiElement elem = pointer.getElement(); if (elem instanceof Navigatable) { return ((Navigatable)elem); } return NonNavigatable.INSTANCE; } }; }
|
createByElement
|
294,479
|
int () { return myDelegate.getValue().getLine(); }
|
getLine
|
294,480
|
int () { return myDelegate.getValue().getOffset(); }
|
getOffset
|
294,481
|
Navigatable (@NotNull Project project) { // no need to create delegate here, it may be expensive if (myDelegate.isComputed()) { return myDelegate.getValue().createNavigatable(project); } PsiElement elem = pointer.getElement(); if (elem instanceof Navigatable) { return ((Navigatable)elem); } return NonNavigatable.INSTANCE; }
|
createNavigatable
|
294,482
|
XSourcePositionImpl (@Nullable VirtualFile file, int line) { return file == null ? null : create(file, line, 0); }
|
create
|
294,483
|
XSourcePositionImpl (@Nullable VirtualFile file, final int line, final int column) { if (file == null) { return null; } return new XSourcePositionImpl(file) { private final NotNullLazyValue<Integer> myOffset = NotNullLazyValue.atomicLazy(() -> { return ReadAction.compute(() -> { int offset; if (file instanceof LightVirtualFile || file instanceof HttpVirtualFile) { return -1; } else { Document document = FileDocumentManager.getInstance().getDocument(file); if (document == null) { return -1; } int l = Math.max(0, line); int c = Math.max(0, column); offset = l < document.getLineCount() ? document.getLineStartOffset(l) + c : -1; if (offset >= document.getTextLength()) { offset = document.getTextLength() - 1; } } return offset; }); }); @Override public int getLine() { return line; } @Override public int getOffset() { return myOffset.getValue(); } }; }
|
create
|
294,484
|
int () { return line; }
|
getLine
|
294,485
|
int () { return myOffset.getValue(); }
|
getOffset
|
294,486
|
Navigatable (@NotNull Project project) { return XDebuggerUtilImpl.createNavigatable(project, this); }
|
createNavigatable
|
294,487
|
String () { return "XSourcePositionImpl[" + myFile + ":" + getLine() + "(" + getOffset() + ")]"; }
|
toString
|
294,488
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOver(false); }
|
perform
|
294,489
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOut(); }
|
perform
|
294,490
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.stepOver(true); }
|
perform
|
294,491
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.forceStepInto(); }
|
perform
|
294,492
|
boolean (@NotNull final XDebugSession session, final DataContext dataContext) { return session.isPaused(); }
|
isEnabled
|
294,493
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.resume(); }
|
perform
|
294,494
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.showExecutionPoint(); }
|
perform
|
294,495
|
DebuggerActionHandler () { return myStepOverHandler; }
|
getStepOverHandler
|
294,496
|
DebuggerActionHandler () { return myStepIntoHandler; }
|
getStepIntoHandler
|
294,497
|
DebuggerActionHandler () { return mySmartStepIntoHandler; }
|
getSmartStepIntoHandler
|
294,498
|
DebuggerActionHandler () { return myStepOutHandler; }
|
getStepOutHandler
|
294,499
|
DebuggerActionHandler () { return myForceStepOverHandler; }
|
getForceStepOverHandler
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.