Package com.serotonin.m2m2.i18n

Examples of com.serotonin.m2m2.i18n.ProcessResult.addMessage()


            catch (ResultTypeException e) {
                message = e.getTranslatableMessage();
            }
        }

        response.addMessage("script", message);
        return response;
    }
}
View Full Code Here


        ProcessResult response = new ProcessResult();

        MaintenanceEventRT rt = RTMDefinition.instance.getRunningMaintenanceEvent(id);
        boolean activated = false;
        if (rt == null)
            response.addMessage(new TranslatableMessage("maintenanceEvents.toggle.disabled"));
        else
            activated = rt.toggle();

        response.addData("activated", activated);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.