@Override protected Change createChange() throws CoreException { return new CompositeChange(changeName, new Change[] { change, importChange }); }
@Override protected Change createChange() throws CoreException { return new CompositeChange(getName(), fChanges); }
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 { List changes = new ArrayList(); IResource resource = getBreakpointContainer(); IMarker[] markers= resource.findMarkers(IBreakpoint.BREAKPOINT_MARKER, true, IResource.DEPTH_INFINITE); gatherChanges(markers, changes); if (changes.size() > 1) { return new CompositeChange(RefactoringMessages.BreakpointRenameParticipant_1, (Change[]) changes.toArray(new Change[changes.size()])); } else if (changes.size() == 1) { return (Change) changes.get(0); } return null; }
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 { List changes = new ArrayList(); IResource resource = getBreakpointContainer(); IMarker[] markers= resource.findMarkers(IBreakpoint.BREAKPOINT_MARKER, true, IResource.DEPTH_INFINITE); gatherChanges(markers, changes, getArguments().getNewName()); if (changes.size() > 1) { return new CompositeChange(RefactoringMessages.BreakpointRenameParticipant_1, (Change[]) changes.toArray(new Change[changes.size()])); } else if (changes.size() == 1) { return (Change) changes.get(0); } return null; }
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 { CompositeChange change = new CompositeChange(""); //$NON-NLS-1$ change.markAsSynthetic(); ExternalizeStringsOperation op = new ExternalizeStringsOperation(fChangeFiles, change); try { op.run(pm); } catch (InvocationTargetException e) { } catch (InterruptedException e) { } return 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(renameProfile(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(deleteProfile(pm)); return undo; }
public Change perform(IProgressMonitor pm) throws CoreException { CompositeChange undo = new CompositeChange(getName()); undo.markAsSynthetic(); undo.add(createProfile(pm)); return new NullChange(); }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange result = new CompositeChange(getName()); addChange(result, pm); if (isInterestingForExtensions()) { addChange(result, PDEProject.getPluginXml(fProject), pm); addChange(result, PDEProject.getFragmentXml(fProject), pm); } return (result.getChildren().length == 0) ? null : result; }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { CompositeChange change = new CompositeChange(MessageFormat.format(PDEUIMessages.RenameExtensionPointProcessor_changeTitle, fInfo.getCurrentValue(), fInfo.getNewValue())); SubMonitor subMonitor = SubMonitor.convert(pm, 2); changeExtensionPoint(change, subMonitor.split(1)); if (fInfo.isUpdateReferences()) findReferences(change, subMonitor.split(1)); return change; }
@Override public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { if (!getArguments().getUpdateReferences()) return null; CompositeChange result = new CompositeChange(getName()); addBundleManifestChange(result, pm); if (updateBuildProperties()) addBuildPropertiesChange(result, pm); addChange(result, PDEProject.getPluginXml(fProject), pm); addChange(result, PDEProject.getFragmentXml(fProject), pm); return (result.getChildren().length == 0) ? null : result; }