Package net.sourceforge.coffea.uml2.model

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


              )
          )
          &&(containerFullName.length()>0)
      ) {
        if(!(ct instanceof IClassifierService<?, ?>)) {
          IModelService m = getModelService();
          if(
              !(
                  (m!=null)
                  &&(ct instanceof IModelService)
                  &&(
View Full Code Here


    super(jEl, p, pk);
    completeConstruction(p);
  }

  public void retrieveContainerFromHierarchy() {
    IModelService m = getModelService();
    IPackagesGroupService parent = null;
    String parentName = getFullName();
    int indexFirstPoint = -1;
    while (parent == null) {
      indexFirstPoint = parentName.lastIndexOf('.');
      if (indexFirstPoint >= 0) {
        parentName = parentName.substring(0, indexFirstPoint);
        parent = m.resolvePackageService(parentName);
      } else {
        // We try to get a default package if this is not the default
        // package
        String fullName = getFullName();
        if(!
            (
                (fullName!=null)
                &&(
                    fullName.equals(
                        IModelService
                        .defaultPackageFileName
                    )
                )
            )
        ) {
          parent =
            m.resolvePackageService(
                IModelService.defaultPackageFileName
            );
        }
        // If we have no parent at this point,
        if(parent==null) {
View Full Code Here

    container = parent;
  }

  public List<IPackageService> fetchSubPackagesFromHierarchy() {
    List<IPackageService> children = new ArrayList<IPackageService>();
    IModelService m = getModelService();
    if (m != null) {
      List<IPackageService> allPackages = m.getPackagesServices();
      if (allPackages != null) {
        IPackageService p = null;
        for (int i = 0; i < allPackages.size(); i++) {
          p = allPackages.get(i);
          if (p != null) {
View Full Code Here

    }
  }

  public void setUpUMLModelElement() {
    if (umlModelElement == null) {
      IModelService md = null;
      IGroupService parent = getContainerService();
      Package parentElement = null;
      if (parent instanceof IPackageService) {
        IPackageService pk = (IPackageService) parent;
        parentElement = pk.getUMLElement();
      } else if (parent instanceof IModelService) {
        md = (IModelService) parent;
        parentElement = md.getUMLElement();
      }
      // If the parent element is a package,
      if (
          (parentElement != null)
          && (parent instanceof IPackageService)
View Full Code Here

  public void setGroupService(IPackagesGroupService gr) {
    container = gr;
  }

  public String getSimpleName() {
    IModelService m = getModelService();
    if ((m != null) && (m.arePackageInHierarchy())) {
      String simpleName = null;
      if (
          (syntaxTreeNode != null)
          && (syntaxTreeNode.getName() != null)
      ) {
View Full Code Here

        monitor = new NullProgressMonitor();
      }
      if (objective != null) {
        String simpleName = ClassService
        .simpleNameExtraction(objective);
        IModelService model = getModelService();
        IJavaElementServiceBuilding builder = null;
        if (model != null) {
          builder = model.getServiceBuilder();
        }
        if ((simpleName != null) && (simpleName.length() > 0)
            && (builder != null)) {
          try {
            String fileName =
View Full Code Here

          pk.getUMLElement().getNestedClassifiers().add(
              umlModelElement
          );
        }
        else if(parent instanceof IModelService) {
          IModelService md = (IModelService)parent;
          umlModelElement =
            md.getUMLElement().createOwnedClass(
                name,
                isAbstract()
            );
        }
      }
View Full Code Here

        monitor = new NullProgressMonitor();
      }
      if(objective!=null) {
        String simpleName =
          ClassService.simpleNameExtraction(objective);
        IModelService model = getModelService();
        IModelServiceBuilding builder = null;
        if(model!=null) {
          builder = model.getServiceBuilder();
        }
        if(
            (simpleName!=null)
            &&(simpleName.length()>0)
            &&(builder!=null)
View Full Code Here

                              instanceof
                              IPackageHandling

                          )
                      ){
                        IPackageHandling packH =
                          (IPackageHandling)elH;
                        if(
                            packH.getJavaElement()
                            !=null
                        ) {
                          String lastId =
                            ReverseHandler
                            .getInteractionsReceiver()
                            .getLastSourceViewId();
                          opened = true;
                          EditionHandler
                          .getEditionReceiver()
                          .edit(
                              packH
                              .getJavaElement(),
                              win,
                              lastId
                          );
                          break searchPages;
View Full Code Here

    else {
      String name = new String();
      IElementHandling el =
        creator.getModelHandler().getElementHandler(name);
      if(el instanceof IPackageHandling) {
        IPackageHandling pack = (IPackageHandling)el;
        EditionHandler.getEditionReceiver().edit(
            pack.getJavaElement(),
            creator.getSourceWorkbenchWindow(),
            creator.getSourceViewId()
        );
      }
    }
View Full Code Here

TOP

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

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.