Package com.iizigo.editor
Class FlagProperty
java.lang.Object
com.iizigo.editor.FlagProperty
Flags a property for update in a structured viewer. The updates are flagged to be processed asynchronously if called using the 
flag methods, the refresh method can be used sparingly and supports switching to the SWT thread, as it requires more processing.- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static void- flag- (StructuredViewer viewer, DesignerProp dp) Flags the property for update in the viewer asynchronously.- static void- flag- (StructuredViewer viewer, GProp<?> property) Flags the property for update in the viewer asynchronously.- static void- flag- (StructuredViewer viewer, Set<Object> list) Flags the properties for update in the viewer asynchronously.- static void- refresh- (StructuredViewer viewer, Object element) Refreshes a value if possible.- static voidRefreshes all viewers.
- Constructor Details- FlagPropertypublic FlagProperty()
 
- Method Details- flagFlags the property for update in the viewer asynchronously.- Parameters:
- viewer- The viewer.
- dp- The property.
 
- flagFlags the properties for update in the viewer asynchronously.- Parameters:
- viewer- The viewer.
- list- The list of properties.
 
- flagFlags the property for update in the viewer asynchronously.- Parameters:
- viewer- The viewer.
- property- The property.
 
- refreshRefreshes a value if possible. It is recommended to use the "flag" method as it always triggers an async update of the viewer element from any thread and groups multiple updates together.
- refreshAllViewerspublic static void refreshAllViewers()Refreshes all viewers.