Package net.sourceforge.coffea.uml2

Examples of net.sourceforge.coffea.uml2.Resources


    ImportDeclaration id = ast.newImportDeclaration();
    id.setName(ast.newName(new String[] {"java", "util", "Set"}));
    ASTRewrite rewriter = ASTRewrite.create(ast);
    // 3°) Third step, we can process the type declaration
    if(t.isInterface()) {
      result = new InterfaceService(t, group, rewriter, u);
    }
    else {
      result = new ClassService(t, group, rewriter, u);
    }
    return result;
View Full Code Here


    init();
    if(target!=null) {
      if(getCoffeeName()==null) {
        this.setCoffeeName(target.getName());
      }
      model = new ModelService(this);
      parse(target);
    }
    return model;
 
View Full Code Here

      return processedModel;
    }
  }

  public IModelService buildModelService(IJavaProject p) {
    model = new ModelService(this);
    model.setJavaProject(p);
    return model;
  }
View Full Code Here

            name = IModelService.defaultPackageFileName;
          }
          IPackageService group =
            model.resolvePackageService(name);
          if(group==null) {
            new PackageService(
                pack,
                model
            );
          }
        }
View Full Code Here

                // Then we have the primary type, the
                // container will be the package
                group = model.resolvePackageService(name);
                if(group==null) {
                  group =
                    new PackageService(
                        t.getPackageFragment(),
                        model
                    );
                }
              }
View Full Code Here

        model.resolvePackageService(
            u.getPackage().getName().getFullyQualifiedName()
        );
      if(group==null) {
        group =
          new PackageService(
              u.getPackage(),
              model
          );
      }
    }
View Full Code Here

                  content,
                  null,
                  false,
                  new NullProgressMonitor()
              );
            prop = new PropertyService(f, ownerHandler);
            properties.add(prop);
          } catch (JavaModelException e) {
            e.printStackTrace();
          }
        }
View Full Code Here

      // We get all the attribute declarations
      FieldDeclaration[] fields = syntaxTreeNode.getFields();
      // For each attribute of the class,
      for (int i=0 ; i<fields.length ; i++) {
        // We add a tool to the list
        addPropertyService(new PropertyService(fields[i], this));
        // And a dependency
        dependenciesServices.add(
            new CompositionService(fields[i], this)
        );
      }
      // If this class has a super class,
      if(syntaxTreeNode.getSuperclassType()!=null) {
        // We resolve this super class
        ITypeBinding binding =
          syntaxTreeNode.getSuperclassType().resolveBinding();
        // And try to get its name
        if(binding!=null) {
          superClassName = binding.getQualifiedName();
          int smtIdx = superClassName.indexOf('<');
          if(smtIdx>=0) {
            superClassName =
              superClassName.substring(0, smtIdx);
          }
        }
      }
    }
    else if(javaElement!=null) {
      // We get all the fields
      try {
        IField[] fields = javaElement.getFields();
        // For each field of the class,
        for (int i=0 ; i<fields.length ; i++) {
          // We add a tool to the list
          addPropertyService(
              new PropertyService(fields[i], this)
          );
          // And a dependency
          dependenciesServices.add(
              new CompositionService(fields[i], this)
          );
View Full Code Here

TOP

Related Classes of net.sourceforge.coffea.uml2.Resources

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.