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(); }
fFieldAccess.addSelectionListener(watchpointValidator); fFieldModification = createCheckButton(parent, PropertyPageMessages.JavaLineBreakpointPage_8); fFieldModification.setSelection(watchpoint.isModification()); fFieldModification.addSelectionListener(watchpointValidator);
watchpoint.setAccess(access); if (modification != watchpoint.isModification()) { watchpoint.setModification(modification);
boolean enabled= (flags & JDIImageDescriptor.ENABLED) != 0; if (watchpoint.isAccess()) { if (watchpoint.isModification()) { } else if (watchpoint.isModification()) { if (enabled) { descriptor= new JDIImageDescriptor(DebugUITools.getImageDescriptor(IDebugUIConstants.IMG_OBJS_MODIFICATION_WATCHPOINT), flags);