Package net.sourceforge.coffea.uml2.model

Examples of net.sourceforge.coffea.uml2.model.IPackageHandling


  }

  public List<IElementService> getElementsHandlers() {
    List<IElementService> ret = new ArrayList<IElementService>();
    if(operationsServices!=null) {
      IMethodService op = null;
      for(int i=0 ; i<operationsServices.size() ; i++) {
        op = operationsServices.get(i);
        if(op!=null) {
          ret.add(op);
        }
View Full Code Here


            }
          }
        }
      }
      if((ret==null)&&(operationsServices!=null)) {
        IMethodService op;
        for(int i=0 ; i<operationsServices.size() ; i++) {
          op = operationsServices.get(i);
          if(op!=null) {
            if(n.equals(op.getFullName())) {
              ret = op;
            }
            if(ret!=null) {
              break;
            }
View Full Code Here

            );
        }
        ClassDiagramBuilder worker =
          new ClassDiagramBuilder(workbenchWindow,sourceViewId);
        worker.setCoffeeName(proj.getName());
        IModelHandling model =
          worker.buildModelHandler(target);
        // Save the reversed model in the file system
        worker.save(
            target.getPath(),
            worker.getCoffeeName()
View Full Code Here

   * @param name
   * Name of the element to return the handler for
   * @return Element handler responding to the given element name
   */
  protected IElementHandling getElementHandler(String name) {
    IModelHandling mdl = null;
    IElementHandling rt = null;
    if(creator!=null) {
      mdl = creator.getModelHandler();
      if(mdl!=null) {
        rt = mdl.getElementHandler(name);
        if(rt==null) {
          IElementHandling defaultPackageElement =
            mdl.getElementHandler(
                IModelHandling.defaultPackageFileName
            );
          if(defaultPackageElement instanceof IPackageHandling) {
            rt =
              ((IPackageHandling)defaultPackageElement)
View Full Code Here

                lastSelectedElementHandler
                instanceof IPackageHandling
            ) {
              IPackageHandling packH =
                ((IPackageHandling)lastSelectedElementHandler);
              IModelHandling modelH = packH.getModelHandler();
              if(
                  (modelH!=null)
                  /*&&(
                      !modelH.getFullName().equals(
                          packH.getFullName()
 
View Full Code Here

   * @param prj
   * Project which class path must be resolved
   */
  protected void resolveClasspath(IJavaProject prj) {
    if(prj!=null) {
      IModelService mdH = getLatestModelServiceBuilt();
      if(mdH!=null) {
        try {
          IPackageFragment[] packs =
            prj.getPackageFragments();
          IPackageFragment pack = null;
          IClassFile[] classFiles = null;
          IClassFile classFile = null;
          IType type = null;
          String classFullName = null;
          if(packs!=null) {
            for(int i=0 ; i<packs.length ; i++) {
              pack = packs[i];
              if(
                  (pack!=null)
                  &&(
                      !(
                          pack.getKind()
                          ==IPackageFragmentRoot
                          .K_SOURCE
                      )
                  )
              ) {
                classFiles = pack.getClassFiles();
                if(classFiles!=null) {
                  for(int j=0 ; j<classFiles.length ; j++) {
                    classFile = classFiles[j];
                    if(classFile!=null) {
                      type = classFile.getType();
                      if(type!=null) {
                        classFullName =
                          ClassifierService
                          .buildFullyQualifiedName(
                              type
                          );
                        mdH.resolveTypeService(
                            classFullName
                        );
                      }
                    }
                  }
View Full Code Here

  }

  public IPackageService buildPackageService(
      IPackageFragment packageFragment
  ) {
    IModelService projectModelService =
      buildModelService(packageFragment);
    IElementService elementSrv =
      projectModelService.getElementService(
          packageFragment.getElementName()
      );
    if(elementSrv instanceof IPackageService) {
      return (IPackageService)elementSrv;
    }
View Full Code Here

  private IJavaElementServiceBuilding serviceBuilder =
    new ModelServiceBuilder();
 
  @Override
  public IModelService get(Object str) {
    IModelService service = super.get(str);
    if((service == null) && (str.toString() != null)) {
      service = serviceBuilder.buildModelService(str.toString());
    }
    return service;
  }
View Full Code Here

            );
        }
        ModelServiceBuilder worker =
          new ModelServiceBuilder(sourceViewId);
        worker.setCoffeeName(proj.getName());
        IModelService model =
          worker.parseFile(target);
        // Save the reversed model in the file system
        worker.save(
            target.getPath(),
            worker.getCoffeeName()
View Full Code Here

    return umlModelElement;
  }

  public IModelServiceBuilding getServiceBuilder() {
    IModelServiceBuilding r = null;
    IModelService m = getModelService();
    if(m!=null) {
      r = m.getServiceBuilder();
    }
    return r;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.coffea.uml2.model.IPackageHandling

Copyright © 2018 www.massapicom. 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.