Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] problems saving into .project


Sorry, it was a typo - I should have said "not written to .cproject".

To confirm my problem, using the code below, my data is not written anywhere.

Krasilnikov, Oleg wrote:
Hi Derek.

Your changes are written to .cproject file. Not to .project
 It is documented (see javadoc for ICStorageElement, for example)

With best regards, Oleg Krasilnikov

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of subs
Sent: Thursday, February 14, 2008 8:18 PM
To: CDT General developers list.
Subject: [cdt-dev] problems saving into .project


I am trying to save some additonal information into .cproject  using the
following code:

ICProjectDescriptionManager manager = CoreModel.getDefault()

ICProjectDescription des = manager.getProjectDescription(project, true);
ICStorageElement storage = des.getStorage(getPluginID(), true);
ICStorageElement settings = storage.createChild(PROJECT_STORAGE);
try {
     // save modifications
     manager.setProjectDescription(project, des, true, null);

} catch (Exception e) {

But my additional information is never saved. Can anybody point out what
I am doing wrong?


cdt-dev mailing list
Closed Joint Stock Company Intel A/O
Registered legal address: 125252, Moscow, Russian Federation, Chapayevsky Per, 14.

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

cdt-dev mailing list


Back to the top