How to extend Eclipse's Java editor to recognize my own elements -


i want add references other elements inside javadoc. javadoc should similar to:

/** * ... * @my.tag someelement */ 

i want reuse existing java editor inside eclipse. of course can type above javadoc already, i'd add features:

  • navigation: upon ctrl-click / f3 want navigate editor showing someelement
  • auto-completion: ctrl-space should complete text / show valid alternatives
  • checking: want create warning marker , underline someelement if cannot found

i figured out can auto-completion using extension point org.eclipse.jdt.ui.javacompletionproposalcomputer, though seems little more complex had hoped, might on wrong track here?

for checking elements might able use org.eclipse.jdt.core.compilationparticipant, can generate markers upon compilation afaik happens every save operation.

but how can can manage navigation feature? pointers welcome!

for navigation can provide hyperlink detector. you'll want @ how java editor , existing detectors declared in org.eclipse.jdt.ui plug-in determine correct target id.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -