Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360030 - Rename refactoring does not work on files with non-default content type
Summary: Rename refactoring does not work on files with non-default content type
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 16:05 EDT by Eugene Ostroukhov CLA
Modified: 2020-09-04 15:22 EDT (History)
4 users (show)

See Also:


Attachments
Suggested fix (1.23 KB, patch)
2011-10-05 16:05 EDT, Eugene Ostroukhov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Ostroukhov CLA 2011-10-05 16:05:16 EDT
Created attachment 204632 [details]
Suggested fix

Our source files have custom content type that is derived from CDT C++ content type. Refactoring does not do anything when I run it on our files.

This bug is caused by CRefactory not including extensions of the custom content types when looking for references. Note that it properly goes up content type hierarchy but at the end it adds extensions from the parent content type instead of child.

Attached is a suggested fix.
Comment 1 Jesse Weinstein CLA 2013-04-22 18:24:21 EDT
This looks sensible. Can you make a Gerrit changeset for this patch?
Comment 2 Eugene Ostroukhov CLA 2013-04-22 18:53:42 EDT
Pushed to Gerrit - https://git.eclipse.org/r/#/c/12112/