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 83024

Summary: lack of API to find whether a given mode lies in editor area
Product: platform Reporter: santhosh <santhosh>
Component: Window SystemAssignee: David Simonek <dsimonek>
Status: RESOLVED FIXED    
Severity: blocker CC: saubrecht
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: ToDo.png

Description santhosh 2006-08-18 20:59:53 UTC
lack of API to find whether a given mode lies in editor area
Comment 1 santhosh 2006-08-18 21:00:48 UTC
Created attachment 33078 [details]
ToDo.png
Comment 2 santhosh 2006-08-18 21:04:01 UTC
see the attached screenshot, in which "TODO tab" fails to list the todo in the
current source file; the todo list might be looking only for selected
TopComponents in "editor" mode;

It should actually look for selected components in all modes which lies in
"editor" area; But the OpenIDE lacks any api to find whether a given mode lies
in editor area or not;

I am also developing a netbeans based application, and my QA team reported
similar bug for me;
Comment 3 David Simonek 2006-09-18 12:41:35 UTC
Yes, but this is RFE, so changing to enhancement type.

But the use case seems strange to me - todo window should show todos only for
selected editor top component, is that right? So just listen to
TopComponent.Registry and no API is needed IMHO. Or am I missing smt?
Comment 4 Lukas Hasik 2008-04-10 21:16:55 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 5 David Simonek 2008-10-23 11:47:29 UTC
Implemented (I believe by saubrecht) by methods
boolean WindowManager.isEditorMode(mode) 
boolean WindowManager.isEditorTopComponent(tc)