Package org.netbeans.modules.nodejs.registry

Examples of org.netbeans.modules.nodejs.registry.FileChangeRegistry


    @Override
    protected void addNotify () {
        active = true;
        if (!registered) {
            registered = true;
            FileChangeRegistry fileChangeRegistry = project.getLookup().lookup( FileChangeRegistry.class );
            System.out.println( "Register on " + fileChangeRegistry );
            if (fileChangeRegistry != null) {
                fileChangeRegistry.registerInterest( "", observer );
            }
        }
        registered = true;
        super.addNotify();
    }
View Full Code Here


        private final FileObject fo;
        private Node node;

        public Entry ( FileObject fo, NodeJSProject project ) {
            this.fo = fo;
            FileChangeRegistry reg = project.getLookup().lookup( FileChangeRegistry.class );
            reg.registerInterest( fo, this );
        }
View Full Code Here

        public void install () {
            installTask.schedule( 100 );
        }

        void init () {
            FileChangeRegistry reg = getLookup().lookup( FileChangeRegistry.class );
            reg.registerInterest( NodeJSProjectFactory.NODE_MODULES_FOLDER, this );
            ProjectMetadata md = getLookup().lookup( ProjectMetadata.class );
            md.addPropertyChangeListener( WeakListeners.propertyChange( this, md ));
        }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.nodejs.registry.FileChangeRegistry

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.