Class MultiMonitor

    • Constructor Detail

      • MultiMonitor

        public MultiMonitor()
    • Method Detail

      • setMonitors

        public void setMonitors​(FileChangeMonitor[] value)
        Sets the monitors to apply.
        Parameters:
        value - the monitors
      • getMonitors

        public FileChangeMonitor[] getMonitors()
        Returns the monitors to apply.
        Returns:
        the monitors
      • monitorsTipText

        public String monitorsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCombinationType

        public void setCombinationType​(MultiMonitor.CombinationType value)
        Sets how to combine the results of the monitors.
        Parameters:
        value - the type
      • getCombinationType

        public MultiMonitor.CombinationType getCombinationType()
        Returns how to combine the results of the monitors.
        Returns:
        the type
      • combinationTypeTipText

        public String combinationTypeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doInitialize

        protected String doInitialize​(File file)
        Performs the actual initialization of the monitor with the specified file.
        Specified by:
        doInitialize in class AbstractFileChangeMonitor
        Parameters:
        file - the file to initialize with
        Returns:
        null if successful, otherwise error message
      • checkChange

        protected boolean checkChange​(File file)
        Performs the actual check whether the file has changed.
        Specified by:
        checkChange in class AbstractFileChangeMonitor
        Parameters:
        file - the file to check
        Returns:
        true if changed
      • doUpdate

        protected String doUpdate​(File file)
        Performs the actual updating of the monitor with the specified file.
        Specified by:
        doUpdate in class AbstractFileChangeMonitor
        Parameters:
        file - the file to update with
        Returns:
        null if successful, otherwise error message