/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @author Michael Martak
* @since 1.4
*/
/**
* Create a file system shell folder from a file
*/
super(parent, f.getAbsolutePath());
}
/**
* This method is implemented to make sure that no instances
* of <code>ShellFolder</code> are ever serialized. An instance of
* this default implementation can always be represented with a
* <code>java.io.File</code> object instead.
*
* @returns a <code>java.io.File</code> replacement object.
*/
}
/**
* @return An array of shell folders that are children of this shell folder
* object, null if this shell folder is empty.
*/
}
}
return files;
}
/**
* @return Whether this shell folder is a link
*/
public boolean isLink() {
return false; // Not supported by default
}
/**
* @return Whether this shell folder is marked as hidden
*/
public boolean isHidden() {
}
return false;
}
/**
* @return The shell folder linked to by this shell folder, or null
* if this shell folder is not a link
*/
return null; // Not supported by default
}
/**
* @return The name used to display this shell folder
*/
return getName();
}
/**
* @return The type of shell folder as a string
*/
if (isDirectory()) {
return "File Folder"; // TODO : LOCALIZE THIS STRING!!!
} else {
return "File"; // TODO : LOCALIZE THIS STRING!!!
}
}
/**
* @return The executable type as a string
*/
return null; // Not supported by default
}
}