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);
}
Aggregations