コード例 #1
0
  @Override
  public void initialize(IManagedForm form) {
    super.initialize(form);

    model = (BndEditModel) form.getInput();
    model.addPropertyChangeListener(propertyName, this);
  }
コード例 #2
0
 @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();
 }
コード例 #3
0
 @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();
 }
コード例 #4
0
 @Override
 public void dispose() {
   super.dispose();
   if (model != null) model.removePropertyChangeListener(propertyName, this);
 }
コード例 #5
0
 @Override
 public void commit(boolean onSave) {
   super.commit(onSave);
   saveToModel(model, bundles);
 }
コード例 #6
0
 public void dispose() {
   Job.getJobManager().removeJobChangeListener(jobListener);
   stop();
   super.dispose();
 }
コード例 #7
0
 @Override
 public void dispose() {
   super.dispose();
   if (this.model != null) this.model.removePropertyChangeListener(this);
 }