Skip to main content


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
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 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
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: Thu Mar 28 08:18:19 GMT 2024

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

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

Back to the top