Community
Participate
Working Groups
Javadoc View with browser widget: Copy and Select All from context menu don't work. Copy is always disabled, Select All is always enabled.
20040519-0010.
currently no support for this from the Browser widget
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() ?
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
I reworked to code to not show these items when the Browser widget is used in Javadoc view.
*** Bug 74070 has been marked as a duplicate of this bug. ***
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
*** This bug has been marked as a duplicate of 75815 ***
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.
*** Bug 500847 has been marked as a duplicate of this bug. ***