Package org.eclipse.wst.sse.ui.internal.contentoutline

Examples of org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapterFactory


    if (documentManager != null) {
      documentManager.removeListener(this);
    }
    if (fViewer != null && fViewer.getInput() != null) {
      if (fViewer.getInput() instanceof IDOMNode) {
        IJFaceNodeAdapterFactory factory = (IJFaceNodeAdapterFactory) ((IDOMNode) fViewer.getInput()).getModel().getFactoryRegistry().getFactoryFor(IJFaceNodeAdapter.class);
        if (factory != null) {
          factory.removeListener(fViewer);
        }
      }
    }
    if (fCMColor != null) {
      fCMColor.dispose();
View Full Code Here


        }
      }
    }

    if ((oldInput != null) && (oldInput instanceof IDOMNode)) {
      IJFaceNodeAdapterFactory factory = (IJFaceNodeAdapterFactory) ((IDOMNode) oldInput).getModel().getFactoryRegistry().getFactoryFor(IJFaceNodeAdapter.class);
      if (factory != null) {
        factory.removeListener(viewer);
      }
    }

    if (viewer instanceof StructuredViewer) {
      fViewer = null;
    }
    else {
      fViewer = (StructuredViewer) viewer;
    }

    if ((newInput != null) && (newInput instanceof IDOMNode)) {
      IJFaceNodeAdapterFactory factory = (IJFaceNodeAdapterFactory) ((IDOMNode) newInput).getModel().getFactoryRegistry().getFactoryFor(IJFaceNodeAdapter.class);
      if (factory != null) {
        factory.addListener(viewer);
      }
    }

    if (newInput != null) {
      Document domDoc = (Document) newInput;
View Full Code Here

    return false;
  }

  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    if ((oldInput != null) && (oldInput instanceof IStructuredModel)) {
      IJFaceNodeAdapterFactory factory = (IJFaceNodeAdapterFactory) ((IStructuredModel) oldInput).getFactoryRegistry().getFactoryFor(IJFaceNodeAdapter.class);
      if (factory != null) {
        factory.removeListener(viewer);
      }
    }
    if ((newInput != null) && (newInput instanceof IStructuredModel)) {
      IJFaceNodeAdapterFactory factory = (IJFaceNodeAdapterFactory) ((IStructuredModel) newInput).getFactoryRegistry().getFactoryFor(IJFaceNodeAdapter.class);
      if (factory != null) {
        factory.addListener(viewer);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.contentoutline.IJFaceNodeAdapterFactory

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.