NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Autocomplete and abstract classes


Joined: 01 Oct 2009
Posts: 2
Reply with quote
A tiny feature request, but it makes the IDE oh so more complete.

In the auto complete popup for classes (when you type 'new ...') it would be helpful to distinguish between normal classes and abstract classes (which you can't instantiate using 'new') by using a different icon or formatting (how about gray + italic?).
View user's profileFind all posts by JeRaSend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
Agreed, except I don't think abstract classes should be shown at all.

I also tested adding the @abstract tag to the class's phpdoc comment, which you might do if using PHP4.
Adding the tag did not affect the autocomplete popup either. If the @abstract tag is set, I think the class should be hidden from autocomplete as well.
View user's profileFind all posts by simshaunSend private message


Joined: 15 Sep 2005
Posts: 51
Location: Birmingham, UK
Reply with quote
I would prefer JeRa's suggestion.

Just because the class is abstract doesn't mean it should be, might be a mistake on someone elses part, by not appearing in the popup how would you even know if existed?

Light grey would work with a new icon.
View user's profileFind all posts by BlackGasSend private messageVisit poster's website
Autocomplete and abstract classes
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic