Package hidb2.gui.action

Examples of hidb2.gui.action.OpenFile


      {
      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


    drillDownAdapter.addNavigationActions(manager);
    }

  private void makeActions()
    {
    openAction = new OpenFile(_viewer);

    doubleClickAction = new OpenFile(_viewer);

    openIconAction = new OpenIcon(this);
    viewIconAction = new ViewIcon(this);
    addAsFolderAction = new AddAsFolder(this);
    addAsCardAction = new AddAsCard(this);
View Full Code Here

    drillDownAdapter.addNavigationActions(manager);
    }

  private void makeActions()
    {
    openAction = new OpenFile(_viewer);

    doubleClickAction = new OpenFile(_viewer);

    openIconAction = new OpenIcon(this);
    viewIconAction = new ViewIcon(this);
    addAsFolderAction = new AddAsFolder(this);
    addAsCardAction = new AddAsCard(this);
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

TOP

Related Classes of hidb2.gui.action.OpenFile

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.