commit | 22504691ab22bba1f0ec6383b7eec83ce443dd45 | [log] [tgz] |
---|---|---|
author | sclarke <shane_clarke@hotmail.com> | Sun Apr 07 18:59:01 2013 +0100 |
committer | sclarke <shane_clarke@hotmail.com> | Sun Apr 07 18:59:01 2013 +0100 |
tree | 3f2ad7c0298639023af2ef10b9476e719751b3bf | |
parent | 8ad055ed4612bb5c4802e4bb2752e4f7616aeb6a [diff] |
[403429] @FeatureConstructor couldn't be shown in Annotation Properties view org.eclipse.jst.ws.annotations.core
diff --git a/bundles/org.eclipse.jst.ws.annotations.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.jst.ws.annotations.core/META-INF/MANIFEST.MF index 0017d36..83efd63 100644 --- a/bundles/org.eclipse.jst.ws.annotations.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.jst.ws.annotations.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jst.ws.annotations.core;singleton:=true -Bundle-Version: 1.2.0.qualifier +Bundle-Version: 1.2.100.qualifier Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Vendor: %pluginProvider
diff --git a/bundles/org.eclipse.jst.ws.annotations.core/src/org/eclipse/jst/ws/annotations/core/AnnotationsManager.java b/bundles/org.eclipse.jst.ws.annotations.core/src/org/eclipse/jst/ws/annotations/core/AnnotationsManager.java index db2d3cc..00f491b 100644 --- a/bundles/org.eclipse.jst.ws.annotations.core/src/org/eclipse/jst/ws/annotations/core/AnnotationsManager.java +++ b/bundles/org.eclipse.jst.ws.annotations.core/src/org/eclipse/jst/ws/annotations/core/AnnotationsManager.java
@@ -384,7 +384,12 @@ } if (javaElement instanceof IMethod) { - return getAnnotationsForElementType(javaElement, ElementType.METHOD); + IMethod method = (IMethod) javaElement; + if (method.isConstructor()) { + return getAnnotationsForElementType(javaElement, ElementType.CONSTRUCTOR); + } else { + return getAnnotationsForElementType(javaElement, ElementType.METHOD); + } } if (javaElement instanceof ILocalVariable) {