1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
13 //import net.sourceforge.phpdt.core.JavaModelException;
15 //import org.eclipse.core.resources.IContainer;
16 //import org.eclipse.core.resources.IResource;
19 * Element info for PackageFragments.
21 class PackageFragmentInfo extends OpenableElementInfo {
24 * A array with all the non-java resources contained by this PackageFragment
26 protected Object[] fNonJavaResources;
29 * Create and initialize a new instance of the receiver
31 public PackageFragmentInfo() {
32 fNonJavaResources = null;
37 // boolean containsJavaResources() {
38 // return fChildren.length != 0;
42 * Returns an array of non-java resources contained in the receiver.
44 // Object[] getNonJavaResources(IResource underlyingResource,
45 // PackageFragmentRoot rootHandle) {
46 // Object[] nonJavaResources = fNonJavaResources;
47 // if (nonJavaResources == null) {
49 // nonJavaResources = PackageFragmentRootInfo
50 // .computeFolderNonJavaResources((JavaProject) rootHandle
52 // (IContainer) underlyingResource, rootHandle
53 // .fullExclusionPatternChars());
54 // } catch (JavaModelException e) {
56 // fNonJavaResources = nonJavaResources;
58 // return nonJavaResources;
62 * Set the fNonJavaResources to res value
64 synchronized void setNonJavaResources(Object[] resources) {
65 fNonJavaResources = resources;