dec.getSubstitutionGroup().removeAll(toRemove);
@Override public boolean removeAll(Collection<?> c) { synchronized (mutex) { return list.removeAll(c); } }
/** * Delegates to {@link #delegateEList}. */ public boolean removeAll(Collection<?> collection) { return delegateEList.removeAll(collection); }
public boolean removeAll(Collection<?> c) { return getDocument().removeAll(c); }
@Override public boolean removeAll(Collection<?> c) { return getRows().removeAll(c); }
@Override public void doUndo() { // Remove the collection of replacements. // ownerList.removeAll(collection); // Add the value back in the right place. // ownerList.add(index, value); // Update the containing map, if necessary. // updateEMap(owner, feature); // We'd like the replaced selected after this undo replace completes. // affectedObjects = Collections.singleton(value); }
/** * Remove ReferenceTreatments without a declared type from the list */ private void removeInvalidTreatments(EList<ReferenceTreatment> treatments) { ArrayList<ReferenceTreatment> invalidTreatments = Lists.newArrayList(treatments.stream() // .filter(el -> false == el.getReferenceElement() instanceof CollectionReferenceElement) // don't process collection resource links .filter(hasDeclaredType().negate()) // .collect(toList())); if (!invalidTreatments.isEmpty()) { treatments.removeAll(invalidTreatments); } }
public void liftUpFeaturesRecursively() { traversedTypes.clear(); final Map<EClass, Collection<EStructuralFeature>> featuresToRemove = Maps.newLinkedHashMap(); liftUpFeaturesRecursively(rootInfos, featuresToRemove); for(Map.Entry<EClass, Collection<EStructuralFeature>> entry: featuresToRemove.entrySet()) { entry.getKey().getEStructuralFeatures().removeAll(entry.getValue()); } traversedTypes.clear(); pushFeaturesUp(infos.getAllEClassInfos()); }
public boolean removeAll(Collection collection) { boolean result = super.removeAll(collection); if (isInterface()) getInterfaceSuperTypes().removeAll(collection); return result; }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } @SuppressWarnings("unchecked") List<XSDRedefineContent> list = (List<XSDRedefineContent>)(List<?>)newContents; setListContentAndOrder(getContents(), list); }
public void cleanAssociationState(Resource resource) { checkLanguageResource(resource); List<EObject> derived = Lists.newArrayList(); EList<EObject> resourcesContentsList = resource.getContents(); for (int i = 1; i < resourcesContentsList.size(); i++) { EObject eObject = resourcesContentsList.get(i); unloader.unloadRoot(eObject); derived.add(eObject); } resourcesContentsList.removeAll(derived); sourceToTargetMap(resource).clear(); targetToSourceMap(resource).clear(); getLogicalContainerMapping(resource).clear(); }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } @SuppressWarnings("unchecked") List<XSDSchemaContent> list = (List<XSDSchemaContent>)(List<?>)newContents; setListContentAndOrder(getContents(), list); }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } @SuppressWarnings("unchecked") List<XSDRedefineContent> list = (List<XSDRedefineContent>)(List<?>)newContents; setListContentAndOrder(getContents(), list); }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } @SuppressWarnings("unchecked") List<XSDSchemaContent> list = (List<XSDSchemaContent>)(List<?>)newContents; setListContentAndOrder(getContents(), list); }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { handleAnnotationReconciliation(XSDPackage.Literals.XSD_MODEL_GROUP__ANNOTATION, newContents, remainingContents); if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } if (!newContents.isEmpty()) { @SuppressWarnings("unchecked") List<XSDParticle> list = (List<XSDParticle>)(List<?>)newContents; setListContentAndOrder(getContents(), list); } }
@Override protected void handleReconciliation(List<XSDConcreteComponent> newContents, List<XSDConcreteComponent> remainingContents) { handleAnnotationReconciliation(XSDPackage.Literals.XSD_MODEL_GROUP__ANNOTATION, newContents, remainingContents); if (!remainingContents.isEmpty()) { getContents().removeAll(remainingContents); } if (!newContents.isEmpty()) { @SuppressWarnings("unchecked") List<XSDParticle> list = (List<XSDParticle>)(List<?>)newContents; setListContentAndOrder(getContents(), list); } }
protected void orphanBy(XSDSchema xsdSchema) { List<XSDDiagnostic> theDiagnostics = getDiagnostics(); if (!theDiagnostics.isEmpty()) { xsdSchema.getAllDiagnostics().removeAll(theDiagnostics); } for (XSDConcreteComponentImpl childXSDConcreteComponent : getXSDConcreteComponentImpls()) { childXSDConcreteComponent.orphanBy(xsdSchema); } }
protected void orphanBy(XSDSchema xsdSchema) { List<XSDDiagnostic> theDiagnostics = getDiagnostics(); if (!theDiagnostics.isEmpty()) { xsdSchema.getAllDiagnostics().removeAll(theDiagnostics); } for (XSDConcreteComponentImpl childXSDConcreteComponent : getXSDConcreteComponentImpls()) { childXSDConcreteComponent.orphanBy(xsdSchema); } }
/** * @generated NOT */ public EList<Operation> oclOperations() { if (operations == null) { maybeInitializeOwnedOperations(); operations = new BasicEList.FastCompare<Operation>( getOwnedOperations()); operations.removeAll(oclIterators()); } return operations; }
private void updatePersistentAttributes(CompilationUnit astRoot) { List<JavaPersistentAttribute> persistentAttributesToRemove = new ArrayList<JavaPersistentAttribute>(getAttributes()); if (getAccess() == AccessType.FIELD) { updatePersistentFields(astRoot, persistentAttributesToRemove); } else if (getAccess() == AccessType.PROPERTY) { updatePersistentProperties(astRoot, persistentAttributesToRemove); } getAttributes().removeAll(persistentAttributesToRemove); }