1 11 package org.eclipse.jdt.internal.core; 12 13 import org.eclipse.core.resources.IContainer; 14 import org.eclipse.core.resources.IResource; 15 import org.eclipse.jdt.core.JavaModelException; 16 17 20 class PackageFragmentInfo extends OpenableElementInfo { 21 22 25 protected Object [] nonJavaResources; 26 27 30 public PackageFragmentInfo() { 31 this.nonJavaResources = null; 32 } 33 35 boolean containsJavaResources() { 36 return this.children.length != 0; 37 } 38 41 Object [] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) { 42 if (this.nonJavaResources == null) { 43 try { 44 this.nonJavaResources = 45 PackageFragmentRootInfo.computeFolderNonJavaResources( 46 (JavaProject)rootHandle.getJavaProject(), 47 (IContainer)underlyingResource, 48 rootHandle.fullInclusionPatternChars(), 49 rootHandle.fullExclusionPatternChars()); 50 } catch (JavaModelException e) { 51 this.nonJavaResources = NO_NON_JAVA_RESOURCES; 53 } 54 } 55 return this.nonJavaResources; 56 } 57 60 void setNonJavaResources(Object [] resources) { 61 this.nonJavaResources = resources; 62 } 63 } 64 | Popular Tags |