Class XTCEViewerFileUpgradeProgressDialog

    • Constructor Detail

      • XTCEViewerFileUpgradeProgressDialog

        public XTCEViewerFileUpgradeProgressDialog​(File xmlFile,
                                                   boolean useXInclude,
                                                   Frame parent,
                                                   boolean modal)
        Constructor Initializes the dialog containing a JProgressBar to capture the progress while converting an XTCE database XML file from schema version 1.1 to version 1.2.
        Parameters:
        xmlFile - File containing the XTCE XML document to be converted.
        useXInclude - boolean indicating if the XML file to be converted should be read including the content of an XInclude files specified in the document.
        parent - Frame object containing the parent window Frame.
        modal - boolean indicating if the parent window should be blocked while this dialog is shown.
    • Method Detail

      • upgrade

        public void upgrade()
        Method to start the database conversion task.
      • getMessages

        public List<String> getMessages()
        Retrieve the messages that were generated by the database XML file conversion task.
        Returns:
        List of Strings containing the messages.
      • getSavedFile

        public File getSavedFile()
        Retrieve the File that was saved after the conversion.
        Returns:
        File containing the saved file or null in the event that the file has not yet been saved.
      • propertyChange

        public void propertyChange​(PropertyChangeEvent evt)
        Method invoked by the SwingWorker Task object when the status of the progress property changes.
        Specified by:
        propertyChange in interface PropertyChangeListener
        Parameters:
        evt - PropertyChangeEvent that contains the updated progress to use to update the JProgressBar object.