Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EAnnotation information is only added to javadoc if annotation has at least one key/value
EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1151404] Wed, 23 October 2013 10:21 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
Hi,

We have EAnnotations that don't use any key/value pairs. Their sole
presence is semantically relevant. I now noticed that for such
annotations, the generated Interfaces don't have information about the
annotation generated in the javadoc for the annotated feature.
Annotations that have a key/value ARE generated into
the javadoc, like this:

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>A</b></em>'.
* <!-- end-user-doc -->
*
*
* @see a.APackage#getA()
* @model annotation="http://yo/emf/rul3z a='a'"
* @generated
*/
public interface A extends EObject {
} // A

Can I do anything to make those lonely key/value-less annotations be
added to the javadoc too? Maybe a feature request?

Thanks,
Felix
Re: EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1151838 is a reply to message #1151404] Wed, 23 October 2013 16:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
Felix,

Does it have a source URI?

On 23/10/2013 12:21 PM, Felix Dorner wrote:
> Hi,
>
> We have EAnnotations that don't use any key/value pairs. Their sole
> presence is semantically relevant. I now noticed that for such
> annotations, the generated Interfaces don't have information about the
> annotation generated in the javadoc for the annotated feature.
> Annotations that have a key/value ARE generated into
> the javadoc, like this:
>
> /**
> * <!-- begin-user-doc -->
> * A representation of the model object '<em><b>A</b></em>'.
> * <!-- end-user-doc -->
> *
> *
> * @see a.APackage#getA()
> * @model annotation="http://yo/emf/rul3z a='a'"
> * @generated
> */
> public interface A extends EObject {
> } // A
>
> Can I do anything to make those lonely key/value-less annotations be
> added to the javadoc too? Maybe a feature request?
>
> Thanks,
> Felix
Re: EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1152105 is a reply to message #1151838] Wed, 23 October 2013 20:34 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
On 23/10/2013 18:38, Ed Merks wrote:
> Felix,
>
> Does it have a source URI?
Yes.
Re: EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1152701 is a reply to message #1152105] Thu, 24 October 2013 05:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
I see. I could look at generating one for that case.

On 23/10/2013 10:34 PM, Felix Dorner wrote:
> On 23/10/2013 18:38, Ed Merks wrote:
>> Felix,
>>
>> Does it have a source URI?
> Yes.
>
Re: EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1152769 is a reply to message #1152701] Thu, 24 October 2013 06:53 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
Should I open an enhancement request on bugzilla?

On 24/10/2013 07:51, Ed Merks wrote:
> I see. I could look at generating one for that case.
>
> On 23/10/2013 10:34 PM, Felix Dorner wrote:
>> On 23/10/2013 18:38, Ed Merks wrote:
>>> Felix,
>>>
>>> Does it have a source URI?
>> Yes.
>>
>
Re: EAnnotation information is only added to javadoc if annotation has at least one key/value [message #1152870 is a reply to message #1152769] Thu, 24 October 2013 08:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30372
Registered: July 2009
Senior Member
Yes.

On 24/10/2013 8:53 AM, Felix Dorner wrote:
> Should I open an enhancement request on bugzilla?
>
> On 24/10/2013 07:51, Ed Merks wrote:
>> I see. I could look at generating one for that case.
>>
>> On 23/10/2013 10:34 PM, Felix Dorner wrote:
>>> On 23/10/2013 18:38, Ed Merks wrote:
>>>> Felix,
>>>>
>>>> Does it have a source URI?
>>> Yes.
>>>
>>
>
Previous Topic:Performance of Intrinsic Vs Extrinsic ID
Next Topic:[CDO]To clone the cdo repository: git clone http://git.eclipse.org/c/cdo/cdo.git/ Exception!
Goto Forum:
  


Current Time: Sun Aug 25 11:01:29 GMT 2019

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

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

Back to the top