} else if (containerView instanceof DDiagramElement) {
representation = ((DDiagramElement)containerView).getParentDiagram();
}
List<EObject> results = null;
if (representation instanceof DSemanticDiagramSpec) {
DiagramDescription description = ((DSemanticDiagramSpec)representation).getDescription();
if ("Block Definition Diagram".equals(description.getName())) {
results = getValidsForBlockDefinitionDiagram(element);
} else if ("Internal Block Diagram".equals(description.getName())) {
results = getValidsForInternalBlockDiagram((Class)element);
} else if ("Parametric Diagram".equals(description.getName())) {
results = getValidsForParametricBlockDiagram((Class)element);
} else if ("Requirement Diagram".equals(description.getName())) {
results = getValidsForRequirementDiagram(element, (DDiagram)representation);
}
}
return results;