if (showHttpLog) {
final NginxLogTab httpLogTab = new NginxLogTab(getProject(), new File(httpLogPath));
manager.addAdditionalTabComponent(httpLogTab, "errorlogtab");
startedProcess.addProcessListener(new ProcessAdapter() {
@Override
public void startNotified(ProcessEvent event) {
httpLogTab.poke();
}
@Override
public void processTerminated(ProcessEvent event) {
httpLogTab.poke();
startedProcess.removeProcessListener(this);
}
});
}
if (showErrorLog) {
final NginxLogTab errorLogTab = new NginxLogTab(getProject(), new File(errorLogPath));
manager.addAdditionalTabComponent(errorLogTab, "accesslogtab");
startedProcess.addProcessListener(new ProcessAdapter() {
@Override
public void startNotified(ProcessEvent event) {
errorLogTab.poke();
}