Replacing default editor [message #282691] |
Thu, 17 March 2005 17:38 |
Eclipse User |
|
|
|
Originally posted by: spruneda.capside.com
Hi,
i'm stuck trying to replace the default editor, maybe someone can help.
When you try to associate a file type with an editor you cannot leave a
blank extension. I use to code in perl and never use .pl extension. This
is a big problem for me because I use subclipse and don't want to rename
files every time before commiting and renaming after again.
Someone knows how to setup e-p-i-c (or any other installed editor) as
default eclipse editor?
If is not possible maybe a trick to associate * to a default editor
different from the default one.
Thanks a lot in advance.
--sergi.
|
|
|
Ответ: Replacing default editor [message #282714 is a reply to message #282691] |
Fri, 18 March 2005 07:55 |
Eclipse User |
|
|
|
Originally posted by: ARashevsky.orga.ru
Hi.
May be it helps to you:
Find editor plugin package in plugins directory. Then open plugin.xml file.
Find code like this:
<extension
point="org.eclipse.ui.editors">
<editor
filenames="*.html, *.htm"
icon="icons/sample.gif"
class="ru.somecompany.eclipse.html.HTMLTextEditor"
name="HTML Editor"
id="ru.somecompany.eclipse.html.HTMLEditor"/>
</extension>
And edit attribute filename as you wish (e.g. add *.perl)
Sorry for my terrible english :)
|
|
|
Re: ŸâÒÕâ: Replacing default editor [message #282831 is a reply to message #282714] |
Tue, 22 March 2005 01:08 |
Eclipse User |
|
|
|
Originally posted by: spruneda.capside.com
Hello again.
Thanks Alex for your help, but my problem is slightly different.
I don't want to associate an editor to an extension (because I do not use
file extensions) but associate all file types without association to a
custom editor, not the default eclipse text editor (I want to use epic in
my case).
The main problem is eclipse don't allow users to create a file association
for * (or *. in windows) so I must rename all files to .pl (or whatever)
before editting.
Another possible solution for me (but I cannot find the way of doing it)
is to add epic (or any other installed editor) within the "Open With..."
menu. Is not the best solution but acceptable.
Any help or idea will be greatly appreciated.
Thanks in advance.
|
|
|
Powered by
FUDForum. Page generated in 0.03308 seconds