File tree Expand file tree Collapse file tree 3 files changed +6
-23
lines changed
main/java/org/enso/os/environment
test/java/org/enso/os/environment
scala/project-manager/src/main/scala/org/enso/projectmanager/boot/configuration Expand file tree Collapse file tree 3 files changed +6
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package org .enso .os .environment ;
2
2
3
3
import org .enso .common .Platform ;
4
+ import org .enso .os .environment .directories .Directories ;
5
+ import org .enso .os .environment .trash .TrashBin ;
4
6
import org .junit .Assert ;
5
7
import org .junit .Test ;
6
8
@@ -13,11 +15,11 @@ public void getOperatingSystem() {
13
15
14
16
@ Test
15
17
public void getDirectories () {
16
- Assert .assertNotNull (DesktopEnvironment . getDirectories ());
18
+ Assert .assertNotNull (Directories . getCurrent ());
17
19
}
18
20
19
21
@ Test
20
22
public void getTrashBin () {
21
- Assert .assertNotNull (DesktopEnvironment . getTrashBin ());
23
+ Assert .assertNotNull (TrashBin . getCurrent ());
22
24
}
23
25
}
Original file line number Diff line number Diff line change 1
1
package org .enso .projectmanager .boot .configuration
2
2
3
- import org .enso .os .environment .DesktopEnvironment
3
+ import org .enso .os .environment .directories . Directories
4
4
5
5
import java .io .{File , IOException }
6
6
@@ -21,7 +21,7 @@ case class StorageConfig(
21
21
def userProjectsPath : File = {
22
22
val projectsRootDirectory =
23
23
projectsRoot.getOrElse(
24
- DesktopEnvironment .getDirectories .getDocuments.toFile
24
+ Directories .getCurrent .getDocuments.toFile
25
25
)
26
26
new File (projectsRootDirectory, projectsDirectory)
27
27
}
You can’t perform that action at this time.
0 commit comments