Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Save after reading
Save after reading [message #269605] Tue, 31 August 2004 15:32 Go to next message
Eclipse UserFriend
If I have IFile from context menu, can read it using getContents.
How can I save back to the same file if I modify something in the Contents
being read?
Thanks again!
Re: Save after reading [message #269609 is a reply to message #269605] Tue, 31 August 2004 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You need to use a NEW input stream with the entire new contents and do
IFile.setContents(InputStream).

--
Thanks, Rich Kulp

Re: Save after reading [message #269615 is a reply to message #269609] Tue, 31 August 2004 18:13 Go to previous messageGo to next message
Eclipse UserFriend
Thanks!
Re: Save after reading [message #269699 is a reply to message #269605] Wed, 01 September 2004 12:38 Go to previous message
Eclipse UserFriend
IFile.setContents(...)

rohitsoftware wrote:

> If I have IFile from context menu, can read it using getContents.
> How can I save back to the same file if I modify something in the Contents
> being read?
> Thanks again!
>
Previous Topic:treeviewer cannot find widget in RCP app
Next Topic:problem with tasks changing from 2.1.x to 3.0
Goto Forum:
  


Current Time: Sun Jul 20 07:28:17 EDT 2025

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

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

Back to the top