Package hidb2.gui.node

Examples of hidb2.gui.node.DataPathTitleNode


      {
      IWorkbenchPage page = _window.getActivePage();

      IViewPart searchView = page.showView(SearchView.ID);

      DlgSearch dlg = new DlgSearch(_window.getShell(), searchView);

      dlg.open();
      }

    catch (PartInitException e)
      {
      e.printStackTrace();
View Full Code Here


    //    openFileCheckerAction = new OpenFileChecker("Open File Checker", window);
    //    register(openFileCheckerAction);
    //
    //    refreshFileListAction = new RefreshFileList("Refresh File List",window);
    //    register(refreshFileListAction);
    searchAction = new SearchAction("Search", window);
    register(searchAction);
    }
View Full Code Here

              {
                @Override
                protected Object openDialogBox(Control cellEditorWindow)
                  {
                  // Use Checker atttibuts editor
                  DlgAttrChecker dlg = new DlgAttrChecker(cellEditorWindow.getShell(), "Checking Values", null,
                      "Give range:", MessageDialog.INFORMATION, new String[]
                        {
                            "Ok", "Cancel"
                        }, 0);

                  AttrChecker curAck = (AttrChecker) getValue();

                  int rmsg = dlg.open(curAck);

                  return (rmsg == 0) ? curAck : null;
                  }
              };
            }
View Full Code Here

    _tbl.addAttribut("Min", AttrType.T_String, "Min", 60);

    _tbl.addAttribut("Max", AttrType.T_String, "Max", 60);
    _tbl.addAttribut("Step", AttrType.T_String, "Grad", 60);

    HIDB2Toolkit toolkit = new HIDB2Toolkit(_dlg.getDisplay());

    Composite containerBtn = toolkit.createComposite(panel, SWT.NONE);
    containerBtn.setLayout(FormLayoutFactory.createClearGridLayout(true, 1));

    /*Button btnAddAfter =*/toolkit.createGridButton(containerBtn, "Add", new SelectionAdapter()
      {
        @Override
        public void widgetSelected(SelectionEvent e)
          {
          QueryAttr qa = new QueryAttr();
          _query.lstQAttr.add(qa);
          _tbl.refresh();
          }
      });

    /*Button btnRem =*/toolkit.createGridButton(containerBtn, "Delete", new SelectionAdapter()
      {
        @Override
        public void widgetSelected(SelectionEvent e)
          {
          ISelection selection = _tbl.getSelection();
View Full Code Here

  protected HIDB2Toolkit toolkit;

  protected void initToolkit(Display dsp)
    {
    toolkit = new HIDB2Toolkit(dsp);
    }
View Full Code Here

            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)
View Full Code Here

          else
            {
            if (obj instanceof DataPathTitleNode)
              {
              // Open datapath editor
              DataPathTitleNode dptn = (DataPathTitleNode) obj;

              DataPath dp = Application.getDataStore().createDataPath();

              DataPathNode dnp = new DataPathNode(dp);

              dptn.addChild(dnp);

              page.openEditor(dptn, DataPathEditor.ID);

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

   */
  public DataPathTitleNode updateDataPath()
    {
    if (DataPaths == null)
      {
      DataPaths = new DataPathTitleNode("Data Paths", RscMan.IN_TARGET);
      }

    DataPaths.removeAllChildren();

    // Fill tree with DataPath
View Full Code Here

            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)
View Full Code Here

    return false;
    }

  private void initialize()
    {
    invisibleRoot = new DefaultNode("", "");

    // Get DataPath list
    List<DataPath> lstDP = Application.getDataStore().getDataPathList();

    for (DataPath dp : lstDP)
View Full Code Here

TOP

Related Classes of hidb2.gui.node.DataPathTitleNode

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.