This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 68429 - The renaming of file name using Property Sheet Dialog does not kick off refactoring
Summary: The renaming of file name using Property Sheet Dialog does not kick off refac...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 01:38 UTC by _ sandipchitale
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ sandipchitale 2005-11-10 01:38:31 UTC
To reproduce:

1. Create a Java Project
2. Go to project explorer
3. Invoke properties dialog using "Properties" popup menu item on any java 
file and rename the name property and click OK.

Observe: The file name changes but the refactoring does not kick in.
Comment 1 Jan Chalupa 2005-11-10 06:27:02 UTC
May be "as designed". Passing on...
Comment 2 Jan Becicka 2005-11-10 07:03:58 UTC
Definitely not P2
Comment 3 Jan Becicka 2005-11-10 07:35:59 UTC
Renaming through property sheets disabled if refactoring is available.
Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <--  JavaNode.java
new revision: 1.140; previous revision: 1.139
done
Comment 4 _ sandipchitale 2005-11-10 17:02:38 UTC
Looks like the fix disables the rename if there is rename handler. I think 
this is not a fix for the original issue. Please attach a link to the spec 
which specifies that the renaming will be disabled when there is a rename 
handler (i.e. it is "as desined"). Only in some cases - unknowable to the user 
the rename will be disabled. It feels strange from HIE point of view.
Comment 5 Jan Becicka 2005-11-11 12:39:36 UTC
On the other hand, there is no document specifying, that renaming through
property sheets *should* kick off refactoring ;)

Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <--  JavaNode.java
new revision: 1.141; previous revision: 1.140
done