Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 8916

Summary: UI Editors command specification does not launch external editor on system path
Product: [Eclipse Project] Platform Reporter: Scott Fairbrother <scottf>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2 CC: Kevin_Haaland
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Scott Fairbrother CLA 2002-02-01 08:51:15 EST
I registered an external editor to launch on a resource. In the plugin
file below, I specified notepad.exe which is on the Win2k sytem path and 
doesn't do anything.

The Internal and External Editors documentation indicates that the executatble 
command must be located on the system path or in the plugins directory.  
However, this is incorrect because the only way to lauch an executeable is to   
specify the complete path and in my case that is c:\WINNT\system32.  

Steps:

Using: Windows 2000
Eclipse V 1.0 or (2.0 Build  20020125)

1.) Create a plugin that extends org.eclipse.ui
2.) Create and editor  for some new extension
3.)Specify a command to launch an external editor.  Per the documentation,
make sure that the executeable is on the system path or in the plugins
directory.

Here is the the plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- File written by PDE 1.0 -->
<plugin
id="LaunchEditPlugin"
name="LaunchEditPlugin"
version="1.0.0">
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.resources"/>
</requires>
<extension
id="com.ibm.jumpstart.launchedit"
name="Launch This Editor"
point="org.eclipse.ui.editors">
<editor
name="Launch This Editor"
extensions="launchthis"
command="NOTEPAD.EXE"
id="com.ibm.jumpstart.LaunchEditPlugin.editor1">
</editor>
</extension>
</plugin>

4.)  Start a workbench runtime instance.
5.)  In the workbench runtime instance create a project.
6.)  In the project create a file with an extension that is specified in
the extensions attribute
7.) Right click on the new file and Open With [external editor name]



There was this problem in bugzilla that looks similar but is not quite.
Bugzilla Bug 4842 Can't launch external editors. (1GKEYOE)
Comment 1 Nick Edgar CLA 2002-05-14 18:46:17 EDT
Tod, this sounds like a dup of one you recently fixed.
Can you please verify.
Comment 2 Tod Creasey CLA 2002-05-15 07:40:13 EDT

*** This bug has been marked as a duplicate of 15791 ***