This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206744

Summary: Ability to register ActionProvider per command × MIME type
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic Projects UIAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: API, PERFORMANCE
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/build/generated/services.txt
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 102081    

Description Jesse Glick 2011-12-27 15:45:45 UTC
ActionProvider instances may be added to global lookup, helpful for implementing e.g. Run Single regardless of project type. There are now several such instances (see URL): TestNGActionProvider, RunSQLAction, HintsActionProvider, RunJavaws, and (PHP) RunFileActionProvider. As this list grows, more and more classes will need to be loaded just to check enablement of file-sensitive actions.

Bug #102081 comment #25 discusses the issue and gives an idea for an API. The case of TestNGActionProvider indicates that it may be necessary to register a full ActionProvider instance, as some impls may need more than just command × MIME type for isActionEnabled and/or invokeAction; getSupportedActions would probably just be ignored in this case.
Comment 1 Martin Balin 2016-07-07 08:37:33 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss