public WatchpointChange(IJavaWatchpoint watchpoint) throws CoreException { super(watchpoint); fFieldName = watchpoint.getFieldName(); fAccess = watchpoint.isAccess(); fModification = watchpoint.isModification(); }
protected String getWatchpointText(IJavaWatchpoint watchpoint) throws CoreException { String typeName= watchpoint.getTypeName(); IMember member= BreakpointUtils.getMember(watchpoint); StringBuffer label= new StringBuffer(); label.append(getQualifiedName(typeName)); appendHitCount(watchpoint, label); appendSuspendPolicy(watchpoint,label); appendThreadFilter(watchpoint, label); boolean access= watchpoint.isAccess(); boolean modification= watchpoint.isModification(); if (access && modification) { label.append(DebugUIMessages.JDIModelPresentation_access_and_modification_70); } else if (access) { label.append(DebugUIMessages.JDIModelPresentation_access_71); } else if (modification) { label.append(DebugUIMessages.JDIModelPresentation_modification_72); } label.append(" - "); //$NON-NLS-1$ if (member != null) { label.append(getJavaLabelProvider().getText(member)); } else { label.append(watchpoint.getFieldName()); } return label.toString(); }
fEnabledButton.addSelectionListener(watchpointValidator); fFieldAccess = createCheckButton(parent, PropertyPageMessages.JavaLineBreakpointPage_7); fFieldAccess.setSelection(watchpoint.isAccess()); fFieldAccess.addSelectionListener(watchpointValidator); fFieldModification = createCheckButton(parent, PropertyPageMessages.JavaLineBreakpointPage_8);
boolean access = fFieldAccess.getSelection(); boolean modification = fFieldModification.getSelection(); if (access != watchpoint.isAccess()) { watchpoint.setAccess(access);
JDIImageDescriptor descriptor= null; boolean enabled= (flags & JDIImageDescriptor.ENABLED) != 0; if (watchpoint.isAccess()) { if (watchpoint.isModification()) {