Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Refactoring
C++Rename
C++Undo Support
Change Parameters
Create Variable
Declare Field
Declare Variable
Extract Interface
Extract Method
Extract Resourcestring
Extract Superclass
Find Class
Find References
Find Unit
Inline Variable
Introduce Field
Introduce Variable
Move Members
Pull Member Up
Push Members Down
Rename
Safe Delete
Undo Support
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Refactoring/Rename
[ Add a report in this area ]
Report #:
102971
Status:
Need Feedback
Cannot rename a new method
Project:
Delphi
Build #:
16.0.4358.45540
Version:
16.3
Submitted By:
Curt Mayers
Report Type:
Basic functionality failure
Date Reported:
1/28/2012 10:35:06 AM
Severity:
Infrequently encountered problem
Last Updated:
1/28/2012 6:51:44 PM
Platform:
All versions
Internal Tracking #:
Resolution:
Need More Info
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
If, when designing a class or form, a new method is created, and then instantly renamed (via the refactor-->rename dialog), the method disappears.
See the screen shot sequence for better explanation:
Steps to Reproduce:
These steps correspond to the screenshots in the attachments:
1. Double click on a component event to create an event handler.
2. Here's the new event handler with the default name
3. Here's the handler template created by Delphi
4. Highlight the handler name, and use the right-click menu to use the "Refactor-->Rename method dialog"
5. Boom! The method disappears.
Workarounds
Before invoking the "Refactor-->Rename method" dialog, but a line comment inside the body of the method (e.g. "// ")
Attachment
102971.zip
Comments
Tomohiro Takahashi at 1/28/2012 6:52:36 PM
-
> 1. Double click on a component event to create an event handler.
Does your issue occur with any component and any event handler, for example a TButton and its OnClick event hanlder?
and, is this a regression in XE2? What about previous version of Delphi?
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us