Bug 494050 - Discover editors bound to specific already associated file names
Summary: Discover editors bound to specific already associated file names
Status: CLOSED MOVED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Architecture Council (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: eclipse.org-architecture-council CLA
QA Contact:
URL:
Whiteboard:
Keywords: feep
Depends on:
Blocks:
 
Reported: 2016-05-19 12:42 EDT by Konstantin Komissarchik CLA
Modified: 2021-12-23 06:42 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2016-05-19 12:42:17 EDT
In Bug 480176, marketplace listings can be tagged as including editors for specific extensions. When a user opens a file with an unknown extension, the marketplace is searched and appropriate solutions are offered to the user.

We should extend this by allowing solutions to advertise editors for specific file names. It's common to have custom editors for files with set names, such as web.xml, application.xml, weblogic.xml, etc.

The tricky part is that we'd need to revise the launch logic as now we'd have to deal with editor precedence (there is already an editor for xml files at Eclipse). Architecturally, this could work by downloading and caching (to disk with expiration) information about available solutions. Then when a file is opened, we first try to match full file name (installed and in marketplace) then by extension (installed and in marketplace).
Comment 1 Mickael Istria CLA 2016-05-19 12:59:40 EDT
A first step would be to allow to search an editor based on full file-name. The current discovery strategy may be able it support it without too much change. Once we have this search ready, we could already ship it to users via  "Open With > Search alternative editors on marketplace..." context-menu or so.

Once we have this search, then we can imagine additionally to checking for compatible editors during the launch of unassociated files, to also check for them also when opening an editor inside Eclipse (by implementing it as a workbench listener triggered on editor open).

> Then when a file is opened, we first try to match full file name (installed and in marketplace) then by extension (installed and in marketplace).

That would require a major change in the IDE.openFile methods. Currently, there is a way to extend and choose how to handle opening unassociated files only. Here it's changing the way how all file openings are handled.
Comment 2 Frederic Gurr CLA 2021-12-23 06:42:33 EST
This issue has been migrated to https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/250.