Examples of ListDescrNode


Examples of hidb2.gui.node.ListDescrNode

              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.ListDescrNode

      IWorkbenchPart iwp = page.getActivePart();

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

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

        fd.updateStats(Application.getDataStore());

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

        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.ListDescrNode

                {
                if (iwp instanceof DBStructView)
                  {
                  // Create a new FolderDescrNode and open the editor
                  ListDescription fd = Application.getDataStore().createListDescription();
                  ListDescrNode fnd = new ListDescrNode(fd);
                  ((ListDescrTitleNode) obj).addChild(fnd);

                  page.openEditor(fnd, ListDescrEditor.ID);

                  // log.info("Ask for refresh");
View Full Code Here

Examples of hidb2.gui.node.ListDescrNode

      {
      ListDescr.removeAllChildren();

      for (ListDescription fd : lstRefLstDescr)
        {
        ListDescr.addChild(new ListDescrNode(fd));
        }
      }
    else
      {
      for (DefaultNode node : ListDescr.getChildren())
        {
        ListDescrNode fdn = (ListDescrNode) node;

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

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

    return getListDescr();
View Full Code Here

Examples of hidb2.gui.node.ListDescrNode

      }
    else
      {
      for (DefaultNode node : ListDescr.getChildren())
        {
        ListDescrNode fdn = (ListDescrNode) node;

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

        if (fdn.getDescr() == ldin)
          {
          fdn.createChildren();
          }
        }
      }

    return getListDescr();
View Full Code Here

Examples of hidb2.gui.node.ListDescrNode

              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.