Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] ICDescriptor.saveProjectData() doesn't always serializeto .cproject

Thanks, Mikhail.  I've filed bug 203614 for this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=203614

Jason Montojo
IBM CDT Team
IBM Toronto Lab
905-413-5228
jmontojo@xxxxxxxxxx

cdt-dev-bounces@xxxxxxxxxxx wrote on 17/09/2007 12:03:23 PM:

> Hi Jason,
>
> This seems like a bug. Please raise a bugzilla request and I'll have a
> look ASAP.
>
> Thanks,
> Mikhail
>
> >-----Original Message-----
> >From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> On
> >Behalf Of Jason Montojo
> >Sent: Monday, September 17, 2007 7:23 PM
> >To: cdt-dev@xxxxxxxxxxx
> >Subject: [cdt-dev] ICDescriptor.saveProjectData() doesn't always
> >serializeto .cproject
> >
> >
> >Hi everyone,
> >
> >I'm using ICDescriptor to serialize project language mappings to
> .cproject.
> >When I add language mappings to a project, sometimes they get saved and
> >sometimes they don't.  Here's the general pattern I'm using to update
> the
> >descriptor:
> >
> >      ICDescriptor descriptor = getProjectDescription(project);
> >      Element rootElement =
> descriptor.getProjectData(LANGUAGE_MAPPING_ID);
> >
> >      // Update rootElement with new language mappings
> >
> >      descriptor.saveProjectData();
> >
> >I stepped through the code and ended up in
> >SetCProjectDescriptionOperation.executeOperation():66
> >
> >      modified = fNewDescriptionCache.applyDatas(context);
> >
> >The line above sets modified to false, so the .cproject doesn't get
> >serialized with the updated language mappings.  However, the correct
> >ICDescriptor with the language mappings is resident in memory so the
> >mappings show up in the property pages.
> >
> >Is there something special I need to do to get
> >fNewDescriptionCache.applyDatas() to return true?
> >
> >Thanks,
> >
> >Jason Montojo
> >IBM CDT Team
> >IBM Toronto Lab
> >905-413-5228
> >jmontojo@xxxxxxxxxx
> >
> >_______________________________________________
> >cdt-dev mailing list
> >cdt-dev@xxxxxxxxxxx
> >https://dev.eclipse.org/mailman/listinfo/cdt-dev
> --------------------------------------------------------------------
> 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
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top