if ( renamedElement != null ) {
String path = renamedElement.getProjectRelativePath().toString();
String correspondingOldFXMLPath = path.substring( 0, path.length() - "fxgraph".length() ) + "fxml";
IResource correspondingOldFXML = renamedElement.getProject().findMember( correspondingOldFXMLPath );
if ( correspondingOldFXML.exists() ) {
return new MoveResourceChange( correspondingOldFXML, ( (IContainer) getArguments().getDestination() ) );
}
}
return null;
}