Bug 83004 - [content type] discontinue automagic aliasing
Summary: [content type] discontinue automagic aliasing
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 (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Rafael Chaves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 82986
  Show dependency tree
 
Reported: 2005-01-17 14:07 EST by Rafael Chaves CLA
Modified: 2005-01-27 15:52 EST (History)
0 users

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-01-17 14:07:33 EST
We do automagic aliasing for when two completely unrelated content types claim
to be associated with the exact same file spec. That is bogus, and does not
match the user expectation. 

Explicit aliasing should be supported though. People may want to provide custom
content types in the absence of the official content type. For instance, for
org.eclipse.core.runtime.properties, we could have:

<!-- a placeholder for setups where JDT's official type is not available -->		
<content-type id="properties" 
  name="%propertiesContentTypeName" 
  base-type="text"
  file-extensions="properties"
  default-charset="ISO-8859-1"
  alias-for="org.eclipse.jdt.core.javaProperties"/>
Comment 1 Rafael Chaves CLA 2005-01-26 11:45:37 EST
David, are you guys relying on automagic aliasing for anything? I remember you
needed to hijack the XML content type, and you did so by providing another
content type for the XML file extension. Is that still the case?

That was not the intent for automagic aliasing, and we want to enforce that by
having content types explicitly saying if they are supposed to be aliases or not.

If none of this make sense, please check:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/documents/content_types.html

Section "Conflict Resolution", item #1, and FAQs #7, and #9 to #11.
Comment 2 Rafael Chaves CLA 2005-01-27 15:06:14 EST
Oh, nevermind, in the context of bug 80669 I found the information I needed. We
are going ahead with this.
Comment 3 Rafael Chaves CLA 2005-01-27 15:06:35 EST
Fixed. Released to HEAD.
Comment 4 David Williams CLA 2005-01-27 15:52:13 EST
BTW, having the explicit aliasing is a great idea.