close();
}
private void createJCoServer() {
try {
JCoServer jcoServer = JCoServerFactory.getServer(serverName);
ServerErrorAndExceptionListener serverErrorAndExceptionListener = new ServerErrorAndExceptionListener();
ServerStateChangedListener serverStateChangedListener = new ServerStateChangedListener();
jcoServer.setCallHandlerFactory(new FunctionHandlerFactory());
jcoServer.addServerErrorListener(serverErrorAndExceptionListener);
jcoServer.addServerExceptionListener(serverErrorAndExceptionListener);
jcoServer.addServerStateChangedListener(serverStateChangedListener);
isServerInitialize = true;
} catch (Exception e) {
append2Console(NLS.bind(Messages.TestServerDialog_FailedToCreateServer, e.getMessage()));
isServerInitialize = false;
}