This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 19631
Collapse All | Expand All

(-)CompilerDisplayer.java (-5 / +12 lines)
Lines 229-249 Link Here
229
            compilerIO.select ();
229
            compilerIO.select ();
230
        }
230
        }
231
    }
231
    }
232
232
    
233
    /** Displayes information that compilation has finished,
233
    /** Displayes information that compilation has finished,
234
    * and whether succesfully or not. */
234
    * and whether succesfully or not. */
235
    public void compilationFinished (final CompilerTaskImpl task, boolean uptodate) {
235
    public void compilationFinished (final CompilerTaskImpl task, boolean uptodate) {
236
        boolean always_print = true;
237
        boolean dontOpenOWAfterSuccess = true; // there get real value from compiler options !
238
        if ( dontOpenOWAfterSuccess && task.isSuccessful() && compilerIO.isClosed() )
239
            always_print = false;
240
236
        try {
241
        try {
237
            initialize ();
242
            initialize ();
238
            MessageFormat msg = task.isSuccessful() ? compSuccess : compUnsuccess;
243
            MessageFormat msg = task.isSuccessful() ? compSuccess : compUnsuccess;
239
            dispatcherWait();
244
            dispatcherWait();
240
            String fimsg = msg.format (taskToArgs (task));
245
            String fimsg = msg.format (taskToArgs (task));
241
            setStatusText(fimsg);
246
            setStatusText(fimsg);
242
            ensureSelect();
247
            if (always_print) {
243
            if (uptodate) {
248
                ensureSelect();
244
                println(NbBundle.getBundle(CompilerDisplayer.class).getString("MSG_UpToDate"));
249
                if (uptodate) {
250
                    println(NbBundle.getBundle(CompilerDisplayer.class).getString("MSG_UpToDate"));
251
                }
252
                println(fimsg);
245
            }
253
            }
246
            println(fimsg);
247
        } catch (InterruptedException e) {
254
        } catch (InterruptedException e) {
248
            org.openide.ErrorManager.getDefault().notify(org.openide.ErrorManager.INFORMATIONAL, e);
255
            org.openide.ErrorManager.getDefault().notify(org.openide.ErrorManager.INFORMATIONAL, e);
249
        } finally {
256
        } finally {

Return to bug 19631