Search in sources :

Example 21 with Constraints

use of org.eclipse.che.ide.api.constraints.Constraints in project che by eclipse.

the class SplitVerticallyAction method actionPerformed.

/** {@inheritDoc} */
@Override
public void actionPerformed(ActionEvent event) {
    final String tabId = getEditorTab(event).getId();
    final VirtualFile file = getEditorFile(event);
    final Constraints constraints = new Constraints(VERTICALLY, tabId);
    editorAgent.openEditor(file, constraints);
}
Also used : VirtualFile(org.eclipse.che.ide.api.resources.VirtualFile) Constraints(org.eclipse.che.ide.api.constraints.Constraints)

Aggregations

Constraints (org.eclipse.che.ide.api.constraints.Constraints)21 Test (org.junit.Test)12 Inject (com.google.inject.Inject)3 DefaultActionGroup (org.eclipse.che.ide.api.action.DefaultActionGroup)3 ArrayList (java.util.ArrayList)2 LinkedHashMap (java.util.LinkedHashMap)2 KeyBuilder (org.eclipse.che.ide.api.keybinding.KeyBuilder)2 VirtualFile (org.eclipse.che.ide.api.resources.VirtualFile)2 Lists.newArrayList (com.google.common.collect.Lists.newArrayList)1 JsonObject (elemental.json.JsonObject)1 Map (java.util.Map)1 Promise (org.eclipse.che.api.promises.client.Promise)1 Anchor (org.eclipse.che.ide.api.constraints.Anchor)1 EditorPartStack (org.eclipse.che.ide.api.parts.EditorPartStack)1