Examples of FolderDescrNode


Examples of hidb2.gui.node.FolderDescrNode

      IWorkbenchPart iwp = page.getActivePart();

      // Control Destination Class
      if (obj instanceof FolderDescrNode)
        {
        FolderDescrNode on = (FolderDescrNode) obj;

        FolderDescription fd = (FolderDescription) on.getDescr();

        fd.updateStats(Application.getDataStore());

        // Calculate Impact + Confirmation window
        boolean rb = MessageDialog.openConfirm(wbwin.getShell(), "Delete Folder Description",
            "Do you confirm the deletion of :" + fd.getName() + "\nHaving : " + fd.getNbInstance() + " folders");

        if (rb)
          {
          fd.setStatus(StatusCycle.DELETED);

          fd.write(Application.getDataStore());

          DefaultNode p = on.getParent();
         
          p.removeChild(on);

          // Update the tree view
          if (iwp instanceof DBStructView)
View Full Code Here

Examples of hidb2.gui.node.FolderDescrNode

        if (obj instanceof FolderDescrNode)
          {
          if (iwp instanceof DBStructView)
            {
            // Get the FolderDescrNode and open the editor
            FolderDescrNode fnd = (FolderDescrNode) obj;

            if (Application.getLock(fnd.getDescr()))
              {
              page.openEditor(fnd, FolderDescrEditor.ID);
              }
            }
          }
        else
          {
          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);
                    }
                  }
                }
View Full Code Here

Examples of hidb2.gui.node.FolderDescrNode

          {
          if (iwp instanceof DBStructView)
            {
            // Create a new FolderDescrNode and open the editor
            FolderDescription fd = Application.getDataStore().createFolderDescription();
            FolderDescrNode fnd = new FolderDescrNode(fd);
            ((FolderDescrTitleNode) obj).addChild(fnd);

            page.openEditor(fnd, FolderDescrEditor.ID);

            ((DBStructView) iwp).getTree().refresh(obj, true);
            }
          }
        else
          {
          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.FolderDescrNode

      {
      FolderDescr.removeAllChildren();

      for (FolderDescription fd : lstFldDescr)
        {
        FolderDescr.addChild(new FolderDescrNode(fd));
        }
      }
    else
      {
      for (DefaultNode node : FolderDescr.getChildren())
        {
        FolderDescrNode fdn = (FolderDescrNode) node;

        fdn.setName(fdn.getDescr().getName());

        if (fdn.getDescr() == fdin)
          {
          fdn.removeAllChildren();
          fdn.createChildren();
          }
        }
      }

    return getFolderDescr();
View Full Code Here

Examples of hidb2.gui.node.FolderDescrNode

      }
    else
      {
      for (DefaultNode node : FolderDescr.getChildren())
        {
        FolderDescrNode fdn = (FolderDescrNode) node;

        fdn.setName(fdn.getDescr().getName());

        if (fdn.getDescr() == fdin)
          {
          fdn.removeAllChildren();
          fdn.createChildren();
          }
        }
      }

    return getFolderDescr();
View Full Code Here

Examples of hidb2.gui.node.FolderDescrNode

        if (obj instanceof FolderDescrNode)
          {
          if (iwp instanceof DBStructView)
            {
            // Get the FolderDescrNode and open the editor
            FolderDescrNode fnd = (FolderDescrNode) obj;

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