My question was more how to store the already existing default values, e.g. for the compiler settings in the .cproject file. I think that the ICStorageElement is only created if the values are different from the default settings. I would like to change that to store all settings in the .cproject file.
From: dmsubs@xxxxxxxxxxxxx Date: Mon, 2 Mar 2015 08:17:05 +0000 To: cdt-dev@xxxxxxxxxxx Subject: Re: [cdt-dev] Storage of default settings in .cproject file You can use ICStorageElement to store your own settings in the .cproject file. You can use something like this:
ICProjectDescriptionManager manager = CoreModel.getDefault() .getProjectDescriptionManager();
ICProjectDescription des = manager .getProjectDescription(project, false); if (des != null) { try { // to store project-wide info use ICStorageElement storage = des.getStorage(getPluginID(), false); ...
Hello Ashish,
could you give me some more details how you implemented that in your plugin?
@all Is there no simple way to do that programmatically? Any flag for the data to force storage of the .project file?
best regards, Sebastian
From: Ashish.Rawat@xxxxxxxxTo: cdt-dev@xxxxxxxxxxxDate: Tue, 24 Feb 2015 03:19:07 +0000 Subject: Re: [cdt-dev] Storage of default settings in .cproject file Hello Sebastian, We also faced the similar issue in our projects. The solution that we implemented is to set the non-default values during project generation, and once the project is generated, set the default values. This will help in storing all the default values in ‘.cproject’ file. We did not find any other better solution for this problem, if in case anyone else in the mailing list has better solution, please suggest. Regards, Ashish Hello, is there a way to store ALL settings, including the default values in the .cproject file? Today only settings which differ from the default values are stored in there. I would like to use the default values only when a project is created, but after all settings shall be read from the .cproject file to make it independent from the default values. This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails. _______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cdt-dev_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev
|