| View previous topic :: View next topic |
| Author |
Message |
vantine_lee Posted via mailing list.
|
Posted: Mon Jun 16, 2008 2:08 pm Post subject: Two Simple (I hope) questions |
|
|
1. In 6.1 I (again) can't seem to find how to override methods in a
parent class
2. Is there any way to specify the parent class (for extents) or
implemented interfaces (for implements) when using the NB New.. to
create a new Class?
Many thanks in advance
Lee |
|
| Back to top |
|
 |
Jiri Prox Posted via mailing list.
|
Posted: Mon Jun 16, 2008 2:59 pm Post subject: Two Simple (I hope) questions |
|
|
Hi,
1. to override method you can use code completion or Insert code menu.
In the first case type the name of method from superclass and press
ctrl-space. You'll get list of item with suffix -override. After
selecting such item the method stub will be generated.
The second way is to use Insert Code menu (Alt-I), there is Override
method item in this menu. It will open dialog where you can choose which
methods should be overridden.
2. unfortunately the IDE does not support specifying super type in New
Java Class wizard. See issue 113391 for explanation:
http://www.netbeans.org/issues/show_bug.cgi?id=113891
Hope it helps
Jirka
vantine_lee@emc.com wrote:
| Quote: | 1. In 6.1 I (again) can't seem to find how to override methods in a
parent class
2. Is there any way to specify the parent class (for extents) or
implemented interfaces (for implements) when using the NB New.. to
create a new Class?
Many thanks in advance
Lee
|
|
|
| Back to top |
|
 |
vantine_lee Posted via mailing list.
|
Posted: Mon Jun 16, 2008 3:24 pm Post subject: Two Simple (I hope) questions |
|
|
Jiri,
Many thanks for the help. It seems every time there is a new release of
Netbeans the way to override methods changes. I must say I care as much
for this one, previous version allowed you to specify if you wanted to
include the method Javadoc header from the parent method which I found
very helpful.
Again Thanks!
Lee VanTine
Consulting Engineer
EMC Corp.
228 South St.
Mail Stop LL/D-36
Hopkinton Ma
Phone: (508)249-1994
email: vantine_lee@emc.com
"The best companies preserve their leadership by
looking out to the horizon and making adjustments
today to position themselves for shifts in customers'
expectations and market dynamics"
Joe Tucci EMC President and CEO 2006
-----Original Message-----
From: Jiri.Prox@Sun.COM [mailto:Jiri.Prox@Sun.COM]
Sent: Monday, June 16, 2008 10:59 AM
To: nbusers@netbeans.org
Subject: Re: [nbusers] Two Simple (I hope) questions
Hi,
1. to override method you can use code completion or Insert code menu.
In the first case type the name of method from superclass and press
ctrl-space. You'll get list of item with suffix -override. After
selecting such item the method stub will be generated.
The second way is to use Insert Code menu (Alt-I), there is Override
method item in this menu. It will open dialog where you can choose which
methods should be overridden.
2. unfortunately the IDE does not support specifying super type in New
Java Class wizard. See issue 113391 for explanation:
http://www.netbeans.org/issues/show_bug.cgi?id=113891
Hope it helps
Jirka
vantine_lee@emc.com wrote:
| Quote: | 1. In 6.1 I (again) can't seem to find how to override methods in a
parent class
2. Is there any way to specify the parent class (for extents) or
implemented interfaces (for implements) when using the NB New.. to
create a new Class?
Many thanks in advance
Lee
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|