1 11 package org.eclipse.core.internal.content; 12 13 import org.eclipse.core.runtime.content.IContentDescription; 14 import org.eclipse.core.runtime.content.IContentType; 15 16 public abstract class BasicDescription implements IContentDescription { 17 18 protected IContentTypeInfo contentTypeInfo; 19 20 public BasicDescription(IContentTypeInfo contentTypeInfo) { 21 this.contentTypeInfo = contentTypeInfo; 22 } 23 24 27 public IContentType getContentType() { 28 ContentType contentType = contentTypeInfo.getContentType(); 29 return new ContentTypeHandler(contentType, contentType.getCatalog().getGeneration()); 31 } 32 33 public IContentTypeInfo getContentTypeInfo() { 34 return contentTypeInfo; 35 } 36 } 37 | Popular Tags |