APISonar


org.netbeans.modules.bugzilla.Bugzilla.LOG.log

> org > netbeans > modules > bugzilla > Bugzilla > LOG > log
org APIs netbeans APIs modules APIs bugzilla APIs Bugzilla APIs LOG APIs log APIs

Example 1
public boolean handleIOException(IOException io) {
        Bugzilla.LOG.log(Level.SEVERE, null, io);
        return true;
    }
Example 2
private void saveQuery() {
        String name = query.getDisplayName();
        Bugzilla.LOG.log(Level.FINE, "saving query ''{0}''", new Object[]{name}); // NOI18N
        repository.saveQuery(query);
        resetParameters();
        Bugzilla.LOG.log(Level.FINE, "query ''{0}'' saved", new Object[]{name});  // NOI18N                 
    }
Example 3
private <T extends QueryParameter> T createQueryParameter(Class<T> clazz, Component c, String parameter) {
        try {
            Constructor<T> constructor = clazz.getConstructor(c.getClass(), String.class, String.class);
            T t = constructor.newInstance(c, parameter, getRepository().getTaskRepository().getCharacterEncoding());
            parameters.put(parameter, t);
            return t;
        } catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
            Bugzilla.LOG.log(Level.SEVERE, parameter, ex);
        }
        return null;
    }
Example 4
public void execute() throws CoreException {
        log();
        try {
            BugzillaClient client = Bugzilla.getInstance().getRepositoryConnector().getClientManager().getClient(taskRepository, new NullProgressMonitor());
            client.validate(new NullProgressMonitor());
        } catch (IOException ex) {
            Bugzilla.LOG.log(Level.SEVERE, null, ex); // XXX handle errors
        }
    }
Example 5
void makeCaretVisible(JTextArea textArea) {
        int pos = textArea.getCaretPosition();
        try {
            Rectangle rec = textArea.getUI().modelToView(textArea, pos);
            if (rec != null) {
                Point p = SwingUtilities.convertPoint(textArea, rec.x, rec.y, this);
                scrollRectToVisible(new Rectangle(p.x, p.y, rec.width, rec.height));
            }
        } catch (BadLocationException blex) {
            Bugzilla.LOG.log(Level.INFO, blex.getMessage(), blex);
        }
    }
Example 6
public void execute() throws CoreException, IOException, MalformedURLException {
        boolean refresh = forceRefresh;
        String b = System.getProperty("org.netbeans.modules.bugzilla.persistentRepositoryConfiguration", "false"); // NOI18N
        if("true".equals(b)) {                                                  // NOI18N
            refresh = true;
        }
        Bugzilla.LOG.log(Level.FINE, " Refresh bugzilla configuration [{0}, forceRefresh={1}]", new Object[]{repository.getUrl(), refresh}); // NOI18N
        conf = Bugzilla.getInstance().getRepositoryConfiguration(repository, refresh);
    }
Example 7
private void showInBrowserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showInBrowserButtonActionPerformed
        try {
            URL url = new URL(issue.getRepository().getUrl() + BugzillaConstants.URL_SHOW_BUG + issue.getID());
            HtmlBrowser.URLDisplayer.getDefault().showURL(url);
        } catch (MalformedURLException muex) {
            Bugzilla.LOG.log(Level.INFO, "Unable to show the issue in the browser.", muex); // NOI18N
        }
    }//GEN-LAST:event_showInBrowserButtonActionPerformed