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 2422

Summary: Open File's -wait option should be more robust
Product: utilities Reporter: Jesse Glick <jglick>
Component: Open FileAssignee: Jaroslav Havlin <jhavlin>
Status: STARTED ---    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 2424    

Description Jesse Glick 1999-07-10 19:04:04 UTC
- ought to use EditorCookie.getOpenedPanes to check where the file is open, if an EditorCookie is available and not just OpenCookie. That way, closing the window would suffice to notify the waiter,
not just editing & saving. But is any event fired when the pane set changes?? [no--#3618] Also, should notify when IDE exits if any panes are still opened.

- should return immed. with error if file could not be loaded (e.g. null returned from find()).

- host rejections should also return immed. with error.

[later] generally, a more generic TCP-based system (see Wishlist, Tell IDE To...) would be useful for many such features.
Comment 1 Jan Chalupa 2001-03-12 12:20:27 UTC
Version: 'Dev' -> 3.2
Comment 2 Peter Zavadsky 2001-03-21 16:11:06 UTC
Fixed in [release32] and [main-trunk] the monitoring on opened TopComponent of
data object having editor cookie. When closing calls back with 0 flag.
Works not 100% due to bug [#10545].

Due to teh rest left new and reassigned to utilities.

[Jesse]Please could you send me the WishList, I couldn't find it.
Comment 3 Jesse Glick 2001-04-03 11:42:14 UTC
Re. wishlist--out of date and not maintained. The item in question has anyway
been basically implemented by scripting's telnet server.
Comment 4 Peter Zavadsky 2001-04-23 15:47:57 UTC
Changed to enahcement. It should be implemented for next realease.
Comment 5 Jan Chalupa 2001-05-06 15:21:30 UTC
Target milestone -> 3.3
Comment 6 Jan Chalupa 2001-11-27 17:26:34 UTC
Target milestone -> 3.3.1.
Comment 7 Marek Grummich 2002-07-22 11:55:20 UTC
Set target milestone to TBD
Comment 8 Marek Grummich 2002-07-22 11:57:18 UTC
Set target milestone to TBD
Comment 9 Jesse Glick 2003-09-11 19:07:57 UTC
-wait removed for now (as part of issue #31396) since it needs to wait
for editor pane closure, which is not yet implemented. CLI-side code
is ready, but not the part dealing with EditorCookie etc.
Comment 10 Marian Petras 2005-05-03 14:43:03 UTC
The -wait option is not currently supported, so this enhancement is not
currently applicable. If the -wait option returns, please re-evaluate this
enhancement again.