You are not logged in.

#1 2007-12-01 00:50:36

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

How Can I change the default system editor to use it on Eclipse?

Hi, I want to know something. In Eclipse, when I do the following with a file: Open With -> System Editor, GVIM is opened, and I would want to change this behaviour to another editor.

How Can I perform this?

Greetings


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#2 2007-12-01 02:06:47

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: How Can I change the default system editor to use it on Eclipse?

possibly the env::

export VISUAL="editor [args](e.g: geany -i)"
export EDITOR=$VISUAL

you can set this in a shellscript start starts the eclipse ide .. but it's better to set it globally from /etc/profile that way other applications benefit

Last edited by kumico (2007-12-01 02:07:43)

Offline

#3 2007-12-01 10:10:05

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: How Can I change the default system editor to use it on Eclipse?

It doesn't work to eclipse... I don't know why, always gvim is opened... If I uninstall gvim, eclipse give me an error telling to me that was impossible to open the system editor.

The variables mentioned above initially were empty (without content).

Any more ideas?

Greetings


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#4 2007-12-01 10:25:34

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 266

Re: How Can I change the default system editor to use it on Eclipse?

Davigetto wrote:

It doesn't work to eclipse... I don't know why, always gvim is opened... If I uninstall gvim, eclipse give me an error telling to me that was impossible to open the system editor.

The variables mentioned above initially were empty (without content).

Any more ideas?

Greetings

I'm pretty sure those ENV variables are only used for terminal / console operations, not GUI functionality. I think the confusing issue here, perhaps, was that Eclipse calls the option 'system editor.'

What it is referring to, instead, is the application set in your file manager for opening a particular file type. For me, it opens Scite, as I have Scite set in Nautilus to open most 'text' types. However, I can change the behavior to open Komodo Edit for *.py files by simply right clicking on any *.py file, selecting 'Properties' and setting the appropriate editor in the 'Open with' tab. Now *.py files open in Komodo in any circumstance, including selecting 'Open wirh > system editor' in Eclipse.

The procedure will be slightly different depending on your DE / file manager.

Last edited by MrWeatherbee (2007-12-01 10:26:56)

Offline

Board footer

Powered by FluxBB