Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [EFS] Problem opening external editor IDE.openEditor
[EFS] Problem opening external editor IDE.openEditor [message #529877] Tue, 27 April 2010 14:13 Go to next message
Dan Corneanu is currently offline Dan CorneanuFriend
Messages: 10
Registered: July 2009
Junior Member
I have implemented an EFS provider and I am trying to open some files in
eclipse (from a remote server). Files associated with the text editor
work ok but if I try to open a jpg file which is associated with the
'System editor', instead of eclipse opening it with picasa (my OS's
default editor), it opens it with the ZIP archive extractor.

After some debugging I have discovered that the IDE.openEditor() calls
FileStore.toLocalFile() which by default uses
FileCache.getCache().cache() to cache the content of the file in a
temporary local file. The problem is that the name of the temporary file
used as cache does not preserve the extension of the original FileStore
and thus the OS will associate the file with the wrong program.

Is this a bug or am I missing something?

Best regards,
Re: [EFS] Problem opening external editor IDE.openEditor [message #530472 is a reply to message #529877] Thu, 29 April 2010 17:54 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I'd open a bug against &component=Resources

I would hope that the filename the system returns reflects the original
one, not whatever it's called in the cache (maybe IDE is asking the
wrong question). But Resources is the place to start.


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:extreme slow "refreshing external folders"
Next Topic:Invalid Acces
Goto Forum:

Current Time: Thu Apr 26 15:32:50 GMT 2018

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

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