Java 类com.intellij.lang.LanguageDependentMembersRefactoringSupport 实例源码

项目:intellij-ce-playground    文件:UsedByMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependent = null;
    T member = memberInfo.getMember();
    myMembers.add(member);
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    }
    else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      }
      else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:intellij-ce-playground    文件:UsesMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependentMap = null;
    T member = memberInfo.getMember();
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    } else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      } else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:tools-idea    文件:UsedByMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependent = null;
    T member = memberInfo.getMember();
    myMembers.add(member);
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    }
    else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      }
      else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:tools-idea    文件:UsesMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependentMap = null;
    T member = memberInfo.getMember();
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    } else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      } else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:consulo    文件:UsedByMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependent = null;
    T member = memberInfo.getMember();
    myMembers.add(member);
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    }
    else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      }
      else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:consulo    文件:UsesMemberDependencyGraph.java   
@Override
public void memberChanged(M memberInfo) {
  final ClassMembersRefactoringSupport support =
    LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(memberInfo.getMember().getLanguage());
  if (support != null && support.isProperMember(memberInfo)) {
    myDependencies = null;
    myDependenciesToDependentMap = null;
    T member = memberInfo.getMember();
    if (!memberInfo.isChecked()) {
      mySelectedNormal.remove(member);
      mySelectedAbstract.remove(member);
    } else {
      if (memberInfo.isToAbstract()) {
        mySelectedNormal.remove(member);
        mySelectedAbstract.add(member);
      } else {
        mySelectedNormal.add(member);
        mySelectedAbstract.remove(member);
      }
    }
  }
}
项目:intellij-ce-playground    文件:MemberDependenciesStorage.java   
private DependentMembersCollectorBase<T, C> getCollector(T member) {
  final ClassMembersRefactoringSupport factory = LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(member.getLanguage());
  return factory != null ? factory.createDependentMembersCollector(myClass, mySuperClass) : null;
}
项目:tools-idea    文件:MemberDependenciesStorage.java   
private DependentMembersCollectorBase<T, C> getCollector() {
  final ClassMembersRefactoringSupport factory = LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(myClass.getLanguage());
  return factory != null ? factory.createDependentMembersCollector(myClass, mySuperClass) : null;
}
项目:consulo    文件:MemberDependenciesStorage.java   
private DependentMembersCollectorBase<T, C> getCollector() {
  final ClassMembersRefactoringSupport factory = LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(myClass.getLanguage());
  return factory != null ? factory.createDependentMembersCollector(myClass, mySuperClass) : null;
}