Bug 63022 - [hovering] Javadoc hovers and view with browser widget: Copy and Select All context menus
Summary: [hovering] Javadoc hovers and view with browser widget: Copy and Select All c...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 74070 500847 (view as bug list)
Depends on: 75815
Blocks:
  Show dependency tree
 
Reported: 2004-05-19 13:04 EDT by Markus Keller CLA
Modified: 2016-10-24 09:46 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-05-19 13:04:56 EDT
Javadoc View with browser widget: Copy and Select All from context menu don't work.

Copy is always disabled, Select All is always enabled.
Comment 1 Markus Keller CLA 2004-05-19 13:05:23 EDT
20040519-0010.
Comment 2 Dani Megert CLA 2004-05-20 07:18:01 EDT
currently no support for this from the Browser widget
Comment 3 Christophe Cornu CLA 2004-05-20 10:51:53 EDT
Some naive questions to confirm/capture what would be required to support your 
use case.

The popup menu has the following items.
1. open input
2. copy
3. select all

1. open input
if you right click over the javadoc keyword Display, are you going to open the 
Display.java file? If so, in your StyledText implementation, do you use API 
like getOffsetAtLocation(Point) to identify the text "Display" from the mouse 
coordinates?

2. copy
In your styleText implementation, do you use getSelection() to decide to 
enable/disable this item and obtain the text to paste to the clipboard?

3. select all
In your styleText implementation, can you confirm you use selectAll() ?
Comment 4 Dani Megert CLA 2004-05-21 05:53:05 EDT
1. no - this simply opens the input of the Javadoc view. This input is already known

2. no - I currently use (StyledText)fControl).getSelectionText() but I am
flexible here

3. yes
Comment 5 Dani Megert CLA 2004-05-25 09:53:28 EDT
I reworked to code to not show these items when the Browser widget is used in
Javadoc view.
Comment 6 Dani Megert CLA 2004-09-17 04:15:53 EDT
*** Bug 74070 has been marked as a duplicate of this bug. ***
Comment 7 Benjamin Pasero CLA 2004-11-03 08:47:07 EST
I opened a feature request some time ago to allow  copy(), selectAll(), cut(),
paste() from the Browser widget.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=75815
Comment 8 Christophe Cornu CLA 2004-12-03 09:34:10 EST

*** This bug has been marked as a duplicate of 75815 ***
Comment 9 Markus Keller CLA 2008-05-14 10:16:25 EDT
Ctrl+C and Ctrl+A work (at least with the IE browser widget). Keeping this bug for adding menu items when bug 75815 is fixed.
Comment 10 Dani Megert CLA 2016-10-24 09:46:24 EDT
*** Bug 500847 has been marked as a duplicate of this bug. ***