Skip to main content



      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 10:13 Go to next message
Eclipse UserFriend
Hi,
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,
Dan.
Re: [EFS] Problem opening external editor IDE.openEditor [message #530472 is a reply to message #529877] Thu, 29 April 2010 13:54 Go to previous message
Eclipse UserFriend
I'd open a bug against
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &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.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:why does eclipse suddenly lock?
Next Topic:Which version of platform would you use for a new development?
Goto Forum:
  


Current Time: Tue Jul 22 20:56:16 EDT 2025

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

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

Back to the top