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.

Bug 37996 - Newly created output window tabs for Ant execution do not get fronted
Summary: Newly created output window tabs for Ant execution do not get fronted
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: REGRESSION, THREAD, UI
Depends on:
Blocks:
 
Reported: 2003-12-10 18:48 UTC by Jesse Glick
Modified: 2008-12-23 08:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-12-10 18:48:02 UTC
Start a dev build with a fresh user dir. Create
two Ant script, named (using @name in <project>)
e.g. "a" and "b". Run "a" (e.g. click Execute on
it). The tab "a" is created with the output from
"a". Now run "b". The tab "b" is created with the
output from "b", but it is not fronted; "a" is
still the selected output tab. Run "b" again and
it gets fronted.

Generally, when creating a new tab, it is not
automatically put in front of existing tabs. But
if the tab already existed, then it is fronted.

In the Ant module there is:

io = IOProvider.getDefault().getIO(name, false);
io.getOut().reset();
io.select();
// ...
io.setFocusTaken(true);
io.setErrVisible(false);
io.setErrSeparated(false);
new PrintStream(...(io.getErr())).println(...);

which I believe is correct.

It used to work in 3.5 - tabs were fronted.
Comment 1 _ tboudreau 2003-12-10 21:52:51 UTC
Reassigning to Marek - Marek, you did the changes to OW for winsys,
it's probably more of a winsys thing.  Assign it back if you disagree.

Comment 2 Peter Zavadsky 2003-12-11 09:56:43 UTC
It is a thing of OutputTabInner and OutputView impl, not winsys.
Comment 3 mslama 2003-12-11 10:00:36 UTC
I will fix it.
Comment 4 mslama 2004-01-15 13:10:56 UTC
Fixed in main trunk. Mutex.EVENT.readAccess is used instead of plain
SwingUtilities.invokeLater to keep code execution order. (In this case
tab was opened AFTER call of select() so proper tab was not selected.)

Modified:
core/output/src/org/netbeans/core/output/OutputTabInner.java r.1.9
Comment 5 Jesse Glick 2004-01-15 14:45:32 UTC
Thanks; I will check it soon (use this every day).
Comment 6 Marian Mirilovic 2005-07-13 13:23:07 UTC
closed
Comment 7 Quality Engineering 2008-12-23 08:10:07 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.