org.netbeans.spi.debugger.ui/1 2.27.1

org.netbeans.spi.debugger.ui
Class BreakpointType

java.lang.Object
  extended by org.netbeans.spi.debugger.ui.BreakpointType

public abstract class BreakpointType
extends Object

Support for "New Breakpoint" dialog and Breakpoint Customizer. Represents one breakpoint type.


Nested Class Summary
static interface BreakpointType.Registration
          Declarative registration of an BreakpointType implementation.
 
Constructor Summary
BreakpointType()
           
 
Method Summary
abstract  String getCategoryDisplayName()
          Display name of cathegory of this breakpoint type.
 Controller getController()
          Return the implementation of Controller interface.
It's not desired to implement the Controller interface by JComponent returned from getCustomizer() method, because of the clash of Controller.isValid() method with Component.isValid().
abstract  JComponent getCustomizer()
          Returns visual customizer for this breakpoint type.
 String getTypeDisplayName()
          Provide the display name of this breakpoint type.
abstract  boolean isDefault()
          Should return true of this breakpoint type should be default one in the current context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreakpointType

public BreakpointType()
Method Detail

getCategoryDisplayName

public abstract String getCategoryDisplayName()
Display name of cathegory of this breakpoint type. Cathegory typically represents one debugger language.

Returns:
display name of cathegory of this breakpoint type

getTypeDisplayName

public String getTypeDisplayName()
Provide the display name of this breakpoint type. The return value is read from "displayName" attribute of the registry file when this implementation is registered via BreakpointType.Registration annotation. Therefore in this case the implementation should NOT override this method as it's not called.

Returns:
display name of this breakpoint type

getCustomizer

public abstract JComponent getCustomizer()
Returns visual customizer for this breakpoint type.
 Customizer can not implement the Controller interface any more,
 due to a clash of Controller.isValid() method with
 Component.isValid().
 Override getController() method instead.
 

Returns:
visual customizer for this breakpoint type

getController

public Controller getController()
Return the implementation of Controller interface.
It's not desired to implement the Controller interface by JComponent returned from getCustomizer() method, because of the clash of Controller.isValid() method with Component.isValid(). An explicit implementation should be returned by overriding this method. The default implementation returns null, in which case no Controller is used.

Returns:
Controller implementation or null.
Since:
2.14

isDefault

public abstract boolean isDefault()
Should return true of this breakpoint type should be default one in the current context. Default breakpoint type is selected one when the New Breakpoint dialog is opened.

Returns:
true of this breakpoint type should be default

org.netbeans.spi.debugger.ui/1 2.27.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.