Package com.lightcrafts.platform

Examples of com.lightcrafts.platform.Platform


            frame, message, info.toString(),
            AlertDialog.WARNING_ALERT,
            okButton, cancelButton
        );
        if (option == 0) {
            Platform platform = Platform.getPlatform();
            for (File file : files) {
                String path = file.getAbsolutePath();
                boolean deleted;
                try {
                    ImageInfo.closeAll();
                    deleted = platform.moveFilesToTrash(new String[] { path });
                }
                catch (IOException e) {
                    deleted = false;
                }
                if (! deleted) {
View Full Code Here


        item = new JMenuItem(LOCALE.get("ShowMenuItem"));
        item.addActionListener(
             new ActionListener() {
                 public void actionPerformed(ActionEvent event) {
                     if (key != null) {
                         Platform platform = Platform.getPlatform();
                         File file = key.getFile();
                         file = FileUtil.resolveAliasFile(file);
                         String path = file.getAbsolutePath();
                         platform.showFileInFolder(path);
                     }
                 }
             }
        );
        add(item);
View Full Code Here

                List<File> files = new ArrayList<File>();
                for (ImageDatum datum : datums) {
                    File file = datum.getFile();
                    files.add(file);
                }
                Platform platform = Platform.getPlatform();
                for (File file : files) {
                    file = FileUtil.resolveAliasFile(file);
                    String path = file.getAbsolutePath();
                    platform.showFileInFolder(path);
                }
            }
        };
    }
View Full Code Here

        Document doc = getDocument();
        File file = doc.getFile();
        if (file == null) {
            file = doc.getMetadata().getFile();
        }
        Platform platform = Platform.getPlatform();
        String path = file.getAbsolutePath();
        platform.showFileInFolder(path);
    }
View Full Code Here

            LOCALE.get("SendDialogChooserButton")
        );
        dirButton.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Platform platform = Platform.getPlatform();
                    FileChooser chooser = platform.getFileChooser();
                    File directory = chooser.chooseDirectory(
                        LOCALE.get("SendDialogChooserTitle"),
                        conf.directory, SendDialog.this, false
                    );
                    if (directory != null) {
View Full Code Here

import java.awt.event.ActionListener;

public class MacPageFormatTest {

    static void getPageFormat() {
        Platform platform = Platform.getPlatform();
        PrinterLayer printer = platform.getPrinterLayer();
        printer.getPageFormat();
    }
View Full Code Here

            LOCALE.get("BatchConfOutputChooserButton")
        );
        dirButton.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Platform platform = Platform.getPlatform();
                    FileChooser chooser = platform.getFileChooser();
                    File directory = chooser.chooseDirectory(
                        LOCALE.get("BatchConfOutputChooserDialogTitle"),
                        config.directory, dialog, false
                    );
                    if (directory != null) {
View Full Code Here

        setIcon(Icon);
        setToolTipText(ToolTip);
        addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    Platform platform = Platform.getPlatform();
                    platform.showHelpTopic(HelpConstants.HELP_PHOTOS_SENDING);
                }
            }
        );
    }
View Full Code Here

        setToolTipText(ToolTip);
        setMode(Mode.Combo);
        addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    Platform platform = Platform.getPlatform();
                    platform.showHelpTopic(topic);
                }
            }
        );
    }
View Full Code Here

        setToolTipText(ToolTip);
        addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    String topic = control.getHelpTopic();
                    Platform platform = Platform.getPlatform();
                    platform.showHelpTopic(topic);
                }
            }
        );
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.platform.Platform

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.