java - Understand openDeclarartion functionality (f3). How can I debug the openDeclaration in eclipse -


i'm trying add opendeclaration function own eclipse plugin editor. until didn't understand how f3 functionality works (i read hyperlinking, openaction, , compilationunit.finddeclaringnode()), cannot put pieces , understand how work.

until thought works this: while parsing code, tokens read added ast. hierarchy level ijavaproject/ipackagefragmentroot/ipackagefragment/icompilationunit/{itype / ifield / imethod} jdt possible work ast. each java file represented compilation unit. if press f3, actionhandler started takes ijavaelement hover in moment.

right have ijavaelement in editor plugin don't know how jump corresponding type/method associated declaration in compilation unit. , don't know happen if declaring node not in same compilation unit, if it's basic type (such string or integer).

maybe if if more clear, follow way how default java editor doing task. how pieces or how can debug functionality?


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -