EGF Engine
Release 0.1.0

org.eclipse.egf.common.ui.helper
Class ViewerHelper

java.lang.Object
  extended by org.eclipse.egf.common.ui.helper.ViewerHelper

public class ViewerHelper
extends Object


Constructor Summary
ViewerHelper()
           
 
Method Summary
static void refresh(StructuredViewer viewer_p)
          Refresh in an efficient way the specified viewer completely with information freshly obtained from this viewer's model.
static void refresh(StructuredViewer viewer_p, boolean updateLabels_p)
          Refresh in an efficient way the specified viewer completely with information freshly obtained from this viewer's model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerHelper

public ViewerHelper()
Method Detail

refresh

public static void refresh(StructuredViewer viewer_p)
Refresh in an efficient way the specified viewer completely with information freshly obtained from this viewer's model.

Parameters:
viewer_p -

refresh

public static void refresh(StructuredViewer viewer_p,
                           boolean updateLabels_p)
Refresh in an efficient way the specified viewer completely with information freshly obtained from this viewer's model.
If updateLabels_p is true then labels for otherwise unaffected elements are updated as well.
Otherwise, it assumes labels for existing elements are unchanged, and labels are only obtained as needed (for example, for new elements).

Calling refresh(viewer, true) has the same effect as refresh(viewer).

Note that the implementation may still obtain labels for existing elements even if updateLabels is false. The intent is simply to allow optimization where possible.

Parameters:
updateLabels - true to update labels for existing elements, false to only update labels as needed, assuming that labels for existing elements are unchanged.
viewer_p -
updateLabels_p -

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.