You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Owen Thomas <ow...@gmail.com> on 2019/02/13 00:42:22 UTC

Select multiple inherited method declarations from navigator window.

Hello.

I am still using NB 8.2; I intend to upgrade when I upgrade my Ubuntu when
16.04 looses its LTS and perhaps this suggestion might have been added in a
later version of the IDE. Please let me know if this is the case, and that
would catalyse my action.

I can write a method in a superclass to the one which appears in my NB
editor window. The class that I am editing can implement an interface that
gives the same method signature to the one that appears in the superclass.
This is all good; the compiler does not show en error message saying the
method declared in the interface is unimplemented.

However, when I go to the navigator window and select the method in
question, the editor takes me directly to the implementation in the
subclass. So what, you might say -- if one wants to inspect the declaration
given in the interface, one can override the method in the class that
delegates execution to the method in the superclass, and one can navigate
to the interface by clicking on the green circle embellishment that appears
at the left and selecting the interface's declaration.

The thing with this is that doing this appears to introduce a superfluous
stack frame in the runtime, and hence I think it would be much better if
the same list that appears when the green circle is selected in the editor
is displayed when one selects the method from the navigator window.

Although I make this suggestion, I am ill-disposed to get my hands dirty.
Does anyone who fiddles with Netbeans on a regular basis think this is a
good enhancement to make?

Thanks,

  Owen.

Re: Select multiple inherited method declarations from navigator window.

Posted by Owen Thomas <ow...@gmail.com>.
My earlier email was confusing. Hopefully these corrections will clarify...

On Wed, 13 Feb 2019 at 11:42, Owen Thomas <ow...@gmail.com>
wrote:

> Hello.
>
> I am still using NB 8.2; I intend to upgrade when I upgrade my Ubuntu when
> 16.04 looses its LTS and perhaps this suggestion might have been added in a
> later version of the IDE. Please let me know if this is the case, and that
> would catalyse my action.
>
> *[So, to the matter at hand...] *I can write a method in a superclass to
> the *[class]* which appears in my NB editor window. The class that I am
> editing can implement an interface that gives the same method signature to
> the one that appears in the superclass. This is all good; the compiler does
> not show *[an]* error message saying the method declared in the interface
> is unimplemented.
>
> However, when I go to the navigator window and select the method in
> question, the editor takes me directly to the implementation in the
> *[superclass]*. So what, you might say -- if one wants to inspect the
> declaration given in the interface, one can override the method in the
> class that delegates execution to the method in the superclass, and one can
> navigate to the interface by clicking on the green circle embellishment
> that appears at the left and selecting the interface's declaration.
>
> The thing with this is that doing overriding the superclass method appears
> to introduce a superfluous stack frame in the runtime, and hence I think it
> would be much better if the same list that appears when the green circle is
> selected in the editor can appear when one selects the method from the
> navigator window.
>
> Although I make this suggestion, I am ill-disposed to get my hands dirty.
> Does anyone who fiddles with Netbeans on a regular basis think this is a
> good enhancement to make?
>
> Thanks,
>
>   Owen.
>