Skip to main content



      Home
Home » Newcomers » Newcomers » workspace and files association
workspace and files association [message #173317] Tue, 03 October 2006 08:49 Go to next message
Eclipse UserFriend
Originally posted by: locquetx.netscape.net

Hey.

---Background---
There is a easy way to associate files with external programs in eclipse
so for the example of pdf
Window->preference->general->editors->files association…. Add a new type
*.pdf
With the *.pdf selected in associate editor add-S external programs->
select acrobat reader

Well now that is all fine but should i create a new workspace and i loose
all my associations.

On solution would be to export/import everytime i create a new workspace
and there is only one file...

Now looking carefuly, in the workspace
there is
metadata\.plugins\org.eclipse.core.runtime\.settings\org.ecl ipse.ui.workbench.prefs
wich seems to contains the file association (funny enough this file is not
create if there has't been new association defined)

instaling a pluging that would read pdf, allows me to open pdf whatever
workspace i create

---Question---
How could i get this association everytime i create a new workspace?

Thanks
Xavier
Re: workspace and files association [message #173766 is a reply to message #173317] Fri, 06 October 2006 16:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

xavier locquet vandenberge wrote:
> Hey.
>
> ---Background---
> There is a easy way to associate files with external programs in eclipse
> so for the example of pdf
> Window->preference->general->editors->files association�. Add a new type
> *.pdf
> With the *.pdf selected in associate editor add-S external programs->
> select acrobat reader
>
> Well now that is all fine but should i create a new workspace and i
> loose all my associations.

> ---Question---
> How could i get this association everytime i create a new workspace?

Eclipse will use the "system" handler for file types that its internal
plugins don't explicitly handle. So as long as PDF files are correctly
associated with the Acrobat reader in your OS, it should just work.

--
Hope this helps,
Eric
Re: workspace and files association [message #174403 is a reply to message #173766] Thu, 12 October 2006 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: locquetx.netscape.net

Hi,
Well not quite so... pdf are indeed associated on the OS with
AcrobatReader but opening a file in Eclipse result in seeing the
non-human-unreadable metadata files in the eclipse editor rather than the
pdf popping-up acrobat

I had a bit of look around an could find
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 structure:
org.eclipse.ui/defaultEditors=*.ext1:editorId1;*.ext2:editor Id2;fileName:editorId3

so trying to follow that syntax i add in plugin_customization.ini the lines
org.eclipse.ui/defaultEditors= *.pdf:"Adobe Acrobat Document"
org.eclipse.ui.workbench/defaultEditors= *.pdf:"Adobe Acrobat Document"

So far no success!
any idea?

Xavier
Re: workspace and files association [message #174446 is a reply to message #174403] Thu, 12 October 2006 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

xavier locquet vandenberge wrote:
> Hi,
> Well not quite so... pdf are indeed associated on the OS with
> AcrobatReader but opening a file in Eclipse result in seeing the
> non-human-unreadable metadata files in the eclipse editor rather than
> the pdf popping-up acrobat

> So far no success!
> any idea?

Right click the file and choose Open with... > System Editor. That
should open Acrobat Reader.
Once you've made this choice for a particular file, Eclipse will
remember that choice and use the System editor by default for that file.

Hope this helps,
Eric
Re: workspace and files association [message #174662 is a reply to message #174446] Fri, 13 October 2006 08:17 Go to previous message
Eclipse UserFriend
Originally posted by: locquetx.netscape.net

Yes the selection of the editor can be done "by hand" either with the
right click or in the window>preference menu but the idea is to get
acrobat(or whatever else we decide to associated) popping up whenever you
reinstall eclipse or create a new workspace.
so the simple file association is not enough.

I guess there is a way to do that via configuation file, that could be
distributed at the same time as your plugin...

Xavier

Eric Rizzo wrote:

> xavier locquet vandenberge wrote:
>> Hi,
>> Well not quite so... pdf are indeed associated on the OS with
>> AcrobatReader but opening a file in Eclipse result in seeing the
>> non-human-unreadable metadata files in the eclipse editor rather than
>> the pdf popping-up acrobat

>> So far no success!
>> any idea?

> Right click the file and choose Open with... > System Editor. That
> should open Acrobat Reader.
> Once you've made this choice for a particular file, Eclipse will
> remember that choice and use the System editor by default for that file.

> Hope this helps,
> Eric
Previous Topic:Compling
Next Topic:Nagging Console window
Goto Forum:
  


Current Time: Mon Nov 10 10:56:20 EST 2025

Powered by FUDForum. Page generated in 0.12569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top