Examples of ITypesContainerService


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

          for(int i=0 ; i<types.size() ; i++) {
            t = types.get(i);
            if(t!=null) {
              // In a first step, we are going to process
              // the class container
              ITypesContainerService group = null;
              // If the parent is the compilation unit,
              if(
                  (t.getParent()==c)
                  &&(t.getPackageFragment()!=null)
              ) {
View Full Code Here

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

      CompilationUnit u
  ) {
    ITypeService<?, ?> result = null;
    // 1°) In a first step, we are going to process the package
    // declaration
    ITypesContainerService group;
    if(u.getPackage()!=null) {
      group =
        model.resolvePackageService(
            u.getPackage().getName().getFullyQualifiedName()
        );
View Full Code Here

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

  protected void completeConstruction(
      ASTRewrite r,
      IOwnerService p
  ) {
    if(p instanceof ITypesContainerService) {
      ITypesContainerService cont =
        (ITypesContainerService)p;
      cont.addTypeService(this);
    }
    this.rewriter = r;
    superInterfacesNames = new ArrayList<String>();
    List<?> interfaces = null;
    this.operationsServices = new ArrayList<IMethodService>();
View Full Code Here

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

              new PerformRefactoringOperation(
                  r,
                  CheckConditionsOperation.FINAL_CONDITIONS
              );
            op.run(monitor);
            ITypesContainerService contH = getContainerService();
            if(contH!=null) {
              String newFullName = contH.getFullName();
              newFullName += '.' + newName;
              IType tp = null;
              if(processedUnit!=null) {
                tp =
                  processedUnit.getJavaProject().findType(
                      newFullName
                  );
              }
              else {
                tp =
                  javaElement.getJavaProject().findType(
                      newFullName
                  );
              }
              if(tp!=null) {
                ICompilationUnit newUnit =
                  tp.getCompilationUnit();
                if(newUnit!=null) {
                  ITypeService<?, ?> tpH =
                    getModelService().getServiceBuilder()
                    .processTypeService(
                        newUnit,
                        new NullProgressMonitor()
                    );
                  if(tpH!=null) {
                    contH.addTypeService(tpH);
                    contH.getTypesServices().remove(this);
                  }
                }
              }
            }
          } catch (CoreException e) {
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.