| View previous topic :: View next topic |
| Author |
Message |
James Dempster Posted via mailing list.
|
Posted: Wed Apr 08, 2009 7:56 pm Post subject: Go to Declaration |
|
|
Hi All,
Having a problem with Go to Declaration in Netbeans. If I ctrl+click a class name I would expect it to take me to the class e.g.
class Foo extends Bar {
}
not to the constructor of it's parent class just because Foo inherits it's constructor from Bar e.g it takes me to.
class Bar {
public function __constructor() {}
}
Any easy way I can get to class Foo from my code as it seems ctrl+click really isn't helpful in this situation.
Thanks,
/James |
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed Apr 08, 2009 8:43 pm Post subject: Go to Declaration |
|
|
James Dempster wrote:
| Quote: | Hi All,
Having a problem with Go to Declaration in Netbeans. If I ctrl+click a
class name I would expect it to take me to the class e.g.
class Foo extends Bar {
}
not to the constructor of it's parent class just because Foo inherits
it's constructor from Bar e.g it takes me to.
class Bar {
public function __constructor() {}
}
| Hi,
yes for this cls declaration:
class A {
public function __construct() {}//to
}
class B extends A{}
new B();//from
works as you describe intentionally. Not sure, if it is good or not for
majority of php developers. Anyone, any opinion?
Radek |
|
| Back to top |
|
 |
Eugene Morgan Posted via mailing list.
|
Posted: Wed Apr 08, 2009 8:58 pm Post subject: Go to Declaration |
|
|
I think going to the child class would be better because if you really want the parent class, you can always click on the name of the parent class when you get to the child class.
On Wed, Apr 8, 2009 at 3:42 PM, radek matous <address-removed ([email]address-removed[/email])> wrote:
| Quote: | James Dempster wrote:
| Quote: | Hi All,
Having a problem with Go to Declaration in Netbeans. If I ctrl+click a class name I would expect it to take me to the class e.g.
class Foo extends Bar {
}
not to the constructor of it's parent class just because Foo inherits it's constructor from Bar e.g it takes me to.
class Bar {
|
|
| 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
|
|
|
|
|
|