Package net.sourceforge.marathon.util

Examples of net.sourceforge.marathon.util.FileHandler.save()



    public File save() {
        try {
            FileHandler fileHandler = (FileHandler) editor.getData("filehandler");
            File file = fileHandler.save(editor.getText(), editor.getComponent(), "");
            if (file != null) {
                editor.clearUndo();
                editor.setData("filename", fileHandler.getCurrentFile().getName());
            }
            updateView();
View Full Code Here


    private File save(IEditor e) {
        File file = null;
        try {
            FileHandler fileHandler = getFileHandler(e);
            file = fileHandler.save(e.getText(), this, (String) e.getData("filename"));
            if (file != null) {
                e.setData("filename", fileHandler.getCurrentFile().getName());
                e.setDirty(false);
                if (isModuleFile()) {
                    scriptModel.fileUpdated(file, SCRIPT_FILE_TYPE.MODULE);
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.