Examples of Tree


Examples of org.eclipse.swt.widgets.Tree

   * if <code>FALSE</code>.
   * @return Returns <code>TRUE</code> in case navigation found a valid item,
   * or <code>FALSE</code> otherwise.
   */
  public boolean navigate(boolean newsScoped, boolean next, boolean unread) {
    Tree explorerTree = fViewer.getTree();

    /* Nothing to Navigate to */
    if (explorerTree.isDisposed())
      return false;

    ITreeNode targetNode = null;

    /* 1.) Navigate in opened Tree */
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

  /*
   * @see org.rssowl.ui.internal.editors.feed.IFeedViewPart#setInput(java.lang.Object)
   */
  public void setPartInput(Object input) {
    Object oldInput = fViewer.getInput();
    Tree tree = fCustomTree.getControl();
    TreeColumn feedColumn = tree.getColumn(COL_FEED);

    /* Old: Bookmark, New: Saved Search */
    if (oldInput instanceof FeedLinkReference && input instanceof ISearchMark)
      fCustomTree.setVisible(feedColumn, true, true);

View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

   * if <code>FALSE</code>.
   * @return Returns <code>TRUE</code> in case navigation found a valid item,
   * or <code>FALSE</code> otherwise.
   */
  public boolean navigate(boolean newsScoped, boolean next, boolean unread) {
    Tree explorerTree = fViewer.getTree();

    /* Nothing to Navigate to */
    if (explorerTree.isDisposed())
      return false;

    ITreeNode targetNode = null;

    /* 1.) Navigate in opened Tree */
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

  /* Add a List of News to Table and Browser Viewers */
  private void addToViewers(List<INews> addedNews) {

    /* Add to Table-Viewer if Visible (keep top item and selection stable) */
    if (fFeedView.isTableViewerVisible()) {
      Tree tree = fTableViewer.getTree();
      TreeItem topItem = tree.getTopItem();
      int indexOfTopItem = 0;
      if (topItem != null)
        indexOfTopItem = tree.indexOf(topItem);

      tree.setRedraw(false);
      try {
        fTableViewer.add(fTableViewer.getInput(), addedNews.toArray());
        if (topItem != null && indexOfTopItem != 0)
          tree.setTopItem(topItem);
      } finally {
        tree.setRedraw(true);
      }
    }

    /* Add to Browser-Viewer if showing entire Feed */
    if (browserShowsCollection())
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

    StringBuilder content = new StringBuilder();
    NewsBrowserLabelProvider labelProvider = (NewsBrowserLabelProvider) fNewsBrowserControl.getViewer().getLabelProvider();

    /* Save from Table */
    if (isTableViewerVisible()) {
      Tree tree = fNewsTableControl.getViewer().getTree();
      TreeItem[] items = tree.getItems();
      if (items.length > 0) {
        List<INews> newsToSave = new ArrayList<INews>();

        /* Ungrouped */
        if (items[0].getItemCount() == 0) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

  }

  /* TODO This is a Workaround until Eclipse Bug #159586 is fixed */
  private void stableSetInputToNewsTable(Object input, ISelection oldSelection) {
    TreeViewer viewer = fNewsTableControl.getViewer();
    Tree tree = (Tree) viewer.getControl();

    /* Set Input & Restore Selection with redraw false */
    tree.getParent().setRedraw(false);
    try {
      fNewsTableControl.setPartInput(input);

      /* Restore selection if required */
      if (oldSelection != null) {
        fNewsTableControl.setBlockNewsStateTracker(true);
        try {
          viewer.setSelection(oldSelection);
        } finally {
          fNewsTableControl.setBlockNewsStateTracker(false);
        }
      }

      /* Adjust Scroll Position */
      fNewsTableControl.adjustScrollPosition();
    } finally {
      tree.getParent().setRedraw(true);
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Tree

      else
        fNewsBrowserControl.navigate(next, unread);
      return true;
    }

    Tree newsTree = fNewsTableControl.getViewer().getTree();

    /* Nothing to Navigate to */
    if (newsTree.getItemCount() == 0 || newsTree.isDisposed())
      return false;

    /* Navigate */
    return navigate(newsTree, respectSelection, next, unread);
  }
View Full Code Here

Examples of org.jboss.dashboard.ui.config.Tree

    /**
     * Go to config page
     */
    public void actionConfig(CommandRequest request) throws Exception {
        setShowingConfig(true);
        Tree tree = (Tree) Factory.lookup("org.jboss.dashboard.ui.config.ConfigurationTree");
        TreeStatus treeStatus = (TreeStatus) Factory.lookup("org.jboss.dashboard.ui.config.ConfigurationTreeStatus");
        TreeNode node = treeStatus.getLastEditedNode(tree);
        if (node != null) node.onEdit();
    }
View Full Code Here

Examples of org.jmule.core.searchmanager.tree.Tree

  /**
   * Constructs an search query based on the given search string
   * @param searchStr the given search string
   */
  public SearchQuery(String searchStr) {
    search_tree = new Tree(searchStr);
  }
View Full Code Here

Examples of org.jquantlib.methods.lattices.Tree

        final double maturity = rfdc.yearFraction(referenceDate, maturityDate);

        final StochasticProcess1D bs = new GeneralizedBlackScholesProcess(process.stateVariable(), flatDividends, flatRiskFree, flatVol);
        final TimeGrid grid = new TimeGrid(maturity, timeSteps_);
        final Tree tree = (Tree)getTreeInstance(bs, maturity, timeSteps_, payoff.strike());

        final BlackScholesLattice<Tree> lattice = new BlackScholesLattice<Tree>(tree, rRate, maturity, timeSteps_);
        final DiscretizedVanillaOption option = new DiscretizedVanillaOption(a, process, grid);

        option.initialize(lattice, maturity);
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.