VAqua.src.org.violetlib.aqua.fc.OSXFileSystemView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaqua Show documentation
Show all versions of vaqua Show documentation
An improved native Swing look and feel for macOS
The newest version!
/*
* @(#)OSXFileSystemView.java
*
* Copyright (c) 2009-2013 Werner Randelshofer, Switzerland.
* You may not use, copy or modify this file, except in compliance with the
* accompanying license terms.
*/
package org.violetlib.aqua.fc;
import java.io.File;
import java.util.Arrays;
/**
* A file system view for the OS X file system. This view was created for 10.7 but has been updated for later releases.
*
* @author Werner Randelshofer
* @version $Id$
*/
public class OSXFileSystemView extends BasicOSXFileSystemView {
public OSXFileSystemView() {
String[] names = {
"AppleShare PDS",
"automount",
"bin",
"Cleanup At Startup",
"cores",
"Desktop DB",
"Desktop DF",
"dev",
"etc",
"home",
"mach",
"mach_kernel",
"mach_kernel.ctfsys",
"mach.sym",
"net",
"Network",
"opt",
"private",
"sbin",
"Temporary Items",
"TheVolumeSettingsFolder",
"TheFindByContentFolder",
"tmp",
"Trash",
"usr",
"var",
"Volumes",
"\u0003\u0002\u0001Move&Rename",
};
hiddenTopLevelNames.addAll(Arrays.asList(names));
names = new String[] {
"$RECYCLE.BIN",
"Thumbs.db",
"desktop.ini",
};
hiddenDirectoryNames.addAll(Arrays.asList(names));
File[] files={
new File(System.getProperty("user.home"), "Library")
};
hiddenFiles.addAll(Arrays.asList(files));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy