Package jsynoptic.base

Examples of jsynoptic.base.Plugin.processFile()


            if (f.exists()) {
                Plugin p = getPluginToProcessFile(f, Plugin.OPEN, null);
                if (p == null) {
                    return;
                }
                p.processFile(f, Plugin.OPEN); // we don't display whether or
                // not file has been
                // successfullly loaded
            }
            return;
        }
View Full Code Here


        if (p == null) {
            return false; // error displayed already
        }
        container.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        CurrentPathProvider.currentPathProvider.setCurrentPath(f);
        boolean loadIsOk = p.processFile(f, Plugin.OPEN);
        container.setCursor(Cursor.getDefaultCursor());
        if (loadIsOk) {
            setStatus(messageWriter.print1args("fileLoadSuccessful", f.getName()));
        } else {
            setStatus(messageWriter.print1args("fileLoadFailed", f.getName()));
View Full Code Here

        Plugin p = getPluginToProcessFile(f, Plugin.SAVE, currentSaveFileFilter);
        if (p == null) {
            return false;
        }
        CurrentPathProvider.currentPathProvider.setCurrentPath(f);
        return p.processFile(f, Plugin.SAVE);
    }

    protected boolean exportFile(File f) {
        if (f == null) {
            return false; // In fact, should not happen at this point
View Full Code Here

        Plugin p = getPluginToProcessFile(f, Plugin.EXPORT, currentExportFileFilter);
        if (p == null) {
            return false;
        }
        CurrentPathProvider.currentPathProvider.setCurrentPath(f);
        return p.processFile(f, Plugin.EXPORT);
    }

    /**
     * Sets the state of the cut, copy, remove... menu items and buttons
     */
 
View Full Code Here

                Plugin p = getPluginToProcessFile(f, Plugin.OPEN, null);
                if (p == null) {
                    System.err.println(messageWriter.print1args("fileLoadFailed", f.getAbsolutePath()));
                    return;
                }
                p.processFile(f, Plugin.OPEN);
            } else {
                System.err.println(messageWriter.print1args("fileLoadFailed", f.getAbsolutePath()));
            }
            return;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.