Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Extending the Annotation Properties view
Extending the Annotation Properties view [message #557789] Wed, 08 September 2010 22:09 Go to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Hi all wise and powerful WTP developers...

We recently discovered the cool Annotation Properties view
(org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsView) and would
like to use/extend it for annotations other than JAX-WS.

Is there any way to extend/modify this view so that it recognizes other
annotation types? Eventually it would be great to add JAX-RS
annotations, which we'd like to have at some point. But obviously web
services isn't the only area that would benefit from a common UI for
adding/modifying annotations.

Thanks in advance for any info!

--Fitz
Re: Extending the Annotation Properties view [message #558031 is a reply to message #557789] Thu, 09 September 2010 20:52 Go to previous messageGo to next message
Shane Clarke is currently offline Shane Clarke
Messages: 67
Registered: July 2009
Member
Hi Brian

Brian Fitzpatrick wrote on Wed, 08 September 2010 23:09

Is there any way to extend/modify this view so that it recognizes other
annotation types?


Yes there is. Unfortunately there is no tutorial on how to do this at the moment.

But the extension points are documented in the JAX-WS Tools User Guide and JAX-WS tools ships with two plug-ins that serve as examples on how to consume those extension points.

Have a look at the org.eclipse.jst.ws.annotations.core.annotationCategory
& org.eclipse.jst.ws.annotations.core.annotationDefinition extension points.

and the org.eclipse.jst.ws.jaxws.core and org.eclipse.jst.ws.jaxb.core plug-ins.

Basically define your annotation category and your annotation definitions.

Ensure the annotations are on the plug-ins classpath.

And add the following to your plug-ins MANIFEST.MF
Eclipse-RegisterBuddy: org.eclipse.jst.ws.annotations.core

Once installed or running in a runtime workspace create a Java based project that has the annotations you wish to use on it's classpath and open the annotation properties view.

You can then filter the view by category to only display the annotations you are interested in.

Let me know if you have any questions or need any help.

Thanks,
Shane
Re: Extending the Annotation Properties view [message #558206 is a reply to message #558031] Fri, 10 September 2010 13:53 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Thanks for the info Shane, I'll give it a shot! :)

--Fitz

Shane Clarke wrote:
> Hi Brian
>
> Brian Fitzpatrick wrote on Wed, 08 September 2010 23:09
>> Is there any way to extend/modify this view so that it recognizes
>> other annotation types?
>
>
> Yes there is. Unfortunately there is no tutorial on how to do this at
> the moment.
>
> But the extension points are documented in the JAX-WS Tools User Guide
> and JAX-WS tools ships with two plug-ins that serve as examples on how
> to consume those extension points.
>
> Have a look at the org.eclipse.jst.ws.annotations.core.annotationCategory
> & org.eclipse.jst.ws.annotations.core.annotationDefinition extension
> points.
>
> and the org.eclipse.jst.ws.jaxws.core and org.eclipse.jst.ws.jaxb.core
> plug-ins.
>
> Basically define your annotation category and your annotation definitions.
>
> Ensure the annotations are on the plug-ins classpath.
>
> And add the following to your plug-ins MANIFEST.MF
> Eclipse-RegisterBuddy: org.eclipse.jst.ws.annotations.core
>
> Once installed or running in a runtime workspace create a Java based
> project that has the annotations you wish to use on it's classpath and
> open the annotation properties view.
> You can then filter the view by category to only display the annotations
> you are interested in.
>
> Let me know if you have any questions or need any help.
>
> Thanks,
> Shane
>
Re: Extending the Annotation Properties view [message #558680 is a reply to message #558031] Mon, 13 September 2010 21:49 Go to previous message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Hey Shane,

Just wanted to let you know I wrote a blog post about extending the view
and have some suggestions... If I get a chance, I'll create two or three
bugzillas and see if I can maybe get a patch together.

Here's the post:
http://community.jboss.org/en/jbosstools/blog/2010/09/13/ext ending-the-eclipse-annotation-properties-view

Thanks for the help!
--Fitz

Shane Clarke wrote:
> Hi Brian
>
> Brian Fitzpatrick wrote on Wed, 08 September 2010 23:09
>> Is there any way to extend/modify this view so that it recognizes
>> other annotation types?
>
>
> Yes there is. Unfortunately there is no tutorial on how to do this at
> the moment.
>
> But the extension points are documented in the JAX-WS Tools User Guide
> and JAX-WS tools ships with two plug-ins that serve as examples on how
> to consume those extension points.
>
> Have a look at the org.eclipse.jst.ws.annotations.core.annotationCategory
> & org.eclipse.jst.ws.annotations.core.annotationDefinition extension
> points.
>
> and the org.eclipse.jst.ws.jaxws.core and org.eclipse.jst.ws.jaxb.core
> plug-ins.
>
> Basically define your annotation category and your annotation definitions.
>
> Ensure the annotations are on the plug-ins classpath.
>
> And add the following to your plug-ins MANIFEST.MF
> Eclipse-RegisterBuddy: org.eclipse.jst.ws.annotations.core
>
> Once installed or running in a runtime workspace create a Java based
> project that has the annotations you wish to use on it's classpath and
> open the annotation properties view.
> You can then filter the view by category to only display the annotations
> you are interested in.
>
> Let me know if you have any questions or need any help.
>
> Thanks,
> Shane
>
Previous Topic:XML Catalog and validation
Next Topic:Is there a way to extend the Web Editor for RCP
Goto Forum:
  


Current Time: Fri Oct 24 21:35:06 GMT 2014

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

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