Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Where is the CMDateTypeHelper?(In CMAttributeDeclaration interface, I find getDefaultValue is deprecated, the note said it is replcaced by CMDataTypeHelper, so where is CMDateTypeHelper?)
icon5.gif  Where is the CMDateTypeHelper? [message #521275] Wed, 17 March 2010 02:24 Go to next message
Li Jia Jia is currently offline Li Jia Jia
Messages: 14
Registered: March 2010
Junior Member
In CMAttributeDeclaration interface, I find getDefaultValue is deprecated, the note said it is replcaced by CMDataTypeHelper, so where is CMDateTypeHelper?

Just FYI: code from CMAttributeDeclaration
String getDefaultValue();
/**
* getEnumAttr method
* @return java.util.Enumeration
* @deprecated -- to be replaced in future with additional CMDataType methods (currently found on CMDataTypeHelper)
Re: Where is the CMDateTypeHelper? [message #522247 is a reply to message #521275] Sun, 21 March 2010 17:21 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2308
Registered: July 2009
Senior Member
On 3/16/2010 10:24 PM, Li Jia Jia wrote:
> In CMAttributeDeclaration interface, I find getDefaultValue is
> deprecated, the note said it is replcaced by CMDataTypeHelper, so where
> is CMDateTypeHelper?
>
> Just FYI: code from CMAttributeDeclaration String getDefaultValue();
> /**
> * getEnumAttr method
> * @return java.util.Enumeration
> * @deprecated -- to be replaced in future with additional CMDataType
> methods (currently found on CMDataTypeHelper)

It may be a reference to CMDataType as a "helper", by calling
org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDe claration#getAttrType()
and then #getImpliedValue*() on the data type.

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Unable to create editor ID tableview.editors.MultiPageEditor: null argument
Next Topic:WTP not picking up modified Libraries
Goto Forum:
  


Current Time: Tue Oct 21 15:25:42 GMT 2014

Powered by FUDForum. Page generated in 0.06405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software