1 19 20 package org.netbeans.modules.debugger.jpda.ui.breakpoints; 21 22 import javax.swing.JComponent ; 23 24 import org.netbeans.api.debugger.Breakpoint; 25 import org.netbeans.api.debugger.jpda.ClassLoadUnloadBreakpoint; 26 import org.netbeans.spi.debugger.ui.BreakpointType; 27 28 import org.netbeans.modules.debugger.jpda.ui.EditorContextBridge; 29 30 import org.openide.util.NbBundle; 31 32 33 38 public class ClassBreakpointType extends BreakpointType { 39 40 public String getCategoryDisplayName () { 41 return NbBundle.getMessage ( 42 ClassBreakpointType.class, 43 "CTL_Java_breakpoint_events_cathegory_name" 44 ); 45 } 46 47 public JComponent getCustomizer () { 48 return new ClassBreakpointPanel (); 49 } 50 51 public String getTypeDisplayName () { 52 return NbBundle.getMessage ( 53 ClassBreakpointType.class, 54 "CTL_Class_event_type_name" 55 ); 56 } 57 58 public boolean isDefault () { 59 return EditorContextBridge.getDefaultType () == EditorContextBridge.CLASS; 60 } 61 } 62 63 | Popular Tags |