public void widgetSelected(SelectionEvent e) {
rowObjectsGlazedList.getReadWriteLock().writeLock().lock();
try {
rowObjectsGlazedList.clear();
rowObjectsGlazedList.add(new PricingDataBean());
glazedListsGridLayer.bodyDataProvider.setColumnCount(8);
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
rowObjectsGlazedList.add(new PricingDataBean());
} finally {
rowObjectsGlazedList.getReadWriteLock().writeLock()
.unlock();
}
}