external editor set as permanent default [message #309202] |
Wed, 18 October 2006 09:03 |
Eclipse User |
|
|
|
Originally posted by: locquetx.netscape.net
How to defined default external editor association?
I post this one on the newcomers with unfortunatly not much success and
only the help of Eric
Taking the case of pdf, i would like them to be associated with acrobat
reader
So either by right clicking or by going to
Window->preference->general->editors->files association
.
This has the effect of creating
metadata\.plugins\org.eclipse.core.runtime\.settings\org.ecl ipse.ui.workbench.prefs
im my workspace.
Now if i recreate a new workspace or if i reinstall eclipse i have to do
the same again and again for all my associations.
One solution is to play with the Export/Import and then i have to do it
only once but for every instalation and workspace creation.
It would really be nice if the assocaition could be permanent.
So having a look around i got into the following bugs report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=15428
https://bugs.eclipse.org/bugs/show_bug.cgi?id=136500
that refer to the file plugin_customization.ini
giving the folowing syntax:
org.eclipse.ui/defaultEditors=*.ext1:editorId1;*.ext2:editor Id2;fileName:editorId3
So i'm trying to do the same with external editors
org.eclipse.ui/defaultEditors= *.pdf:"Adobe Acrobat Document"
org.eclipse.ui.workbench/defaultEditors= *.pdf:"Adobe Acrobat Document"
Not much luck
I also considered writting a plugin with only the plugin.xml file
with the simple content
<?xml version="1.0" encoding="UTF-8" ?>
<?eclipse version="3.0"?>
<plugin id="pdf-reader" name="Pdf association" version="1.0.0" ">
<extension point="org.eclipse.ui.workbench/resourcetypes">
<editor default="true" extensions="pdf" filenames="pdf" id="Adobe
Acrobat Document" />
</extension>
</plugin>
Still no success.
Is there any way to "permanently" associate files with external editor?
Thanks
Xavier
|
|
|
Powered by
FUDForum. Page generated in 0.04918 seconds