private static void RegisterImplementations() { LicenseImpl.Register(); Proxy.Register(); LocalImpl.Register(); LocaleImpl.Register(); UserPreferences.Register(); Keychain.Register(); PlistWriter.Register(); PlistSerializer.Register(); PlistDeserializer.Register(); HostPlistReader.Register(); TransferPlistReader.Register(); ProtocolPlistReader.Register(); TcpReachability.Register(); GrowlImpl.Register(); TreePathReference.Register(); LoginController.Register(); HostKeyController.Register(); UserDefaultsDateFormatter.Register(); if (Preferences.instance().getBoolean("rendezvous.enable")) { Rendezvous.Register(); } ProtocolFactory.register(); }
public override string kind() { // Native file type mapping String kind = LocalImpl.kind(getExtension()); if (string.IsNullOrEmpty(kind)) { return(base.kind()); } return(kind); }
public void AbsolutePaths() { LocalImpl l = new LocalImpl(@"G:\"); Assert.AreEqual(@"G:\", l.getAbsolute()); Assert.AreEqual(string.Empty, l.getName()); l = new LocalImpl(@"C:\path\relative"); Assert.AreEqual(@"relative", l.getName()); Assert.AreEqual(@"C:\path\relative", l.getAbsolute()); l = new LocalImpl(@"C:\path", "cyberduck.log"); Assert.AreEqual(@"cyberduck.log", l.getName()); Assert.AreEqual(@"C:\path\cyberduck.log", l.getAbsolute()); l = new LocalImpl(@"C:\path", "Sessions"); Assert.AreEqual(@"Sessions", l.getName()); Assert.AreEqual(@"C:\path\Sessions", l.getAbsolute()); }
public void Init() { UserPreferences.Register(); LocaleImpl.Register(); LocalImpl.Register(); }