Community
Participate
Working Groups
3.2 M5. As described in bug 119259, something that costs a lot of time is constructing a fully qualified name (e.g. of a type) to paste into e.g. bugzilla. We might offer an action 'Copy qualified name to clipboard' but are hesitating as this doesn't seem to fit in the existing actions. An alternative is to allow 'copy' on the Eclipse status bar: Either make it selectable or just offer a context menu on it that has 'Copy'.
Changing to an enhancement request and, tentatively, assigning to the workbench.
patches are welcome, I think making it copyable might also be an accessiblity improvement, TC?
Selectable would also solve the focus problems it has
We are not currently planning to address this but please feel free to supply a patch
This is not related to accessibility, removing that keyword. As for the bug itself, how do you display a qualified name in the status line? Is there a preference somewhere? There is a "Copy Qualified Name" command available by default in the Edit menu for source files. It is not bound to any hot-keys by default but that obviously can be changed.
The qualified name is just an example (which is less interesting nowadays with the special command for that). The qualified name is e.g. shown when an element is selected in the Outline or the Package Explorer. But the status line can show a lot of different messages that can also be interesting to copy, e.g. a warning or error at the caret location in a Java editor, or a path to a file in the Synchronize view, etc. > Either make it selectable or just offer a context menu on it that has 'Copy'. I would prefer the context menu, since the message can be truncated if it exceeds the available space (and I guess you're not eager to write and maintain special code that flips to the full message when the user starts to select text).
I should investigate if this can be done early in M6. PW
Created attachment 188191 [details] Copy context menu v01 This works on the main status label, so that changes from the Package Explorer or Outline View can be copied. I wasn't going to track down the editor statuses like "Write | Smart Insert | 102:3" ... they respond to events determined by their contributor, and I'm not sure I want to interfere. Please let me know if you'd like me to look into this as well. PW
(In reply to comment #8) Nice. I would not try to put this into other status line items. Things that should be fixed before releasing: - "&Copy" needs to be NLS'd (using JFaceResources.getString(..)) - create a new SelectionAdapter() {..} (not a SelectionListener and an empty method) - pass 'LegacyActionTools.removeMnemonics(text)' to the clipboard (not just 'text'). Example to test (set caret into compile error): public class C { <T extends Number & Runnable> void foo(T t) {} void bar() { foo(""); } }
Created attachment 188243 [details] copy context menu v01 Incorporate feedback and released. PW
Released to HEAD PW
In I20110307-2110 PW