Skip to content

Commit

Permalink
Set correct default hot key scheme. Don't use deprectaed method (ecli…
Browse files Browse the repository at this point in the history
…pse-che#4402)

Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
  • Loading branch information
Vitalii Parfonov authored Mar 13, 2017
1 parent 4b42299 commit 446a5ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public KeyBindingManager(ActionManager actionManager, Provider<PerspectiveManage
addScheme(new SchemeImpl(SCHEME_ECLIPSE_ID, "Eclipse Scheme"));

//TODO check user settings
activeScheme = SCHEME_ECLIPSE_ID;
activeScheme = SCHEME_GLOBAL_ID;

presentationFactory = new PresentationFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.eclipse.che.ide.api.extension.Extension;
import org.eclipse.che.ide.api.keybinding.KeyBindingAgent;
import org.eclipse.che.ide.api.keybinding.KeyBuilder;
import org.eclipse.che.ide.keybinding.KeyBindingManager;
import org.eclipse.che.ide.util.browser.UserAgent;
import org.eclipse.che.ide.util.input.CharCodeWithModifiers;
import org.eclipse.che.ide.util.input.KeyCodeMap;
Expand All @@ -39,6 +40,7 @@
import static org.eclipse.che.ide.ext.java.client.JavaExtension.PARAMETERS_INFO;
import static org.eclipse.che.ide.ext.java.client.JavaExtension.QUICK_FIX;
import static org.eclipse.che.ide.ext.java.client.JavaExtension.SHOW_QUICK_DOC;
import static org.eclipse.che.ide.keybinding.KeyBindingManager.SCHEME_ECLIPSE_ID;
import static org.eclipse.che.plugin.debugger.ide.DebuggerExtension.DEBUG_ID;
import static org.eclipse.che.plugin.debugger.ide.DebuggerExtension.DISCONNECT_DEBUG_ID;
import static org.eclipse.che.plugin.debugger.ide.DebuggerExtension.EDIT_DEBUG_CONF_ID;
Expand Down Expand Up @@ -111,6 +113,6 @@ public EclipseKeyBinding(KeyBindingAgent agent) {
keys.put(GIT_COMPARE_WITH_LATEST, new KeyBuilder().action().alt().charCode('d').build());

// Register keys
agent.getEclipse().addKeys(keys);
agent.getScheme(SCHEME_ECLIPSE_ID).addKeys(keys);
}
}

0 comments on commit 446a5ec

Please sign in to comment.