APISonar


org.netbeans.modules.bugtracking.BugtrackingManager.LOG.log

> org > netbeans > modules > bugtracking > BugtrackingManager > LOG > log
org APIs netbeans APIs modules APIs bugtracking APIs BugtrackingManager APIs LOG APIs log APIs

Example 1
private void scrollToCurrent() {
        try {
            Rectangle r1 = currentComp.modelToView(currentStart);
            Rectangle r2 = currentComp.modelToView(currentStart);
            Rectangle r = r1.union(r2);
            currentComp.scrollRectToVisible(r);
        } catch (BadLocationException blex) {
            BugtrackingManager.LOG.log(Level.INFO, blex.getMessage(), blex);
        }
    }
Example 2
private Object getTeamLock(TeamProject kp) {
        BugtrackingType type = kp.getType();
        synchronized(teamLocks) {
            final String key = kp.getWebLocation().getHost() + ":" + type;  // NOI18N
            BugtrackingManager.LOG.log(Level.FINER, "requesting lock for {0}", key); // NOI18N
            Object lock = teamLocks.get(key);
            if(lock == null) {
                lock = new Object();
                teamLocks.put(key, lock);
            }
            BugtrackingManager.LOG.log(Level.FINER, "returning lock {0} for {1}", new Object[]{lock, key}); // NOI18N
            return lock;
        }
    }
Example 3
private static boolean isSupported(TeamProject project) {
        BugtrackingConnector[] connectors = BugtrackingUtil.getBugtrackingConnectors();
        for (BugtrackingConnector c : connectors) {
            if (isType(c, project.getType())) {
                BugtrackingManager.LOG.log(Level.FINER, "found suport for {0}", project.getWebLocation().toString()); // NOI18N
                return true;
            }
        }
        return false;
    }