APISonar


org.netbeans.modules.git.Git.LOG.log

> org > netbeans > modules > git > Git > LOG > log
org APIs netbeans APIs modules APIs git APIs Git APIs LOG APIs log APIs

Example 1
public static void notifyException (Exception ex, boolean annotate) {
        if(isCancelledAction(ex)) {
            return;
        }
        Git.LOG.log(Level.INFO, ex.getMessage(), ex);
        if( annotate ) {
            String msg = getMessage(ex);
            annotate(msg);
        }
    }
Example 2
private GitURI getURI (boolean trimSpaces) {
        String uriString = getURIString(trimSpaces);        
        if(uriString != null && !uriString.isEmpty()) {
            try {
                return new GitURI(uriString);
            } catch (URISyntaxException ex) {
                Git.LOG.log(Level.INFO, uriString, ex);
            }
        }
        return null;
    }
Example 3
public static synchronized GitRepositoryTopComponent findInstance () {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        if (win == null) {
            Git.LOG.log(Level.FINE, "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system."); // NOI18N
            return getDefault();
        }
        if (win instanceof GitRepositoryTopComponent) {
            return (GitRepositoryTopComponent) win;
        }
        Git.LOG.log(Level.FINE,
                "There seem to be multiple components with the '" + PREFERRED_ID + // NOI18N
                "' ID. That is a potential source of errors and unexpected behavior."); // NOI18N
        return getDefault();
    }
Example 4
private boolean handleException (GitException.AuthorizationException ex) {
        boolean confirmed = false;
        String repositoryUrl = ex.getRepositoryUrl();
        if (repositoryUrl == null || repositoryUrl.trim().isEmpty()) {
            Git.LOG.log(Level.INFO, "empty repository URL", ex); //NOI18N
        }
        if (RemoteRepository.updateFor(repositoryUrl)) {
            client.setCallback(new CredentialsCallback());
            confirmed = true;
        }
        return confirmed;
    }