Package org.eclipse.jface.viewers

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


    {
        final TreeViewer treeViewer = getTreeViewer();
        if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )
        {
            treeViewer.setFilters( entryEditor.getMainWidget().getViewer().getFilters() );
            treeViewer.refresh( element );
        }
    }


    /**
 
View Full Code Here


                    treeViewer.setInput( o );
                    treeViewer.expandToLevel( 2 );
                }
            }

            treeViewer.refresh();
        }
    }


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

                {
                    treeViewer.setInput( ldifEditor.getLdifModel() );
                }
            }

            treeViewer.refresh();

            if ( isLinkedToLdapBrowser )
            {
                treeViewer.setAutoExpandLevel( 2 );
            }
View Full Code Here

                        // this element has to be refreshed manually, because
                        // there is no one real
                        // resource associated with it => no resource change
                        // notification after
                        // creating a marker...
                        viewer.refresh(workItem.getCorespondingJavaElement(), true);
                    }
                }
            }
        });
    }
View Full Code Here

      update();
    } else {
      TreeViewer viewer= getTreeViewer();

      if (viewer != null) {
        viewer.refresh();
      }
    }
  }
}
View Full Code Here

    {
        final TreeViewer treeViewer = getTreeViewer();
        if ( treeViewer != null && treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )
        {
            treeViewer.setFilters( entryEditor.getMainWidget().getViewer().getFilters() );
            treeViewer.refresh( element );
        }
    }


    /**
 
View Full Code Here

                    treeViewer.setInput( o );
                    treeViewer.expandToLevel( 2 );
                }
            }

            treeViewer.refresh();
        }
    }


    /**
 
View Full Code Here

      }
    }
   
    TreeViewer viewer = getTreeViewer();
    if(viewer!=null){
      viewer.refresh();
    }
  }
 
  /** The root node of this outline page. */
  private class DTDRootNode {
View Full Code Here

      this.doc = createParser().parse(editor.getHTMLSource());
      //}

      TreeViewer viewer = getTreeViewer();
      if (viewer != null) {
        viewer.refresh();
      }
    }
    catch (Exception e) {
      e.printStackTrace();
    }
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.