use of org.eclipse.che.ide.extension.machine.client.outputspanel.console.CommandOutputConsolePresenter in project che by eclipse.
the class ReRunProcessAction method updateInPerspective.
@Override
public void updateInPerspective(ActionEvent event) {
ProcessTreeNode processTreeNode = processesPanelPresenter.getContextTreeNode();
if (processTreeNode == null) {
event.getPresentation().setEnabled(false);
event.getPresentation().setVisible(false);
return;
}
if (processesPanelPresenter.getContextOutputConsole() instanceof CommandOutputConsolePresenter) {
event.getPresentation().setEnabled(true);
event.getPresentation().setVisible(true);
return;
}
event.getPresentation().setEnabled(false);
event.getPresentation().setVisible(false);
}
use of org.eclipse.che.ide.extension.machine.client.outputspanel.console.CommandOutputConsolePresenter in project che by eclipse.
the class StopProcessAction method updateInPerspective.
@Override
public void updateInPerspective(ActionEvent event) {
ProcessTreeNode processTreeNode = processesPanelPresenter.getContextTreeNode();
if (processTreeNode == null) {
event.getPresentation().setEnabled(false);
event.getPresentation().setVisible(false);
return;
}
if (processesPanelPresenter.getContextOutputConsole() instanceof CommandOutputConsolePresenter && !processesPanelPresenter.getContextOutputConsole().isFinished()) {
event.getPresentation().setEnabled(true);
event.getPresentation().setVisible(true);
return;
}
event.getPresentation().setEnabled(false);
event.getPresentation().setVisible(false);
}
use of org.eclipse.che.ide.extension.machine.client.outputspanel.console.CommandOutputConsolePresenter in project che by eclipse.
the class StopProcessAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
OutputConsole outputConsole = processesPanelPresenter.getContextOutputConsole();
if (outputConsole != null && outputConsole instanceof CommandOutputConsolePresenter) {
CommandOutputConsolePresenter commandOutputConsolePresenter = (CommandOutputConsolePresenter) outputConsole;
commandOutputConsolePresenter.stopProcessButtonClicked();
}
}
use of org.eclipse.che.ide.extension.machine.client.outputspanel.console.CommandOutputConsolePresenter in project che by eclipse.
the class ReRunProcessAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
OutputConsole outputConsole = processesPanelPresenter.getContextOutputConsole();
if (outputConsole != null && outputConsole instanceof CommandOutputConsolePresenter) {
CommandOutputConsolePresenter commandOutputConsolePresenter = (CommandOutputConsolePresenter) outputConsole;
commandOutputConsolePresenter.reRunProcessButtonClicked();
}
}
Aggregations