Svatopluk Dedic created NETBEANS-1116:
-----------------------------------------

             Summary: 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


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
(v7.6.3#76005)

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

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

Reply via email to