[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] cdt variables

Hi Karen.

In general, CDT variables can be obtained in the following way:

int CONTEXT = ICoreVariableContextInfo.CONTEXT_CONFIGURATION; 
UserDefinedVariableSupplier fUserSup =
CdtVariableManager.fUserDefinedMacroSupplier;
ICdtVariable macro = new
BuildMacro(name,type,getSelectedStringListValue());
fUserSup.createMacro(macro, CONTEXT, cfgd);

Unfortunately, some classes will raise access warnings.
Adding API for edit is planned but not implemented yet. 
 
-----------------------------------
With best regards, Oleg Krasilnikov

 
 

________________________________

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Karen Ensing
Sent: Tuesday, March 25, 2008 9:53 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] cdt variables



I need to create CDT variables but I can't find any public API to do
this.  Is there any?  ICdtVariableManager has API to get the variables
put no API to create variables. 

Thanks, Karen 


--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

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.