Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-03-13 16:25:42 +0000
committerMichael Valenta2007-03-13 16:25:42 +0000
commitf00cb1832f01e1003f5fa3795563088b181ed0bc (patch)
treeb2c9238721a5c6bcf8bc66b04f7ffe82e7db1b30 /examples
parent4fec88dff5cb872a27940fe8a12755ebef30aa20 (diff)
downloadeclipse.platform.team-f00cb1832f01e1003f5fa3795563088b181ed0bc.tar.gz
eclipse.platform.team-f00cb1832f01e1003f5fa3795563088b181ed0bc.tar.xz
eclipse.platform.team-f00cb1832f01e1003f5fa3795563088b181ed0bc.zip
Bug 176992 RepositoryProvider#getFileModificationValidator returns deprecated interface
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemProvider.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemProvider.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemProvider.java
index 1bc455d7c..3e47e5ab7 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemProvider.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemProvider.java
@@ -15,6 +15,7 @@ import java.io.File;
import org.eclipse.core.resources.IFileModificationValidator;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceRuleFactory;
+import org.eclipse.core.resources.team.FileModificationValidator;
import org.eclipse.core.resources.team.ResourceRuleFactory;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
@@ -170,13 +171,21 @@ public class FileSystemProvider extends RepositoryProvider {
public FileSystemOperations getOperations() {
return new FileSystemOperations(this);
}
- /**
+
+ /* (non-Javadoc)
* @see org.eclipse.team.core.RepositoryProvider#getFileModificationValidator()
*/
public IFileModificationValidator getFileModificationValidator() {
- return new FileModificationValidator(this);
+ return getNewFileModificationValidator();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.team.core.RepositoryProvider#getFileModificationValidator2()
+ */
+ public FileModificationValidator getNewFileModificationValidator() {
+ return new org.eclipse.team.examples.filesystem.FileModificationValidator(this);
+ }
+
/**
* Return the resource variant for the local resource using the bytes to
* identify the variant.

Back to the top