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); }
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); }
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); }