Example #1
0
 public void removeIncludedFeatures(IFeatureChild[] features) throws CoreException {
   ensureModelEditable();
   for (int i = 0; i < features.length; i++) {
     fChildren.remove(features[i]);
     ((FeatureChild) features[i]).setInTheModel(false);
   }
   fireStructureChanged(features, IModelChangedEvent.REMOVE);
 }
Example #2
0
 public void removeImports(IFeatureImport[] iimports) throws CoreException {
   ensureModelEditable();
   for (int i = 0; i < iimports.length; i++) {
     fImports.remove(iimports[i]);
     ((FeatureImport) iimports[i]).setInTheModel(false);
   }
   fireStructureChanged(iimports, IModelChangedEvent.REMOVE);
 }
Example #3
0
 public void removeData(IFeatureData[] removed) throws CoreException {
   ensureModelEditable();
   for (int i = 0; i < removed.length; i++) {
     fData.remove(removed[i]);
     ((FeatureData) removed[i]).setInTheModel(false);
   }
   fireStructureChanged(removed, IModelChangedEvent.REMOVE);
 }