Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / JavaModelInfo.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
12
13 import net.sourceforge.phpdt.core.IJavaModel;
14
15 //import org.eclipse.core.resources.IProject;
16 //import org.eclipse.core.resources.ResourcesPlugin;
17
18 /**
19  * Implementation of IJavaModel. A Java Model is specific to a workspace.
20  * 
21  * @see IJavaModel
22  */
23 public class JavaModelInfo extends OpenableElementInfo {
24
25         /**
26          * A array with all the non-java projects contained by this model
27          */
28         Object[] nonJavaResources;
29
30         /**
31          * Constructs a new Java Model Info
32          */
33         protected JavaModelInfo() {
34         }
35
36         /**
37          * Compute the non-java resources contained in this java project.
38          */
39 //      private Object[] computeNonJavaResources() {
40 //              IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()
41 //                              .getProjects();
42 //              int length = projects.length;
43 //              Object[] nonJavaResources = null;
44 //              int index = 0;
45 //              for (int i = 0; i < length; i++) {
46 //                      IProject project = projects[i];
47 //                      if (!JavaProject.hasJavaNature(project)) {
48 //                              if (nonJavaResources == null) {
49 //                                      nonJavaResources = new Object[length];
50 //                              }
51 //                              nonJavaResources[index++] = project;
52 //                      }
53 //              }
54 //              if (index == 0)
55 //                      return NO_NON_JAVA_RESOURCES;
56 //              if (index < length) {
57 //                      System.arraycopy(nonJavaResources, 0,
58 //                                      nonJavaResources = new Object[index], 0, index);
59 //              }
60 //              return nonJavaResources;
61 //      }
62
63         /**
64          * Returns an array of non-java resources contained in the receiver.
65          */
66 //      Object[] getNonJavaResources() {
67 //
68 //              Object[] nonJavaResources = this.nonJavaResources;
69 //              if (nonJavaResources == null) {
70 //                      nonJavaResources = computeNonJavaResources();
71 //                      this.nonJavaResources = nonJavaResources;
72 //              }
73 //              return nonJavaResources;
74 //      }
75 }