Package freenet.support.io.FileUtil

Examples of freenet.support.io.FileUtil.OperatingSystem


    HTMLNode swapWarning = div.addChild("p").addChild("i");
    NodeL10n.getBase().addL10nSubstitution(swapWarning, "SecurityLevels.physicalThreatLevelTruecrypt",
            new String[]{"bold", "truecrypt"},
            new HTMLNode[]{HTMLNode.STRONG,
                    HTMLNode.linkInNewWindow(ExternalLinkToadlet.escape("http://www.truecrypt.org/"))});
    OperatingSystem os = FileUtil.detectedOS;
    div.addChild("p", NodeL10n.getBase().getString("SecurityLevels.physicalThreatLevelSwapfile",
            "operatingSystem",
            NodeL10n.getBase().getString("OperatingSystemName."+os.name())));
    if(os == FileUtil.OperatingSystem.Windows) {
      swapWarning.addChild("#", " " + WizardL10n.l10nSec("physicalThreatLevelSwapfileWindows"));
    }
    for(SecurityLevels.PHYSICAL_THREAT_LEVEL level : SecurityLevels.PHYSICAL_THREAT_LEVEL.values()) {
      HTMLNode input;
View Full Code Here


    NodeL10n.getBase().addL10nSubstitution(seclevelGroup.addChild("p").addChild("i"), "SecurityLevels.physicalThreatLevelTruecrypt",
            new String[]{"bold", "truecrypt"},
            new HTMLNode[]{HTMLNode.STRONG,
                    HTMLNode.linkInNewWindow(ExternalLinkToadlet.escape("http://www.truecrypt.org/"))});
    HTMLNode swapWarning = seclevelGroup.addChild("p").addChild("i");
    OperatingSystem os = FileUtil.detectedOS;
    swapWarning.addChild("#", NodeL10n.getBase().getString("SecurityLevels.physicalThreatLevelSwapfile",
            "operatingSystem",
            NodeL10n.getBase().getString("OperatingSystemName."+os.name())));
    if(os == FileUtil.OperatingSystem.Windows) {
      swapWarning.addChild("#", " " + WizardL10n.l10nSec("physicalThreatLevelSwapfileWindows"));
    }

    PHYSICAL_THREAT_LEVEL physicalLevel = node.securityLevels.getPhysicalThreatLevel();
View Full Code Here

    else
      return null;
  }
 
  private static boolean matchesCurrentOS(String s) {
    OperatingSystem myOS = FileUtil.detectedOS;
    String[] osList = s.split(",");
    for(String os : osList) {
      os = os.trim();
      if(myOS.toString().equalsIgnoreCase(os)) {
        return true;
      }
      if(os.equalsIgnoreCase("ALL_WINDOWS") &&
          myOS.isWindows) {
        return true;
View Full Code Here

TOP

Related Classes of freenet.support.io.FileUtil.OperatingSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.