3 Replies - 2566 Views - Last Post: 05 August 2010 - 09:10 AM Rate Topic: -----

#1 stephen.madden  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 64
  • Joined: 15-May 09

Save to file in RCP application

Posted 05 August 2010 - 09:00 AM

I am a bit new to Java. I have developed a simple RCP application using Eclipse Ganymede. Simple GUI in which you can type some text. I created an exit command (exitFileHandler) and then added the extension "org.eclipse.ui.menus". Created a "File" menu, and then referenced the exitHandler in the file menu. This works fine. Found an example for "save" and created a command for this, and put it in the File menu. So question is, would any of you have a good example for saving text to file from a Java developed GUI?

Is This A Good Question/Topic? 0
  • +

Replies To: Save to file in RCP application

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10596
  • View blog
  • Posts: 39,259
  • Joined: 27-December 08

Re: Save to file in RCP application

Posted 05 August 2010 - 09:04 AM

If you can access the text from the GUI Components, you just need to pass it off to your OutputStream. Take a look at this tutorial on File I/O for more information.
Was This Post Helpful? 1
  • +
  • -

#3 stephen.madden  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 64
  • Joined: 15-May 09

Re: Save to file in RCP application

Posted 05 August 2010 - 09:09 AM

Thanks bro...
Was This Post Helpful? 0
  • +
  • -

#4 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10596
  • View blog
  • Posts: 39,259
  • Joined: 27-December 08

Re: Save to file in RCP application

Posted 05 August 2010 - 09:10 AM

Glad I could help! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1