diff -r 4f9dc8c4b789 api.debugger/src/org/netbeans/spi/debugger/ActionsProvider.java --- a/api.debugger/src/org/netbeans/spi/debugger/ActionsProvider.java Wed Feb 03 16:12:06 2010 +0100 +++ b/api.debugger/src/org/netbeans/spi/debugger/ActionsProvider.java Thu Feb 04 18:50:54 2010 +0100 @@ -134,33 +148,80 @@ */ String path() default ""; + /** + * 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 {@link #enabledOnMIMETypes()} is overriden + * to prevent from the class instantiation. + * @return The list of actions. + */ + String[] getActions() default {}; + + /** + * Provide the 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). + * @return The list of MIME types + */ + String[] enabledOnMIMETypes() default {}; + } static class ContextAware extends ActionsProvider implements ContextAwareService {