Package org.netbeans.modules.nodejs

Examples of org.netbeans.modules.nodejs.Npm


        } );

    }//GEN-LAST:event_downloadSources

    private void npmBrowseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_npmBrowseActionPerformed
        Npm npm = Npm.getDefault();
        String pth = npm.askUser( false );
        if (pth != null) {
            npmField.setText( pth );
        }
    }//GEN-LAST:event_npmBrowseActionPerformed
View Full Code Here


                }
                Preferences p = preferences();
                authorField.setText( getAuthor() );
                emailField.setText( getEmail() );
                loginField.setText( p.get( "login", "YOUR_LOGIN" ) );
                Npm npm = Npm.getDefault();
                String npmPath = npm.exePath( false);
                if (npmPath != null) {
                    npmField.setText(npmPath);
                }
            }
        } );
View Full Code Here

        exe.setSourcesLocation( sourcesField.getText() );
        Preferences p = preferences();
        p.put( "author", authorField.getText() );
        p.put( "email", emailField.getText() );
        p.put( "login", loginField.getText() );
        Npm npm = Npm.getDefault();
        String s = npmField.getText().trim();
        if (!s.isEmpty()) {
            // will not actually change it unless modified and exists
            npm.setExePath( s );
        }
        try {
            p.flush();
        } catch ( BackingStoreException ex ) {
            Exceptions.printStackTrace( ex );
View Full Code Here

TOP

Related Classes of org.netbeans.modules.nodejs.Npm

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.