|[EFS] Problem opening external editor IDE.openEditor [message #529877]
||Tue, 27 April 2010 10:13
| Dan Corneanu
Registered: July 2009
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?
Powered by FUDForum
. Page generated in 0.01556 seconds