void (Key<? extends Breakpoint> category, BreakpointDefaults defaults) { Class<? extends XBreakpointType> typeCls = null; if (LineBreakpoint.CATEGORY.toString().equals(category.toString())) { typeCls = JavaLineBreakpointType.class; } else if (MethodBreakpoint.CATEGORY.toString().equals(category.toString())) { typeCls = JavaMethodBreakpointType.class; } else if (FieldBreakpoint.CATEGORY.toString().equals(category.toString())) { typeCls = JavaFieldBreakpointType.class; } else if (ExceptionBreakpoint.CATEGORY.toString().equals(category.toString())) { typeCls = JavaExceptionBreakpointType.class; } else if (CollectionBreakpoint.CATEGORY.toString().equals(category.toString())) { typeCls = JavaCollectionBreakpointType.class; } if (typeCls != null) { XBreakpointType type = XDebuggerUtil.getInstance().findBreakpointType(typeCls); ((XBreakpointManagerImpl)getXBreakpointManager()).getBreakpointDefaults(type).setSuspendPolicy(Breakpoint.transformSuspendPolicy(defaults.getSuspendPolicy())); } }