Examples of Npm


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

Examples of org.netbeans.modules.nodejs.Npm

                }
                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

Examples of org.netbeans.modules.nodejs.Npm

        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
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.