Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 282927

Summary: Add support for marker and single member annotations
Product: [WebTools] WTP Webservices Reporter: Shane Clarke <shane_clarke>
Component: jst.ws.jaxwsAssignee: Project Inbox <wtp.inc.jaxws-inbox>
Status: RESOLVED FIXED QA Contact: Shane Clarke <shane_clarke>
Severity: enhancement    
Priority: P3 CC: keith.chong.ca
Version: unspecifiedKeywords: plan
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard: jaxws

Description Shane Clarke CLA 2009-07-08 16:41:29 EDT
Currently the JAX-WS tooling supports the creation of normal annotations:

org.eclipse.jdt.core.dom.NormalAnnotation

which are annotations with zero or more member value pairs
e.g. WebService(endpointInterface="...", serviceName="...", portName="...")

We need to add support for creating marker annotations:

org.eclipse.jdt.core.dom.MarkerAnnotation

e.g. The marker annotation @Oneway is equivalent to the normal annotation @Oneway()

and support for creating single member annotations:

org.eclipse.jdt.core.dom.SingleMemberAnnotation

e.g The single member annotation @BindingType(SOAPBinding.SOAP11HTTP_BINDING) 
is equivalent to the normal annotation @BindingType(value=SOAPBinding.SOAP11HTTP_BINDING)

When creating annotations using the annotations properties view, annotations with no members should be added as marker annotations and annotations with
a single member should be added as single member annotations.
Comment 1 Shane Clarke CLA 2009-10-27 19:52:09 EDT
Fix committed.