Hi,
   
  I want to access all UML diagrams that belongs to model created. I have 
created something like this:
   
  Collection root=Model.getFacade().getRootElements();
 Object element=null;
 String projectN=null;
 if (!root.isEmpty()) {
            Object child=null;
            for(Object t: root){
          child = t;
    }
     if (Model.getFacade().isAModel(child)){
               Collection children=Model.getFacade().getChildren(child);
  ...
   
  In this code child is a modelElement. I'm expecting to get a collection of 
all elements that belongs to the model, but children collection is empty. 
  Can you suggest me how to access those diagrams?
   
  I have also tried with 
  
Model.getModelManagementHelper().getAllModelElementsOfKindWithModel(child,Model.getMetaTypes());
   
  Zoran
   

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to