protected void addDirtyProperty(final String property) { lock.ifNotModifying( new Runnable() { public void run() { dirtySet.add(property); getManagedForm().dirtyStateChanged(); } }); }
@Override public void refresh() { super.refresh(); lock.modifyOperation( new Runnable() { public void run() { String bundleNm = model.getBundleName(); bundleName.setText(bundleNm != null ? bundleNm : ""); // $NON-NLS-1$ String bundleDescr = model.getBundleDescription(); bundleDescription.setText(bundleDescr != null ? bundleDescr : ""); // $NON-NLS-1$ String bundleCat = model.getBundleCategory(); bundleCategory.setText(bundleCat != null ? bundleCat : ""); // $NON-NLS-1$ } }); dirtySet.clear(); getManagedForm().dirtyStateChanged(); }