当前位置: 首页>>代码示例>>Java>>正文


Java SharableParticipants类代码示例

本文整理汇总了Java中org.eclipse.ltk.core.refactoring.participants.SharableParticipants的典型用法代码示例。如果您正苦于以下问题:Java SharableParticipants类的具体用法?Java SharableParticipants怎么用?Java SharableParticipants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SharableParticipants类属于org.eclipse.ltk.core.refactoring.participants包,在下文中一共展示了SharableParticipants类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:RenameModifications.java

示例2: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:MoveModifications.java

示例3: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:CopyModifications.java

示例4: loadChangeMethodSignatureParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
/**
 * Loads the change method signature participants for the given element.
 *
 * @param status a refactoring status to report status if problems occurred while loading the
 *     participants
 * @param processor the processor that will own the participants
 * @param method the method to be changed
 * @param arguments the change method signature arguments describing the change
 * @param filter a participant filter to exclude certain participants, or <code>null</code> if no
 *     filtering is desired
 * @param affectedNatures an array of project natures affected by the refactoring
 * @param shared a list of shared participants
 * @return an array of change method signature participants
 */
public static ChangeMethodSignatureParticipant[] loadChangeMethodSignatureParticipants(
    RefactoringStatus status,
    RefactoringProcessor processor,
    IMethod method,
    ChangeMethodSignatureArguments arguments,
    IParticipantDescriptorFilter filter,
    String[] affectedNatures,
    SharableParticipants shared) {
  RefactoringParticipant[] participants =
      fgMethodSignatureInstance.getParticipants(
          status, processor, method, arguments, filter, affectedNatures, shared);
  ChangeMethodSignatureParticipant[] result =
      new ChangeMethodSignatureParticipant[participants.length];
  System.arraycopy(participants, 0, result, 0, participants.length);
  return result;
}
 
开发者ID:eclipse,项目名称:che,代码行数:31,代码来源:JavaParticipantManager.java

示例5: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
public RefactoringParticipant[] loadParticipants(
    RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException {
  final ArrayList result = new ArrayList();
  if (!isApplicable()) {
    return new RefactoringParticipant[0];
  }

  final String[] affectedNatures = ResourceProcessors.computeAffectedNatures(fResources);
  final DeleteArguments deleteArguments = new DeleteArguments(fDeleteContents);
  for (int i = 0; i < fResources.length; i++) {
    result.addAll(
        Arrays.asList(
            ParticipantManager.loadDeleteParticipants(
                status,
                this,
                fResources[i],
                deleteArguments,
                affectedNatures,
                sharedParticipants)));
  }

  return (RefactoringParticipant[]) result.toArray(new RefactoringParticipant[result.size()]);
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:DeleteResourcesProcessor.java

示例6: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:9,代码来源:RenameElementProcessor.java

示例7: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@Override
public RefactoringParticipant[] loadParticipants(
    RefactoringStatus status, SharableParticipants sharedParticipants) throws CoreException {
  String[] affectedNatures = JavaProcessors.computeAffectedNatures(fMethod);
  return JavaParticipantManager.loadChangeMethodSignatureParticipants(
      status,
      this,
      fMethod,
      getParticipantArguments(),
      null,
      affectedNatures,
      sharedParticipants);
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:ChangeSignatureProcessor.java

示例8: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
public final RefactoringParticipant[] loadParticipants(
    RefactoringStatus status,
    RefactoringProcessor processor,
    String[] natures,
    SharableParticipants shared)
    throws CoreException {
  RefactoringModifications modifications = getModifications();
  if (modifications != null) {
    return modifications.loadParticipants(status, processor, natures, shared);
  } else {
    return new RefactoringParticipant[0];
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:ReorgPolicyFactory.java

示例9: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
public RefactoringParticipant[] loadParticipants(
    RefactoringStatus status, SharableParticipants shared) throws CoreException {
  String[] affectedNatures = ResourceProcessors.computeAffectedNatures(fResourcesToMove);

  List result = new ArrayList();
  for (int i = 0; i < fResourcesToMove.length; i++) {
    MoveParticipant[] participants =
        ParticipantManager.loadMoveParticipants(
            status, this, fResourcesToMove[i], fMoveArguments, null, affectedNatures, shared);
    result.addAll(Arrays.asList(participants));
  }
  return (RefactoringParticipant[]) result.toArray(new RefactoringParticipant[result.size()]);
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:MoveResourcesProcessor.java

示例10: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
public RefactoringParticipant[] loadParticipants(RefactoringStatus status,
        SharableParticipants shared) throws CoreException {
    // TODO: figure out participants to return here
    return new RefactoringParticipant[0];

    // String[] affectedNatures=
    // ResourceProcessors.computeAffectedNatures(fResource);
    // return ParticipantManager.loadRenameParticipants(status, this,
    // fResource, fRenameArguments, null, affectedNatures, shared);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:11,代码来源:RenameKeyProcessor.java

示例11: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
public RefactoringParticipant[] loadParticipants(RefactoringStatus status, SharableParticipants shared) throws CoreException {
		// TODO: figure out participants to return here
		return new RefactoringParticipant[0];
		
//		String[] affectedNatures= ResourceProcessors.computeAffectedNatures(fResource);
//		return ParticipantManager.loadRenameParticipants(status, this, fResource, fRenameArguments, null, affectedNatures, shared);
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:8,代码来源:RenameKeyProcessor.java

示例12: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
/**
 * {@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()]);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:16,代码来源:MoveStaticMembersProcessor.java

示例13: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:14,代码来源:RenameModifications.java

示例14: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:DeleteModifications.java

示例15: loadParticipants

import org.eclipse.ltk.core.refactoring.participants.SharableParticipants; //导入依赖的package包/类
@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()]);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:14,代码来源:MoveModifications.java


注:本文中的org.eclipse.ltk.core.refactoring.participants.SharableParticipants类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。