org.eclipse.ltk.core.refactoring.participants.MoveParticipant Java Examples

The following examples show how to use org.eclipse.ltk.core.refactoring.participants.MoveParticipant. 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: MoveStaticMembersProcessor.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * {@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()]);
}