misc changes in the internal builder
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / ICompilationUnit.java
index 4d44420..5bcfd3f 100644 (file)
@@ -1,16 +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.runtime.IProgressMonitor;
+
 
 /**
  * Represents an entire Java compilation unit (<code>.java</code> source file).
@@ -24,8 +24,9 @@ import org.eclipse.core.runtime.IProgressMonitor;
  * <p>
  * This interface is not intended to be implemented by clients.
  * </p>
- */
-public interface ICompilationUnit extends IJavaElement, ISourceReference, IParent, IOpenable, IWorkingCopy, ISourceManipulation, ICodeAssist {
+ */ 
+public interface ICompilationUnit extends IJavaElement, ISourceReference, IParent, IOpenable, IWorkingCopy, ISourceManipulation {
+//extends IJavaElement, ISourceReference, IParent, IOpenable, IWorkingCopy, ISourceManipulation, ICodeAssist {
 /**
  * Creates and returns an import declaration in this compilation unit
  * with the given name.
@@ -78,7 +79,7 @@ public interface ICompilationUnit extends IJavaElement, ISourceReference, IParen
  * <li> The name is not a valid package name (INVALID_NAME)
  * </ul>
  */
- //IPackageDeclaration createPackageDeclaration(String name, IProgressMonitor monitor) throws JavaModelException;   
+// IPackageDeclaration createPackageDeclaration(String name, IProgressMonitor monitor) throws JavaModelException;   
 /**
  * Creates and returns a type in this compilation unit with the
  * given contents. If this compilation unit does not exist, one
@@ -111,7 +112,7 @@ public interface ICompilationUnit extends IJavaElement, ISourceReference, IParen
  * <li> There was a naming collision with an existing type (NAME_COLLISION)
  * </ul>
  */
-IType createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) throws JavaModelException;
+//IType createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor) throws JavaModelException;
 /**
  * Returns all types declared in this compilation unit in the order
  * in which they appear in the source. 
@@ -147,7 +148,7 @@ IJavaElement getElementAt(int position) throws JavaModelException;
  *     or <code>"java.awt.*"</code>)
  * @return a handle onto the corresponding import declaration. The import declaration may or may not exist.
  */
-// IImportDeclaration getImport(String name) ;
+//IImportDeclaration getImport(String name) ;
 /**
  * Returns the import container for this compilation unit.
  * This is a handle-only method. The import container may or
@@ -156,7 +157,7 @@ IJavaElement getElementAt(int position) throws JavaModelException;
  * @return a handle onto the corresponding import container. The 
  *             import contain may or may not exist.
  */
-// IImportContainer getImportContainer();
+//IImportContainer getImportContainer();
 /**
  * Returns the import declarations in this compilation unit
  * in the order in which they appear in the source. This is
@@ -166,7 +167,7 @@ IJavaElement getElementAt(int position) throws JavaModelException;
  * @exception JavaModelException if this element does not exist or if an
  *             exception occurs while accessing its corresponding resource
  */
-// IImportDeclaration[] getImports() throws JavaModelException;
+//IImportDeclaration[] getImports() throws JavaModelException;
 /**
  * Returns the first package declaration in this compilation unit with the given package name
  * (there normally is at most one package declaration).
@@ -174,7 +175,7 @@ IJavaElement getElementAt(int position) throws JavaModelException;
  *
  * @param name the name of the package declaration as defined by JLS2 7.4. (For example, <code>"java.lang"</code>)
  */
-// IPackageDeclaration getPackageDeclaration(String name);
+IPackageDeclaration getPackageDeclaration(String name);
 /**
  * Returns the package declarations in this compilation unit
  * in the order in which they appear in the source.
@@ -185,7 +186,7 @@ IJavaElement getElementAt(int position) throws JavaModelException;
  * @exception JavaModelException if this element does not exist or if an
  *             exception occurs while accessing its corresponding resource
  */
-// IPackageDeclaration[] getPackageDeclarations() throws JavaModelException;
+//IPackageDeclaration[] getPackageDeclarations() throws JavaModelException;
 /**
  * Returns the top-level type declared in this compilation unit with the given simple type name.
  * The type name has to be a valid compilation unit name.