java - Open file in editor programmatically after renaming -
i exporting file , while exporting ,i renaming existing file , creating new one.if existing file open in eclipse ,it closes , have open file again manually.
how can open file programmatically open editor after renaming ?
this should help:
ifile file = ...; ieditordescriptor desc = platformui.getworkbench(). geteditorregistry().getdefaulteditor(file.getname()); page.openeditor(new fileeditorinput(file), desc.getid());
if there more questions open ask or @ http://wiki.eclipse.org/faq_how_do_i_open_an_editor_programmatically%3f
Comments
Post a Comment