Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Best way to store and manage application values in a properties file (How to store DB-Configuration)
Best way to store and manage application values in a properties file [message #1738739] Fri, 22 July 2016 19:38 Go to next message
Dieter Engelhardt is currently offline Dieter EngelhardtFriend
Messages: 23
Registered: June 2016
Junior Member
I used to work on a legacy swing application where application configuration like db-config-params are read from a plain file like app.propperies. How is this done in E4 FX environment. I have read about the @Preference or the @ContextValue annotation. But i can't see how this ist configured via a simple textfile.
I appreciate any advice.
Thanx Dieter
Re: Best way to store and manage application values in a properties file [message #1738795 is a reply to message #1738739] Sun, 24 July 2016 18:28 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Yes this sounds like a @Preference usecase, the password might even go
into the secure store (not sure we support that currently).

Our preference story is backed by Equinox-Preferences store so
-pluginCustomization should work [1]. Another option if that does not
work out for you is that you do it yourself inside your lifecyle
@PostContextCreate.

Tom

[1]http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html

On 22.07.16 21:38, Dieter Engelhardt wrote:
> I used to work on a legacy swing application where application
> configuration like db-config-params are read from a plain file like
> app.propperies. How is this done in E4 FX environment. I have read
> about the @Preference or the @ContextValue annotation. But i can't see
> how this ist configured via a simple textfile.
> I appreciate any advice.
> Thanx Dieter
Previous Topic: Could not bind a reference of component ....
Next Topic:Binding UI controls to commands/handlers
Goto Forum:
  


Current Time: Tue Mar 19 03:33:30 GMT 2024

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

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

Back to the top