Possible types' labels [message #762615] |
Thu, 08 December 2011 06:52  |
Eclipse User |
|
|
|
Hi,
I have the following property defined:
// *** Value ***
@Required
@Label(standard = "Value")
@Type ( base = IValue.class,
possible = {
IXSDConstant.class,
IXSDChoice.class
}
)
@XmlElementBinding (
mappings = {
@XmlElementBinding.Mapping( element = "constant", type = IXSDConstant.class ),
@XmlElementBinding.Mapping( element = "choice", type = IXSDChoice.class )
}
)
ElementProperty PROP_VALUE = new ElementProperty(TYPE, "Value");
ModelElementHandle<IValue> getValue();
And a node factory under the parent element which contains a case for both possible type.
When running the application and right clicking the parent element in order to add a "Value" node under it, the possible types options show as the class names (i.e. "I X S D Constant" and "I X S D Choice").
Where exactly should I set the label so that the possible types will show as labels and not class names?
Thanks,
Roded
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29708 seconds