bundles/org.eclipse.orion.client.ui/web/gcli/gcli/types/resource.js
function ResourceType(typeSpec) {
  this.include = typeSpec.include;
  if (this.include !== Resource.TYPE_SCRIPT &&
      this.include !== Resource.TYPE_CSS &&
      this.include != null) {
    throw new Error('invalid include property: ' + this.include);
  }
}
function ResourceType(typeSpec) {
  this.include = typeSpec.include;
  if (this.include !== Resource.TYPE_SCRIPT &&
      this.include !== Resource.TYPE_CSS &&
      this.include != null) {
    throw new Error('invalid include property: ' + this.include);
  }
}
function ResourceType ( typeSpec ) { this . include = typeSpec . include ; if ( this . include !== Resource . TYPE_SCRIPT && this . include !== Resource . TYPE_CSS && this . include != null ) { throw new Error ( 'invalid include property: ' + this . include ) ; } }
Use the Resource implementations to create a type based on SelectionType
Use the Resource implementations to create a type based on SelectionType