Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2013-11-27 09:52:59 +0000
committerLars Vogel2013-11-27 09:56:33 +0000
commitf72179e9853f355a277bb14122e83e7d5335be59 (patch)
treed46f679ebbb80360ccea77d1dd07a115a07ada73
parent3ad3a49b98dac997fb012cf4d42d1e517b0226fa (diff)
downloadorg.eclipse.e4.tools-f72179e9853f355a277bb14122e83e7d5335be59.tar.gz
org.eclipse.e4.tools-f72179e9853f355a277bb14122e83e7d5335be59.tar.xz
org.eclipse.e4.tools-f72179e9853f355a277bb14122e83e7d5335be59.zip
Bug 422644 - Live model editor - Use M keys instead of SHIFT + ALT
Change-Id: I4d6f724d9dde76d475404038f584c132af375541 Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r--bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java
index f29852b5..6f969f65 100644
--- a/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java
+++ b/bundles/org.eclipse.e4.tools.emf.liveeditor/src/org/eclipse/e4/tools/emf/liveeditor/ModelProcessor.java
@@ -7,7 +7,7 @@
*
* Contributors:
* Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation
- * Lars Vogel <lars.vogel@gmail.com> - Bug 419723
+ * Lars Vogel <lars.vogel@gmail.com> - Bug 419723, 422644
* Markus A. Kuppe <bugs.eclipse.org@lemmster.de> - Bug 421259
******************************************************************************/
package org.eclipse.e4.tools.emf.liveeditor;
@@ -62,33 +62,36 @@ public class ModelProcessor {
if (application.getBindingTables().size() <= 0) {
MBindingContext bc = null;
- final List<MBindingContext> bindingContexts = application.getBindingContexts();
+ final List<MBindingContext> bindingContexts = application
+ .getBindingContexts();
if (bindingContexts.size() == 0) {
bc = modelService.createModelElement(MBindingContext.class);
bc.setElementId("org.eclipse.ui.contexts.window");
} else {
- // Prefer org.eclipse.ui.contexts.dialogAndWindow but randomly select another one
+ // Prefer org.eclipse.ui.contexts.dialogAndWindow but randomly
+ // select another one
// if org.eclipse.ui.contexts.dialogAndWindow cannot be found
for (MBindingContext aBindingContext : bindingContexts) {
bc = aBindingContext;
- if ("org.eclipse.ui.contexts.dialogAndWindow".equals(aBindingContext.getElementId())) {
+ if ("org.eclipse.ui.contexts.dialogAndWindow"
+ .equals(aBindingContext.getElementId())) {
break;
}
}
}
- MBindingTable bt = modelService.createModelElement(MBindingTable.class);
+ MBindingTable bt = modelService
+ .createModelElement(MBindingTable.class);
bt.setElementId("e4.tooling.livemodel.bindingTable");
bt.setBindingContext(bc);
application.getBindingTables().add(bt);
}
- List<MKeyBinding> keyBindings = modelService.findElements(
- application, "e4.tooling.livemodel.binding",
- MKeyBinding.class, null);
+ List<MKeyBinding> keyBindings = modelService.findElements(application,
+ "e4.tooling.livemodel.binding", MKeyBinding.class, null);
if (keyBindings.size() == 0) {
binding = modelService.createModelElement(MKeyBinding.class);
binding.setElementId("e4.tooling.livemodel.binding");
- binding.setKeySequence("ALT+SHIFT+F9");
+ binding.setKeySequence("M2+M3+F9");
if (application.getBindingTables().size() > 0) {
application.getBindingTables().get(0).getBindings()
.add(binding);

Back to the top