Community
Participate
Working Groups
It is not obvious that the code generated by Generate Getters ans Setters can be customized by the new Name Style preference page. I suggest adding an hyperlink to the preference page, similar to how JDT's Generate Getters ans Setters links to Code Templates.
Created attachment 199789 [details] Link to Name Style preference page patch
The patch adds a link to Name Style and refreshes the function declarations when preferences change.
(In reply to comment #2) The patch looks good except for a minor wording issue. The message "The generated code of the getters/setters may be configured on the Name Style preference page." is somewhat misleading since the generated code may depend on other preferences too. It would be more accurate to say: "The names of getters and setters may be configured on the Name Style preference page." I would also put a spacer above the message to separate it visually from the "Place implementation in header file" check box.
(In reply to comment #3) > (In reply to comment #2) > I would also put a spacer above the message to separate it visually from the > "Place implementation in header file" check box. A spacer? An horizontal separator or just some empty space?
(In reply to comment #4) > A spacer? An horizontal separator or just some empty space? Just some empty space.
Created attachment 199805 [details] Link to Name Style preference page patch, revised (In reply to comment #3) > (In reply to comment #2) > > The patch looks good except for a minor wording issue. The message "The > generated code of the getters/setters may be configured on the Name Style > preference page." is somewhat misleading since the generated code may depend on > other preferences too. It would be more accurate to say: "The names of getters > and setters may be configured on the Name Style preference page." You're right, that's better. > I would also put a spacer above the message to separate it visually from the > "Place implementation in header file" check box. Space added.
Comment on attachment 199805 [details] Link to Name Style preference page patch, revised Woops, patch includes other changes.
Created attachment 199806 [details] Link to Name Style preference page patch, revised
Fixed in 8.0 and master.
*** cdt git genie on behalf of 352262 *** Bug 352262 - Link to Name Style preference page from Generate Getters and Setters page [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=11963d3ec565744758c2fa4ac4b8e947ee71733d
*** cdt git genie on behalf of 352262 *** Bug 352262 - Link to Name Style preference page from Generate Getters and Setters page [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=7184f89ff4591bc3da4dd80f34c2be83bc556aea