[204197] Make ModuleFile/Folder API
diff --git a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/ModuleFile.java b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/ModuleFile.java
index 9bce4f8..e0d575c 100644
--- a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/ModuleFile.java
+++ b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/ModuleFile.java
@@ -25,8 +25,15 @@
public ModuleFile(String name, IPath path, long stamp) {
super(name, path, stamp);
}
-
+
public ModuleFile(File file, String name, IPath path) {
super(file, name, path);
}
+
+ /**
+ * @deprecated use another constructor
+ */
+ public ModuleFile(IFile file, String name, IPath path, long stamp) {
+ super(file, name, path, stamp);
+ }
}
\ No newline at end of file
diff --git a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/util/ModuleFile.java b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/util/ModuleFile.java
index 4caa792..bdc43cb 100644
--- a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/util/ModuleFile.java
+++ b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/util/ModuleFile.java
@@ -74,6 +74,22 @@
this.stamp = stamp;
}
+ /**
+ * Creates a workspace module file with a specific modification stamp.
+ *
+ * @param file
+ * @param name
+ * @param path
+ * @param stamp
+ * @deprecated use one of the top two constructors instead
+ */
+ public ModuleFile(IFile file, String name, IPath path, long stamp) {
+ this.file = file;
+ this.name = name;
+ this.path = path;
+ this.stamp = stamp;
+ }
+
/* (non-Javadoc)
* @see org.eclipse.wst.server.core.model.IModuleFile#getModificationStamp()
*/