Package hidb2.gui

Examples of hidb2.gui.ApplicationActionBarAdvisor


      {
      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

    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

          {
          fd.setStatus(StatusCycle.DELETED);

          fd.write(Application.getDataStore());

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

          // Update the tree view
          if (iwp instanceof DBStructView)
            {
            ((DBStructView) iwp).getTree().refresh(p, true);
View Full Code Here

    for (DataPath dp : lstDP)
      {
      if (dp.getPath() != null)
        {
        File froot = new File(dp.getPath());
        FileNode wa = new FileNode(froot, false);
        wa.createChilds();
        invisibleRoot.addChild(wa);
        }
      }

    if (_fbparam.viewRoots)
      {
      for (File froot : File.listRoots())
        {
        FileNode wa = new FileNode(froot, false);
        wa.createChilds();
        invisibleRoot.addChild(wa);
        }
      }
    }
View Full Code Here

        Object obj = ((IStructuredSelection) selection).getFirstElement();

        if (obj instanceof FileNode)
          {
          // Expand directory nodes
          FileNode n = (FileNode) obj;
          if (n.getCategory() == FileNode.C_DIRECTORY)
            {
            viewer.expandToLevel(obj, 1);
            }
          }
        else
View Full Code Here

      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

TOP

Related Classes of hidb2.gui.ApplicationActionBarAdvisor

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.