@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); } } } }
@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); } } } }
private DependentMembersCollectorBase<T, C> getCollector(T member) { final ClassMembersRefactoringSupport factory = LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(member.getLanguage()); return factory != null ? factory.createDependentMembersCollector(myClass, mySuperClass) : null; }
private DependentMembersCollectorBase<T, C> getCollector() { final ClassMembersRefactoringSupport factory = LanguageDependentMembersRefactoringSupport.INSTANCE.forLanguage(myClass.getLanguage()); return factory != null ? factory.createDependentMembersCollector(myClass, mySuperClass) : null; }