uic.widgets.filechooser
Class SystemUtil.KDESystemUtil

java.lang.Object
  extended by uic.widgets.filechooser.SystemUtil
      extended by uic.widgets.filechooser.SystemUtil.KDESystemUtil
Enclosing class:
SystemUtil

protected static class SystemUtil.KDESystemUtil
extends SystemUtil


Nested Class Summary
protected static class SystemUtil.KDESystemUtil.LinuxDevicesFile
          Class for reading /etc/mtab for mount points.
 
Nested classes/interfaces inherited from class uic.widgets.filechooser.SystemUtil
SystemUtil.DefaultSystemUtil, SystemUtil.KDESystemUtil
 
Constructor Summary
protected SystemUtil.KDESystemUtil()
           
 
Method Summary
 File getFile(String filename)
          Checks for "devices:/" as a file name to return the LinuxDevicesFile
protected  Map getKDEDefaultShortCuts()
          Return the default kde shortcuts as shown in the file open/save dialog.
protected static Icon getKDEIcon(IconFactory iconFactory, String name, String name2, int size)
          Currently hack for check if the user is running kde.
 Vector getShortCuts(boolean largeIcons)
          Returns a vector of FCImageIcon for KDE.
 TranslationInterface translate()
           
 
Methods inherited from class uic.widgets.filechooser.SystemUtil
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemUtil.KDESystemUtil

protected SystemUtil.KDESystemUtil()
Method Detail

getShortCuts

public Vector getShortCuts(boolean largeIcons)
Returns a vector of FCImageIcon for KDE. Loads kde shortcuts from .kde/share/config/kdeglobals If no settings can be found return the defaultkde shortcuts.

Specified by:
getShortCuts in class SystemUtil
Returns:
collection of FCImageIcon

getFile

public File getFile(String filename)
Checks for "devices:/" as a file name to return the LinuxDevicesFile

Specified by:
getFile in class SystemUtil
Parameters:
filename - the name of the file to return
Returns:
a File based on fileName

getKDEDefaultShortCuts

protected Map getKDEDefaultShortCuts()
Return the default kde shortcuts as shown in the file open/save dialog.


getKDEIcon

protected static Icon getKDEIcon(IconFactory iconFactory,
                                 String name,
                                 String name2,
                                 int size)
Currently hack for check if the user is running kde. returns true if os.name is Linux and there is a .kde file in the users home dir

Returns:
true if we have found a kde settings directory.

translate

public TranslationInterface translate()


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence