Search in sources :

Example 21 with NSAlert

use of ch.cyberduck.binding.application.NSAlert in project cyberduck by iterate-ch.

the class GotoController method loadBundle.

@Override
public void loadBundle() {
    final NSAlert alert = NSAlert.alert();
    alert.setAlertStyle(NSAlert.NSInformationalAlertStyle);
    alert.setMessageText(LocaleFactory.localizedString("Go to folder", "Goto"));
    alert.setInformativeText(LocaleFactory.localizedString("Enter the pathname to list:", "Goto"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Go", "Goto"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel", "Goto"));
    alert.setIcon(IconCacheFactory.<NSImage>get().folderIcon(64));
    super.loadBundle(alert);
}
Also used : NSImage(ch.cyberduck.binding.application.NSImage) NSAlert(ch.cyberduck.binding.application.NSAlert)

Example 22 with NSAlert

use of ch.cyberduck.binding.application.NSAlert in project cyberduck by iterate-ch.

the class RecursiveAlertController method loadBundle.

@Override
public void loadBundle() {
    final NSAlert alert = NSAlert.alert();
    alert.setAlertStyle(NSAlert.NSWarningAlertStyle);
    alert.setMessageText(LocaleFactory.localizedString("Apply changes recursively"));
    alert.setInformativeText(MessageFormat.format(LocaleFactory.localizedString("Do you want to set {0} on {1} recursively for all contained files?"), value, directory.getName()));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Continue", "Credentials"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel"));
    alert.setShowsSuppressionButton(true);
    alert.suppressionButton().setTitle(LocaleFactory.localizedString("Always"));
    super.loadBundle(alert);
}
Also used : NSAlert(ch.cyberduck.binding.application.NSAlert)

Example 23 with NSAlert

use of ch.cyberduck.binding.application.NSAlert in project cyberduck by iterate-ch.

the class RedirectAlertController method loadBundle.

@Override
public void loadBundle() {
    final NSAlert alert = NSAlert.alert();
    alert.setMessageText(LocaleFactory.localizedString("Redirect"));
    alert.setInformativeText(LocaleFactory.localizedString(String.format("Allow redirect for method %s", method), "Alert"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Allow"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel", "Alert"));
    alert.setShowsSuppressionButton(true);
    alert.suppressionButton().setTitle(LocaleFactory.localizedString("Always"));
    super.loadBundle(alert);
}
Also used : NSAlert(ch.cyberduck.binding.application.NSAlert)

Example 24 with NSAlert

use of ch.cyberduck.binding.application.NSAlert in project cyberduck by iterate-ch.

the class RegionController method loadBundle.

@Override
public void loadBundle() {
    final NSAlert alert = NSAlert.alert();
    alert.setAlertStyle(NSAlert.NSInformationalAlertStyle);
    alert.setMessageText(LocaleFactory.localizedString("Choose Region", "Folder"));
    final String message = LocaleFactory.localizedString("Select the region for the new folder", "Folder");
    alert.setInformativeText(new StringAppender().append(message).toString());
    alert.addButtonWithTitle(LocaleFactory.localizedString("Choose"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel", "Folder"));
    super.loadBundle(alert);
}
Also used : StringAppender(ch.cyberduck.core.StringAppender) NSAlert(ch.cyberduck.binding.application.NSAlert)

Example 25 with NSAlert

use of ch.cyberduck.binding.application.NSAlert in project cyberduck by iterate-ch.

the class VaultController method loadBundle.

@Override
public void loadBundle() {
    final NSAlert alert = NSAlert.alert();
    alert.setAlertStyle(NSAlert.NSInformationalAlertStyle);
    alert.setMessageText(LocaleFactory.localizedString("Create Vault", "Cryptomator"));
    final String message = LocaleFactory.localizedString("Enter the name for the new folder", "Folder");
    alert.setInformativeText(new StringAppender().append(message).toString());
    alert.addButtonWithTitle(LocaleFactory.localizedString("Create Vault", "Cryptomator"));
    alert.addButtonWithTitle(LocaleFactory.localizedString("Cancel", "Folder"));
    alert.setIcon(IconCacheFactory.<NSImage>get().iconNamed("cryptomator.tiff", 64));
    super.loadBundle(alert);
}
Also used : NSImage(ch.cyberduck.binding.application.NSImage) StringAppender(ch.cyberduck.core.StringAppender) NSAlert(ch.cyberduck.binding.application.NSAlert)

Aggregations

NSAlert (ch.cyberduck.binding.application.NSAlert)28 StringAppender (ch.cyberduck.core.StringAppender)10 NSImage (ch.cyberduck.binding.application.NSImage)8 SheetCallback (ch.cyberduck.binding.application.SheetCallback)5 Path (ch.cyberduck.core.Path)4 AlertSheetReturnCodeMapper (ch.cyberduck.binding.application.AlertSheetReturnCodeMapper)3 NSAttributedString (ch.cyberduck.binding.foundation.NSAttributedString)3 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Action (ch.cyberduck.binding.Action)1 AlertController (ch.cyberduck.binding.AlertController)1 ProxyController (ch.cyberduck.binding.ProxyController)1 NSApplication (ch.cyberduck.binding.application.NSApplication)1 NSPopUpButton (ch.cyberduck.binding.application.NSPopUpButton)1 DisabledLicenseVerifierCallback (ch.cyberduck.core.aquaticprime.DisabledLicenseVerifierCallback)1 License (ch.cyberduck.core.aquaticprime.License)1 NotificationRendezvousListener (ch.cyberduck.core.bonjour.NotificationRendezvousListener)1 Rendezvous (ch.cyberduck.core.bonjour.Rendezvous)1 AccessDeniedException (ch.cyberduck.core.exception.AccessDeniedException)1 BackgroundException (ch.cyberduck.core.exception.BackgroundException)1