1 11 package org.eclipse.pde.internal.build.site; 12 13 import org.eclipse.update.core.*; 14 15 public class BuildTimeFeature extends Feature { 16 private boolean binary = false; 17 private int contextQualifierLength = -1; 18 19 public IIncludedFeatureReference[] getRawIncludedFeatureReferences() { 20 return getFeatureIncluded(); 21 } 22 23 public boolean isBinary() { 24 return binary; 25 } 26 27 public void setBinary(boolean isCompiled) { 28 this.binary = isCompiled; 29 } 30 31 private VersionedIdentifier versionId; 32 33 public VersionedIdentifier getVersionedIdentifier() { 34 if (versionId != null) 35 return versionId; 36 37 String id = getFeatureIdentifier(); 38 String ver = getFeatureVersion(); 39 if (id != null && ver != null) { 40 try { 41 versionId = new VersionedIdentifier(id, ver); 42 return versionId; 43 } catch (Exception e) { 44 } 46 } 47 48 versionId = new VersionedIdentifier(getURL().toExternalForm(), null); 49 return versionId; 50 } 51 52 public void setFeatureVersion(String featureVersion) { 53 super.setFeatureVersion(featureVersion); 54 versionId = null; 55 } 56 57 public void setContextQualifierLength(int l) { 58 contextQualifierLength = l; 59 } 60 61 public int getContextQualifierLength(){ 62 return contextQualifierLength; 63 } 64 } 65 | Popular Tags |