Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.TreeViewer.refresh()


                }
                if (items == null) {
                    if (isDisposed()) {
                        return;
                    }
                    viewer.refresh();

                } else {
                    if (isDisposed()) {
                        return;
                    }
View Full Code Here


                } else {
                    if (isDisposed()) {
                        return;
                    }
                    for (int i = 0; i < items.length; i++) {
                        viewer.refresh(items[i]);
                    }
                }

                if (barPosition != 0) {
                    bar.setSelection(Math.min(bar.getMaximum(), barPosition));
View Full Code Here

        if (display != null) {
            display.asyncExec(new Runnable() {
                public void run() {
                    if (!logTree.isDisposed()) {
                        TreeViewer viewer = logFilteredTree.getViewer();
                        viewer.refresh();
                    }
                }
            });
        }
    }
View Full Code Here

                            {
                                final MasterDetailsContentNodePart parent = node.getParentNode();
                               
                                if( parent == outline.getRoot() )
                                {
                                    treeViewer.refresh();
                                }
                                else
                                {
                                    treeViewer.refresh( parent );
                                }
View Full Code Here

                                {
                                    treeViewer.refresh();
                                }
                                else
                                {
                                    treeViewer.refresh( parent );
                                }
                            }
                            else
                            {
                                if( node.visible() )
View Full Code Here

                                    {
                                        Display.getCurrent().asyncExec( new TreeViewerUpdateJob( treeViewer, node ) );
                                    }
                                    else if( event instanceof NodeListEvent )
                                    {
                                        treeViewer.refresh( node );
                                    }
                                }
                            }
                        }
                    }
View Full Code Here

          }
        }
      }

      public void keyReleased(KeyEvent e) {
        typeTree.refresh(false);
      }
    });

    typeTree.setContentProvider(new ITreeContentProvider() {
View Full Code Here

    }
   
    TreeViewer viewer = (TreeViewer)editor.getAdapter(TreeViewer.class);
    if(viewer!=null){
      viewer.setSelection(new StructuredSelection(element));
      viewer.refresh();
    }
   
    editor.updateMenu();
  }
 
View Full Code Here

    // can't do much if nothing is selected
    DocItem parentItem = item.getParent();
    if (parentItem != null) {
      TreeViewer tree = getTreeViewer();
      tree.setExpandedState(parentItem, true);
      tree.refresh(parentItem, false);
      expandParentItems(parentItem);
    }
  }

  /**
 
View Full Code Here

    public void refresh( Object element )
    {
        final TreeViewer treeViewer = getTreeViewer();
        if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )
        {
            treeViewer.refresh( element );
        }
    }


    /**
 
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.