Package org.openquark.cal.services

Examples of org.openquark.cal.services.CALSourceManager.saveSource()


           
            ModuleName moduleName = getModuleNameFromCurrentSourcePosition();
            CALSourceManager sourceManager = perspective.getWorkspace().getSourceManager(moduleName);

            Status saveStatus = new Status("Saving module text");
            sourceManager.saveSource(moduleName, editorPane.getText(), saveStatus);
            if(!saveStatus.isOK()) {
                String errTitle = GemCutter.getResourceString("CannotSaveDialogTitle");
                String errMessage = GemCutter.getResourceString("SaveModuleError");
                JOptionPane.showMessageDialog(this, errMessage, errTitle, JOptionPane.ERROR_MESSAGE);
                System.out.println(saveStatus.getDebugMessage());
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.