IResourceChangeListener fires rename / move events using a combination of the form REMOVED and a MOVED_TO ). You can check this in IResourceDelta with
@Override public void resourceChanged(final IResourceChangeEvent event) { IResourceDelta delta = event.getDelta();
The code for handling the new path might look something like this:
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(newPath); if (file != null) { setInput(new FileEditorInput(file)); setPartName(newPath.lastSegment()); ... anything else required }
source share