Examples of INodeNotifier


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

   */
  private void addAdapterToNodeAndChildrenHTML(Node node, int childLevel) {
    // stop adding initial adapters MAX_CHILDREN levels deep for
    // performance sake
    if (node instanceof INodeNotifier && childLevel < MAX_CHILDREN) {
      final INodeNotifier notifier = (INodeNotifier) node;

      // try and get the adapter for the current node and update the
      // adapter with projection information
      final ProjectionModelNodeAdapterHTML adapter2 = (ProjectionModelNodeAdapterHTML) notifier
          .getExistingAdapter(ProjectionModelNodeAdapterHTML.class);
      if (adapter2 != null) {
        adapter2.updateAdapter(node);
      } else {
        // just call getadapter so the adapter is created and
        // automatically initialized
        notifier.getAdapterFor(ProjectionModelNodeAdapterHTML.class);
      }
      int siblingLevel = 0;
      Node nextChild = node.getFirstChild();
      while (nextChild != null && siblingLevel < MAX_SIBLINGS) {
        final Node childNode = nextChild;
View Full Code Here

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

  /**
   */
  private void notifyStructureChanged(Node root) {
    if (root == null)
      return;
    INodeNotifier notifier = (INodeNotifier) root;
    try {
      // Its important to "keep going" if exception occurs, since this
      // notification
      // comes in between "about to change" and "changed" events. We do
      // log, however,
      // since would indicate a program error.
      notifier.notify(INodeNotifier.STRUCTURE_CHANGED, null, null, null,
          -1);
    } catch (Exception e) {
      Logger
          .logException(
              "A structured model client threw following exception during adapter notification (" + INodeNotifier.EVENT_TYPE_STRINGS[INodeNotifier.STRUCTURE_CHANGED] + " )", e); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

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

    private void addAdapterToNodeAndChildrenHTML(Node node, int childLevel)
    {
        // stop adding initial adapters MAX_CHILDREN levels deep for
        // performance sake
        if (node instanceof INodeNotifier && childLevel < MAX_CHILDREN) {
            final INodeNotifier notifier = (INodeNotifier) node;

            // try and get the adapter for the current node and update the
            // adapter with projection information
            final ProjectionModelNodeAdapterHTML adapter2 = (ProjectionModelNodeAdapterHTML) notifier
                    .getExistingAdapter(ProjectionModelNodeAdapterHTML.class);
            if (adapter2 != null) {
                adapter2.updateAdapter(node);
            } else {
                // just call getadapter so the adapter is created and
                // automatically initialized
                notifier.getAdapterFor(ProjectionModelNodeAdapterHTML.class);
            }
            int siblingLevel = 0;
            Node nextChild = node.getFirstChild();
            while (nextChild != null && siblingLevel < MAX_SIBLINGS) {
                final Node childNode = nextChild;
View Full Code Here

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

    }

    private void removeAdapterFromNodeAndChildren(Node node, int level)
    {
        if (node instanceof INodeNotifier) {
            final INodeNotifier notifier = (INodeNotifier) node;

            // try and get the adapter for the current node and remove it
            final INodeAdapter adapter2 = notifier
                    .getExistingAdapter(ProjectionModelNodeAdapterHTML.class);
            if (adapter2 != null) {
                notifier.removeAdapter(adapter2);
            }

            Node nextChild = node.getFirstChild();
            while (nextChild != null) {
                final Node childNode = nextChild;
View Full Code Here

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

  }

  public Object getAdapter(Class key) {
    if (IPropertySource.class == key) {
      if (node instanceof IDOMNode) {
        INodeNotifier source = (INodeNotifier) node;
        IPropertySource propertySource = (IPropertySource) source
            .getAdapterFor(IPropertySource.class);
        if (propertySource == null) {
          propertySource = new XMLPropertySource(
              (INodeNotifier) source);
          return new WebflowElementPropertySource(propertySource);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.