This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 87685 - Need template to create .cpp and .h for C++ class
Summary: Need template to create .cpp and .h for C++ class
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 19:13 UTC by _ gordonp
Modified: 2008-05-23 20:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gordonp 2006-10-20 19:13:24 UTC
> It does not help me much when creating simple C++ class. What I'd like:
> Create .cpp and *.h[pp] at once with #include in .cpp and skeleton of
> class declaration and then it should be simple to add method in a header
> and have this reflected in C++ source so that I can start writing of
> implementation. Or at least add completion to write method signature in
> C++ source according to what is already written in header. Maybe I am
> too lazy after so many years w/ Java. Then I couldn't find an action
> how to navigate from declaration to actual place where the method
> implementation is. Actually hyperlinking works but how can this be
> discovered?
Comment 1 Sergey Grinev 2008-05-14 15:21:19 UTC
updated according to NB6.5 planning meeting's decision
Comment 2 Sergey Grinev 2008-05-23 17:51:23 UTC
http://hg.netbeans.org/main/rev/eacb5862c017
http://hg.netbeans.org/main/rev/30c70f27a69d

Class creation part of the feature have been implemented. Next assumption were made:

- Class name can be in any case and default template is "NewClass"
- Files names cannot be changed by user
- Create files' names are result of toLowerCase() of ClassName 
  which effectively means that user cannot create class if name of any of created file conflicts with existing files
- For source and header files extensions chosen as default are used
- Both created source and header files will be put into the same folder (physical and logical) 

P.S.: the second part of enhancement -- mew class' method wizard is a different issue, I will file new enhancement about
this.
Comment 3 Sergey Grinev 2008-05-23 20:07:30 UTC
There is already IZ for creating method in source&header: http://www.netbeans.org/issues/show_bug.cgi?id=86803
So I'm closing this one.