Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » persistence of IHost custom properties
persistence of IHost custom properties [message #483779] Wed, 02 September 2009 18:47 Go to next message
Vsevolod Sandomirskiy is currently offline Vsevolod Sandomirskiy
Messages: 21
Registered: July 2009
Junior Member
I have to associate some custom values with an IHost. I create a new
IPropertySet for the host and then create a new property by calling
IPropertySet.addProperty().

The new property set doesn't seem to be persistent. I restart my
application and the property is gone.

Should this work? Is there any other mechanism?

Thanks.
Re: persistence of IHost custom properties [message #484725 is a reply to message #483779] Tue, 08 September 2009 17:58 Go to previous messageGo to next message
David McKnight is currently offline David McKnight
Messages: 244
Registered: July 2009
Senior Member
Hi Vsevolod,

I would expect this to work. After you add the property, do you call
commit()?

Dave

"Vsevolod Sandomirskiy" <vss@ocsystems.com> wrote in message
news:h7msm0$1f3$1@build.eclipse.org...
>I have to associate some custom values with an IHost. I create a new
>IPropertySet for the host and then create a new property by calling
>IPropertySet.addProperty().
>
> The new property set doesn't seem to be persistent. I restart my
> application and the property is gone.
>
> Should this work? Is there any other mechanism?
>
> Thanks.
Re: persistence of IHost custom properties [message #484936 is a reply to message #484725] Wed, 09 September 2009 15:01 Go to previous message
Vsevolod Sandomirskiy is currently offline Vsevolod Sandomirskiy
Messages: 21
Registered: July 2009
Junior Member
I didn't call commit(). It works now, thanks.

David McKnight wrote:
> Hi Vsevolod,
>
> I would expect this to work. After you add the property, do you call
> commit()?
>
> Dave
>
> "Vsevolod Sandomirskiy" <vss@ocsystems.com> wrote in message
> news:h7msm0$1f3$1@build.eclipse.org...
>> I have to associate some custom values with an IHost. I create a new
>> IPropertySet for the host and then create a new property by calling
>> IPropertySet.addProperty().
>>
>> The new property set doesn't seem to be persistent. I restart my
>> application and the property is gone.
>>
>> Should this work? Is there any other mechanism?
>>
>> Thanks.
>
>
Re: persistence of IHost custom properties [message #582438 is a reply to message #483779] Tue, 08 September 2009 17:58 Go to previous message
David McKnight is currently offline David McKnight
Messages: 244
Registered: July 2009
Senior Member
Hi Vsevolod,

I would expect this to work. After you add the property, do you call
commit()?

Dave

"Vsevolod Sandomirskiy" <vss@ocsystems.com> wrote in message
news:h7msm0$1f3$1@build.eclipse.org...
>I have to associate some custom values with an IHost. I create a new
>IPropertySet for the host and then create a new property by calling
>IPropertySet.addProperty().
>
> The new property set doesn't seem to be persistent. I restart my
> application and the property is gone.
>
> Should this work? Is there any other mechanism?
>
> Thanks.
Re: persistence of IHost custom properties [message #582480 is a reply to message #484725] Wed, 09 September 2009 15:01 Go to previous message
Vsevolod Sandomirskiy is currently offline Vsevolod Sandomirskiy
Messages: 21
Registered: July 2009
Junior Member
I didn't call commit(). It works now, thanks.

David McKnight wrote:
> Hi Vsevolod,
>
> I would expect this to work. After you add the property, do you call
> commit()?
>
> Dave
>
> "Vsevolod Sandomirskiy" <vss@ocsystems.com> wrote in message
> news:h7msm0$1f3$1@build.eclipse.org...
>> I have to associate some custom values with an IHost. I create a new
>> IPropertySet for the host and then create a new property by calling
>> IPropertySet.addProperty().
>>
>> The new property set doesn't seem to be persistent. I restart my
>> application and the property is gone.
>>
>> Should this work? Is there any other mechanism?
>>
>> Thanks.
>
>
Previous Topic:isLink not returning correct value for IRemoteFile
Next Topic:programmatically select a file in the "Remote Systems" view
Goto Forum:
  


Current Time: Fri Jul 25 11:27:06 EDT 2014

Powered by FUDForum. Page generated in 0.11901 seconds