Bug 415336

Summary: Too limited design: org.eclipse.sphinx.emf.ui.util.EcoreUIUtil.getURIFromEditorInput(IEditorInput)
Product: [Automotive] Sphinx Reporter: Andreas Graf <graf>
Component: CoreAssignee: Project Inbox <sphinx-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: balazs.grill, stephaneberle9
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andreas Graf CLA 2013-08-19 08:56:06 EDT
The code in this method is too limited wrt to the possible input types. It assumes that editInput is one of a set of types, or that it can be adapted to IFile. However, not all stores might be IFiles. It would be good, if one could register additional algorithms to get the URI from an editorInput.

Maybe by adding some lines trying to adapt to URI?
Comment 1 Stephan Eberle CLA 2013-11-14 09:10:33 EST
(In reply to Andreas Graf from comment #0)
> The code in this method is too limited wrt to the possible input types. It
> assumes that editInput is one of a set of types, or that it can be adapted
> to IFile. However, not all stores might be IFiles. It would be good, if one
> could register additional algorithms to get the URI from an editorInput.
> 
> Maybe by adding some lines trying to adapt to URI?

Would you like to sketch what these lines should look like to get a clear picture of your idea?
Comment 2 Balazs Grill CLA 2024-05-07 00:17:42 EDT
Closed stale issue before migration