Unnamed: 0
int64 0
305k
| body
stringlengths 7
52.9k
| name
stringlengths 1
185
|
|---|---|---|
295,200
|
void () { onAnyEvent(); }
|
sessionStopped
|
295,201
|
void () { onAnyEvent(); }
|
stackFrameChanged
|
295,202
|
void () { onAnyEvent(); }
|
settingsChanged
|
295,203
|
boolean (Editor editor) { Hint hint = editor.getUserData(SMART_STEP_HINT_DATA); return hint == null || !hint.isVisible(); }
|
shouldShowElementDescription
|
295,204
|
VariantInfo () { int currentIndex = myVariants.indexOf(myCurrentVariant); return myVariants.get(currentIndex > 0 ? currentIndex - 1 : myVariants.size() - 1); }
|
getPreviousVariant
|
295,205
|
VariantInfo () { int currentIndex = myVariants.indexOf(myCurrentVariant); return myVariants.get(currentIndex < myVariants.size() - 1 ? currentIndex + 1 : 0); }
|
getNextVariant
|
295,206
|
void (TextAttributesKey attributesKey) { int index = myVariants.indexOf(myCurrentVariant); if (index != -1) { myHighlighters.get(index).setTextAttributesKey(attributesKey); } }
|
setCurrentVariantHighlighterAttributes
|
295,207
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) { SmartStepData stepData = editor.getUserData(SMART_STEP_INPLACE_DATA); if (stepData != null) { myPerform(editor, caret, dataContext, stepData); } else { myOriginalHandler.execute(editor, caret, dataContext); } }
|
doExecute
|
295,208
|
boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { return editor.getUserData(SMART_STEP_INPLACE_DATA) != null || myOriginalHandler.isEnabled(editor, caret, dataContext); }
|
isEnabledForCaret
|
295,209
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { stepData.selectNext(SmartStepData.Direction.UP); }
|
myPerform
|
295,210
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { stepData.selectNext(SmartStepData.Direction.DOWN); }
|
myPerform
|
295,211
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { stepData.selectNext(SmartStepData.Direction.LEFT); }
|
myPerform
|
295,212
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { stepData.selectNext(SmartStepData.Direction.RIGHT); }
|
myPerform
|
295,213
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { editor.putUserData(SMART_STEP_INPLACE_DATA, null); if (myOriginalHandler.isEnabled(editor, caret, dataContext)) { myOriginalHandler.execute(editor, caret, dataContext); } }
|
myPerform
|
295,214
|
void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext, SmartStepData stepData) { stepData.stepInto(stepData.myCurrentVariant); }
|
myPerform
|
295,215
|
void (@NotNull final XDebugSession session, DataContext dataContext) { final XDebuggerEditorsProvider editorsProvider = session.getDebugProcess().getEditorsProvider(); final XStackFrame stackFrame = session.getCurrentStackFrame(); final XDebuggerEvaluator evaluator = session.getDebugProcess().getEvaluator(); if (evaluator == null) { return; } // replace data context, because we need to have it for the focused component, not the target component (if from the toolbar) Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner(); if (focusOwner == null) { // maybe this is in the toolbar menu - use getMostRecentFocusOwner Window window = ComponentUtil.getWindow(dataContext.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT)); if (window != null) { focusOwner = window.getMostRecentFocusOwner(); } } if (focusOwner != null) { dataContext = DataManager.getInstance().getDataContext(focusOwner); } final VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataContext); XValueNodeImpl node = XDebuggerTreeActionBase.getSelectedNode(dataContext); getSelectedTextAsync(evaluator, dataContext) .onSuccess(pair -> { Promise<XExpression> expressionPromise = Promises.resolvedPromise(null); if (pair.first != null) { expressionPromise = Promises.resolvedPromise(XExpressionImpl.fromText(pair.first, pair.second)); } else if (node != null) { expressionPromise = node.calculateEvaluationExpression(); } expressionPromise.onSuccess( expression -> AppUIUtil.invokeOnEdt(() -> showDialog(session, file, editorsProvider, stackFrame, evaluator, expression))); }); }
|
perform
|
295,216
|
void (@NotNull XDebugSession session, VirtualFile file, XDebuggerEditorsProvider editorsProvider, XStackFrame stackFrame, XDebuggerEvaluator evaluator, @Nullable XExpression expression) { if (expression == null) { expression = XExpressionImpl.EMPTY_EXPRESSION; } if (expression.getLanguage() == null) { Language language = null; if (stackFrame != null) { XSourcePosition position = stackFrame.getSourcePosition(); if (position != null) { language = LanguageUtil.getFileLanguage(position.getFile()); } } if (language == null && file != null) { language = LanguageUtil.getFileTypeLanguage(file.getFileType()); } expression = new XExpressionImpl(expression.getExpression(), language, expression.getCustomInfo(), expression.getMode()); } XSourcePosition position = stackFrame == null ? null : stackFrame.getSourcePosition(); new XDebuggerEvaluationDialog(session, editorsProvider, expression, position, evaluator.isCodeFragmentEvaluationSupported()).show(); }
|
showDialog
|
295,217
|
Promise<String> (@Nullable XDebuggerEvaluator evaluator, @Nullable Project project, @NotNull Editor editor) { if (project == null || evaluator == null) { return Promises.resolvedPromise(null); } Document document = editor.getDocument(); Promise<ExpressionInfo> expressionInfoPromise = evaluator.getExpressionInfoAtOffsetAsync(project, document, editor.getCaretModel().getOffset(), true); return expressionInfoPromise.then(expressionInfo -> getExpressionText(expressionInfo, document)); }
|
getExpressionText
|
295,218
|
String (@Nullable ExpressionInfo expressionInfo, @NotNull Document document) { if (expressionInfo == null) { return null; } String text = expressionInfo.getExpressionText(); return text == null ? document.getText(expressionInfo.getTextRange()) : text; }
|
getExpressionText
|
295,219
|
String (@Nullable ExpressionInfo expressionInfo, @NotNull Document document) { if (expressionInfo == null) { return null; } String text = expressionInfo.getDisplayText(); return text == null ? document.getText(expressionInfo.getTextRange()) : text; }
|
getDisplayText
|
295,220
|
boolean (final @NotNull XDebugSession session, final DataContext dataContext) { return session.getDebugProcess().getEvaluator() != null; }
|
isEnabled
|
295,221
|
boolean (@NotNull XDebugSession session, DataContext dataContext) { final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); return editor != null && Registry.is("debugger.watches.inline.enabled"); }
|
isEnabled
|
295,222
|
void (@NotNull XDebugSession session, DataContext dataContext) { final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (editor == null) return; getTextToEvaluate(dataContext, session) .onSuccess(text -> { UIUtil.invokeLaterIfNeeded(() -> { XDebuggerWatchesManager watchesManager = ((XDebuggerManagerImpl)XDebuggerManager.getInstance(session.getProject())).getWatchesManager(); XSourcePosition caretPosition = XDebuggerUtilImpl.getCaretPosition(session.getProject(), dataContext); if (text != null) { watchesManager.addInlineWatchExpression(XExpressionImpl.fromText(text), -1, caretPosition, false); } else if (caretPosition != null) { watchesManager.showInplaceEditor(caretPosition, editor, session, null); } }); }).onError(e -> { }); }
|
perform
|
295,223
|
boolean (@NotNull XDebugSession session, DataContext dataContext) { Promise<String> textPromise = getTextToEvaluate(dataContext, session); // in the case of async expression evaluation just enable the action if (textPromise.getState() == Promise.State.PENDING) { return true; } // or disable on rejected else if (textPromise.getState() == Promise.State.REJECTED) { return false; } // else the promise is already fulfilled, get it's value try { return textPromise.blockingGet(0) != null; } catch (TimeoutException | ExecutionException e) { return false; } }
|
isEnabled
|
295,224
|
Promise<String> (DataContext dataContext, XDebugSession session) { final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (editor == null) { return Promises.resolvedPromise(null); } String text = editor.getSelectionModel().getSelectedText(); if (text != null) { return Promises.resolvedPromise(StringUtil.nullize(text, true)); } XDebuggerEvaluator evaluator = session.getDebugProcess().getEvaluator(); if (evaluator != null) { return XDebuggerEvaluateActionHandler.getExpressionText(evaluator, editor.getProject(), editor).then(s -> StringUtil.nullize(s, true)); } return Promises.resolvedPromise(null); }
|
getTextToEvaluate
|
295,225
|
void (@NotNull XDebugSession session, DataContext dataContext) { getTextToEvaluate(dataContext, session) .onSuccess(text -> { if (text == null) return; UIUtil.invokeLaterIfNeeded(() -> { XDebugSessionTab tab = ((XDebugSessionImpl)session).getSessionTab(); if (tab != null) { ((XWatchesViewImpl)tab.getWatchesView()).addWatchExpression(XExpressionImpl.fromText(text), -1, true, true); } }); }); }
|
perform
|
295,226
|
boolean (@NotNull final Project project, final AnActionEvent event) { Editor editor = event.getData(CommonDataKeys.EDITOR); if (editor == null || DiffUtil.isDiffEditor(editor)) { return false; } XLineBreakpointType<?>[] breakpointTypes = XDebuggerUtil.getInstance().getLineBreakpointTypes(); final XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager(); for (XSourcePosition position : ToggleLineBreakpointAction.getAllPositionsForBreakpoints(project, event.getDataContext())) { for (XLineBreakpointType<?> breakpointType : breakpointTypes) { final VirtualFile file = position.getFile(); final int line = position.getLine(); if (breakpointType.canPutAt(file, line, project) || breakpointManager.findBreakpointAtLine(breakpointType, file, line) != null) { return true; } } } return false; }
|
isEnabled
|
295,227
|
void (@NotNull final Project project, final AnActionEvent event) { Editor editor = event.getData(CommonDataKeys.EDITOR); boolean isFromGutterClick = event.getData(XLineBreakpointManager.BREAKPOINT_LINE_KEY) != null; InputEvent inputEvent = event.getInputEvent(); boolean isAltClick = isFromGutterClick && inputEvent != null && inputEvent.isAltDown(); boolean isShiftClick = isFromGutterClick && inputEvent != null && inputEvent.isShiftDown(); // do not toggle more than once on the same line Set<Integer> processedLines = new HashSet<>(); for (XSourcePosition position : ToggleLineBreakpointAction.getAllPositionsForBreakpoints(project, event.getDataContext())) { if (processedLines.add(position.getLine())) { XBreakpointUtil.toggleLineBreakpoint(project, position, editor, isAltClick || myTemporary, !isFromGutterClick, !isFromGutterClick || (!isShiftClick && !Registry.is("debugger.click.disable.breakpoints"))) .onSuccess(breakpoint -> { if (!isFromGutterClick) return; setupLogBreakpoint(breakpoint, inputEvent, editor, project); }); } } }
|
perform
|
295,228
|
void (@Nullable final XLineBreakpoint<?> breakpoint, @Nullable final InputEvent inputEvent, @Nullable final Editor editor, @NotNull final Project project) { if (breakpoint == null || editor == null || !(inputEvent instanceof MouseEvent mouseEvent) || inputEvent.isAltDown() || !inputEvent.isShiftDown()) { return; } breakpoint.setSuspendPolicy(SuspendPolicy.NONE); String selection = editor.getSelectionModel().getSelectedText(); if (selection != null) { breakpoint.setLogExpression(selection); } else { breakpoint.setLogMessage(true); } // edit breakpoint LogicalPosition position = new LogicalPosition(breakpoint.getLine() + 1, 0); Point point = new Point(mouseEvent.getPoint().x, editor.logicalPositionToXY(position).y); DebuggerUIUtil.showXBreakpointEditorBalloon(project, point, ((EditorEx) editor).getGutterComponentEx(), false, breakpoint); }
|
setupLogBreakpoint
|
295,229
|
void (@NotNull final XDebugSession session, final DataContext dataContext) { session.pause(); }
|
perform
|
295,230
|
boolean (@NotNull Project project, AnActionEvent event) { final XDebugSession session = DebuggerUIUtil.getSession(event); return session == null || !((XDebugSessionImpl)session).isPauseActionSupported(); }
|
isHidden
|
295,231
|
boolean (@NotNull final XDebugSession session, final DataContext dataContext) { assert session instanceof XDebugSessionImpl; return ((XDebugSessionImpl)session).isPauseActionSupported() && !session.isPaused(); }
|
isEnabled
|
295,232
|
void (@NotNull Project project, AnActionEvent event) { XDebugSession session = DebuggerUIUtil.getSession(event); if (session == null) return; XValueMarkers<?, ?> markers = ((XDebugSessionImpl)session).getValueMarkers(); XValueNodeImpl node = XDebuggerTreeActionBase.getSelectedNode(event.getDataContext()); if (markers == null || node == null) return; XValue value = node.getValueContainer(); boolean detachedView = DebuggerUIUtil.isInDetachedTree(event); XDebuggerTreeState treeState = XDebuggerTreeState.saveState(node.getTree()); ValueMarkup existing = markers.getMarkup(value); Promise<Object> markPromise; if (existing != null) { markPromise = markers.unmarkValue(value); } else { Component component = event.getData(CONTEXT_COMPONENT); Window window = ComponentUtil.getWindow(component); if (!(window instanceof JFrame) && !(window instanceof JDialog)) { component = window.getOwner(); } ValueMarkerPresentationDialog dialog = new ValueMarkerPresentationDialog( component, node.getName(), markers.getAllMarkers().values()); dialog.show(); ValueMarkup markup = dialog.getConfiguredMarkup(); if (dialog.isOK() && markup != null) { markPromise = markers.markValue(value, markup); } else { return; } } markPromise.onSuccess(__ -> UIUtil.invokeLaterIfNeeded(() -> { if (detachedView) { node.getTree().rebuildAndRestore(treeState); } session.rebuildViews(); }) ); }
|
perform
|
295,233
|
boolean (@NotNull Project project, AnActionEvent event) { XValueMarkers<?, ?> markers = getValueMarkers(event); if (markers == null) return false; XValue value = XDebuggerTreeActionBase.getSelectedValue(event.getDataContext()); return value != null && markers.canMarkValue(value); }
|
isEnabled
|
295,234
|
boolean (@NotNull Project project, @NotNull AnActionEvent event) { XValueMarkers<?, ?> markers = getValueMarkers(event); if (markers == null) return false; XValue value = XDebuggerTreeActionBase.getSelectedValue(event.getDataContext()); return value != null && markers.getMarkup(value) != null; }
|
isMarked
|
295,235
|
boolean (@NotNull Project project, AnActionEvent event) { return getValueMarkers(event) == null; }
|
isHidden
|
295,236
|
void (@NotNull final Project project, final AnActionEvent event) { XDebugSession session = DebuggerUIUtil.getSession(event); if (session != null) { perform(session, event.getDataContext()); } }
|
perform
|
295,237
|
boolean (@NotNull final Project project, final AnActionEvent event) { if (LightEdit.owns(project)) return false; XDebugSession session = DebuggerUIUtil.getSession(event); return session != null && isEnabled(session, event.getDataContext()); }
|
isEnabled
|
295,238
|
boolean (@NotNull XDebugSession session, DataContext dataContext) { return XDebuggerSuspendedActionHandler.isEnabled(session); }
|
isEnabled
|
295,239
|
boolean (@NotNull XDebugSession session, DataContext dataContext) { return super.isEnabled(session, dataContext) && getConsoleExecuteAction(session) != null; }
|
isEnabled
|
295,240
|
ConsoleExecuteAction (@NotNull XDebugSession session) { return getConsoleExecuteAction(session.getConsoleView()); }
|
getConsoleExecuteAction
|
295,241
|
ConsoleExecuteAction (@Nullable ConsoleView consoleView) { if (!(consoleView instanceof LanguageConsoleView)) { return null; } List<AnAction> actions = ActionUtil.getActions(((LanguageConsoleView)consoleView).getConsoleEditor().getComponent()); ConsoleExecuteAction action = ContainerUtil.findInstance(actions, ConsoleExecuteAction.class); return action == null || !action.isEnabled() ? null : action; }
|
getConsoleExecuteAction
|
295,242
|
void (@NotNull XDebugSession session, DataContext dataContext) { Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (!(editor instanceof EditorEx)) { return; } int selectionStart = editor.getSelectionModel().getSelectionStart(); int selectionEnd = editor.getSelectionModel().getSelectionEnd(); Promise<Pair<TextRange, String>> rangeAndText; if (selectionStart != selectionEnd) { TextRange textRange = new TextRange(selectionStart, selectionEnd); rangeAndText = Promises.resolvedPromise(Pair.create(textRange, editor.getDocument().getText(textRange))); } else { XDebuggerEvaluator evaluator = session.getDebugProcess().getEvaluator(); if (evaluator != null) { Promise<ExpressionInfo> expressionInfoPromise = evaluator.getExpressionInfoAtOffsetAsync(session.getProject(), editor.getDocument(), selectionStart, true); rangeAndText = expressionInfoPromise.then(expressionInfo -> { if (expressionInfo == null) { return null; } // todo check - is it wrong in case of not-null expressionInfo.second - copied (to console history document) text (text range) could be not correct statement? return Pair.create(expressionInfo.getTextRange(), XDebuggerEvaluateActionHandler.getExpressionText(expressionInfo, editor.getDocument())); }); } else { return; } } rangeAndText.onSuccess(textRangeStringPair -> ApplicationManager.getApplication().invokeLater(() -> { TextRange range = textRangeStringPair.getFirst(); String text = textRangeStringPair.getSecond(); if (text == null) return; ConsoleExecuteAction action = getConsoleExecuteAction(session); if (action != null) { action.execute(range, text, (EditorEx) editor); } })); }
|
perform
|
295,243
|
void () { getBreakpointManager().getLineBreakpointManager().queueBreakpointUpdate(this); }
|
updateUI
|
295,244
|
VirtualFile () { return VirtualFileManager.getInstance().findFileByUrl(getFileUrl()); }
|
getFile
|
295,245
|
XLineBreakpointType<P> () { return myType; }
|
getType
|
295,246
|
int () { return myState.getLine(); }
|
getLine
|
295,247
|
String () { return myState.getFileUrl(); }
|
getFileUrl
|
295,248
|
String () { String url = getFileUrl(); if (url != null && LocalFileSystem.PROTOCOL.equals(VirtualFileManager.extractProtocol(url))) { return FileUtil.toSystemDependentName(VfsUtilCore.urlToPath(url)); } return url != null ? url : ""; }
|
getPresentableFilePath
|
295,249
|
String () { final String path = getPresentableFilePath(); if (path.isEmpty()) return ""; return new File(path).getName(); }
|
getShortFilePath
|
295,250
|
RangeHighlighter () { return myHighlighter instanceof RangeHighlighter ? (RangeHighlighter)myHighlighter : null; }
|
getHighlighter
|
295,251
|
XSourcePosition () { if (mySourcePosition != null) { return mySourcePosition; } mySourcePosition = super.getSourcePosition(); if (mySourcePosition == null) { mySourcePosition = XDebuggerUtil.getInstance().createPosition(getFile(), getLine()); } return mySourcePosition; }
|
getSourcePosition
|
295,252
|
boolean () { return myHighlighter != null && myHighlighter.isValid(); }
|
isValid
|
295,253
|
void () { removeHighlighter(); redrawInlineInlays(); }
|
doDispose
|
295,254
|
void () { if (myHighlighter != null) { try { myHighlighter.dispose(); } catch (Exception e) { LOG.error(e); } myHighlighter = null; } }
|
removeHighlighter
|
295,255
|
void () { redrawInlineInlays(getFile(), getLine()); }
|
redrawInlineInlays
|
295,256
|
void (@Nullable VirtualFile file, int line) { if (!XDebuggerUtil.areInlineBreakpointsEnabled()) return; if (file == null) return; var document = FileDocumentManager.getInstance().getDocument(file); if (document == null) return; if (myType instanceof XBreakpointTypeWithDocumentDelegation) { document = ((XBreakpointTypeWithDocumentDelegation)myType).getDocumentForHighlighting(document); } InlineBreakpointInlayManager.getInstance(getProject()).redrawLine(document, line); }
|
redrawInlineInlays
|
295,257
|
GutterDraggableObject () { return new GutterDraggableObject() { @Override public boolean copy(int line, VirtualFile file, int actionId) { if (canMoveTo(line, file)) { XDebuggerManagerImpl debuggerManager = (XDebuggerManagerImpl)XDebuggerManager.getInstance(getProject()); XBreakpointManagerImpl breakpointManager = debuggerManager.getBreakpointManager(); if (isCopyAction(actionId)) { breakpointManager.copyLineBreakpoint(XLineBreakpointImpl.this, file.getUrl(), line); } else { setFileUrl(file.getUrl()); setLine(line, true); XDebugSessionImpl session = debuggerManager.getCurrentSession(); if (session != null) { session.checkActiveNonLineBreakpointOnRemoval(XLineBreakpointImpl.this); } } return true; } return false; } @Override public void remove() { XDebuggerUtilImpl.removeBreakpointWithConfirmation(XLineBreakpointImpl.this); } @Override public Cursor getCursor(int line, VirtualFile file, int actionId) { if (canMoveTo(line, file)) { return isCopyAction(actionId) ? DragSource.DefaultCopyDrop : DragSource.DefaultMoveDrop; } return DragSource.DefaultMoveNoDrop; } private static boolean isCopyAction(int actionId) { return (actionId & DnDConstants.ACTION_COPY) == DnDConstants.ACTION_COPY; } }; }
|
createBreakpointDraggableObject
|
295,258
|
boolean (int line, VirtualFile file, int actionId) { if (canMoveTo(line, file)) { XDebuggerManagerImpl debuggerManager = (XDebuggerManagerImpl)XDebuggerManager.getInstance(getProject()); XBreakpointManagerImpl breakpointManager = debuggerManager.getBreakpointManager(); if (isCopyAction(actionId)) { breakpointManager.copyLineBreakpoint(XLineBreakpointImpl.this, file.getUrl(), line); } else { setFileUrl(file.getUrl()); setLine(line, true); XDebugSessionImpl session = debuggerManager.getCurrentSession(); if (session != null) { session.checkActiveNonLineBreakpointOnRemoval(XLineBreakpointImpl.this); } } return true; } return false; }
|
copy
|
295,259
|
void () { XDebuggerUtilImpl.removeBreakpointWithConfirmation(XLineBreakpointImpl.this); }
|
remove
|
295,260
|
Cursor (int line, VirtualFile file, int actionId) { if (canMoveTo(line, file)) { return isCopyAction(actionId) ? DragSource.DefaultCopyDrop : DragSource.DefaultMoveDrop; } return DragSource.DefaultMoveNoDrop; }
|
getCursor
|
295,261
|
boolean (int actionId) { return (actionId & DnDConstants.ACTION_COPY) == DnDConstants.ACTION_COPY; }
|
isCopyAction
|
295,262
|
boolean (int line, VirtualFile file) { if (file != null && myType.canPutAt(file, line, getProject())) { XLineBreakpoint<P> existing = getBreakpointManager().findBreakpointAtLine(myType, file, line); return existing == null || existing == this; } return false; }
|
canMoveTo
|
295,263
|
void () { if (myHighlighter != null && myHighlighter.isValid()) { mySourcePosition = null; // reset the source position even if the line number has not changed, as the offset may be cached inside try (AccessToken ignore = SlowOperations.knownIssue("IDEA-323746, EA-674953")) { setLine(myHighlighter.getDocument().getLineNumber(getOffset()), false); } } }
|
updatePosition
|
295,264
|
void (final String newUrl) { if (!Objects.equals(getFileUrl(), newUrl)) { var oldFile = getFile(); myState.setFileUrl(newUrl); mySourcePosition = null; removeHighlighter(); redrawInlineInlays(oldFile, getLine()); redrawInlineInlays(getFile(), getLine()); fireBreakpointChanged(); } }
|
setFileUrl
|
295,265
|
void (final int line) { setLine(line, true); }
|
setLine
|
295,266
|
void (final int line, boolean visualLineMightBeChanged) { if (getLine() != line) { var oldLine = getLine(); myState.setLine(line); mySourcePosition = null; if (visualLineMightBeChanged) { removeHighlighter(); redrawInlineInlays(getFile(), oldLine); redrawInlineInlays(getFile(), getLine()); } // otherwise highlighter and inlay would move together with line fireBreakpointChanged(); } }
|
setLine
|
295,267
|
boolean () { return myState.isTemporary(); }
|
isTemporary
|
295,268
|
void (boolean temporary) { if (isTemporary() != temporary) { myState.setTemporary(temporary); fireBreakpointChanged(); } }
|
setTemporary
|
295,269
|
void () { Icon icon = calculateSpecialIcon(); if (icon == null) { icon = isTemporary() ? myType.getTemporaryIcon() : myType.getEnabledIcon(); } setIcon(icon); }
|
updateIcon
|
295,270
|
String () { return "XLineBreakpointImpl(" + myType.getId() + " at " + getShortFilePath() + ":" + getLine() + ")"; }
|
toString
|
295,271
|
void () { myConditionEnabled = myState.isConditionEnabled(); BreakpointState.Condition condition = myState.getCondition(); myCondition = condition != null ? condition.toXExpression() : null; myLogExpressionEnabled = myState.isLogExpressionEnabled(); BreakpointState.LogExpression expression = myState.getLogExpression(); myLogExpression = expression != null ? expression.toXExpression() : null; }
|
initExpressions
|
295,272
|
Project () { return myBreakpointManager.getProject(); }
|
getProject
|
295,273
|
XBreakpointManagerImpl () { return myBreakpointManager; }
|
getBreakpointManager
|
295,274
|
void () { clearIcon(); myBreakpointManager.fireBreakpointChanged(this); }
|
fireBreakpointChanged
|
295,275
|
XSourcePosition () { return getType().getSourcePosition(this); }
|
getSourcePosition
|
295,276
|
Navigatable () { XSourcePosition position = getSourcePosition(); if (position == null) { return null; } return position.createNavigatable(getProject()); }
|
getNavigatable
|
295,277
|
boolean () { return myState.isEnabled(); }
|
isEnabled
|
295,278
|
void (final boolean enabled) { if (enabled != isEnabled()) { myState.setEnabled(enabled); fireBreakpointChanged(); } }
|
setEnabled
|
295,279
|
SuspendPolicy () { return myState.getSuspendPolicy(); }
|
getSuspendPolicy
|
295,280
|
void (@NotNull SuspendPolicy policy) { if (myState.getSuspendPolicy() != policy) { myState.setSuspendPolicy(policy); if (policy == SuspendPolicy.NONE) { FeatureUsageTracker.getInstance().triggerFeatureUsed("debugger.breakpoint.non.suspending"); } fireBreakpointChanged(); } }
|
setSuspendPolicy
|
295,281
|
boolean () { return myState.isLogMessage(); }
|
isLogMessage
|
295,282
|
void (final boolean logMessage) { if (logMessage != isLogMessage()) { myState.setLogMessage(logMessage); fireBreakpointChanged(); } }
|
setLogMessage
|
295,283
|
boolean () { return myState.isLogStack(); }
|
isLogStack
|
295,284
|
void (final boolean logStack) { if (logStack != isLogStack()) { myState.setLogStack(logStack); fireBreakpointChanged(); } }
|
setLogStack
|
295,285
|
boolean () { return myConditionEnabled; }
|
isConditionEnabled
|
295,286
|
void (boolean conditionEnabled) { if (myConditionEnabled != conditionEnabled) { myConditionEnabled = conditionEnabled; fireBreakpointChanged(); } }
|
setConditionEnabled
|
295,287
|
boolean () { return myLogExpressionEnabled; }
|
isLogExpressionEnabled
|
295,288
|
void (boolean logExpressionEnabled) { if (myLogExpressionEnabled != logExpressionEnabled) { myLogExpressionEnabled = logExpressionEnabled; fireBreakpointChanged(); } }
|
setLogExpressionEnabled
|
295,289
|
String () { XExpression expression = getLogExpressionObject(); return expression != null ? expression.getExpression() : null; }
|
getLogExpression
|
295,290
|
void (@Nullable final String expression) { if (!Objects.equals(getLogExpression(), expression)) { myLogExpression = XExpressionImpl.fromText(expression); fireBreakpointChanged(); } }
|
setLogExpression
|
295,291
|
XExpression () { return myLogExpression; }
|
getLogExpressionObjectInt
|
295,292
|
XExpression () { return myLogExpressionEnabled ? myLogExpression : null; }
|
getLogExpressionObject
|
295,293
|
void (@Nullable XExpression expression) { if (!Comparing.equal(myLogExpression, expression)) { myLogExpression = expression; fireBreakpointChanged(); } }
|
setLogExpressionObject
|
295,294
|
String () { XExpression expression = getConditionExpression(); return expression != null ? expression.getExpression() : null; }
|
getCondition
|
295,295
|
void (@Nullable final String condition) { if (!Objects.equals(condition, getCondition())) { myCondition = XExpressionImpl.fromText(condition); fireBreakpointChanged(); } }
|
setCondition
|
295,296
|
XExpression () { return myCondition; }
|
getConditionExpressionInt
|
295,297
|
XExpression () { return myConditionEnabled ? myCondition : null; }
|
getConditionExpression
|
295,298
|
void (@Nullable XExpression condition) { if (!Comparing.equal(condition, myCondition)) { myCondition = condition; fireBreakpointChanged(); } }
|
setConditionExpression
|
295,299
|
long () { return myState.getTimeStamp(); }
|
getTimeStamp
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.