Making all changes for fixing the build


Many things have changed, so I will just list them for a cleaner reference later.
  1. Error:
    scilab/scilab/modules/xcos/src/java/org/scilab/modules/xcos/BrowserView.java:260: error: incompatible types: Enumeration<TreeNode> cannot be converted to Enumeration<DefaultMutableTreeNode>
    Fix:
    Enumeration <DefaultMutableTreeNode> e = (Enumeration <DefaultMutableTreeNode> )(Object) root.depthFirstEnumeration() in place of Enumeration <DefaultMutableTreeNode> e = root.depthFirstEnumeration()
    First typecasting it into an object then into an Enumeration of DefaultMutableTreeNode, seems to get it fixed.
  2. Error:
    scilab/scilab/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/SuperblockMaskCustomizeAction.java:758: error: incompatible types: Vector<Vector> cannot be converted to List<List<?>>
    Fix:
    final List<?> data = model.getDataVector();
    List<?> tmp2 = (List<?>) data.get(row2);
    List<?> tmp1 = (List<?>) data.get(row1);
    data.set(row2, tmp1);
    data.set(row1, tmp2);
    in place of
    final List < List<? >> data = model.getDataVector();
    List<?> tmp = data.get(row2);
    data.set(row2, data.get(row1));
    data.set(row1, tmp);


Hoping for Best.
Happily Coding
Divyanshu Kumar