import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.runtime.IPath;
+//import org.eclipse.core.runtime.IPath;
public class State {
// NOTE: this state cannot contain types that are not defined in this
removePackage(children[i]);
return;
case IResource.FILE:
- IPath typeLocatorPath = resource.getProjectRelativePath();
+ //IPath typeLocatorPath = resource.getProjectRelativePath();
// if
// (ProjectPrefUtil.isJavaFileName(typeLocatorPath.lastSegment()))
// removeLocator(typeLocatorPath.toString());
return newState;
}
- private static char[][] readNames(DataInputStream in) throws IOException {
- int length = in.readInt();
- char[][] names = new char[length][];
- for (int i = 0; i < length; i++) {
- int nLength = in.readInt();
- char[] name = new char[nLength];
- for (int j = 0; j < nLength; j++)
- name[j] = in.readChar();
- names[i] = name;
- }
- return names;
- }
+// private static char[][] readNames(DataInputStream in) throws IOException {
+// int length = in.readInt();
+// char[][] names = new char[length][];
+// for (int i = 0; i < length; i++) {
+// int nLength = in.readInt();
+// char[] name = new char[nLength];
+// for (int j = 0; j < nLength; j++)
+// name[j] = in.readChar();
+// names[i] = name;
+// }
+// return names;
+// }
void tagAsNoopBuild() {
this.buildNumber = -1; // tag the project since it has no source
// }
}
- private void writeNames(char[][] names, DataOutputStream out)
- throws IOException {
- int length = names == null ? 0 : names.length;
- out.writeInt(length);
- for (int i = 0; i < length; i++) {
- char[] name = names[i];
- int nLength = name.length;
- out.writeInt(nLength);
- for (int j = 0; j < nLength; j++)
- out.writeChar(name[j]);
- }
- }
+// private void writeNames(char[][] names, DataOutputStream out)
+// throws IOException {
+// int length = names == null ? 0 : names.length;
+// out.writeInt(length);
+// for (int i = 0; i < length; i++) {
+// char[] name = names[i];
+// int nLength = name.length;
+// out.writeInt(nLength);
+// for (int j = 0; j < nLength; j++)
+// out.writeChar(name[j]);
+// }
+// }
/**
* Returns a string representation of the receiver.