* the given layer represented by his ID.
* @return true if the given layer is activated, false otherwise.
*/
public boolean isLayerActivated(EObject object, String layerID) {
if (object instanceof DSemanticDiagram) {
final DSemanticDiagram d = (DSemanticDiagram)object;
for (Layer layer : d.getActivatedLayers()) {
if (layerID.equals(layer.getName())) {
return true;
}
}
}