/** * Adds all changes in the given array to the list of children. * * @param changes the changes to add */ public void addAll(Change[] changes) { for (int i= 0; i < changes.length; i++) { add(changes[i]); } }
/** * Adds all changes in the given array to the list of children. * * @param changes the changes to add */ public void addAll(Change[] changes) { for (int i= 0; i < changes.length; i++) { add(changes[i]); } }
/** * Adds all changes in the given array to the list of children. * * @param changes the changes to add */ public void addAll(Change[] changes) { for (int i= 0; i < changes.length; i++) { add(changes[i]); } }
private CompositeChange getChangeForPlugin(String pluginName) { if (fCompositeChanges.containsKey(pluginName)) return fCompositeChanges.get(pluginName); CompositeChange result = new CompositeChange(NLS.bind(PDEUIMessages.ExternalizeStringsOperation_pluginChangeName, pluginName)); fCompositeChanges.put(pluginName, result); fParentChange.add(result); return result; }
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { if(fChanges == null) { return new NullChange(); } CompositeChange change = new CompositeChange(WizardMessages.JavadocTagRefactoring_1); for(Iterator iter = fChanges.iterator(); iter.hasNext();) { change.add((Change) iter.next()); } return change; }
public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange change = new CompositeChange(new String()); change.markAsSynthetic(); for (Iterator it = mProfilesToCopy.iterator(); it.hasNext();) { change.add(new ConnectionProfileCopyChange((IConnectionProfile) it .next(), mArguments)); } return change; }
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; }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { if (fChanges == null) { return new NullChange(); } CompositeChange compositeChange = new CompositeChange(WizardMessages.JavadocTagRefactoring_1); for (Change change : fChanges) { compositeChange.add(change); } return compositeChange; }
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 protected void addChange(CompositeChange result, IFile file, IProgressMonitor pm) throws CoreException { if (file.exists()) { Change change = PluginManifestChange.createRenameChange(file, fElements.keySet().toArray(), getNewNames(), getTextChange(file), pm); if (change != null) result.add(change); } }
protected void addBuildPropertiesChange(CompositeChange result, IProgressMonitor pm) throws CoreException { IFile file = PDEProject.getBuildProperties(fProject); if (file.exists()) { Change change = BuildPropertiesChange.createRenameChange(file, fElements.keySet().toArray(), getNewNames(), pm); if (change != null) result.add(change); } }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange change = new CompositeChange(""); //$NON-NLS-1$ change.markAsSynthetic(); SubMonitor subMonitor = SubMonitor.convert(pm, PDEUIMessages.OrganizeManifestJob_taskName, fProjectList.size()); for (Iterator<?> i = fProjectList.iterator(); i.hasNext() && !pm.isCanceled();) { CompositeChange projectChange = cleanProject((IProject) i.next(), subMonitor.split(1)); if (projectChange.getChildren().length > 0) change.add(projectChange); } return change; }
@Override protected void addChange(CompositeChange result, IProgressMonitor pm) throws CoreException { IFile file = PDEProject.getManifest(fProject); if (file.exists()) { Change change = BundleManifestChange.createRenameChange(file, fElements.keySet().toArray(), getNewNames(), pm); if (change != null) result.add(change); } }
private void addChange(CompositeChange result, IFile file, IProgressMonitor pm) throws CoreException { if (file.exists()) { Change change = PluginManifestChange.createRenameChange(file, fElements.keySet().toArray(), getNewNames(), getTextChange(file), pm); if (change != null) result.add(change); } }
@Override protected void addChange(CompositeChange result, IFile file, IProgressMonitor pm) throws CoreException { if (file.exists()) { Change change = PluginManifestChange.createRenameChange(file, fElements.keySet().toArray(), getNewNames(), getTextChange(file), pm); if (change != null) result.add(change); } }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(copyProfile(pm)); return undo; }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(moveProfile()); return undo; }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(deleteProfile(pm)); return undo; }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(createProfile(pm)); return undo; }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(createProfile(pm)); return new NullChange(); }