Bug 85765 - [content type] allow users to disable content types
Summary: [content type] allow users to disable content types
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Rafael Chaves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 87194
Blocks: 82986
  Show dependency tree
 
Reported: 2005-02-17 17:07 EST by Rafael Chaves CLA
Modified: 2009-08-18 16:20 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2005-02-17 17:07:10 EST
Allow users to disable content types at a global level or at a project level.
This would be interesting in the case we do not detect the right content type.
See also bug 69640.
Comment 1 Alain Magloire CLA 2005-03-01 15:17:55 EST
Content-type project specific, seems to be important for the CDT folks

This is mark as enh. ...

What would it take to make this a reality for 3.1 timeframe ?
Comment 2 Rafael Chaves CLA 2005-03-01 15:41:32 EST
I would have time to address the Core part of the problem by M6, but the UI
folks are overwhelmed by the work they already have to do. The UI should be
something in the form of a properties dialog page that would show only for
projects. A simple list of content types with check boxes might be enough (a la
Project References page). Would you be willing to provide a patch?
Comment 3 Alain Magloire CLA 2005-03-01 15:45:48 EST
Below is an excerpt from CDT mailing list with Leo:

> Will this enhancement be done in Eclipse 3.1?  Will CDT drop the
> per-project file extension associations if it is not?  I would not like
> to see the functionality dropped.  Developers can find themselves
> working with someone else's code where "strange" file extensions are
> used, but not necessarily want these extensions to be valid in the
> projects that they create.
> 
> Regards,
> Leo

a scenario *.tcc is use by cygwin to say indicate a C++ template file and
should be parse by the C++ source parser.

The content-type per nature solves the problem for the ISV, so when they(ISV)
ship with the CDT, there wizards will add a nature to the project
so new content-types will be available to there specific projects.

But for the open-source users, working on say Linux, needing to add
an extension for QT or for its own libs(*.t for template),
it is not possible without affecting things globally.

I think, with the coming of content-type/natures, I can argue with
with the CDT folks on the need to totally embrace the IContentTypeManager
framework(so we can drop the old Resolver Model), but having project specific
will probably help.
Comment 4 Alain Magloire CLA 2005-03-01 16:00:22 EST
(In reply to comment #2)
> I would have time to address the Core part of the problem by M6, but the UI
> folks are overwhelmed by the work they already have to do. The UI should be
> something in the form of a properties dialog page that would show only for
> projects. A simple list of content types with check boxes might be enough (a 
la
> Project References page). Would you be willing to provide a patch?

Questions:
- What will be the new API to add/get/remove content-type on the
  IContentTypeManager ?
- You guys have already have an API preference page, as an example:

    Type UI plug-in</a>. A simple plug-in that contributes a preference 
    page for managing content type file associations, useful for testing.

    downloads/examples/contenttype/com.examples.contenttype.ui_1.0.0.zip

making this a Property page would that be a good start ?
I'll be happy to modify that example or contribute back a complete new UI.
Are the sources somewhere for that example ?
Comment 5 Rafael Chaves CLA 2005-03-04 17:47:26 EST
So far we are not planning allowing programmatic addition/removal of content
types. The idea here is just to mark selected content types at the platform
level/project level, so others are favoured to the detriment of the marked ones
(or the other way around). 

Alain, let's wait until next week when the Platform/UI guys are back from
EclipseCon to discuss about the property page since they may have their specific
requirements on how this should be achieved.
Comment 6 Alain Magloire CLA 2005-03-16 15:46:29 EST
(In reply to comment #5)
...
> 
> Alain, let's wait until next week when the Platform/UI guys are back from
> EclipseCon to discuss about the property page since they may have their specific
> requirements on how this should be achieved.

Any news on this ? from the UI folks
Comment 7 Kim Horne CLA 2005-03-16 16:10:32 EST
UI has added a content-type preference page (Under Editors) that is in head and
will be in next weeks integration build but havn't had time to investigate this
issue.  We would be happy to try and support any mechanism that core could offer
to make this easier, but we don't have time to roll this behaviour ourselves for
our editor resolution strategy.
Comment 8 Rafael Chaves CLA 2005-03-25 22:40:16 EST
What was intended here has never been actually asked by anybody. Bug 87447
provides what is needed by CDT (see comment 3). To avoid adding gratuitous
complexity to the content type story, we are going to postpone this feature to a
future release.
Comment 9 John Arthorne CLA 2009-08-18 16:13:59 EDT
[LATER->WONTFIX] The "LATER" bugzilla resolution is being removed so reopening to mark as WONTFIX.
Comment 10 John Arthorne CLA 2009-08-18 16:20:03 EDT
[LATER->WONTFIX] The "LATER" bugzilla resolution is being removed so reopening to mark as WONTFIX.