|refresh/update java editor programmatically before jumping to java element [message #1060389]
||Fri, 24 May 2013 08:27
| deflow Mising name
Registered: October 2009
i'm struggling with a little issue, which i'm not able to fix
may you can help me with this?
here we go:
the only thing i'm trying to do is to open a compilation unit in a java editor an jumping to a specific position (e.g. method xyz()). usually, the method xyz() is going to be created programmatically, just before the jump action.
this all works fine, except for one case:
if the compilation unit is aldready opened in an editor and i'm trying to jump to the "new generated" method xyz(), i'm ending up on a wrong position in editor.
With the following code i'm able to overcome this problem. however i can't imagine that's the way i'm supposed to do it...
IEditorPart javaEditor = JavaUI.openInEditor(element);
is there a way to update or refresh the editor before i execute my jump action?
thx in advance
[Updated on: Fri, 24 May 2013 08:28]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01818 seconds