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