Example usage for java.util ConcurrentModificationException getMessage

List of usage examples for java.util ConcurrentModificationException getMessage

Introduction

In this page you can find the example usage for java.util ConcurrentModificationException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:org.libreplan.web.orders.OrderCRUDController.java

public void setCodeAutogenerated(boolean codeAutogenerated) {
    try {//from  www.  j  a v a  2 s . com
        orderModel.setCodeAutogenerated(codeAutogenerated);
        if (orderElementTreeController != null) {
            orderElementTreeController.disabledCodeBoxes(codeAutogenerated);
        }
    } catch (ConcurrentModificationException e) {
        messagesForUser.showMessage(Level.ERROR, e.getMessage());
    }
    Util.reloadBindings(editWindow);
}

From source file:org.libreplan.web.resources.criterion.CriterionAdminController.java

public void onCheckGenerateCode(Event e) {
    CheckEvent ce = (CheckEvent) e;/* w  w w  . j  a v a2s . c  om*/
    if (ce.isChecked()) {
        try {
            // We have to auto-generate the code for new objects
            criterionsModel.setCodeAutogenerated(ce.isChecked());
        } catch (ConcurrentModificationException err) {
            messagesForUser.showMessage(Level.ERROR, err.getMessage());
        }
        Util.reloadBindings(editWindow);
    }
    // Disable code field in criterion tree controller
    editionTree.setCriterionCodeEditionDisabled(ce.isChecked());
    editionTree.reloadTree();
}

From source file:org.libreplan.web.resources.worker.WorkerCRUDController.java

public void onCheckGenerateCode(Event e) {
    CheckEvent ce = (CheckEvent) e;//from   ww  w. ja v a  2 s  .co  m
    if (ce.isChecked()) {
        // We have to auto-generate the code if it is unsaved
        try {
            workerModel.setCodeAutogenerated(ce.isChecked());
        } catch (ConcurrentModificationException err) {
            messages.showMessage(Level.ERROR, err.getMessage());
        }
    }
    Util.reloadBindings(editWindow);
}

From source file:org.libreplan.web.workreports.WorkReportCRUDController.java

public void onCheckGenerateCode(Event e) {
    CheckEvent ce = (CheckEvent) e;/*from  ww  w  . j a  v  a 2 s  .  c  om*/
    if (ce.isChecked()) {
        // We have to auto-generate the code for new objects
        try {
            workReportModel.setCodeAutogenerated(ce.isChecked());
        } catch (ConcurrentModificationException err) {
            messagesForUser.showMessage(Level.ERROR, err.getMessage());
        }
    }
    Util.reloadBindings(createWindow);
    reloadWorkReportLines();
}

From source file:org.libreplan.web.workreports.WorkReportTypeCRUDController.java

public void onCheckGenerateCode(Event e) {
    CheckEvent ce = (CheckEvent) e;/*from   w  ww. j a v a 2 s  . c o  m*/
    if (ce.isChecked()) {
        // we have to auto-generate the code for new objects
        try {
            workReportTypeModel.setCodeAutogenerated(ce.isChecked());
        } catch (ConcurrentModificationException err) {
            messagesForUser.showMessage(Level.ERROR, err.getMessage());
        }
    }
    Util.reloadBindings(code);
}