Examples of FolderListNode


Examples of hidb2.gui.node.FolderListNode

          if (obj instanceof FolderListNode)
            {
            if ((iwp instanceof DBDataView) || (iwp instanceof SearchView))
              {
              // Get the FolderDescrNode and open the editor
              FolderListNode fld = ((FolderListNode) obj);

              if (Application.getLock(fld.getDescr()))
                {
                page.openEditor(fld, FolderListEditor.ID);
                }
              }
            }
          else
            {
            if (obj instanceof DataPathNode)
              {
              // Open datapath editor
              DataPathNode dnp = (DataPathNode) obj;

              DataPathTitleNode dptn = (DataPathTitleNode) dnp.getParent();

              dptn.addChild(dnp);

              page.openEditor(dptn, DataPathEditor.ID);

              // Update the tree view, but does not refresh the visible parts.
              if (iwp instanceof DBStructView)
                {
                ((DBStructView) iwp).getTree().refresh(dptn, true);
                }
              }
            else
              {
              if (obj instanceof ListDescrNode)
                {
                if (iwp instanceof DBStructView)
                  {
                  // Get the ListDescrNode and open the editor
                  ListDescrNode fnd = ((ListDescrNode) obj);

                  if (Application.getLock(fnd.getDescr()))
                    {
                    page.openEditor(fnd, ListDescrEditor.ID);
                    }
                  }
                }
              else
                {
                if (obj instanceof EnumItemListNode)
                  {
                  // Open the EnumItem list editor
                  if (iwp instanceof DBDataView)
                    {
                    // Get the FolderDescrNode and open the editor
                    EnumItemListNode fld = ((EnumItemListNode) obj);

                    if (Application.getLock(fld.getDescr()))
                      {
                      page.openEditor(fld, EnumItemListEditor.ID);
                      }
                    }
                  }
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

          {
          if (obj instanceof FolderListNode)
            {
            if (iwp instanceof DBDataView)
              {
              FolderListNode fnd = (FolderListNode) obj;

              fnd.create();

              page.openEditor(fnd, FolderListEditor.ID);

              ((DBDataView) iwp).getTree().refresh(obj, true);
              }
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

      {
      FolderDescr.removeAllChildren();

      for (FolderDescription fd : lstFldDescr)
        {
        FolderDescr.addChild(new FolderListNode(fd));
        }
      }
    else
      {
      for (DefaultNode node : FolderDescr.getChildren())
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

   * Create or Update the list of FolderDescription nodes.
   * @return
   */
  public FolderListNode update(FolderDescription fdin)
    {
    FolderListNode fdnExist = null;

    for (DefaultNode node : invisibleRoot.getChildren())
      {
      FolderListNode fdn = (FolderListNode) node;

      if (fdn.getDescr() == fdin)
        {
        // The folder description was already recorded
        fdnExist = fdn;
        }
      }

    if (fdnExist == null)
      {
      // Create a Folder list node, but do not read DB data
      fdnExist = new FolderListNode(fdin, false);
      invisibleRoot.addChild(fdnExist);
      }

    return fdnExist;
    }
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

   * Create or Update the list of FolderDescription nodes.
   * @return
   */
  public FolderListNode update(Folder f)
    {
    FolderListNode fdtn = update((FolderDescription) f.getDescription());

    FolderNode prevFn = null;

    for (DefaultNode node : fdtn.getChildren())
      {
      FolderNode fn = (FolderNode) node;

      if (fn.getFolder().getID() == f.getID())
        {
        // The folder was already recorded
        prevFn = fn;
        }
      }

    if (prevFn == null)
      {
      // Create a Folder list node, but do not read DB data
      prevFn = new FolderNode(f);
      fdtn.addChild(prevFn);
      }

    return fdtn;
    }
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

   */
  public void addFolder(Folder f)
    {
    SearchViewContentProvider cntp = (SearchViewContentProvider) _viewer.getContentProvider();
   
    final FolderListNode fdtn = cntp.update(f);
   
    _parent.getDisplay().asyncExec(new Runnable()
      {
        public void run()
          {
View Full Code Here

Examples of hidb2.gui.node.FolderListNode

          if (obj instanceof FolderListNode)
            {
            if ((iwp instanceof DBDataView) || (iwp instanceof SearchView))
              {
              // Get the FolderDescrNode and open the editor
              FolderListNode fld = ((FolderListNode) obj);

              if (Application.getLock(fld.getDescr()))
                {
                page.openEditor(fld, FolderListEditor.ID);
                }
              }
            }
          else
            {
            if (obj instanceof DataPathNode)
              {
              // Open datapath editor
              DataPathNode dnp = (DataPathNode) obj;

              DataPathTitleNode dptn = (DataPathTitleNode) dnp.getParent();

              dptn.addChild(dnp);

              page.openEditor(dptn, DataPathEditor.ID);

              // Update the tree view, but does not refresh the visible parts.
              if (iwp instanceof DBStructView)
                {
                ((DBStructView) iwp).getTree().refresh(dptn, true);
                }
              }
            else
              {
              if (obj instanceof ListDescrNode)
                {
                if (iwp instanceof DBStructView)
                  {
                  // Get the ListDescrNode and open the editor
                  ListDescrNode fnd = ((ListDescrNode) obj);

                  if (Application.getLock(fnd.getDescr()))
                    {
                    page.openEditor(fnd, ListDescrEditor.ID);
                    }
                  }
                }
              else
                {
                if (obj instanceof EnumItemListNode)
                  {
                  // Open the EnumItem list editor
                  if (iwp instanceof DBDataView)
                    {
                    // Get the FolderDescrNode and open the editor
                    EnumItemListNode fld = ((EnumItemListNode) obj);

                    if (Application.getLock(fld.getDescr()))
                      {
                      page.openEditor(fld, EnumItemListEditor.ID);
                      }
                    }
                  }
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.