I am trying to create an annotation processor as an eclipse plug-in. This is the first time I am writing a plug-in for eclipse, so I'm not sure that I am using the correct terminology and I am sorry if I am not completely clear.
My goal is a plug-in which is to generate code from annotated Java classes, I would like to add the plug-in to all annotations, so next to setting plug-ins in user's project There is a need to have additional dependencies, that is, the user types some plug-ins to the plug-in, annotate them with some annotations (packed inside the plug-in) and get the generated code Are involved.
Is it possible I am trying to? I have seen some other plug-ins (for example Xtent) that add their libraries.
10x
This is possible. You need to apply a custom iclase path container that dynamically resolves your plugin jar and when the workspace is on a container build then add annotation classes to the project build path. In the Build Path UI, the Eclipse Container goes in the name of "Library". Things like JRE, User Library, etc. are implemented by the ICSSSPath Container API.
To view an example, hold the source of org.eclipse.jdt.core and org.eclipse.jdt.ui plugins.
Comments
Post a Comment