Search in sources :

Example 1 with VmGeneralModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel in project ovirt-engine by oVirt.

the class SubTabVirtualMachineGeneralPresenter method initializeHandlers.

@Override
public void initializeHandlers() {
    super.initializeHandlers();
    // Initialize the list of alerts:
    final VmGeneralModel model = getModelProvider().getModel();
    updateAlerts(getView(), model);
    // Listen for changes in the properties of the model in order
    // to update the alerts panel:
    model.getPropertyChangedEvent().addListener((ev, sender, args) -> {
        if (args.propertyName.contains("Alert")) {
            // $NON-NLS-1$
            updateAlerts(getView(), model);
        }
    });
}
Also used : VmGeneralModel(org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel)

Aggregations

VmGeneralModel (org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel)1