org.eclipse.ltk.core.refactoring.participants.ParticipantManager Java Examples
The following examples show how to use
org.eclipse.ltk.core.refactoring.participants.ParticipantManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RenameElementProcessor.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException { RenameParticipant[] renameParticipants = ParticipantManager.loadRenameParticipants(status, this, renameElementContext, new RenameArguments(newName, true), new String[] { XtextProjectHelper.NATURE_ID }, sharedParticipants); return renameParticipants; }
Example #2
Source File: RenameModifications.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<>(); for (int i= 0; i < fRename.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadRenameParticipants(status, owner, fRename.get(i), (RenameArguments) fRenameArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #3
Source File: MoveModifications.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<>(); for (int i= 0; i < fMoves.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadMoveParticipants(status, owner, fMoves.get(i), (MoveArguments) fMoveArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #4
Source File: CopyModifications.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<>(); for (int i= 0; i < fCopies.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadCopyParticipants(status, owner, fCopies.get(i), (CopyArguments) fCopyArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #5
Source File: MoveStaticMembersProcessor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * {@inheritDoc} */ @Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException { List<MoveParticipant> result= new ArrayList<MoveParticipant>(); MoveArguments args= new MoveArguments(fDestinationType, true); String[] natures= JavaProcessors.computeAffectedNaturs(fMembersToMove); for (int i= 0; i < fMembersToMove.length; i++) { IMember member= fMembersToMove[i]; result.addAll(Arrays.asList(ParticipantManager.loadMoveParticipants( status, this, member, args, natures, sharedParticipants))); } return result.toArray(new RefactoringParticipant[result.size()]); }
Example #6
Source File: RenameModifications.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<RefactoringParticipant>(); for (int i= 0; i < fRename.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadRenameParticipants(status, owner, fRename.get(i), (RenameArguments) fRenameArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #7
Source File: DeleteModifications.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<RefactoringParticipant>(); for (Iterator<IJavaElement> iter= fDelete.iterator(); iter.hasNext();) { result.addAll(Arrays.asList(ParticipantManager.loadDeleteParticipants(status, owner, iter.next(), new DeleteArguments(), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #8
Source File: MoveModifications.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<RefactoringParticipant>(); for (int i= 0; i < fMoves.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadMoveParticipants(status, owner, fMoves.get(i), (MoveArguments) fMoveArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #9
Source File: CopyModifications.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, RefactoringProcessor owner, String[] natures, SharableParticipants shared) { List<RefactoringParticipant> result= new ArrayList<RefactoringParticipant>(); for (int i= 0; i < fCopies.size(); i++) { result.addAll(Arrays.asList(ParticipantManager.loadCopyParticipants(status, owner, fCopies.get(i), (CopyArguments) fCopyArguments.get(i), fParticipantDescriptorFilter.get(i), natures, shared))); } result.addAll(Arrays.asList(getResourceModifications().getParticipants(status, owner, natures, shared))); return result.toArray(new RefactoringParticipant[result.size()]); }
Example #10
Source File: RenameElementProcessor2.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException { return ParticipantManager.loadRenameParticipants(status, this, renameElementContext, new RenameArguments(newName, true), new String[] { XtextProjectHelper.NATURE_ID }, sharedParticipants); }