Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Patch to create ICoreModel interface

> Leo had some restrictions, but the fact that content-type
> conflicts can be resolve with nature took care of the objections...
> I think.

My objection was that they were not planning to save the user 
Additions to a content type per project, but only per
Workspace.  They agreed to save them per project.

Leo

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Alain Magloire
Sent: Wednesday, April 20, 2005 12:43 PM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Patch to create ICoreModel interface

> 
> If the ICFileType is deprecated, it isn't marked that way :)
> 

We did not want to do this before the IContentTypeManager work is
complete.
The faith of the framewok was unclear 'til M6.

> What should we be using?
> 

The IContentTypeManager interface.  We will also provide
cover helper methods in the CCorePlugin(or rather the old cover methods
will be converted).

The work is incomplete but basically we register content-types to
The Platform see org.eclipse.cdt.core/plugin.xml:

 <!--extension point="org.eclipse.core.runtime.contentTypes"> 
    <file-association 
     content-type="org.eclipse.cdt.core.cSource"
     file-extensions="c"/>
 </extension--> 

 <!--extension point="org.eclipse.core.runtime.contentTypes"> 
    <file-association 
     content-type="org.eclipse.cdt.core.cxxSource"
     file-extensions="cpp,cxx,cc"/>
 </extension--> 

Plugins can contribute new extensions/filenames(see the docs)

Unfortunately a good chunk of the work due for Eclipse-31M{5/6} was
moved back in M7.

Although, I've mention this before, folks should look at
this framework and make sure it covers there needs.

Leo had some restrictions, but the fact that content-type
conflicts can be resolve with nature took care of the objections ... I
think.


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


Back to the top