Examples of AtomicAction


Examples of org.openide.filesystems.FileSystem.AtomicAction

            final FileObject fo = project.getProjectDirectory().getFileObject( NodeJSProjectFactory.PACKAGE_JSON );
            if (!fo.isValid()) {
                Logger.getLogger( ProjectMetadataImpl.class.getName() ).log( Level.WARNING, "Project root dir became invalid" );
                return;
            }
            project.getProjectDirectory().getFileSystem().runAtomicAction( new AtomicAction() {
                @Override
                public void run () throws IOException {
                    FileObject save = fo;
                    if (save == null) {
                        save = project.getProjectDirectory().createData( NodeJSProjectFactory.PACKAGE_JSON );
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.