X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.utils%2Fsrc%2Forg%2Fsimantics%2Futils%2FFileService.java;fp=bundles%2Forg.simantics.utils%2Fsrc%2Forg%2Fsimantics%2Futils%2FFileService.java;h=c500c66350b937e6d5d6d61ff6e9d7800ffc4115;hp=f272437e86a2f0a652c8ce0d4aae547e412626c6;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.utils/src/org/simantics/utils/FileService.java b/bundles/org.simantics.utils/src/org/simantics/utils/FileService.java index f272437e8..c500c6635 100644 --- a/bundles/org.simantics.utils/src/org/simantics/utils/FileService.java +++ b/bundles/org.simantics.utils/src/org/simantics/utils/FileService.java @@ -1,36 +1,36 @@ -package org.simantics.utils; - -import java.io.File; -import java.io.IOException; - -/** - * @author Tuukka Lehtonen - */ -public interface FileService { - - public static interface DeleteOption {} - - public static class EffortOption implements DeleteOption { - public final int maxTries; - - private EffortOption(int maxTries) { - this.maxTries = maxTries; - } - - public static EffortOption maxTries(int maxTries) { - return new EffortOption(maxTries); - } - } - - /** - * Schedules a file to be deleted at some point in the future when the - * system allows it to be deleted if ever. - * - * @param file - * @return an operation handle for tracking the progress of the deletion or - * null if there's a deletion operation scheduled for - * the provided file in the queue or the file does not exist. - */ - IOperation scheduleDeleteIfExists(File file, DeleteOption... options); - -} +package org.simantics.utils; + +import java.io.File; +import java.io.IOException; + +/** + * @author Tuukka Lehtonen + */ +public interface FileService { + + public static interface DeleteOption {} + + public static class EffortOption implements DeleteOption { + public final int maxTries; + + private EffortOption(int maxTries) { + this.maxTries = maxTries; + } + + public static EffortOption maxTries(int maxTries) { + return new EffortOption(maxTries); + } + } + + /** + * Schedules a file to be deleted at some point in the future when the + * system allows it to be deleted if ever. + * + * @param file + * @return an operation handle for tracking the progress of the deletion or + * null if there's a deletion operation scheduled for + * the provided file in the queue or the file does not exist. + */ + IOperation scheduleDeleteIfExists(File file, DeleteOption... options); + +}