NetBeans Forums

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

Rename of variables (dev versions)

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





PostPosted: Thu Apr 23, 2009 6:12 am    Post subject: Rename of variables (dev versions) Reply with quote

Hi all,

rename of local variables (ctrl+r) doesn't work 2 weeks or more. Select
is ok.

Petr


--

petrovo

Czech Republic
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Thu Apr 23, 2009 7:50 am    Post subject: Rename of variables (dev versions) Reply with quote

Čau,

On čtvrtek 23 dubna 2009 08:12:49 Petr J. wrote:
Quote:
rename of local variables (ctrl+r) doesn't work 2 weeks or more.

intentional - we allow to rename only variables that are known to be _local_ -
in other words, we try to avoid incorrect "refactoring" (if the variable is
defined in the global scope, IDE cannot know whether it is used in any other
file; the same applies for names of classes); please notice that CTRL + r is
just very simple refactoring. Feel free to file an issue [1], our actual
decision is not final yet.

Quote:
Select is ok.

What do you mean by this exactly?

Thanks,
Tomáš
[1] http://www.netbeans.org/community/issues
--
Tomas Mysik
address-removed
Back to top
kristian



Joined: 12 Nov 2008
Posts: 34
Location: Denmark

PostPosted: Tue May 05, 2009 5:33 pm    Post subject: Reply with quote

I prefer that it works like it used to. I think that CTRL+R used to work for renaming in the file-scope. I see your point with regards to:

Quote:
intentional - we allow to rename only variables that are known to be _local_ - in other words, we try to avoid incorrect "refactoring" (if the variable is defined in the global scope, IDE cannot know whether it is used in any other file; the same applies for names of classes)


But this is not relevant for my day-to-day use. As long as I know that I have to use a different approach if I wan't to rename across multiple files. I guess this is the same for most PHP developers.

Has an issue for this been opened? I have tried searching the issues but I didn't find anything. Maybe I'm doing it the wrong way. I appears to be a very complicated system Smile
Back to top
radek matous
Posted via mailing list.





PostPosted: Tue May 05, 2009 7:39 pm    Post subject: Rename of variables (dev versions) Reply with quote

kristian wrote:
Quote:
I prefer that it works like it used to. I think that CTRL+R used to work for renaming in the file-scope. I see your point with regards to:


Quote:
intentional - we allow to rename only variables that are known to be _local_ - in other words, we try to avoid incorrect "refactoring" (if the variable is defined in the global scope, IDE cannot know whether it is used in any other file; the same applies for names of classes)


But this is not relevant for my day-to-day use. As long as I know that I have to use a different approach if I wan't to rename across multiple files.
Has an issue for this been opened? I have tried searching the issues but I didn't find anything. Maybe I'm doing it the wrong way. I appears to be a very complicated system ;-)

I've reverted the behavior like it was (at least until real rename
refactoring is implemented).

http://www.netbeans.org/issues/show_bug.cgi?id=163313



Radek
Back to top
kristian



Joined: 12 Nov 2008
Posts: 34
Location: Denmark

PostPosted: Thu May 07, 2009 3:39 pm    Post subject: Reply with quote

Thank you
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo