use of org.eclipse.nebula.widgets.nattable.layer.event.VisualRefreshEvent in project nebula.widgets.nattable by eclipse.
the class GlazedListsEventLayer method getEventNotifier.
/**
* Fires a NatTable refresh event, if any glazed list events have occurred.
*/
protected Runnable getEventNotifier() {
return new Runnable() {
@Override
public void run() {
if (GlazedListsEventLayer.this.eventsToProcess && GlazedListsEventLayer.this.active) {
ILayerEvent layerEvent;
if (GlazedListsEventLayer.this.structuralChangeEventsToProcess) {
layerEvent = new RowStructuralRefreshEvent(getUnderlyingLayer());
} else {
layerEvent = new VisualRefreshEvent(getUnderlyingLayer());
}
fireEventFromSWTDisplayThread(layerEvent);
GlazedListsEventLayer.this.eventsToProcess = false;
GlazedListsEventLayer.this.structuralChangeEventsToProcess = false;
}
}
};
}
use of org.eclipse.nebula.widgets.nattable.layer.event.VisualRefreshEvent in project nebula.widgets.nattable by eclipse.
the class EnableFormulaEvaluationCommandHandler method doCommand.
@Override
public boolean doCommand(ILayer targetLayer, EnableFormulaEvaluationCommand command) {
this.formulaDataProvider.setFormulaEvaluationEnabled(true);
targetLayer.fireLayerEvent(new VisualRefreshEvent(targetLayer));
return true;
}
Aggregations