Bug 549579 - Support eclipse+mpc:// uri scheme for multiple installations
Summary: Support eclipse+mpc:// uri scheme for multiple installations
Status: NEW
Alias: None
Product: MPC
Classification: Technology
Component: wizard (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 536589
Blocks:
  Show dependency tree
 
Reported: 2019-07-25 15:14 EDT by Carsten Reckord CLA
Modified: 2019-10-04 04:53 EDT (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 Carsten Reckord CLA 2019-07-25 15:14:00 EDT
Bug 536589 introduced support for an OS-level URI handler using the eclipse+mpc:// uri scheme to trigger MPC installations. The OS-level handler is currently one fixed Eclipse installation, and clicking an eclipse+mpc:// link will always open MPC in that Eclipse.

As a user with multiple Eclipse installations, I want to be able to install marketplace entries into different Eclipse installations though. Ideally, the handler would let me choose from a list of known installations (or picking unknown ones via file chooser), favoring any currently running ones, and dispatch the action to that Eclipse.

If the target Eclipse is not running, we could eitehr start it immediately, or remember the request until its next startup and trigger the action then.
Comment 1 Carsten Reckord CLA 2019-07-25 15:17:14 EDT
We could also investigate moving the handler and dispatcher part out into a minimal RCP that we could put e.g. into ~/.eclipse. This way, we would decrease the risk of the installation that happens to provide the registered handler to be deleted/uninstalled, and thus breaking the handler support.
Comment 2 Carsten Reckord CLA 2019-07-25 15:18:27 EDT
@Matthias: Can the uri scheme registration implementation be used to customize which Eclipse is registered and how it is started (e.g. with a different application id)?
Comment 3 Matthias Becker CLA 2019-08-01 07:47:05 EDT
(In reply to Carsten Reckord - Out of office until August 13 from comment #2)
> @Matthias: Can the uri scheme registration implementation be used to
> customize which Eclipse is registered and how it is started (e.g. with a
> different application id)?

So on OS level you just specify a binary that should be started when clicking a link with that scheme.
I don't know how to customize this.