@Override public void initialize(IManagedForm form) { super.initialize(form); model = (BndEditModel) form.getInput(); model.addPropertyChangeListener(propertyName, this); }
@Override public void refresh() { List<VersionedClause> bundles = loadFromModel(model); if (bundles != null) { this.bundles = new ArrayList<VersionedClause>(bundles); } else { this.bundles = new ArrayList<VersionedClause>(); } viewer.setInput(this.bundles); super.refresh(); }
@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(); }
@Override public void dispose() { super.dispose(); if (model != null) model.removePropertyChangeListener(propertyName, this); }
@Override public void commit(boolean onSave) { super.commit(onSave); saveToModel(model, bundles); }
public void dispose() { Job.getJobManager().removeJobChangeListener(jobListener); stop(); super.dispose(); }
@Override public void dispose() { super.dispose(); if (this.model != null) this.model.removePropertyChangeListener(this); }