The real question is why you're using CookieAction at all.

http://bits.netbeans.org/8.2/javadoc/org-openide-nodes/org/openide/util/actions/CookieAction.html

Gj


On Sun, Jun 24, 2018 at 7:28 PM, Peter Nabbefeld <[email protected]>
wrote:

>
> Hello,
>
> in my class file, I've got the following lines of code:
>
> @ActionRegistration(displayName = "#CTL_GotoHTMLAction", lazy = false)
> public class GotoHTMLAction extends CookieAction {
> ...
> }
>
> Why do I still need to implement the "getName()" method? Short answer, of
> course, it's declared abstract.
>
> But I don't like the duplicate information. Is there any use for this?
>
> I know, the annotation results in a classic entry in the now generated
> layer, but IMHO having two names (which could even be different - which one
> is used where?) isn't good style.
>
> I'd prefer to use the layer's entry as a default value - any chance to
> change the implementation of CookieAction (and/or any related)?
>
> Kind regards
> Peter
>
> ---------------------------------------------------------------------
> 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
>
>
>
>

Reply via email to