FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Go to Declaration

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
James Dempster
Posted via mailing list.





PostPosted: Wed Apr 08, 2009 7:56 pm    Post subject: Go to Declaration Reply with 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() {}
}

Any easy way I can get to class Foo from my code as it seems ctrl+click really isn't helpful in this situation. Sad

Thanks,
/James
Back to top
radek matous
Posted via mailing list.





PostPosted: Wed Apr 08, 2009 8:43 pm    Post subject: Go to Declaration Reply with 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 {
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.





PostPosted: Wed Apr 08, 2009 8:58 pm    Post subject: Go to Declaration Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB