Bug 415336 - Too limited design: org.eclipse.sphinx.emf.ui.util.EcoreUIUtil.getURIFromEditorInput(IEditorInput)
Summary: Too limited design: org.eclipse.sphinx.emf.ui.util.EcoreUIUtil.getURIFromEdit...
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-19 08:56 EDT by Andreas Graf CLA
Modified: 2024-05-07 00:17 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 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