Package net.sourceforge.coffea.uml2.model.creation

Examples of net.sourceforge.coffea.uml2.model.creation.ModelServiceBuilder$Parser


   *   not a file or the user account executing the program is not allowed to
   *   read it)
   */
  protected void readJavaFile(File parseFile, File container)
  throws IllegalArgumentException {
    IUML2RunnableWithProgress runnable = new Parser(parseFile);
    CoffeaUML2Plugin.getInstance().execute(runnable);
  }
View Full Code Here


    public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException {
      if (monitor == null) {
        monitor = new NullProgressMonitor();
      }
      IAttributeService prop = null;
      if(objective!=null) {
        String simpleName = objective.getName();
        if(
            (simpleName!=null)
            &&(simpleName.length()>0)
View Full Code Here

        String qualifiedName = containerName + '#' + simpleName;
        /*
        String qualifiedName =
          PropertyHandler.resolveFullyQualifiedName(oldProperty);
         */
        IAttributeService tp = getPropertyService(qualifiedName);
        if (tp != null) {
          IField jEl = tp.getJavaElement();
          if (jEl != null) {
            try {
              jEl.delete(false, new NullProgressMonitor());
              properties.remove(tp);
            } catch (JavaModelException e) {
View Full Code Here

        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

TOP

Related Classes of net.sourceforge.coffea.uml2.model.creation.ModelServiceBuilder$Parser

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.