| View previous topic :: View next topic |
| Author |
Message |
James Dempster Posted via mailing list.
|
Posted: Sun May 10, 2009 11:49 am Post subject: Go to Declaration |
|
|
What's the chance of this getting implemented?
On Wednesday, April 8, 2009, radek matous <address-removed> wrote:
| Quote: | James Dempster wrote:
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 |
|
 |
radek matous Posted via mailing list.
|
Posted: Sun May 10, 2009 2:34 pm Post subject: Go to Declaration |
|
|
James Dempster wrote:
| Quote: | What's the chance of this getting implemented?
| It's not matter of implementation (very easy to do it), but rather
matter of decision. After reading your request I have asked couple of
people to know their opinion and I didn't get clear strong yes yet, so I
still incline to let it as it is. I think for your requirement is
simple workaround - instead of ctrl+click use double click && ctrl+O
(goto type)., which is next argument for keeping it as it is, because
there is no other way how to navigate fast to constructor.
Radek
| Quote: |
On Wednesday, April 8, 2009, radek matous <address-removed> wrote:
| Quote: | James Dempster wrote:
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 |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed May 13, 2009 5:29 pm Post subject: Go to Declaration |
|
|
James Dempster wrote:
| Quote: | What's the chance of this getting implemented?
| Fixed this way: when you click to class name, go to class constructor or
to class definition, if class has no constructor.
Issue: http://www.netbeans.org/issues/show_bug.cgi?id=146548
Radek
| Quote: | On Wednesday, April 8, 2009, radek matous <address-removed> wrote:
| Quote: | James Dempster wrote:
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 |
|
 |
|
|
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
|
|
|
|