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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations