org.netbeans.api.debugger/1 1.31.1

org.netbeans.spi.debugger
Annotation Type ActionsProvider.Registration


@Retention(value=SOURCE)
@Target(value=TYPE)
public static @interface ActionsProvider.Registration

Declarative registration of an ActionsProvider implementation. By marking the implementation class with this annotation, you automatically register that implementation for use by debugger. The class must be public and have a public constructor which takes no arguments or takes ContextProvider as an argument.

Since:
1.16

Optional Element Summary
 String[] actions
          Provide the list of actions that this provider supports.
 String[] activateForMIMETypes
          Provide a list of MIME types that are compared to the MIME type of a file currently active in the IDE and when matched, this provider is activated (an instance of the registered class is created).
 String path
          An optional path to register this implementation in.
 

path

public abstract String path
An optional path to register this implementation in. Usually the session ID.

Default:
""

actions

public abstract String[] actions
Provide the list of actions that this provider supports. This list is used before an instance of the registered class is created, it's necessary when activateForMIMETypes() is overriden to prevent from the class instantiation.

Returns:
The list of actions.
Since:
1.23
Default:
{}

activateForMIMETypes

public abstract String[] activateForMIMETypes
Provide a list of MIME types that are compared to the MIME type of a file currently active in the IDE and when matched, this provider is activated (an instance of the registered class is created). By default, the provider instance is created immediately. This method can be used to delay the instantiation of the implementation class for performance reasons.

Returns:
The list of MIME types
Since:
1.23
Default:
{}

org.netbeans.api.debugger/1 1.31.1

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