Access an attribute label (set in the editor) from a java extension
Hi everybody,
I wrote a java server extension that checks if a linktype/reference field is filled.
Now I want to send the user an error message and would like to make it say
"Field is not set".
But how can I access the label of the field? (label set in the editor)
Thanks!
(Oh and also this will be my last question, so thank you all for your support, you were a giant help. Especially you Ralph :) )
2 answers
I would try com.ibm.team.workitem.common.model.IAttribute.getDisplayName()
Good luck Philipp.
Good luck Philipp.
Comments
Ok that works,
would you know the equivalent for Linktypes?
Because com.ibm.team.links.common.registry.IEndPointDescriptor.getDisplayName() only gives me the name that's in the linktype plugin/extension and not the label from the editor
Sorry, no idea then. I tried the same path, but don't have a testbed.
1 vote