Hi all,
I just found an interesting code in the BPELMultipageEditorPart:
public void moved(IFile
source, final IFile destination) {
// IFile
current = ((IFileEditorInput) getEditorInput()).getFile();
// if
(!current.equals(source)) {
// return;
// }
// // update
editors input
// final
IFileEditorInput input = new FileEditorInput(destination);
// Display
display = getDetailsEditor().getSite().getShell().getDisplay();
// display.syncExec(new
Runnable() {
// public
void run() {
// getBPELDetailsEditor().setInput(input);
// setInput(input);
// }
// });
// // update
resources
// IPath path =
destination.getFullPath();
// URI uri =
URI.createPlatformResourceURI(path.toString());
// processResource.setURI(uri);
// // JM:
Comment out. We don't want to re-name the process just because
// // the file
name has changed
//// display.syncExec(new
Runnable() {
//// public
void run() {
//// BPELUtil.updateNameAndNamespace(destination,
process);
//// }
//// });
// path =
path.removeFileExtension().addFileExtension(IBPELUIConstants.EXTENSION_MODEL_EXTENSIONS);
// URI
extensionsUri = URI.createPlatformResourceURI(path.toString());
// extensionsResource
= resourceSet.createResource(extensionsUri);
// extensionsResource.setURI(extensionsUri);
// try {
// //
JM: Comment out for now. We should re-test this
//// processResource.save(Collections.EMPTY_MAP);
//// destination.refreshLocal(IResource.DEPTH_ZERO,
null);
// } catch
(Exception e) {
// BPELUIPlugin.log(e);
// }
}
Any ideas why we don't want to rename the process?
Thanks,
Oleg