[
https://issues.apache.org/jira/browse/NETBEANS-5680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346842#comment-17346842
]
Jaroslav Tulach commented on NETBEANS-5680:
-------------------------------------------
I believe the Project API including {{ActionProvider}} pre-dates
{{ContextAwareAction}}. At that time there was one global selection and writing
action which extracts a {{DataObject}} then gets {{FileObject}} and then finds
{{getOwner}} wasn't that easy. These days one could create {{public static
Lookup ProjectUtils.actionContext()}} and do most of the magic (of finding
Project/ActionProvider) in there. The actions would just extract {{Project}} or
{{ActionProvider}} from the associated {{Lookup}}. If there was {{public static
final ContextAwareAction ProjectUtils.BUILD}} - then it'd be the action to use
in menu and toolbar as well as factory for actions running in other contexts.
> Create ProjectActions API
> -------------------------
>
> Key: NETBEANS-5680
> URL: https://issues.apache.org/jira/browse/NETBEANS-5680
> Project: NetBeans
> Issue Type: Improvement
> Components: projects - Generic Infrastructure
> Affects Versions: 12.4
> Reporter: Svatopluk Dedic
> Priority: Major
> Labels: VSNetBeans
>
> In [https://github.com/apache/netbeans/pull/2948] surfaced a long-standing
> issue, that clients are asked to use a SPI interface directly. This
> complicates adding optional functionaliy to SPI as it requires *API clients*
> to maneuver around old/new SPI impl differences.
> A proper API counterpart for *ActionProvider*, *ActionProgress* (and maybe
> *ProjectConfiguration*) should be created.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists