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 24967 - Class Editor should have method pushPopupMenu(current_line)
Summary: Class Editor should have method pushPopupMenu(current_line)
Status: CLOSED WONTFIX
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-19 17:29 UTC by sva
Modified: 2002-08-08 13:58 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 sva 2002-06-19 17:29:56 UTC
Right now Editor contains many methods to call popup menu, 
but it doesn't have method, that allow to open popup menu 
on current line.
Comment 1 Jiri Skrivanek 2002-06-20 08:43:48 UTC
Why do you need such functionality?
You can call popup menu for a particular piece of text in the Editor,
if you select that text before. For example:

editor.select(lineNumber);
editor.pushPopupMenu(menuPath);
Comment 2 sva 2002-06-20 15:40:34 UTC
I know that I can do it by way you suggest.
But such way, popupMenu is called on center of window, and 
it may confuse user, for example, when call "Show code in 
Servlet" contextual-menu item.
Comment 3 Jiri Skrivanek 2002-08-08 13:58:24 UTC
I have no idea how to calculate position of popup menu from line
number. Besides that EditorOperator was rewritten in version 2.0 of
jellytools library and pushPopupMenu methods was removed from all
operators. Now the only recommended way how to call popup it is to
create Action.
So I am closing this issue as wontfix.