X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaModel.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaModel.java
index a9858d4..f8cf1d8 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaModel.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/IJavaModel.java
@@ -1,15 +1,16 @@
/*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
+ * Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
+ * are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
+ * http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
- ******************************************************************************/
+ *******************************************************************************/
package net.sourceforge.phpdt.core;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -34,6 +35,22 @@ import org.eclipse.core.runtime.IProgressMonitor;
*/
public interface IJavaModel extends IJavaElement, IOpenable, IParent {
/**
+ * Returns whether this Java model contains an IJavaElement
whose
+ * resource is the given resource or a non-Java resource which is the given resource.
+ *
+ * Note: no existency check is performed on the argument resource. If it is not accessible
+ * (see IResource.isAccessible()
) yet but would be located in Java model
+ * range, then it will return true
.
+ *
+ * If the resource is accessible, it can be reached by navigating the Java model down using the
+ * getChildren()
and/or getNonJavaResources()
methods.
+ *
CoreException
occurred while updating an underlying resource
- * INVALID_DESTINATION
)
- * INVALID_SIBLING
)
- * INVALID_NAME
)
+ * CoreException
occurred while updating an underlying resourceINVALID_DESTINATION
)INVALID_SIBLING
)INVALID_NAME
)replace
has been specified as false
(NAME_COLLISION
)
- * READ_ONLY
)
+ * name and replace
has been specified as false
(NAME_COLLISION
)READ_ONLY
) CoreException
occurred while updating an underlying resource
- * READ_ONLY
)
+ * CoreException
occurred while updating an underlying resourceREAD_ONLY
) + * Non-Java projects include all projects that are closed (even if they have the + * Java nature). + *
+ * + * @return an array of non-Java projects contained in the workspace. + * @throws JavaModelException if this element does not exist or if an + * exception occurs while accessing its corresponding resource + * @since 2.1 + */ +//Object[] getNonJavaResources() throws JavaModelException; /** * Returns the workspace associated with this Java model. * @@ -151,14 +184,15 @@ IWorkspace getWorkspace(); * @param monitor a progress monitor * @exception JavaModelException if an element could not be moved. Reasons include: *CoreException
occurred while updating an underlying resource
- * INVALID_DESTINATION
)
- * INVALID_SIBLING
)
- * INVALID_NAME
)
+ * CoreException
occurred while updating an underlying resourceINVALID_DESTINATION
)INVALID_SIBLING
)INVALID_NAME
)replace
has been specified as false
(NAME_COLLISION
)
- * READ_ONLY
)
+ * name and replace
has been specified as false
(NAME_COLLISION
)READ_ONLY
) null
@@ -191,7 +225,7 @@ void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] sib
* @see IJavaElementDelta
* @since 2.0
*/
-void refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor) throws JavaModelException;
+//void refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor) throws JavaModelException;
/**
* Renames the given elements as specified.
@@ -209,6 +243,7 @@ void refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor moni
* @param monitor a progress monitor
* @exception JavaModelException if an element could not be renamed. Reasons include:
* CoreException
occurred while updating an underlying resource
* INVALID_NAME
)