[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: storageeditorinput and SAVE ???

what about a file ... I mean I could export the memory information on a file and create a filestoreeditorinput
would it be of any help ...
guess not I cannot see any link to save operation ... but I could probably set some resource change listener ... but again this probably will work if the file is inside eclipse and not only in the filesystem ...



"Remy Chi Jian Suen" <remy.suen@xxxxxxxxx> wrote in message news:gepe73$hgr$1@xxxxxxxxxxxxxxxxxxxx
Kar, there is no way you can know whether an editor supports saving back to a given IEditorInput. If you check the API for the ISEI, it doesn't even mention saving back to the underlying IStorage and suggests that a new file resource be created for writing the contents.

"File-oriented editors should support this as a valid input type, and display its content for viewing (but not allow modification). Within the editor, the "save" and "save as" operations should create a new file resource within the workspace."

http://help.eclipse.org/stable/nftopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/IStorageEditorInput.html