Bug 78654 - [content type] should be used universally
Summary: [content type] should be used universally
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.1 RC3   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 37668 71225 82986 85490 86166 89232
Blocks:
  Show dependency tree
 
Reported: 2004-11-15 14:44 EST by Kim Letkeman CLA
Modified: 2005-06-22 13:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Letkeman CLA 2004-11-15 14:44:17 EST
Artifacts are currently typed in several ways, with special extensions used by 
some components to allow for previously unsupported content type definitions 
(e.g. file name pattenrs instead of extensions.)

Since we would like to be able to use the new content type by inspection 
method to define our resources in all circumstances, we feel that all 
components should be brought on board to allow binding of extensions by 
content type. In concert with other fixes (78652, 78653), we would then have a 
universal method that can type any file or stream reliably.
Comment 1 Andre Weinand CLA 2004-11-15 16:27:28 EST
I have no idea what you are asking for. Please be more specific.
Comment 2 Rafael Chaves CLA 2005-01-12 13:50:54 EST
Compare was actually the first component to adopt the content type API. A more
broad adoption of this API is planned for 3.1. Related bugs:

Bug 37668 - Content-type-based editor lookup
Bug 69647 - Need showURL API
Bug 71225 - Define viewer for a given content type

Comment 3 Kim Letkeman CLA 2005-01-12 14:56:29 EST
Very nice. Thank you. Looking forward to a univeral artifact typing mechanism 
in Eclipse.
Comment 4 Rafael Chaves CLA 2005-01-12 15:13:11 EST
Can this be closed as a duplicate of one of those then?
Comment 5 Kim Letkeman CLA 2005-01-12 15:37:43 EST
That's your call, but I think that this request is a superset of all the 
others and maybe more. 

That is, I am asking to have the content-type mechanism become the standard 
mechanism by which artifacts are typed within Eclipse. If we close this one 
against one of the others, then we risk a partial solution in the next release.

It will basically depend on who has time to look at each of those and on 
whether that list of requests is complete (i.e. covers all areas that need 
content-type bindings inside Eclipse.)
Comment 6 Kim Letkeman CLA 2005-01-12 15:39:16 EST
ClearQuest has a parent-child concept that allows a number of bug reports to 
be related. Does the dependency tree allow the same thing? In which case we 
could hook this one up to the others you quoted. They could be co-dependent, 
assuming that circular dependencies don't freak the system out.
Comment 7 Rafael Chaves CLA 2005-01-12 15:55:05 EST
Bug 37668 (a 3.1 plan-item that slipped from the 3.0 plan) is very comprehensive
and also requests that all content type registries in Eclipse to be consolidated
(not only in the context of editors). I suggest adding any extra-requirements
there and marking this one as a duplicate (that one has a long list of
subscribers so it is better for gathering feedback from other interested parties). 

Re: using dependencies in Bugzilla - it is a common practice to depict a bigger
problem report into more specific (e.g. per component) PRs and then mark the
general one as depending on the more specific ones. W.r.t. circular
dependencies, not sure that is supported. We usually use regular Bugzilla bug
references (as the ones in comment 2) when we want mutual references.
Comment 8 Rafael Chaves CLA 2005-01-17 11:49:42 EST
I will take your suggestion and keep this PR as the uber PR for tracking
improvements to the content type story in 3.1. Bug 37668 is currently more about
editor association than anything else.

Moving to runtime, where the content type infra-structure lives.

Andre, I hope you don't mind if I hijack this PR (there was nothing here for
compare to do).
Comment 9 Andre Weinand CLA 2005-01-17 11:55:33 EST
Rafael, no problem.
Feel free to hijack even more of my PRs :-)
Comment 10 Rafael Chaves CLA 2005-02-17 17:40:43 EST
Updated the content type doc accordingly:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/documents/content_types.html
Comment 11 Rafael Chaves CLA 2005-03-28 11:43:39 EST
An update on this: Platform/UI has added support for editor/content type
associations (bug 37668), which was one of the most important scenarios. Editor
contributors in the SDK are being asked to migrate to the new extension markup
(bug 89232), and that should happen during M7.

The other scenarios I mentioned before (comment 2) are not likely to be
supported in 3.1.
Comment 12 Alan Yeung CLA 2005-04-01 17:59:41 EST
The "Search>File Search" feature also needs to respect the content type.
Comment 13 Rafael Chaves CLA 2005-04-03 13:14:46 EDT
Alan, could you please open a PR against Platform/Search describing how you
expect search to use content types? You could then mark it as blocking this one.
Thanks.
Comment 14 Rafael Chaves CLA 2005-06-22 13:58:28 EDT
All the work planned for the 3.1 cycle has been done. The only remaining bug
(bug 71225) may be addressed for a future release, but we can say today that the
Eclipse SDK is as content type aware as it gets. Closing.

If there are any required features that are not currently addressed in the
context of content types, please open specific problem reports against their
corresponding components (Platform/Runtime would be the right choice only if the
issue is related to the content type infrastructure).