/** * Merges the children of the given composite change into this * change. This means the changes are removed from the given * composite change and added to this change. * * @param change the change to merge */ public void merge(CompositeChange change) { Change[] others= change.getChildren(); for (int i= 0; i < others.length; i++) { Change other= others[i]; change.remove(other); add(other); } }
/** * Merges the children of the given composite change into this * change. This means the changes are removed from the given * composite change and added to this change. * * @param change the change to merge */ public void merge(CompositeChange change) { Change[] others= change.getChildren(); for (int i= 0; i < others.length; i++) { Change other= others[i]; change.remove(other); add(other); } }
/** * Merges the children of the given composite change into this * change. This means the changes are removed from the given * composite change and added to this change. * * @param change the change to merge */ public void merge(CompositeChange change) { Change[] others= change.getChildren(); for (int i= 0; i < others.length; i++) { Change other= others[i]; change.remove(other); add(other); } }
public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException { if (fQualifiedNameSearchResult != null) { CompositeChange parent= (CompositeChange) fRenamePackageChange.getParent(); try { /* * Sneak text changes in before the package rename to ensure * modified files are still at original location (see * https://bugs.eclipse.org/bugs/show_bug.cgi?id=154238) */ parent.remove(fRenamePackageChange); parent.add(fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges))); } finally { fQualifiedNameSearchResult= null; parent.add(fRenamePackageChange); fRenamePackageChange= null; } } return null; }
@Override public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException { if (fQualifiedNameSearchResult != null) { CompositeChange parent= (CompositeChange) fRenamePackageChange.getParent(); try { /* * Sneak text changes in before the package rename to ensure * modified files are still at original location (see * https://bugs.eclipse.org/bugs/show_bug.cgi?id=154238) */ parent.remove(fRenamePackageChange); parent.add(fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges))); } finally { fQualifiedNameSearchResult= null; parent.add(fRenamePackageChange); fRenamePackageChange= null; } } return null; }
@Override public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException { if (fQualifiedNameSearchResult != null) { CompositeChange parent= (CompositeChange) fRenamePackageChange.getParent(); try { /* * Sneak text changes in before the package rename to ensure * modified files are still at original location (see * https://bugs.eclipse.org/bugs/show_bug.cgi?id=154238) */ parent.remove(fRenamePackageChange); parent.add(fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges))); } finally { fQualifiedNameSearchResult= null; parent.add(fRenamePackageChange); fRenamePackageChange= null; } } return null; }
@Override public Change postCreateChange(Change[] participantChanges, IProgressMonitor pm) throws CoreException { if (fQualifiedNameSearchResult != null) { CompositeChange parent= (CompositeChange) fRenamePackageChange.getParent(); try { /* * Sneak text changes in before the package rename to ensure * modified files are still at original location (see * https://bugs.eclipse.org/bugs/show_bug.cgi?id=154238) */ parent.remove(fRenamePackageChange); parent.add(fQualifiedNameSearchResult.getSingleChange(Changes.getModifiedFiles(participantChanges))); } finally { fQualifiedNameSearchResult= null; parent.add(fRenamePackageChange); fRenamePackageChange= null; } } return null; }