Package net.sourceforge.coffea.uml2.model

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


            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.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.