forked from maruohon/malilib
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert file browser widget system to Path
- Loading branch information
1 parent
69636b9
commit 6361178
Showing
9 changed files
with
153 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/main/java/fi/dy/masa/malilib/gui/interfaces/IDirectoryCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
package fi.dy.masa.malilib.gui.interfaces; | ||
|
||
import java.io.File; | ||
import java.nio.file.Path; | ||
import javax.annotation.Nullable; | ||
|
||
public interface IDirectoryCache | ||
{ | ||
// TODO -- Remove the file system; needs to deal with the FileFilter mechanism to make it compat with Path | ||
@Nullable | ||
File getCurrentDirectoryForContext(String context); | ||
Path getCurrentDirectoryForContext(String context); | ||
|
||
void setCurrentDirectoryForContext(String context, File dir); | ||
void setCurrentDirectoryForContext(String context, Path dir); | ||
} |
7 changes: 3 additions & 4 deletions
7
src/main/java/fi/dy/masa/malilib/gui/interfaces/IDirectoryNavigator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.