VectorOfScicosID children = new VectorOfScicosID();
final ObjectProperties property = relatedPortKindProperty(v[0]);
-
- // FIXME manage the index argument, possibly by counting the JGraphX children by kind
if (property != null) {
controller.getObjectProperty(getUID(), getKind(), property, children);
+ // do no use the index argument as it is not possible to insert out of order on the MVC (as we have kind of port)
children.add(c.getUID());
controller.setObjectProperty(getUID(), getKind(), property, children);
}
*/
@Override
public Object beforeEncode(mxCodec enc, Object obj, Node node) {
- // FIXME find a valid usage of this
- // ((Element) node).setAttribute(DATA_TYPE, String.valueOf(((BasicPort) obj).getDataType()));
-
/*
* Log some information
*/
final BasicPort port = (BasicPort) obj;
final String attr = ((Element) node).getAttribute(DATA_TYPE);
- // FIXME find a valid usage of that
- // // set default data type
- // if (attr == null || attr.equals("")) {
- // port.setDataType(BasicPort.DataType.REAL_MATRIX);
- //
- // } else {
- // port.setDataType(BasicPort.DataType.valueOf(attr));
- // }
-
// update connectable flag
port.setConnectable(true);
flipped = Boolean.parseBoolean(parentBlockMap.get(ScilabGraphConstants.STYLE_FLIP));
mirrored = Boolean.parseBoolean(parentBlockMap.get(ScilabGraphConstants.STYLE_MIRROR));
- // FIXME handle that compatibility
- // final int baseAngle = orientation.getRelativeAngle(((BasicBlock) obj.getParent()).getAngle(), obj.getClass(), flipped, mirrored);
- //
- // if (rotation == baseAngle) {
- // return;
- // }
-
// Calculate the rotation for this kind of port.
rotation = orientation.getAbsoluteAngle(obj.getClass(), flipped, mirrored);