Package net.sourceforge.coffea.uml2

Examples of net.sourceforge.coffea.uml2.Resources


        supplier = getModelService().resolveTypeService(typeName);
      }
      else {
        // Else we got to get the local package
        IPackageService packH = null;
        IContainerService contH = getContainerService();
        while(
            (contH != null)
            &&(!(contH instanceof IPackageService))
            &&(contH instanceof IContainableElementService<?, ?>)
        ) {
View Full Code Here


    */

    public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException {
      if((javaElement != null) && (newVisiblityKindLiteral != null)) {
        IContainerService contH = getContainerService();
        if(contH instanceof IASTNodeService<?, ?>) {
          if(javaElement instanceof IField) {
            IField field = (IField)javaElement;
            try {
              SelfEncapsulateFieldRefactoring r =
View Full Code Here

        tHandler = getModelService().resolveTypeService(typeName);
      }
      else {
        // Else we got to get the local package
        IPackageService packSrv = null;
        IContainerService contSrv = getContainerService();
        while(
            (contSrv != null)
            &&(!(contSrv instanceof IPackageService))
            &&(contSrv instanceof IContainableElementService<?, ?>)
        ) {
View Full Code Here

    return container;
  }

  public String getFullName() {
    String name = new String();
    IContainerService ct = getContainerService();
    if(!(ct instanceof IModelService)) {
      String containerFullName = ct.getFullName();
      if(
          (
              !containerFullName.equals(
                  IModelService.primitiveTypesPackageName
              )
          )
          &&(
              !containerFullName.equals(
                  IModelService.classpathTypesPackageName
              )
          )
          &&(containerFullName.length()>0)
      ) {
        if(!(ct instanceof IClassifierService<?, ?>)) {
          IModelService m = getModelService();
          if(
              !(
                  (m!=null)
                  &&(ct instanceof IModelService)
                  &&(
                      !containerFullName.equals(
                          IModelService
                          .defaultPackageFileName
                      )
                  )
              )
          ) {
            name += containerFullName + '.';
          }
        }
        else {
          name += containerFullName + '#';
        }
      }
    }
    String simpleName = getSimpleName();
    /*
     * Removing  anything before any point in the simple name for
     * the hierarchy transition case (if we are not in the primitive types
     * or the class path)
     */
    int ind = -1;
    IContainerService contH = getContainerService();
    if(
        ((ind = simpleName.indexOf('.'))!=-1)
        &&(ind<simpleName.length())
        &&(contH!=null)
        &&(contH.getFullName()!=null)
        &&(contH.getFullName().length()>0)
    ) {
      simpleName = simpleName.substring(ind +1);
    }
    name += simpleName;
    return name;
View Full Code Here

              simpleName = adjustedDefaultUMLPackageName;
            }
            IPackageFragmentRoot fragRoot =
              (IPackageFragmentRoot)parent;
            String qualifiedName = new String();
            IContainerService contH = getContainerService();
            if(contH != null) {
              String parentFullName = contH.getFullName();
              if(
                  (parentFullName!=null)
                  &&(
                      !parentFullName.equals(
                          ModelService
View Full Code Here

      if((javaElement!=null)&&(newName!=null)) {
        JavaRenameProcessor p;
        try {
          p = new RenamePackageProcessor(javaElement);
          String qualifiedName = null;
          IContainerService contH = getContainerService();
          if(contH!=null) {
            String parentFullName = contH.getFullName();
            if(
                (parentFullName!=null)
                &&(
                    !parentFullName.equals(
                        ModelService
View Full Code Here

                        UMLClassDiagramJavaEditor
                    ) {
                      UMLClassDiagramJavaEditor umlEditor
                      = ((UMLClassDiagramJavaEditor)
                            editor);
                      IElementHandling elH =
                        umlEditor
                        .getLastSelectedElementHandler();
                      if(
                          (elH!=null)
                          &&(
View Full Code Here

        }
        if(name!=null) {
          TransactionalEditingDomain domain =
            g.getEditingDomain();
          if(listeners.get(name)==null) {
            IElementHandling elH = findHandler(g);
            if(elH!=null) {
              domain.addResourceSetListener(elH);
              listeners.put(name, elH);
            }
          }
View Full Code Here

   * 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 =
View Full Code Here

      Object child = null;
      EditPart childEditPart = null;
      String childName = null;
      NamedElement childElement = null;
      Node childModel = null;
      IElementHandling childH = null;
      for(int i=0 ; i<children.size() ; i++) {
        child = children.get(i);
        if((child!=null)&&(child instanceof EditPart)) {
          childEditPart = (EditPart)child;
          if(childEditPart.getModel() instanceof Node) {
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.