Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Reading files within workspace
Reading files within workspace [message #216895] Wed, 20 June 2007 04:54 Go to next message
Syed Tirmizi is currently offline Syed TirmiziFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I am working on an RCP project, and plan to have a very extensive GUI.

The scenario I have is: A user fires up the project and sees a dialog
box that asks him/her to select a profile. What is the best way to
store a bunch of profile settings that the program can read on startup
based on selection of the user?

I am thinking of storing a file within the workspace and reading it. I
can read the file by setting appropriate working directory thru Eclipse
Run settings, but that requires me to be running the project from
within Eclipse. What should I do to make this independent?

-- Hamid
Re: Reading files within workspace [message #217392 is a reply to message #216895] Fri, 22 June 2007 12:04 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Hamid,

It sounds like Plugin.getStateLocation should be used (or
Plugin.getPreferences).

Syed Tirmizi wrote:
> Hi,
>
> I am working on an RCP project, and plan to have a very extensive GUI.
>
> The scenario I have is: A user fires up the project and sees a dialog
> box that asks him/her to select a profile. What is the best way to
> store a bunch of profile settings that the program can read on startup
> based on selection of the user?
>
> I am thinking of storing a file within the workspace and reading it. I
> can read the file by setting appropriate working directory thru
> Eclipse Run settings, but that requires me to be running the project
> from within Eclipse. What should I do to make this independent?
>
> -- Hamid
>
Previous Topic:java.lang.OutOfMemoryError: Java heap space
Next Topic:Goober question: no updates work because of dependency failures
Goto Forum:
  


Current Time: Thu Apr 25 13:53:23 GMT 2024

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

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

Back to the top