Search in sources :

Example 1 with EditorPaneMenuItem

use of org.eclipse.che.ide.part.widgets.panemenu.EditorPaneMenuItem in project che by eclipse.

the class EditorPartStackPresenter method onTabClose.

/** {@inheritDoc} */
@Override
public void onTabClose(@NotNull TabItem tab) {
    final EditorPaneMenuItem editorPaneMenuItem = getPaneMenuItemByTab(tab);
    editorPaneMenu.removeItem(editorPaneMenuItem);
    items.remove(editorPaneMenuItem);
    EditorPartPresenter part = ((EditorTab) tab).getRelativeEditorPart();
    closedParts.add(part);
}
Also used : EditorTab(org.eclipse.che.ide.api.parts.EditorTab) EditorPaneMenuItem(org.eclipse.che.ide.part.widgets.panemenu.EditorPaneMenuItem) EditorPartPresenter(org.eclipse.che.ide.api.editor.EditorPartPresenter)

Aggregations

EditorPartPresenter (org.eclipse.che.ide.api.editor.EditorPartPresenter)1 EditorTab (org.eclipse.che.ide.api.parts.EditorTab)1 EditorPaneMenuItem (org.eclipse.che.ide.part.widgets.panemenu.EditorPaneMenuItem)1