Package org.openquark.cal.services

Examples of org.openquark.cal.services.CALSourceManager


       
        /** Save changes to the file */
        private void saveText() {
           
            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


         * @return true if the module that contains the current source position is writeable,
         * or false otherwise.
         */
        private boolean isModuleWriteable() {
            ModuleName moduleName = getModuleNameFromCurrentSourcePosition();
            CALSourceManager sourceManager = perspective.getWorkspace().getSourceManager(moduleName);
            return sourceManager.isWriteable(moduleName);
        }
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.CALSourceManager

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.