forked from eclipse-che/che
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eclipse-che#3030 add editor context menu (eclipse-che#3066)
* eclipse-che#3030 add editor context menu
- Loading branch information
Showing
8 changed files
with
94 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/menu/TestMenuPath.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...-editor/src/main/java/org/eclipse/che/ide/editor/orion/client/menu/EditorContextMenu.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.ide.editor.orion.client.menu; | ||
|
||
import com.google.inject.Provider; | ||
|
||
import org.eclipse.che.ide.api.action.ActionManager; | ||
import org.eclipse.che.ide.api.action.IdeActions; | ||
import org.eclipse.che.ide.api.keybinding.KeyBindingAgent; | ||
import org.eclipse.che.ide.api.parts.PerspectiveManager; | ||
import org.eclipse.che.ide.menu.ContextMenu; | ||
|
||
import javax.inject.Inject; | ||
|
||
/** | ||
* Editor context menu, shows {@link IdeActions#GROUP_EDITOR_CONTEXT_MENU} action group. | ||
*/ | ||
public class EditorContextMenu extends ContextMenu { | ||
|
||
@Inject | ||
public EditorContextMenu(ActionManager actionManager, | ||
KeyBindingAgent keyBindingAgent, | ||
Provider<PerspectiveManager> managerProvider) { | ||
super(actionManager, keyBindingAgent, managerProvider); | ||
} | ||
|
||
|
||
@Override | ||
protected String getGroupMenu() { | ||
return IdeActions.GROUP_EDITOR_CONTEXT_MENU; | ||
} | ||
} |