OpenProjectError error = event.getData();
eventBus_.fireEvent(new OpenProjectErrorEvent(error));
}
else if (type.equals(ClientEvent.VcsRefresh))
{
JsObject data = event.getData();
eventBus_.fireEvent(new VcsRefreshEvent(Reason.NA,
data.getInteger("delay")));
}
else if (type.equals(ClientEvent.AskPass))
{
AskPassEvent.Data data = event.getData();
eventBus_.fireEvent(new AskPassEvent(data));
}
else if (type.equals(ClientEvent.ConsoleProcessOutput))
{
ServerConsoleOutputEvent.Data data = event.getData();
eventBus_.fireEvent(new ServerConsoleOutputEvent(data.getHandle(),
data.getOutput(),
data.isError()));
}
else if (type.equals(ClientEvent.ConsoleProcessPrompt))
{
ServerConsolePromptEvent.Data data = event.getData();
eventBus_.fireEvent(new ServerConsolePromptEvent(data.getHandle(),
data.getPrompt()));
}
else if (type.equals(ClientEvent.ConsoleProcessCreated))
{
ConsoleProcessCreatedEvent.Data data = event.getData();
eventBus_.fireEvent(new ConsoleProcessCreatedEvent(data));
}
else if (type.equals(ClientEvent.ConsoleProcessExit))
{
ServerProcessExitEvent.Data data = event.getData();
eventBus_.fireEvent(new ServerProcessExitEvent(data.getHandle(),
data.getExitCode()));
}
else if (type.equals(ClientEvent.HTMLPreviewStartedEvent))
{
HTMLPreviewStartedEvent.Data data = event.getData();
eventBus_.fireEvent(new HTMLPreviewStartedEvent(data));
}
else if (type.equals(ClientEvent.HTMLPreviewOutputEvent))
{
String output = event.getData();
eventBus_.fireEvent(new HTMLPreviewOutputEvent(output));
}
else if (type.equals(ClientEvent.HTMLPreviewCompletedEvent))
{
HTMLPreviewResult result = event.getData();
eventBus_.fireEvent(new HTMLPreviewCompletedEvent(result));
}
else if (type.equals(ClientEvent.CompilePdfStartedEvent))
{
CompilePdfStartedEvent.Data data = event.getData();
eventBus_.fireEvent(new CompilePdfStartedEvent(data));
}
else if (type.equals(ClientEvent.CompilePdfOutputEvent))
{
CompileOutput output = event.getData();
eventBus_.fireEvent(new CompilePdfOutputEvent(output));
}
else if (type.equals(ClientEvent.CompilePdfErrorsEvent))
{
JsArray<CompileError> data = event.getData();
eventBus_.fireEvent(new CompilePdfErrorsEvent(data));
}
else if (type.equals(ClientEvent.CompilePdfCompletedEvent))
{
CompilePdfResult result = event.getData();
eventBus_.fireEvent(new CompilePdfCompletedEvent(result));
}
else if (type.equals(ClientEvent.SynctexEditFile))
{
SourceLocation sourceLocation = event.getData();
eventBus_.fireEvent(new SynctexEditFileEvent(sourceLocation));
}
else if (type.equals(ClientEvent.FindResult))
{
FindResultEvent.Data data = event.getData();
eventBus_.fireEvent(new FindResultEvent(
data.getHandle(), data.getResults().toArrayList()));
}
else if (type.equals(ClientEvent.FindOperationEnded))
{
String data = event.getData();
eventBus_.fireEvent(new FindOperationEndedEvent(data));