Bug 562405

Summary: eclipse+command:// handler should check whether the command is defined
Product: [Eclipse Project] Platform Reporter: Thomas Wolf <twolf>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=562049
https://bugs.eclipse.org/bugs/show_bug.cgi?id=562406
Whiteboard:

Description Thomas Wolf CLA 2020-04-22 09:40:00 EDT
Try

  <a href="eclipse+command://foo.bar.baz?boo=gaga">Eclipse Command</a><br />

You'll get a popup asking about whether it is OK to execute a command 'Undefined'.

The recently added EclipseCommandURIHandler should check earlier whether the command exists (and possibly also, whether there is an active and enabled handler for it, i.e., if it is handled at all), and avoid bothering the user if not. (Possibly log an error.)