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.spi.debugger.ui.BreakpointType; 26 import org.netbeans.api.debugger.jpda.FieldBreakpoint; 27 import org.netbeans.modules.debugger.jpda.ui.EditorContextBridge; 28 29 import org.openide.util.NbBundle; 30 31 32 37 public class FieldBreakpointType extends BreakpointType { 38 39 public String getCategoryDisplayName () { 40 return NbBundle.getMessage ( 41 FieldBreakpointType.class, 42 "CTL_Java_breakpoint_events_cathegory_name" 43 ); 44 } 45 46 public JComponent getCustomizer () { 47 return new FieldBreakpointPanel (); 48 } 49 50 public String getTypeDisplayName () { 51 return NbBundle.getMessage ( 52 FieldBreakpointType.class, 53 "CTL_Variable_event_type_name" 54 ); 55 } 56 57 public boolean isDefault () { 58 return EditorContextBridge.getDefaultType () == EditorContextBridge.FIELD; 59 } 60 } 61 | Popular Tags |