use of org.eclipse.wst.common.componentcore.ArtifactEdit in project webtools.sourceediting by eclipse.
the class ComponentDeployable method addUtilMembers.
protected void addUtilMembers(IVirtualComponent vc) {
ArtifactEdit edit = null;
try {
edit = getComponentArtifactEditForRead();
IVirtualReference[] components = vc.getReferences();
for (int i = 0; i < components.length; i++) {
IVirtualReference reference = components[i];
IVirtualComponent virtualComp = reference.getReferencedComponent();
if (shouldIncludeUtilityComponent(virtualComp, components, edit)) {
addUtilMember(vc, reference, reference.getRuntimePath());
}
}
} finally {
if (edit != null)
edit.dispose();
}
}
Aggregations