def METHOD_NAME(self):
    """Called when plug-ins are initialized.
    This makes sure that we listen to changes of the material and that the
    button is created that indicates warnings with the current set-up.
    """
    Application.getInstance().getMachineManager().rootMaterialChanged.connect(self.onChanged)
    self._createView()