Package net.sourceforge.coffea.uml2.model.impl

Examples of net.sourceforge.coffea.uml2.model.impl.AssociationService


      IProgressMonitor monitor
  ) {
    if(monitor==null) {
      monitor = new NullProgressMonitor();
    }
    IUML2RunnableWithProgress runnable = new ModelProcessorRunnable(el);
    try {
      runnable.run(monitor);
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
View Full Code Here


   *   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

            }
          }
        }
      }
      if((ret==null)&&(properties!=null)) {
        IAttributeService prop;
        for(int i=0 ; i<properties.size() ; i++) {
          prop = properties.get(i);
          if(prop!=null) {
            if(n.equals(prop.getFullName())) {
              ret = prop;
            }
            if(ret!=null) {
              break;
            }
View Full Code Here

  @Override
  public List<IElementService> getElementsHandlers() {
    List<IElementService> ret = super.getElementsHandlers();
    if(properties!=null) {
      IAttributeService prop = null;
      for(int i=0 ; i<properties.size() ; i++) {
        prop = properties.get(i);
        if(prop!=null) {
          ret.add(prop);
        }
View Full Code Here

      CoffeaUML2Plugin.getInstance().execute(runnable);
    }
  }

  public IAttributeService createProperty(Property p) {
    IAttributeService a = null;
    if(p!=null) {
      PropertyCreation runnable = new PropertyCreation(p, this);
      CoffeaUML2Plugin.getInstance().execute(runnable);
      a  = runnable.getResult();
    }
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

TOP

Related Classes of net.sourceforge.coffea.uml2.model.impl.AssociationService

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.