Bug 106079 - New Class Wizard doesnt consider relative path of base class
Summary: New Class Wizard doesnt consider relative path of base class
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 13:54 EDT by Alex Farberov CLA
Modified: 2020-09-04 15:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Farberov CLA 2005-08-04 13:54:26 EDT
I am creating a new C++ Class called "ClassChild" via the New Class Wizard. I 
set the baseclass of the new class to some other class - "ClassParent"

The structure of my program is:
children/ClassChild.h(cpp)
parents/ClassParent.h(cpp)

When the class ClassChild is created, the include directive is wrong:
#include "ClassParent.h"
rather than
#include "../parents/ClassParent.h"

The wizard knows the location of the new class (/children) and of the base 
class (/parents). I dont see a reason why the include directive should not be 
able to plot a relative path from the new class to the base class.

Thanks,
Alex 


----

Comment by "devin_steffler@ca.ibm.com" on eclipse.tools.cdt follows:

I think that there is more to this bug than what you described.  For
example, what if your parent class is pointing to a linked resource?  How
would you figure out what the relative path is from your project?

You should raise a bug on this https://bugs.eclipse.org/bugs/

Devin