Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323113 - [editor] Editor should open even if file URI doesn't match
Summary: [editor] Editor should open even if file URI doesn't match
Status: CLOSED DUPLICATE of bug 299242
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 05:19 EDT by Jan Koehnlein CLA
Modified: 2010-08-25 14:09 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 Jan Koehnlein CLA 2010-08-19 05:19:21 EDT
It'd be nice if the Xtext editor would open even though the file's URI does not match the resource factory registration. A typical example is if the user enters a file name whose extension has worng case, e.g. Model.mYdSL instead of Model.mydsl: While the Eclipse's editor registry can detect the editor, EMF's resource factory can't. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=322434

We should use an injected IResourceFactory to create the XtextResource in ResourceForIEditorInputFactory. As we are using EMF's default resource factory registry lookup in many other places, e.g. the builder, we'd also need some user feedback if the resource factory registered for a file's URI is the correct one for the file's content.
Comment 1 Sebastian Zarnekow CLA 2010-08-25 14:09:05 EDT

*** This bug has been marked as a duplicate of bug 299242 ***