Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318177

Summary: Ctrl+X closes Eclipse without warning
Product: [Eclipse Project] Platform Reporter: aRne <arne.schramm>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ciprian.tomoiaga, gpiez, Lars.Vogel, peeters.simon, pwebster, remy.suen
Version: 4.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
workbench.xmi none

Description aRne CLA 2010-06-28 09:27:03 EDT
Build Identifier: I20100618-1748

If I try to cut parts of the code in order to paste it somewhere else, Ctrl+X closes Eclipse immediatelly without any warning or asking.

Reproducible: Always

Steps to Reproduce:
1. Press Ctrl + X in Eclipse
Comment 1 Remy Suen CLA 2010-07-23 08:47:11 EDT
This happens in my inner but never my outer.

1. Make a new cheat sheet.
2. Go to the 'Source' tab.
3. Ctrl+A
4. Ctrl+X
5. Eclipse quits.

Paul suspects it might be a demo contributing Ctrl+X as a keybinding to the quit handler but neither the contacts nor the photo demo is in my launch configuration.
Comment 2 Simon Peeters CLA 2012-06-04 08:25:25 EDT
I can confirm this on linux build I20120503-1800

it seems that this gets set as the default somehow, if i remove it from the keybinding list everything works fine, but if i reset the defaults, it appears again.
Comment 3 Gunther Piez CLA 2012-06-05 11:27:19 EDT
This happens for me in Juno RC3. The key binding is not visible and can not be changed.

I am using Linux x86_64.
Comment 4 Paul Webster CLA 2012-06-05 15:08:04 EDT
(In reply to comment #3)
> This happens for me in Juno RC3. The key binding is not visible and can not be
> changed.

What specific install of eclipse (filename)?  Can you attach your <workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi ?

PW
Comment 5 Gunther Piez CLA 2012-06-05 18:51:29 EDT
Created attachment 216891 [details]
workbench.xmi
Comment 6 Gunther Piez CLA 2012-06-05 18:56:26 EDT
The file is eclipse-SDK-I20120601-1900-linux-gtk-x86_64.tar.gz. I have
installed CDT, Android and Linuxtools.

Now that I see the interesting line

<bindings xmi:id="_4WNTIapkEeGMgZRbLF_PiQ" keySequence="CTRL+X"
command="_7sE5UapY
EeGi2N9UwWjGug"/>
...
<commands xmi:id="_7sE5UapYEeGi2N9UwWjGug" elementId="org.eclipse.ui.file.exit"
commandName="Exit" description="Exit the application"
category="_7sDEDKpYEeGi2N9UwWjGug"/>

I will try and see what happens if I delete this...

What happens if I delete the workspace.xmi completely? Will only my key
bindings be lost? In that case I would prefer this simple solution, who knows
what other dangers await me in this file...
Comment 7 Paul Webster CLA 2012-06-05 19:14:07 EDT
If you shut down and delete your workbench.xmi it will start up "fresh" in the java perspective with the default keybindings.  It won't effect your workspace, projects, or preferences.

The other place you can check for saved keybindings is in <workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs

I believe the pref in this file is org.eclipse.ui.commands

PW
Comment 8 Gunther Piez CLA 2012-06-06 04:17:54 EDT
I did delete workbench.xmi, and everything is fine again. But strange enough this key binding suddenly appeared out of nowhere (after the update to 4.2). I regularly use ctrl+x for cutting and I never would have changed to keybinding from it.
Comment 9 Ciprian Tomoiaga CLA 2014-02-16 09:24:04 EST
Deleting the file doesn't work for me, as it is recreated when I start Eclipse.

Using Eclipse Kepler.
Comment 10 Paul Webster CLA 2014-02-18 05:55:34 EST
Could you please attach your configuration from the Help>About>Installation Details>Configuration page?

PW
Comment 11 Lars Vogel CLA 2014-02-28 05:30:07 EST
I cannot reproduce this with standard Eclipse. Marking as worksforme, please reopen if you are able to reproduce with an a fresh Eclipse installation.