Examples of DiagramList


Examples of com.ktu.fd2.uml.DiagramList

 
  @Override
  public Object[] getChildren(Object parentElement) {
   
    if(parentElement instanceof DiagramList){
      DiagramList diagramsList = (DiagramList) parentElement;
      Object[] parents = new Object[diagramsList.getDiagrams().size()];

      if (!diagramsList.getDiagrams().isEmpty())
        return diagramsList.getDiagrams().toArray(parents);

    } else if (parentElement instanceof Diagram) {
      Diagram diag = (Diagram) parentElement;
      Object[] childs = new Object[diag.getDiagramAssociations()
          .getElements().size()];
View Full Code Here

Examples of com.ktu.fd2.uml.DiagramList

  }

  @Override
  public Object getParent(Object element) {
   
    DiagramList DL = FdToUml.getInstance().getDiagramsObj();
   
    if(element instanceof Diagram){
     
      for(Diagram DG : DL.getDiagrams()){
        if(DG.equals(element)) return DL;
      }
      //return this._fd2uml.getDiagramsObj().getDiagrams();
    } else if(element instanceof AssociatedElement){
      for(Diagram DG : DL.getDiagrams()){
        for(AssociatedElement AE : DG.getDiagramAssociations().getElements())
          if(AE.equals(element)) return DG;
      }
    }
View Full Code Here

Examples of com.ktu.fd2.uml.DiagramList

              && fileName.contains(FileLibrary.ASSOC_EXT)) {

            try {
             

              DiagramList DL = DiagramListFileHelper
                  .read(fileName);
             
              fd2uml.setDiagramsObj(DL);

              fd2uml.setCurrentDiagramId(DL.getDiagrams().get(0)
                  .getID());
             
              FdToUml.refreshConfigurationElementsDataFromDiagram();
             
              tree.getTree().removeAll();
              tree.setInput(DL);
              tree.refresh();
             
              FdToUml.setCurrentConfigurationFile(fileName);

              if (!DL.isEmpty())
                for (Diagram diagram : DL.getDiagrams()) {
                  if (!diagram.getDiagramAssociations()
                      .getElements().isEmpty())
                    for (AssociatedElement element : diagram
                        .getDiagramAssociations()
                        .getElements()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.