You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/04/20 11:47:00 UTC

[jira] [Updated] (NETBEANS-1116) single ActionReference with id cannot be used on element

     [ https://issues.apache.org/jira/browse/NETBEANS-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svatopluk Dedic updated NETBEANS-1116:
--------------------------------------
    Labels: sd-candidate  (was: )

> single ActionReference with id cannot be used on element
> --------------------------------------------------------
>
>                 Key: NETBEANS-1116
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1116
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Actions
>    Affects Versions: 8.2, 9.0
>            Reporter: Svatopluk Dedic
>            Assignee: Svatopluk Dedic
>            Priority: Major
>              Labels: sd-candidate
>
> I tried to link in a standard action, using
> {code:java}
> @ActionReference(
>  path = EditorTopComponent.TOOLBAR_ACTIONS,
>  id = @ActionID(category = "Edit", id = "org-openide-actions-UndoAction"),
>  position = 8000, separatorBefore = 7900
> )
> public final class EditorTopComponent extends TopComponent implements PropertyChangeListener, ChangeListener {
> {code}
> But that failed, because ActionProcessor does not allow to specify @ActionReference without a peer @ActionID. However when wrapped by
> {code:java}
> @ActionReferences({}){code}
> the registration became compilable. IMHO it's a bug in ActionProcessor.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists