Package at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl

Examples of at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl.PackageDefinition


   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetPackageDef(PackageDefinition newPackageDef, NotificationChain msgs)
  {
    PackageDefinition oldPackageDef = packageDef;
    packageDef = newPackageDef;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CssExtDslPackage.CSS_EXTENSION__PACKAGE_DEF, oldPackageDef, newPackageDef);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here


  }
 
  protected String getDocHeadForElement(ElementDefinition element) {
    Assert.isNotNull(element);
   
    PackageDefinition pkg = findPackage(element);
   
    StringBuffer out = new StringBuffer();
    out.append("<nobr>");
    printImage(out, "selector_16x16.png");
    printName(out, element.getName());
View Full Code Here

  }

  private String getDocHeadForCssRule(CSSRuleDefinition rule) {
    Assert.isNotNull(rule);
   
    PackageDefinition pkg = findPackage(rule);
   
    StringBuffer out = new StringBuffer();
    out.append("<nobr>");
    printImage(out, "rule_16x16.png");
    printName(out, rule.getName());
View Full Code Here

 
  private String findFullPackageName(PackageDefinition d) {
    String name = d.getName();
    EObject c = d.eContainer();
    while (c != null && c instanceof PackageDefinition) {
      PackageDefinition cur = (PackageDefinition) c;
      name = cur.getName() + "." + name;
      c = c.eContainer();
    }
    return name;
  }
View Full Code Here

    });
    packages.add(ext.getPackageDef());
   
   
    while (!packages.isEmpty()) {
      PackageDefinition current = packages.last();
      packages.remove(current);
     
      createEObjectNode(parentNode, current, labelProvider.getImage(current), findFullPackageName(current), false);
     
      for (PackageDefinition d : current.getSubpackages()) {
        packages.add(d);
      }
      packages.addAll(current.getSubpackages());
    }
   
   
  }
View Full Code Here

 
  protected Object _text(PackageDefinition modelElement) {
    String name = modelElement.getName();
    EObject cur = modelElement.eContainer();
    while(cur != null && cur instanceof PackageDefinition) {
      PackageDefinition curDef = (PackageDefinition) cur;
      name = curDef.getName() + "." + name;
      cur = cur.eContainer();
    }
   
    return name;
  }
View Full Code Here

    else if (obj instanceof CssExtension) {
      CssExtension e = (CssExtension) obj;
      recFindProperties(e.getPackageDef(), result, filter);
    }
    else if (obj instanceof PackageDefinition) {
      PackageDefinition pkg = (PackageDefinition) obj;
      for (ElementDefinition el : pkg.getElements()) {
        for (Definition d : el.getProperties()) {
          PropertyDefinition prop = (PropertyDefinition) d;
          if (filter.filter(prop)) {
            result.add(prop);
            if (filter.returnOnFirstHit()) {
              return;
            }
          }
        }
      }
      for (PackageDefinition subPkg : pkg.getSubpackages()) {
        recFindProperties(subPkg, result, filter);
      }
    }
  }
View Full Code Here

    if (curr instanceof CssExtension) {
      CssExtension e = (CssExtension) curr;
      recFindObjects(e.getPackageDef(), result, filter);
    }
    else if (curr instanceof PackageDefinition) {
      PackageDefinition pkg = (PackageDefinition) curr;
      for (Definition def : pkg.getRules()) {
        recFindObjects((CSSRuleDefinition) def, result, filter);
      }
      for (ElementDefinition el : pkg.getElements()) {
        recFindObjects(el, result, filter);
      }
      for (PackageDefinition subPkg : pkg.getSubpackages()) {
        recFindObjects(subPkg, result, filter);
      }
    }
  }
View Full Code Here

    }
  }
 
  public String calcPackagename(final PackageDefinition p) {
    String rv = p.getName();
    PackageDefinition parent = p;
    EObject _eContainer = parent.eContainer();
    boolean _while = (_eContainer instanceof PackageDefinition);
    while (_while) {
      {
        EObject _eContainer_1 = parent.eContainer();
        parent = ((PackageDefinition) _eContainer_1);
        String _name = parent.getName();
        String _plus = (_name + ".");
        String _plus_1 = (_plus + rv);
        rv = _plus_1;
      }
      EObject _eContainer_1 = parent.eContainer();
      _while = (_eContainer_1 instanceof PackageDefinition);
    }
    return rv;
  }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.css.cssext.cssExtDsl.PackageDefinition

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.