Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-core-dev] New class IIncludeContainer

Hi,

I don't really have any skin in the game, but it would seem to me that you will have to have both. There needs to be a way to get the "base representation" objects in file order. There also has to be a way to get the "logical grouping" objects. Whatever API the model is offering to see what's in a file will have to support both because sometimes you want to know "what comes after what" and sometimes you want to know "what are the different kinds of these."

Thanks!
-Chris

At 12:59 PM 4/3/2003 -0500, you wrote:
A couple comments.

First, I would love something like this to get the includes off the top
level of the outline.

Second, this is a little trickier than in the JDT where the imports are all
clumped together in the source file.  In C/C++ they can be dispersed
throughout the file.  My feeling is that we should maintain the ordering of
the elements in the model as they are laid out in the file.  However, that
feeling may pass as I think about it more...

I'm a fan of not having includes shown at all in the outline view.  But
that's not a popular opinion (at least not around here).  Putting them in a
container would certainly help the issue.

+1

Doug Schaefer
Senior Staff Software Engineer
Rational Software - IBM Software Group
Ottawa (Kanata), Ontario, Canada


-----Original Message-----
From: Alain Magloire [mailto:alain@xxxxxxx]
Sent: Thursday, April 03, 2003 12:13 PM
To: cdt-core-dev@xxxxxxxxxxx
Subject: [cdt-core-dev] New class IIncludeContainer

bonjour
  We would like to propose an IIncludeContainer class.
Similar to JDT, IImportContainer

ITranslationUnit
        + IIncludeContainer
                + IInclude
        + IFunction
        ....

Comments?


_______________________________________________
cdt-core-dev mailing list
cdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-core-dev
_______________________________________________
cdt-core-dev mailing list
cdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-core-dev



Back to the top