Bug 69510 - [C++ Class Wizard] error message in C++ Class Wizard if invoke Class Wizard from existing C++ class in C/C++ Project View
Summary: [C++ Class Wizard] error message in C++ Class Wizard if invoke Class Wizard f...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Hoda Amer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 14:34 EDT by Magda Bologa CLA
Modified: 2009-01-09 17:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magda Bologa CLA 2004-07-07 14:34:37 EDT
You get an error message in C++ Class Wizard if you select an existing class 
element in C/C++ Project view and choose 'Class' Context menu to create a new 
C++ class:
Error: The wizard is not available for non C++ projects.
This is confusing for user since the context is in a C++ project (the user 
might think  that the class context menu is enabled for the selected C++ class 
to be able to create a nested C++ class for that element.

Steps:
1. Just create a C++ Managed Make project and add a class C1 using C++ Class 
wizard - the C1.h and C1.cpp will get generated
2. r-click on C1 class under C1.h element (in C/C++ Project view) and 
choose 'Class' context to add a new nested class to your existing class
Actual (Not as expected): the class wizard will come up but the dialog will 
display an error message:The wizard is not available for non C++ projects, and 
just Cancel button is enabled in this dialog

Tesetd with:
-  Eclipse Platform/Version: 3.0.0/Build id: 200406251208
- Eclipse C/C++ Development Tools/Version: 2.0.0/Build id: 200406301134
Comment 1 Kleo Hapitas CLA 2004-07-07 16:56:31 EDT
PR was not targeted to any particular release. Changing target milestone to 2.1
Comment 2 Hoda Amer CLA 2004-07-09 15:35:11 EDT
Fixed in Head and branch.
Now there is no error and the class gets added to the project owning the 
selected class or structure. Adding an internal class is just too complicated 
and needs special parsing capabilities that we currently don't have.