Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Create new class
Create new class [message #132109] Fri, 17 December 2004 10:25 Go to next message
Eclipse UserFriend
Originally posted by: no_spam.for_me.no

Hi,

Is it possible [in the latest version of CDT] to change the output of the
"New class"-wizard? E.g. always generate a private copy-constructor?

--
Paal J
Re: Create new class [message #132124 is a reply to message #132109] Fri, 17 December 2004 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cwiebe.qnx.com

Pål Jørgensen wrote:
> Hi,
>
> Is it possible [in the latest version of CDT] to change the output of
> the "New class"-wizard? E.g. always generate a private copy-constructor?
>
> --
> Paal J

Unfortunately no. What I'd like to do for CDT 3.0+ is to allow you to
add your own method stubs in the class wizard. So you could do things
like copy constructor, assignment operator, etc. This would all be
configurable through some code generation preference page.

If you like, please file a change-request with whatever ideas you have.

Thanks
-Chris
Re: Create new class [message #132135 is a reply to message #132124] Fri, 17 December 2004 19:18 Go to previous message
Eclipse UserFriend
Originally posted by: lothar.xcerla.com

Chris Wiebe wrote:

> Pål Jørgensen wrote:
>> Hi,
>>
>> Is it possible [in the latest version of CDT] to change the output of
>> the "New class"-wizard? E.g. always generate a private copy-constructor?
>>
>> --
>> Paal J
>
> Unfortunately no. What I'd like to do for CDT 3.0+ is to allow you to
> add your own method stubs in the class wizard. So you could do things
> like copy constructor, assignment operator, etc. This would all be
> configurable through some code generation preference page.
>
> If you like, please file a change-request with whatever ideas you have.
>
> Thanks
> -Chris

The easiest thing would probably to give the user the capability to specify
template filenames for the header, inline and implementation files like
template.h template.inl and template.cpp
These files would contain certain strings that get replaced by the wizard
(just like code templates work now)

Lothar
Previous Topic:How do I inspect unicode strings with CDT ?
Next Topic:Adding custom rules to a managed build/builder/whatever
Goto Forum:
  


Current Time: Mon Nov 10 06:31:18 EST 2025

Powered by FUDForum. Page generated in 0.08350 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top