Package org.eclipse.wst.css.core.internal.provisional.adapters

Examples of org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetAdapter


        INodeAdapter adapter = notifier
            .getAdapterFor(IStyleSheetAdapter.class);
        if (adapter instanceof IStyleSheetAdapter) {
                    // XXX: see bug 171740.  This is a (hopefully) temporary
                    // workaround that avoids having the call to getSheet throw an NPE
                    IStyleSheetAdapter sheetAdapter = (IStyleSheetAdapter) adapter;
                    if (sheetAdapter.getElement() != null
                            && "text/css".equals(sheetAdapter.getElement().getAttribute(HTML40Namespace.ATTR_NAME_TYPE))) //$NON-NLS-1$

                    {
              StyleSheet sheet = ((IStyleSheetAdapter) adapter)
                  .getSheet();
                       
View Full Code Here


  private void releaseOldStyleSheets() {
    if (this.oldStyleAdapters == null)
      return;
    Iterator it = this.oldStyleAdapters.iterator();
    while (it.hasNext()) {
      IStyleSheetAdapter adapter = (IStyleSheetAdapter) it.next();
      if (adapter == null)
        continue;
      // if the same adapter is in the current list,
      // do not release
      if (this.styleAdapters != null && this.styleAdapters.contains(adapter))
        continue;
      adapter.released();
    }
    this.oldStyleAdapters = null;
  }
View Full Code Here

    if (this.styleAdapters == null)
      return;
    Iterator it = this.styleAdapters.iterator();
    while (it.hasNext()) {
      IStyleSheetAdapter adapter = (IStyleSheetAdapter) it.next();
      if (adapter != null)
        adapter.released();
    }
    this.styleAdapters = null;
  }
View Full Code Here

  private void removeOldStyleSheets() {
    if (this.oldStyleAdapters == null)
      return;
    Iterator it = this.oldStyleAdapters.iterator();
    while (it.hasNext()) {
      IStyleSheetAdapter adapter = (IStyleSheetAdapter) it.next();
      if (adapter == null)
        continue;
      // if the same adapter is in the current list,
      // do not release
      if (this.styleAdapters != null && this.styleAdapters.contains(adapter))
        continue;
      adapter.removed();
    }
    this.oldStyleAdapters = null;
  }
View Full Code Here

    INodeAdapter adapter = notifier.getAdapterFor(IStyleSheetAdapter.class);
    if (adapter == null)
      return null;
    if (!(adapter instanceof IStyleSheetAdapter))
      return null;
    IStyleSheetAdapter styleAdapter = (IStyleSheetAdapter) adapter;
    return styleAdapter.getModel();
  }
View Full Code Here

    INodeAdapter adapter = notifier.getAdapterFor(IStyleSheetAdapter.class);
    if (adapter == null)
      return null;
    if (!(adapter instanceof IStyleSheetAdapter))
      return null;
    IStyleSheetAdapter styleAdapter = (IStyleSheetAdapter) adapter;
    return styleAdapter.getModel();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.css.core.internal.provisional.adapters.IStyleSheetAdapter

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.