Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpel-dev] Rename bpel file

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

 

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Back to the top