/** * Constructor * @param breakpoint * @throws CoreException */ public LineBreakpointChange(IJavaLineBreakpoint breakpoint) throws CoreException { super(breakpoint); fCharEnd = breakpoint.getCharEnd(); fCharStart = breakpoint.getCharStart(); fLineNumber = breakpoint.getLineNumber(); if (breakpoint.supportsCondition()) { fCondition = breakpoint.getCondition(); fConditionEnabled = breakpoint.isConditionEnabled(); fConditionSuspendOnTrue = breakpoint.isConditionSuspendOnTrue(); } }
/** * Returns whether the given breakpoint is a run to line * breakpoint * * @param breakpoint line breakpoint * @return whether the given breakpoint is a run to line * breakpoint */ public static boolean isRunToLineBreakpoint(IJavaLineBreakpoint breakpoint) { return breakpoint.getMarker().getAttribute(RUN_TO_LINE, false); }
/** * Applies the original attributes to the new breakpoint * @param breakpoint * @throws CoreException */ protected void apply(IJavaLineBreakpoint breakpoint) throws CoreException { super.apply(breakpoint); if (breakpoint.supportsCondition()) { breakpoint.setCondition(fCondition); breakpoint.setConditionEnabled(fConditionEnabled); breakpoint.setConditionSuspendOnTrue(fConditionSuspendOnTrue); } }
protected void appendConditional(IJavaLineBreakpoint breakpoint, StringBuffer buffer) throws CoreException { if (breakpoint.isConditionEnabled() && breakpoint.getCondition() != null) { buffer.append(' '); buffer.append(DebugUIMessages.JDIModelPresentation__conditional__2); } }
String condition = fConditionEditor.getCondition(); boolean suspendOnTrue= fConditionIsTrue.getSelection(); if (breakpoint.isConditionEnabled() != enableCondition) { breakpoint.setConditionEnabled(enableCondition); if (!condition.equals(breakpoint.getCondition())) { breakpoint.setCondition(condition); if (breakpoint.isConditionSuspendOnTrue() != suspendOnTrue) { breakpoint.setConditionSuspendOnTrue(suspendOnTrue);
int start = breakpoint.getCharStart(); int end = breakpoint.getCharEnd(); start= breakpoint.getMarker().getAttribute(MEMBER_START, -1); end= breakpoint.getMarker().getAttribute(MEMBER_END, -1);
fEnableConditionButton.setSelection(breakpoint.isConditionEnabled()); fEnableConditionButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { fConditionIsTrue = createRadioButton(conditionComposite, PropertyPageMessages.JavaLineBreakpointPage_16); fConditionHasChanged = createRadioButton(conditionComposite, PropertyPageMessages.JavaLineBreakpointPage_17); if (breakpoint.isConditionSuspendOnTrue()) { fConditionIsTrue.setSelection(true);
String condition = new String(); try { condition = fBreakpoint.getCondition(); fErrorMessage = PropertyPageMessages.BreakpointConditionEditor_1; fOldValue = ""; //$NON-NLS-1$ int lineNumber = fBreakpoint.getMarker().getAttribute(IMarker.LINE_NUMBER, -1); int position= -1; if (source != null && lineNumber != -1) {
protected StringBuffer appendLineNumber(IJavaLineBreakpoint breakpoint, StringBuffer label) throws CoreException { int lineNumber= breakpoint.getLineNumber(); if (lineNumber > 0) { label.append(" ["); //$NON-NLS-1$ label.append(DebugUIMessages.JDIModelPresentation_line__65); label.append(' '); label.append(lineNumber); label.append(']'); } return label; }
protected String getLineBreakpointText(IJavaLineBreakpoint breakpoint) throws CoreException { String typeName= breakpoint.getTypeName(); IMember member= BreakpointUtils.getMember(breakpoint); StringBuffer label= new StringBuffer(); label.append(getQualifiedName(typeName)); appendLineNumber(breakpoint, label); appendHitCount(breakpoint, label); appendSuspendPolicy(breakpoint,label); appendThreadFilter(breakpoint, label); appendConditional(breakpoint, label); appendInstanceFilter(breakpoint, label); if (member != null) { label.append(" - "); //$NON-NLS-1$ label.append(getJavaLabelProvider().getText(member)); } return label.toString(); }
if (((IJavaLineBreakpoint)breakpoint).isConditionEnabled()) { flags |= JDIImageDescriptor.CONDITIONAL;
IJavaLineBreakpoint breakpoint = JDIDebugModel.lineBreakpointExists(resource, createQualifiedTypeName(declaringType), ts.getStartLine() + 1); if (breakpoint != null) { breakpoint.delete(); return;
IJavaLineBreakpoint lineBreakpoint= ((IJavaLineBreakpoint) breakpoint); try { int lineNumber= lineBreakpoint.getLineNumber(); if (lineNumber != -1) { label.append(DebugUIMessages.JavaBreakpointWorkbenchAdapterFactory_1);
StringBuffer lineNumber = new StringBuffer(4); try { int lNumber = breakpoint.getLineNumber(); if (lNumber > 0) { lineNumber.append(lNumber);
int lineNumber= jlbp.getLineNumber(); if (lineNumber > -1) { args = new String[] {thread.getName(), String.valueOf(lineNumber), typeName};