Class OpenVersionedFileDialog

    • Constructor Detail

      • OpenVersionedFileDialog

        public OpenVersionedFileDialog​(PluginTool tool,
                                       java.lang.String title,
                                       DomainFileFilter filter)
        Constructor
        Parameters:
        tool - tool where the file is being opened.
        title - title to use
        filter - filter used to control what is displayed in data tree.
    • Method Detail

      • getVersionedDomainObject

        public DomainObject getVersionedDomainObject​(java.lang.Object consumer,
                                                     boolean readOnly)
        Get the domain object for the selected version.
        Parameters:
        consumer - consumer
        readOnly - true if the domain object should be opened read only, versus immutable
        Returns:
        null if a versioned file was not selected
      • getVersion

        public int getVersion()
        Return the selected version number from the history panel.
        Returns:
        -1 if a version history was not selected
      • buildMainPanel

        protected javax.swing.JPanel buildMainPanel()
        Description copied from class: DataTreeDialog
        Define the Main panel for the dialog here.
        Overrides:
        buildMainPanel in class DataTreeDialog
        Returns:
        JPanel the completed Main Panel