/* (non-Javadoc) * @see org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor#createChange(org.eclipse.core.runtime.IProgressMonitor) */ public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange change = new CompositeChange(new String()); change.markAsSynthetic(); change.add(new ConnectionProfileRenameChange(mProfile, mArguments)); return change; }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { if (pm.isCanceled()) { return null; } if (!getArguments().getUpdateReferences()) { return null; } CompositeChange result = new CompositeChange(getName()); result.markAsSynthetic(); addManifestFileChanges(result); // Update layout files; we don't just need to react to custom view // changes, we need to update fragment references and even tool:context activity // references addLayoutFileChanges(mProject, result); // Also update in dependent projects ProjectState projectState = Sdk.getProjectState(mProject); if (projectState != null) { Collection<ProjectState> parentProjects = projectState.getFullParentProjects(); for (ProjectState parentProject : parentProjects) { IProject project = parentProject.getProject(); addLayoutFileChanges(project, result); } } return (result.getChildren().length == 0) ? null : result; }
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange change = new CompositeChange(new String()); change.markAsSynthetic(); for (Iterator it = mProfilesToMove.iterator(); it.hasNext(); ) { change.add(new ConnectionProfileMoveChange((IConnectionProfile) it.next(), mArguments)); } return change; }
/* (non-Javadoc) * @see org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor#createChange(org.eclipse.core.runtime.IProgressMonitor) */ public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { pm.beginTask(RefactoringCoreMessages.DeleteResourcesProcessor_create_task, fResources.length); try { RefactoringChangeDescriptor descriptor = new RefactoringChangeDescriptor(createDescriptor()); CompositeChange change = new CompositeChange(RefactoringCoreMessages.DeleteResourcesProcessor_change_name); change.markAsSynthetic(); for (int i = 0; i < fResources.length; i++) { pm.worked(1); DeleteResourceChange dc = new DeleteResourceChange(fResources[i].getFullPath(), true, fDeleteContents); dc.setDescriptor(descriptor); change.add(dc); } return change; } finally { pm.done(); } }