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
Post a Comment