* @throws Exception
*/
public void testRootParentNamesMultiple() throws Exception {
// create a blank editor
testCreateBlank();
EcoreCreateElementsHelper gmf = getElementCreator();
// set the root name
gmf.setName(root, "root element");
assertEquals(root.getName(), "root element");
// create a CompositeOperation
ActivityOperation cop = gmf.createActivityOperation(root);
assertNotNull(cop);
// set name
gmf.setName(cop, "my operation");
assertEquals(cop.getName(), "my operation");
// find the edit part for this element
ShapeNodeEditPart partOp = assertHasOperation(editor, "my operation");
assertNotNull(partOp);
// what is the content pane?
IFigure fig_o = partOp.getContentPane();
assertTrue("CompositeOperation should be extended: " + fig_o.getClass(),
fig_o instanceof ExtendedActivityOperationFigure);
ExtendedActivityOperationFigure ext_o = (ExtendedActivityOperationFigure) fig_o;
// check to see it has the correct initial parent value
assertEquals("Parent: root element", ext_o.getFigureActivityOperationParentNameFigure().getText());
// change the root name
gmf.setName(root, "a new parent name");
assertEquals(root.getName(), "a new parent name");
// the parent labels should have changed
assertEquals("Parent: a new parent name", ext_o.getFigureActivityOperationParentNameFigure().getText());
}