blob: 857bea1d7e67e9f6c2ecb95482c3664abe05a3a0 [file] [log] [blame]
/*
* Copyright (c) 2006 Borland Software Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Michael Golubev (Borland) - initial API and implementation
*/
import "http://www.eclipse.org/emf/2002/Ecore";
import "http://www.eclipse.org/gmf/2008/GenModel";
import "http://www.eclipse.org/uml2/diagram/gmfgenext/DiagramFigure/1.0";
gmfgen::GenNode selectDiagramHeader(List[gmfgen::GenNode] nodes) :
nodes.select(
n| isDiagramHeader(n)
).first()
;
boolean isDiagramHeader(gmfgen::GenCommonBase genCommon) :
null != genCommon.viewmap.attributes.typeSelect(gmfgenext::AuxSecondaryDiagramNodeAttribute).first()
;