Package org.eclipse.wst.sse.core.internal.provisional

Examples of org.eclipse.wst.sse.core.internal.provisional.INodeAdapter


  protected DocumentStyleImpl(DocumentImpl that) {
    super(that);
  }

  public CSSStyleDeclaration getOverrideStyle(Element element, String pseudoName) {
    INodeAdapter adapter = getAdapterFor(IStyleSheetListAdapter.class);
    if (adapter == null)
      return null;
    return ((IStyleSheetListAdapter) adapter).getOverrideStyle(element, pseudoName);
  }
View Full Code Here


      return null;
    return ((IStyleSheetListAdapter) adapter).getOverrideStyle(element, pseudoName);
  }

  public StyleSheetList getStyleSheets() {
    INodeAdapter adapter = getAdapterFor(IStyleSheetListAdapter.class);
    if (adapter == null)
      return null;
    return ((IStyleSheetListAdapter) adapter).getStyleSheets();
  }
View Full Code Here

      return null;
    return ((IStyleSheetListAdapter) adapter).getStyleSheets();
  }

  protected void releaseStyleSheets() {
    INodeAdapter adapter = getExistingAdapter(IStyleSheetListAdapter.class);
    if (adapter == null)
      return;
    ((IStyleSheetListAdapter) adapter).releaseStyleSheets();
  }
View Full Code Here

   *
   * The implementation of this method should call addAdapter on the adapted
   * object with the correct instance of the adapter.
   */
  public INodeAdapter adapt(INodeNotifier notifier) {
    INodeAdapter adapter = null;
    if (notifier != null) {
      if (notifier instanceof IDOMDocument) {
        adapter = notifier.getExistingAdapter(ModelParserAdapter.class);
        if (adapter == null) {
          adapter = new HTMLModelParserAdapter();
View Full Code Here

  /**
   */
  public INodeAdapter adapt(INodeNotifier notifier) {
    if (notifier == null)
      return null;
    INodeAdapter adapter = notifier.getExistingAdapter(ElementDeclarationAdapter.class);
    if (adapter != null)
      return adapter;
    adapter = new HTMLElementDeclarationAdapter();
    notifier.addAdapter(adapter);
    return adapter;
View Full Code Here

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

   *
   * The implementation of this method should call addAdapter on the adapted
   * object with the correct instance of the adapter.
   */
  public INodeAdapter adapt(INodeNotifier notifier) {
    INodeAdapter result = null;
    // only adapt IDOMDocument
    if (notifier instanceof IDOMDocument) {

      // if already has an adapter, no need to recreate/initialize.
      // Note: this means if "doctype" for DOM changes,
View Full Code Here

  public ElementStyleImpl(ElementImpl that) {
    super(that);
  }

  public StyleSheet getSheet() {
    INodeAdapter adapter = getAdapterFor(IStyleSheetAdapter.class);
    if (adapter == null)
      return null;
    if (!(adapter instanceof IStyleSheetAdapter))
      return null;
    return ((IStyleSheetAdapter) adapter).getSheet();
View Full Code Here

      return null;
    return ((IStyleSheetAdapter) adapter).getSheet();
  }

  public CSSStyleDeclaration getStyle() {
    INodeAdapter adapter = getAdapterFor(IStyleDeclarationAdapter.class);
    if (adapter == null)
      return null;
    if (!(adapter instanceof IStyleDeclarationAdapter))
      return null;
    return ((IStyleDeclarationAdapter) adapter).getStyle();
View Full Code Here

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

TOP

Related Classes of org.eclipse.wst.sse.core.internal.provisional.INodeAdapter

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.