Community
Participate
Working Groups
Eclipse allows you to specify the editor to be used to edit files. However, some editors don't work on Linux. I tried: /usr/bin/X11/xedit - works /usr/bin/gedit - works /usr/bin/X11/xjed - doesn't work /bin/vi - doesn't work /usr/bin/pico - doesn't work Steps to reproduce: 1. Create a .txt file. 2. Workspace -> Preferences -> File Editors 3. Assign the above editors to .txt 4. Try to open using each editor from the workbench. I could make a guess that the X Window editors work and the console ones don't, but xjed is an X editor. Really, though, any editor should work.
None of these editors appear in my external editors list for my File Editor Preferences. The only way to add them on my install of Linux 7.1 was to enter them manually. Did they show up when your browsed external programs? Of the ones mentioned vi and pico are opened in the terminal you are working in - xedit and gedit are applications that are launched amnd hence can be launched by Eclipse.
Yes, I added the browsers manually by selecting "Browse". Most Unix users prefer the console editors to applications - this seems to be a limitation of Eclipse. If applications with their own windows are required, why didn't xjed work?
I cannot run xjed on my install in or out of Eclipse so I could not verify its behaviour.
xjed also works from Eclipse. The issue is only with the editors that open in the prompt.
SWT does not currently support opening editors that are created with shell commands. Marking as Later for consideration when support for shell based editors becaomes available.
Reopen for investigation
*** This bug has been marked as a duplicate of 22752 ***