Search in sources :

Example 1 with SubPanel

use of org.eclipse.che.ide.ui.multisplitpanel.SubPanel in project che by eclipse.

the class SubPanelPresenter method splitVertically.

@Override
public void splitVertically() {
    final SubPanel subPanel = subPanelFactory.newPanel(this);
    subPanel.setFocusListener(focusListener);
    subPanel.setDoubleClickListener(doubleClickListener);
    view.splitVertically(subPanel.getView());
}
Also used : SubPanel(org.eclipse.che.ide.ui.multisplitpanel.SubPanel)

Example 2 with SubPanel

use of org.eclipse.che.ide.ui.multisplitpanel.SubPanel in project che by eclipse.

the class ProcessesPanelViewImpl method showProcessOutput.

@Override
public void showProcessOutput(String processId) {
    if (!processWidgets.containsKey(processId)) {
        processId = "";
    }
    onResize();
    final WidgetToShow widgetToShow = processWidgets.get(processId);
    final SubPanel subPanel = widget2Panels.get(widgetToShow);
    if (subPanel != null) {
        subPanel.activateWidget(widgetToShow);
    }
    activeProcessId = processId;
    final ProcessTreeNode treeNode = processTreeNodes.get(processId);
    if (treeNode != null && !MACHINE_NODE.equals(treeNode.getType())) {
        treeNode.setHasUnreadContent(false);
        treeNode.getTreeNodeElement().getClassList().remove(machineResources.getCss().badgeVisible());
    }
}
Also used : WidgetToShow(org.eclipse.che.ide.ui.multisplitpanel.WidgetToShow) ProcessTreeNode(org.eclipse.che.ide.extension.machine.client.processes.ProcessTreeNode) SubPanel(org.eclipse.che.ide.ui.multisplitpanel.SubPanel)

Example 3 with SubPanel

use of org.eclipse.che.ide.ui.multisplitpanel.SubPanel in project che by eclipse.

the class ProcessesPanelViewImpl method clear.

@Override
public void clear() {
    for (WidgetToShow widgetToShow : processWidgets.values()) {
        SubPanel subPanel = widget2Panels.get(widgetToShow);
        subPanel.removeWidget(widgetToShow);
    }
    processWidgets.clear();
}
Also used : WidgetToShow(org.eclipse.che.ide.ui.multisplitpanel.WidgetToShow) SubPanel(org.eclipse.che.ide.ui.multisplitpanel.SubPanel)

Example 4 with SubPanel

use of org.eclipse.che.ide.ui.multisplitpanel.SubPanel in project che by eclipse.

the class SubPanelPresenter method splitHorizontally.

@Override
public void splitHorizontally() {
    final SubPanel subPanel = subPanelFactory.newPanel(this);
    subPanel.setFocusListener(focusListener);
    subPanel.setDoubleClickListener(doubleClickListener);
    view.splitHorizontally(subPanel.getView());
}
Also used : SubPanel(org.eclipse.che.ide.ui.multisplitpanel.SubPanel)

Example 5 with SubPanel

use of org.eclipse.che.ide.ui.multisplitpanel.SubPanel in project che by eclipse.

the class ProcessesPanelViewImpl method hideProcessOutput.

@Override
public void hideProcessOutput(String processId) {
    final WidgetToShow widgetToShow = processWidgets.get(processId);
    final SubPanel subPanel = widget2Panels.get(widgetToShow);
    if (subPanel != null) {
        subPanel.removeWidget(widgetToShow);
    }
    processWidgets.remove(processId);
}
Also used : WidgetToShow(org.eclipse.che.ide.ui.multisplitpanel.WidgetToShow) SubPanel(org.eclipse.che.ide.ui.multisplitpanel.SubPanel)

Aggregations

SubPanel (org.eclipse.che.ide.ui.multisplitpanel.SubPanel)5 WidgetToShow (org.eclipse.che.ide.ui.multisplitpanel.WidgetToShow)3 ProcessTreeNode (org.eclipse.che.ide.extension.machine.client.processes.ProcessTreeNode)1