1 11 package org.eclipse.pde.internal.ui.model.bundle; 12 13 import org.eclipse.osgi.util.*; 14 import org.eclipse.pde.internal.core.ibundle.IBundle; 15 import org.osgi.framework.*; 16 17 public class ExportPackageHeader extends BasePackageHeader { 18 19 private static final long serialVersionUID = 1L; 20 21 public ExportPackageHeader(String name, String value, IBundle bundle, 22 String lineDelimiter) { 23 super(name, value, bundle, lineDelimiter); 24 } 25 26 protected void processValue() { 27 try { 28 if (fValue != null) { 29 ManifestElement[] elements = ManifestElement.parseHeader(fName, fValue); 30 for (int i = 0; i < elements.length; i++) { 31 ExportPackageObject p = new ExportPackageObject(this, elements[i], getVersionAttribute()); 32 fPackages.put(p.getName(), p); 33 } 34 } 35 } catch (BundleException e) { 36 } 37 } 38 39 public ExportPackageObject[] getPackages() { 40 return (ExportPackageObject[])fPackages.values().toArray(new ExportPackageObject[fPackages.size()]); 41 } 42 43 } 44 | Popular Tags |