Bug 283867 - Support of two "SourceViewerConfiguration"s for the same content-type
Summary: Support of two "SourceViewerConfiguration"s for the same content-type
Status: RESOLVED WONTFIX
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 3.1   Edit
Hardware: All Windows Server 2003
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-07-17 12:22 EDT by Yves YANG CLA
Modified: 2009-07-17 18:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves YANG CLA 2009-07-17 12:22:59 EDT
It seems we have reached a limitation of XML editor. We have a content-type, there are two editors provided in eclipse. Each editor defines its-own SourceViewerConfiguration for its-own IContentAssistProcessor. But we observe tehre is only one gets used in both editors.
Comment 1 David Williams CLA 2009-07-17 13:08:09 EDT
Can you provide more details? What's the second editor you refer to? I'm curious how to reproduce this. 

Comment 2 Nitin Dahyabhai CLA 2009-07-17 18:52:49 EDT
Indeed, it sounds like you want to contribute each to the editor-specific IDs instead of both to the content type ID.  The target resolution policy listed at http://www.eclipse.org/webtools/wst/components/sse/designs/EditorConfiguration.html places the editor-specific IDs at a higher priority for this reason.  I'd recommend leaving one of the viewer configurations still contributed against the content type's ID as a fallback, though.