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 160876 - Possibility to disable creation of OW tab
Summary: Possibility to disable creation of OW tab
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 14:30 UTC by t_h
Modified: 2010-05-05 14:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t_h 2009-03-23 14:30:11 UTC
Please add a possibility (e.g. checkbox to versioning settings) to disable creation of tabs in OW. E.g. tabs are
automatically opened on browsing history even if there is nothing useful printed.
Comment 1 Ondrej Vrabec 2009-04-08 09:48:02 UTC
mercurial - cdev #5135da0f8b76
subversion - cdev #81497ab5c556

checkbox is added and if OW has not been opened yet, the logger tries to determine that and closes it again. It is a
kind of a 'magic hook' so if you have any ideas how to disable the auto-openning in any other way, I would welcome them. 

To make the code clearer and more transparent I think the API of IOProvider and IOOutput should be rewritten:
IOProvider could introduce (if it has not one already?) a choice to prevent auto-openning in getIO(String) - when it is
called for the first time.
IOOutput should be able to show/hide window on demand - and after its closure still be able to receive input (so logs
aren't lost when the OW is hidden).
Comment 2 t_h 2009-04-08 10:31:40 UTC
OW tab should not be created at all if opening is disabled. I do not understand why you want to open it and then close
it immediately. If you want to show/hide window you can keep content separately and create OW tab and write content
there on show and release it on hide.
Comment 3 Quality Engineering 2009-04-09 19:21:48 UTC
Integrated into 'main-golden', will be available in build *200904091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5135da0f8b76
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #160876 - Possibility to disable creation of OW tab
new checkbox in options dialog
OutputLogger tries to determine if the output window is open
Comment 4 Ondrej Vrabec 2010-05-05 14:38:09 UTC
fixed