Bug 166150 - [terminal] Terminal does not enable global edit menu actions for Cut, Copy, Paste, SelectAll
Summary: [terminal] Terminal does not enable global edit menu actions for Cut, Copy, P...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: helpwanted
: 209857 (view as bug list)
Depends on: 189774 296212
Blocks:
  Show dependency tree
 
Reported: 2006-11-28 23:31 EST by Michael Scharf CLA
Modified: 2020-09-04 15:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Martin Oberhuber CLA 2008-02-25 17:48:26 EST
The point here is that when the Terminal View is active, "Cut" / "Copy" / "Paste" actions are available in the local context menu, but the global menu bar 
   Edit > Cut,Copy,Paste
actions are all disabled.

The correct link into the corresponding FAQ is here:
http://wiki.eclipse.org/FAQ_How_do_I_hook_into_global_actions%2C_such_as_Copy_and_Delete%3F
Comment 2 Martin Oberhuber CLA 2008-02-25 17:55:02 EST
Terminal 2.0.2 had corresponding code in TerminalView.java, but it was removed in Terminal 2.0.3 due to bug 189774. The change was made for
   TerminalView.java  v1.22
   TerminalView.java  v1.13.2.3
respectively.

I'm unsure why the global action handlers for the retargetable actions were removed. Probably, the reason was that in the actual Terminal View a Ctrl+V keyboard command needs to be sent to the remote, and if the global action handler is active it would otherwise swallow that command.

Re-evaluate for 3.0
Comment 3 Martin Oberhuber CLA 2008-02-25 17:55:39 EST
PS to re-evaluate just compare CURRENT against v1.21 and search for setGlobalActionHandler
Comment 4 Martin Oberhuber CLA 2008-02-25 18:00:54 EST
Note: in fact, with TM 2.0.2, the global action handler is enabled, but choosing "Paste" from it always pastes into the Terminal Widget, even if the optional input line is active. Same for Ctrl+V. Supposedly that's why it was disabled.
Comment 5 Martin Oberhuber CLA 2008-03-03 12:35:56 EST
*** Bug 209857 has been marked as a duplicate of this bug. ***
Comment 6 Martin Oberhuber CLA 2008-03-03 12:38:38 EST
Summary changed, old value was:
[terminal] Use global actions for cut/copy/paste etc

This might be less trivial than expected. See also bug 189774:

Perhaps it's to this extension point in plugin.xml of org.eclipse.tm.terminal:
<extension point="org.eclipse.ui.contexts">

Marking "minor" but should be fixed for 3.0 since it's a regression compared to 2.0.2
Comment 7 Jonah Graham CLA 2020-05-01 10:10:13 EDT
The Terminal component of the Eclipse Ecosystem has a new home. The Terminal is now part of the Eclipse CDT project[1].

This change means a new Git repo[2], P2 site[3] and Bugzilla component. The terminal will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well.

The marketplace entry[4] had not been updated in a few years. It will once again install the latest release of the terminal on the latest release of the whole IDE (currently 2020-03).

If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment.

[1] https://wiki.eclipse.org/CDT/User/NewIn911
[2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the terminal directory)
[3] current release is 9.11 - P2 site https://download.eclipse.org/tools/cdt/releases/9.11/
[4] https://marketplace.eclipse.org/content/tm-terminal

(This comment was added to all open terminal bugs along with changing the Product/component pair to CDT/terminal.)