import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
-
/**
* Element info for PackageFragments.
*/
*/
protected Object[] fNonJavaResources;
-/**
- * Create and initialize a new instance of the receiver
- */
-public PackageFragmentInfo() {
- fNonJavaResources = null;
-}
-/**
- */
-boolean containsJavaResources() {
- return fChildren.length != 0;
-}
-/**
- * Returns an array of non-java resources contained in the receiver.
- */
-Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) {
- Object[] nonJavaResources = fNonJavaResources;
- if (nonJavaResources == null) {
- try {
- nonJavaResources =
- PackageFragmentRootInfo.computeFolderNonJavaResources(
- (JavaProject)rootHandle.getJavaProject(),
- (IContainer)underlyingResource,
- rootHandle.fullExclusionPatternChars());
- } catch (JavaModelException e) {
+ /**
+ * Create and initialize a new instance of the receiver
+ */
+ public PackageFragmentInfo() {
+ fNonJavaResources = null;
+ }
+
+ /**
+ */
+ boolean containsJavaResources() {
+ return fChildren.length != 0;
+ }
+
+ /**
+ * Returns an array of non-java resources contained in the receiver.
+ */
+ Object[] getNonJavaResources(IResource underlyingResource,
+ PackageFragmentRoot rootHandle) {
+ Object[] nonJavaResources = fNonJavaResources;
+ if (nonJavaResources == null) {
+ try {
+ nonJavaResources = PackageFragmentRootInfo
+ .computeFolderNonJavaResources((JavaProject) rootHandle
+ .getJavaProject(),
+ (IContainer) underlyingResource, rootHandle
+ .fullExclusionPatternChars());
+ } catch (JavaModelException e) {
+ }
+ fNonJavaResources = nonJavaResources;
}
- fNonJavaResources = nonJavaResources;
+ return nonJavaResources;
+ }
+
+ /**
+ * Set the fNonJavaResources to res value
+ */
+ synchronized void setNonJavaResources(Object[] resources) {
+ fNonJavaResources = resources;
}
- return nonJavaResources;
-}
-/**
- * Set the fNonJavaResources to res value
- */
-synchronized void setNonJavaResources(Object[] resources) {
- fNonJavaResources = resources;
-}
}