Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » reading System properties
reading System properties [message #205628] Wed, 17 September 2008 10:33 Go to next message
Vadim Chepegin is currently offline Vadim ChepeginFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I need to read system properties, e.g.
com.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1. 0, from a file.

It works fine independently, but I have troubles with incorporating this
functionality into RCP application.

I call the function I wrote for reading from Application::start(). As a
result I get an exception and the application terminates.

I need to set this property for the whole app.

I will apprciate your advice.

best,
mr.woolf.
Re: reading System properties [message #205674 is a reply to message #205628] Wed, 17 September 2008 11:27 Go to previous messageGo to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello mr.woolf,

I think you need to store key value pair at one point(start) and you need
to access same value for that key throught application. For this you can
use following code,

ResourcesPlugin.getPlugin().getPluginPreferences().setValue( key,value);

And get the same with key.

--Nagesh

mr.woolf wrote:

> Hello,

> I need to read system properties, e.g.
> com.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1. 0, from a file.

> It works fine independently, but I have troubles with incorporating this
> functionality into RCP application.

> I call the function I wrote for reading from Application::start(). As a
> result I get an exception and the application terminates.

> I need to set this property for the whole app.

> I will apprciate your advice.

> best,
> mr.woolf.
Re: reading System properties [message #205693 is a reply to message #205674] Wed, 17 September 2008 11:49 Go to previous message
Vadim Chepegin is currently offline Vadim ChepeginFriend
Messages: 9
Registered: July 2009
Junior Member
Nagesh,

first of all, thank you for the rapid reply. Your suggestion sounds
interesting.

Althoug, I need to clarify certain things.

1. I need to store those values in a file that we can ship it with a
product and change w/o re-building a whole project.\

2. My main concern here is that I need to find a certain entry point into
Eclipse RCP application where I can read those properties, set them by
sending request to System.setProperties() and this should not terminate an
application as it happens in teh example I mentioned earlier in the
original post.

Thank you in advance!
Previous Topic:How to share domain model with multiple editors
Next Topic:Stop connections from same parent
Goto Forum:
  


Current Time: Mon Jan 18 17:51:50 GMT 2021

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

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

Back to the top