| View previous topic :: View next topic |
| Author |
Message |
ziad
Joined: 10 Mar 2009 Posts: 20
|
Posted: Fri Apr 17, 2009 11:56 am Post subject: force a type on variable/class property |
|
|
Hi,
Can anyone tell me how I force NB to use a particular class type for a variable or class property so that I can use code completion?
I looked for this on the forum but couldn't find anything.
Thanks.
Ziad |
|
| Back to top |
|
 |
Yannick Mortier Posted via mailing list.
|
Posted: Fri Apr 17, 2009 3:51 pm Post subject: force a type on variable/class property |
|
|
2009/4/17 ziad <address-removed>:
| Quote: | Hi,
Can anyone tell me how I force NB to use a particular class type for a variable or class property so that I can use code completion?
I looked for this on the forum but couldn't find anything.
Thanks.
Ziad
|
I know I could manage this with a PHPDoc Comment... Though I couldn't
reproduce it at the moment.
Seems like this is a bug in the development build that I just use, but
try to write something above the declaration of the variable like:
/*
* @var type
*/
Where type is the type the variable should have. I really can remember
that NetBeans did parse this. I must do some research and download the
latest nightly build.
--
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight
Follow me on twitter!
http://twitter.com/moortier |
|
| Back to top |
|
 |
ziad
Joined: 10 Mar 2009 Posts: 20
|
Posted: Tue Apr 28, 2009 10:43 am Post subject: Re: force a type on variable/class property |
|
|
Hi Yannic,
Thanks for your reply. I tried that but it didn't work. Any other suggestions anyone?
| Yannick Mortier wrote: | 2009/4/17 ziad <address-removed>:
| Quote: | Hi,
Can anyone tell me how I force NB to use a particular class type for a variable or class property so that I can use code completion?
I looked for this on the forum but couldn't find anything.
Thanks.
Ziad
|
I know I could manage this with a PHPDoc Comment... Though I couldn't
reproduce it at the moment.
Seems like this is a bug in the development build that I just use, but
try to write something above the declaration of the variable like:
/*
* @var type
*/
Where type is the type the variable should have. I really can remember
that NetBeans did parse this. I must do some research and download the
latest nightly build.
--
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight
Follow me on twitter!
http://twitter.com/moortier |
|
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
|
| 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
|
|
|
|