Package org.criticalfailure.torchlight.core.application.entity

Examples of org.criticalfailure.torchlight.core.application.entity.Alert


                }
                catch(Exception e) {
                    logger.error("Exception caught while trying to get campaign object template list: "
                            + e.getLocalizedMessage(), e);

                    alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                            .getLocalizedMessage()));
                }
            }

            return templates;
View Full Code Here


            }
            catch(Exception e) {
                logger.error("Exception caught while trying to get predefined object template list: "
                        + e.getLocalizedMessage(), e);

                alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                        .getLocalizedMessage()));
            }

            return templates.toArray();
        }
View Full Code Here

            }
        }
        catch(Exception e) {
            logger.error("Exception caught while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService.addAlert(new Alert(Alert.Type.ERROR, Messages.getString("model.chooser_dialog.error.event"), e
                    .getLocalizedMessage()));
        }
    }
View Full Code Here

                    }
                    catch(Exception e) {
                        logger.error("Exception caught while trying to load object template: "
                                + e.getLocalizedMessage(), e);

                        alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                                .getLocalizedMessage()));

                        throw new InvocationTargetException(e);
                    }
View Full Code Here

                contentComp.layout(true, true);
                logger.info("control: " + control.getSize().x + "," + control.getSize().y);
                height += control.getSize().y;
            }
            else {
                alertService.addAlert(new Alert(Alert.Type.WARN, CampaignManagerView.class.getSimpleName(), Messages
                        .getString("campaign.manager.ui.error.no_row_for_campaign.text")));
            }
        }
        logger.info("height: " + height);
View Full Code Here

            }
        }
        catch(Exception e) {
            logger.error("Exception caught while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService.addAlert(new Alert(Alert.Type.ERROR, Messages.getString("campaign.manager.ui.error.event"), e
                    .getLocalizedMessage()));
        }

    }
View Full Code Here

                    if(op == null) {
                        logger.error("Object property 'name' couldn't be found in template: "
                                + encounter.getObjectInstance().getObjectTemplate());

                        // alert service
                        alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                                "Object property 'name' couldn't be found in template: "
                                        + encounter.getObjectInstance().getObjectTemplate().getName()));

                        return;
                    }

                    datum = objectDataFactory.createObjectData(op, false);
                    logger.trace("datum: " + datum);
                    if(datum != null) {
                        datum.setName("name");

                        encounter.getObjectInstance().addData(datum);
                    }
                    else {
                        logger.error("Object data couldn't be created for 'name' from object property: " + op);

                        // alert service
                        alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                                "Object data couldn't be created for 'name' from object property: " + op.getName()));

                        return;
                    }
                }
View Full Code Here

        }
        catch(Exception e) {
            logger.error("Exception while saving encounter object instance: " + e.getLocalizedMessage(), e);

            // alert service
            alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                    "Exception while saving encounter object instance: " + e.getLocalizedMessage()));
        }

        if(monitor != null) {
            monitor.done();
View Full Code Here

                else {
                    logger.error("Unable to locate 'participants' property in object template: "
                            + encounter.getObjectInstance().getObjectTemplate());

                    // alert service
                    alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                            "Unable to locate 'participants' property in object template: "
                                    + encounter.getObjectInstance().getObjectTemplate()));
                }
            }

            if(od != null) {
                if(ep.getParticipant() instanceof BasicModelObject) {
                    od.addValue("instance:" + ((BasicModelObject)ep.getParticipant()).getId());
                }
                else {
                    od.addValue("label:" + ep.getLabel());
                }

                // save
                doSave(null);
            }
            else {
                logger.error("Unable to add data; no 'participants' object data found in instance: "
                        + encounter.getObjectInstance());

                // alert service
                alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                        "Unable to add data; no 'participants' object data found in instance: "
                                + encounter.getObjectInstance()));
            }
        }
    }
View Full Code Here

            else {
                logger.error("Unable to remove data; no 'participants' object data found in instance: "
                        + encounter.getObjectInstance());

                // alert service
                alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                        "Unable to remove data; no 'participants' object data found in instance: "
                                + encounter.getObjectInstance()));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.application.entity.Alert

Copyright © 2018 www.massapicom. 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.