Package at.bestsolution.efxclipse.tooling.css.cssDsl

Examples of at.bestsolution.efxclipse.tooling.css.cssDsl.URLType


   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetUrl(URLType newUrl, NotificationChain msgs)
  {
    URLType oldUrl = url;
    url = newUrl;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CssDslPackage.URL_TOK__URL, oldUrl, newUrl);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here


      else if( o instanceof simple_selector ) {
        final ICompositeNode n = NodeModelUtils.getNode((EObject)o);
        acceptor.addPosition(n.getOffset(), n.getLength(), CssDslHighlightingConfiguration.SELECTOR);
      }
      else if (o instanceof URLType) {
        final URLType url = (URLType) o;
        final ICompositeNode n = NodeModelUtils.getNode(url);
        acceptor.addPosition(n.getOffset(), 4, CssDslHighlightingConfiguration.FUNCTION);
        acceptor.addPosition(n.getOffset()+4, n.getLength()-5, CssDslHighlightingConfiguration.URL);
        acceptor.addPosition(n.getOffset() + n.getLength() - 1, 1, CssDslHighlightingConfiguration.FUNCTION);
      }
View Full Code Here

    } else {
      EObject o = eObjectAtOffsetHelper.resolveElementAt(resource, offset);
     
      // This allows us to select only the urls content on doubleclick
      if (o instanceof URLType) {
        final URLType urlType = (URLType) o;
        if (urlType.getUrl() != null) {
          ITextRegion r1 = locationInFileProvider.getFullTextRegion(o, CssDslPackage.Literals.URL_TYPE__URL, 0);
          int mod = 0;
          if (urlType.getUrl().startsWith("\"") || urlType.getUrl().startsWith("'")) {
            mod = 1;
          }
          IRegion r = new Region(r1.getOffset() + mod, r1.getLength() - 2 * mod);
          return Tuples.create(o, r);
        }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.css.cssDsl.URLType

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.