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 - lack of API to find whether a given mode lies in editor area
Summary: lack of API to find whether a given mode lies in editor area
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-18 20:59 UTC by santhosh
Modified: 2008-12-22 13:49 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
ToDo.png (53.50 KB, image/png)
2006-08-18 21:00 UTC, santhosh
Details

Note You need to log in before you can comment on or make changes to this bug.
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)