Package org.netbeans.modules.nodejs.libraries

Examples of org.netbeans.modules.nodejs.libraries.LibrariesPanel


            }
        } else if (PROPERTIES_COMMAND.equals( string )) {
        } else if (CLOSE_COMMAND.equals( string )) {
            OpenProjects.getDefault().close( new Project[]{this} );
        } else if (LIBRARIES_COMMAND.equals( string )) {
            LibrariesPanel pn = new LibrariesPanel( this );
            DialogDescriptor dd = new DialogDescriptor( pn, NbBundle.getMessage( NodeJSProject.class, "SEARCH_FOR_LIBRARIES" ) ); //NOI18N
            DialogDisplayer.getDefault().notify( dd );
        } else if (COMMAND_DELETE.equals( string )) {
            DefaultProjectOperations.performDefaultDeleteOperation( this );
        } else if (COMMAND_MOVE.equals( string )) {
View Full Code Here


        this.root = root;
    }

    @Override
    public void actionPerformed ( ActionEvent e ) {
        LibrariesPanel pn = new LibrariesPanel( project );
        DialogDescriptor dd = new DialogDescriptor( pn, NbBundle.getMessage( NodeJSProject.class, "SEARCH_FOR_LIBRARIES" ) ); //NOI18N
        if (DialogDisplayer.getDefault().notify( dd ).equals( DialogDescriptor.OK_OPTION )) {
            final Set<String> libraries = new HashSet<>( pn.getLibraries() );
            if (libraries.size() > 0) {
                final String npmPath = Npm.getDefault().exe( );
                final AtomicInteger jobs = new AtomicInteger();
                final ProgressHandle h = ProgressHandleFactory.createHandle( NbBundle.getMessage( AddLibraryAction.class,
                        "MSG_RUNNING_NPM", libraries.size(), project.getDisplayName() ) ); //NOI18N
View Full Code Here

TOP

Related Classes of org.netbeans.modules.nodejs.libraries.LibrariesPanel

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.