Changeset 500


Ignore:
Timestamp:
04/19/07 18:50:45 (17 years ago)
Author:
x07vasba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.uml.sysml.diagram2/src/org/modelica/uml/sysml/diagram2/part/SysmlInheritanceDiagramAction.java

    r499 r500  
    33import java.util.List;
    44import java.util.LinkedList;
     5import java.util.ArrayList;
    56import java.util.Iterator;
    67
     
    5152        this.label = label;
    5253        this.actionType = actionType;
    53         createdNodes = new LinkedList<CustomNode>();
     54        createdNodes = new ArrayList<CustomNode>();
    5455    }
    5556
     
    141142            classType = classType.substring(1, classType.length()-1);
    142143           
     144            //Out of memory debugging
     145            if(createdNodes.size()== 88){
     146                int breakp = 0;
     147            }
     148           
    143149            createdEditPart = createEmptyNodeEditPart(classType);
    144150            createdNode = new CustomNode(classType.trim(),classes[i],createdEditPart);
     151               
    145152            createdNodes.add(createdNode);
    146153
     
    319326            //and remove the old ones
    320327            List newChildrenList = new LinkedList();
    321             newChildrenList = editPart.getChildren();;
     328            newChildrenList.addAll(editPart.getChildren());
    322329            newChildrenList.removeAll(oldChildrenList);
    323330
Note: See TracChangeset for help on using the changeset viewer.