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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -