Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349745

Summary: Generate getters and setters does not allow customizing prefixes or suffixes
Product: [Tools] CDT Reporter: tmandry
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED DUPLICATE QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: enhancement    
Priority: P3 CC: cdtdoug, malaperle, tmandry
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description tmandry CLA 2011-06-17 23:37:48 EDT
Build Identifier: 20110301-1815

The "Generate getters and setters" feature seems to be hardcoded to use "getXXX()" and "setXXX()" named functions, and does not allow customizing prefixes or suffixes (i.e. if I want my getters to use the Qt-style plain "XXX()" and setters to be "setXXX()".)

Reproducible: Always

Steps to Reproduce:
1. Right click in editor
2. Source -> Generate getters and setters
Comment 1 Marc-André Laperle CLA 2011-06-18 10:52:43 EDT
This feature is available in CDT 8.0 > 20110425. You can change that in the preferences, C/C++, Code Style, Name Style.

*** This bug has been marked as a duplicate of bug 273529 ***