return edge.equals("NORTH") || edge.equals("SOUTH");
}
public void setEdge(WidgetInfo widget, String edge) throws Exception {
if (widget.getAssociation() instanceof InvocationChildAssociation) {
InvocationChildAssociation association = (InvocationChildAssociation) widget.getAssociation();
MethodInvocation invocation = association.getInvocation();
// add/remove "size" argument
String oldMethodName = invocation.getName().getIdentifier();
if (!edge.equals("CENTER") && oldMethodName.equals("add")) {
getEditor().addInvocationArgument(invocation, 1, "1.0");
setReasonableSize(widget);