import net.sourceforge.phpdt.core.ICompilationUnit;
import net.sourceforge.phpdt.core.IJavaElement;
-import net.sourceforge.phpdt.core.IJavaElementDelta;
+//import net.sourceforge.phpdt.core.IJavaElementDelta;
import net.sourceforge.phpdt.core.IJavaModel;
import net.sourceforge.phpdt.core.IJavaProject;
import net.sourceforge.phpdt.core.IPackageFragment;
* members of compilation units or class files and it does not provide
* working copy elements.
*/
- public StandardJavaElementContentProvider() {
- }
+// public StandardJavaElementContentProvider() {
+// }
/**
* Creates a new <code>StandardJavaElementContentProvider</code>.
* @return <code>true</code> if the content provider provides members;
* otherwise <code>false</code> is returned
*/
- public boolean getProvideMembers() {
- return fProvideMembers;
- }
+// public boolean getProvideMembers() {
+// return fProvideMembers;
+// }
/**
* Sets whether the content provider is supposed to return members when
* <code>false</code> compilation units and class files are the
* leaves provided by this content provider.
*/
- public void setProvideMembers(boolean b) {
- fProvideMembers = b;
- }
+// public void setProvideMembers(boolean b) {
+// fProvideMembers = b;
+// }
/**
* Returns whether the provided members are from a working copy or the
*
* @see #setProvideWorkingCopy(boolean)
*/
- public boolean getProvideWorkingCopy() {
- return fProvideWorkingCopy;
- }
+// public boolean getProvideWorkingCopy() {
+// return fProvideWorkingCopy;
+// }
/**
* Sets whether the members are provided from a shared working copy that
* copy if one exists in JDT core. If <code>false</code> the
* provider always returns original elements.
*/
- public void setProvideWorkingCopy(boolean b) {
- fProvideWorkingCopy = b;
- }
+// public void setProvideWorkingCopy(boolean b) {
+// fProvideWorkingCopy = b;
+// }
/*
* (non-Javadoc)
* Note: This method is for internal use only. Clients should not call this
* method.
*/
- protected boolean isClassPathChange(IJavaElementDelta delta) {
-
- // need to test the flags only for package fragment roots
- if (delta.getElement().getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
- return false;
-
- int flags = delta.getFlags();
- return (delta.getKind() == IJavaElementDelta.CHANGED
- && ((flags & IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0)
- || ((flags & IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) || ((flags & IJavaElementDelta.F_REORDER) != 0));
- }
+// protected boolean isClassPathChange(IJavaElementDelta delta) {
+//
+// // need to test the flags only for package fragment roots
+// if (delta.getElement().getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
+// return false;
+//
+// int flags = delta.getFlags();
+// return (delta.getKind() == IJavaElementDelta.CHANGED
+// && ((flags & IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0)
+// || ((flags & IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) || ((flags & IJavaElementDelta.F_REORDER) != 0));
+// }
/**
* Note: This method is for internal use only. Clients should not call this
* Note: This method is for internal use only. Clients should not call this
* method.
*/
- protected boolean isPackageFragmentEmpty(IJavaElement element)
- throws JavaModelException {
- if (element instanceof IPackageFragment) {
- IPackageFragment fragment = (IPackageFragment) element;
- if (!(fragment.hasChildren()))
- // ||
- // fragment.getNonJavaResources().length > 0) &&
- // fragment.hasSubpackages())
- return true;
- }
- return false;
- }
+// protected boolean isPackageFragmentEmpty(IJavaElement element)
+// throws JavaModelException {
+// if (element instanceof IPackageFragment) {
+// IPackageFragment fragment = (IPackageFragment) element;
+// if (!(fragment.hasChildren()))
+// // ||
+// // fragment.getNonJavaResources().length > 0) &&
+// // fragment.hasSubpackages())
+// return true;
+// }
+// return false;
+// }
/**
* Note: This method is for internal use only. Clients should not call this
* Note: This method is for internal use only. Clients should not call this
* method.
*/
- protected static Object[] concatenate(Object[] a1, Object[] a2) {
- int a1Len = a1.length;
- int a2Len = a2.length;
- Object[] res = new Object[a1Len + a2Len];
- System.arraycopy(a1, 0, res, 0, a1Len);
- System.arraycopy(a2, 0, res, a1Len, a2Len);
- return res;
- }
+// protected static Object[] concatenate(Object[] a1, Object[] a2) {
+// int a1Len = a1.length;
+// int a2Len = a2.length;
+// Object[] res = new Object[a1Len + a2Len];
+// System.arraycopy(a1, 0, res, 0, a1Len);
+// System.arraycopy(a2, 0, res, a1Len, a2Len);
+// return res;
+// }
}