boolean hasOneGroupCategory(List categories) { if (fChildren == null) return false; return getGroupCategorySet().containsOneCategory(categories); }
boolean hasOneGroupCategory(List categories) { return fChangeGroup.getGroupCategorySet().containsOneCategory(categories); }
/** * Returns <code>true</code> if the change has one of the given group * categories. Otherwise <code>false</code> is returned. * * @param groupCategories the group categories to check * * @return whether the change has one of the given group * categories * * @since 3.2 */ public boolean hasOneGroupCategory(List groupCategories) { if (fCombiedGroupCategories == null) { fCombiedGroupCategories= GroupCategorySet.NONE; for (Iterator iter= fChangeGroups.iterator(); iter.hasNext();) { TextEditBasedChangeGroup group= (TextEditBasedChangeGroup)iter.next(); fCombiedGroupCategories= GroupCategorySet.union(fCombiedGroupCategories, group.getGroupCategorySet()); } } return fCombiedGroupCategories.containsOneCategory(groupCategories); }
/** * Returns <code>true</code> if the change has one of the given group * categories. Otherwise <code>false</code> is returned. * * @param groupCategories the group categories to check * * @return whether the change has one of the given group * categories * * @since 3.2 */ public boolean hasOneGroupCategory(List<GroupCategory> groupCategories) { if (fCombiedGroupCategories == null) { fCombiedGroupCategories= GroupCategorySet.NONE; for (Iterator<TextEditBasedChangeGroup> iter= fChangeGroups.iterator(); iter.hasNext();) { TextEditBasedChangeGroup group= iter.next(); fCombiedGroupCategories= GroupCategorySet.union(fCombiedGroupCategories, group.getGroupCategorySet()); } } return fCombiedGroupCategories.containsOneCategory(groupCategories); }
/** * Returns <code>true</code> if the change has one of the given group * categories. Otherwise <code>false</code> is returned. * * @param groupCategories the group categories to check * * @return whether the change has one of the given group * categories * * @since 3.2 */ public boolean hasOneGroupCategory(List<GroupCategory> groupCategories) { if (fCombiedGroupCategories == null) { fCombiedGroupCategories= GroupCategorySet.NONE; for (Iterator<TextEditBasedChangeGroup> iter= fChangeGroups.iterator(); iter.hasNext();) { TextEditBasedChangeGroup group= iter.next(); fCombiedGroupCategories= GroupCategorySet.union(fCombiedGroupCategories, group.getGroupCategorySet()); } } return fCombiedGroupCategories.containsOneCategory(groupCategories); }
private List collectTextEditBasedChangeGroups(List categories) { List result= new ArrayList(10); PreviewNode[] children= getChildren(); for (int i= 0; i < children.length; i++) { PreviewNode child= children[i]; if (child instanceof TextEditGroupNode) { TextEditBasedChangeGroup changeGroup= ((TextEditGroupNode)child).getChangeGroup(); if (categories == null || changeGroup.getGroupCategorySet().containsOneCategory(categories)) result.add(changeGroup); } else if (child instanceof InternalLanguageElementNode) { result.addAll(((InternalLanguageElementNode)child).collectTextEditBasedChangeGroups(categories)); } } return result; }