Examples of runAtomicAction()


Examples of org.openide.filesystems.FileSystem.runAtomicAction()

                }
            }
            if (extended) {
                try {
                    FileSystem fs = wm.getWebInf().getFileSystem();
                    fs.runAtomicAction(new CreateSIPConfig(wm));
                    retVal.add(wm.getWebInf().getFileObject("sip.xml"));        // NOI18N
                } catch (FileNotFoundException exc) {
                    Logger.getLogger(SIPProvider.class.getName()).log(Level.FINER,
                            null, exc);
                } catch (IOException exc) {
View Full Code Here

Examples of org.openide.filesystems.FileSystem.runAtomicAction()

                new EnableFrameworkAction(wm, extender.getComponent());
        FileObject webInf = wm.getWebInf();
        if (webInf != null) {
            try {
                FileSystem fs = webInf.getFileSystem();
                fs.runAtomicAction(enableFrameworkAction);
            } catch (IOException e) {
                ErrorManager.getDefault().notify(e);
                return null;
            }
        }
View Full Code Here

Examples of org.openide.filesystems.FileSystem.runAtomicAction()

            FileSystem fs = file.getFileSystem();
            String text = libraryParser.getTemplate(libraryPath + "/" + src);
            text = text.replaceAll(Pattern.quote("${real_name}"), realName);
            text = text.replaceAll(Pattern.quote("${safe_name}"), safeName);
            final String textOut = text;
            fs.runAtomicAction(new FileSystem.AtomicAction() {

                public void run() throws IOException {
                    FileLock lock = file.lock();
                    try {
                        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(file.getOutputStream(lock)));
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.