Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getting External annotations to work
Getting External annotations to work [message #1832746] Thu, 24 September 2020 06:24 Go to next message
Eclipse UserFriend
Hi,

I am scratching my head how to get external annotations to work in the IDE.
I have got this in my .classpath:
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
		<attributes>
			<attribute name="annotationpath" value="/org.eclipse.skills.releng.nullanalysis/eea"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
		<attributes>
			<attribute name="annotationpath" value="/home/christian/eea"/>
		</attributes>
	</classpathentry>


first one links to an existing workspace project, second one to a file system folder.

On linux I do not see an "Annotate" context menu when I try to augment a parameter in the defining class. This is the same on 2020-06 and 2020-09.

On windows I do at least see the Annotate context menu on 2020-06, but when selecting I just hear the error ping from windows, but nothing happens. Also there are no entries in the .log file.

Any recommendations how to get this working?

thanks
Christian


With eclipse 2020-06 I do see the "annotate" context menu entry
Re: Getting External annotations to work [message #1832836 is a reply to message #1832746] Sat, 26 September 2020 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I doubt that the file system path option is available.

I've certainly found that it can all go confusingly dead. Sorry I forget the magic trick. Perhaps it was a build.properties mention. Perhaps a regenerate .classpath option.

But the bottom line is that EEA does not work since the necessary PDE integration has not been implemented. EEA only works for self-contained Java developers, not for shared plugin developers.

Two broken use cases:
a) once your EEAs are packaged in an installed plugin, no one can use them.
b) project-group A's EEAs cannot re-use proj-group B's EEAs

Since JDT no longer has any active committer who is enthusiastic about @NonNull, I am resigned to phasing all the EEAs out of my code. I recommend that you avoid the future elimination cost. The basic bugs in @NonNull refactoring etc can be lived with and hopefully won't get worse. Eclipse EEA is never going to work. Maybe Java 42 will mandate support.

Regards

Ed Willink

Re: Getting External annotations to work [message #1832906 is a reply to message #1832836] Tue, 29 September 2020 01:41 Go to previous message
Eclipse UserFriend
Thanks Ed for your reply,
A pity that this does not work. But now I can at least stop to try.
Previous Topic:Eclipse IDE for Java Developers Installer Error
Next Topic:2020-09 can't resize panels,
Goto Forum:
  


Current Time: Tue Jul 08 05:28:20 EDT 2025

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

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

Back to the top