Class VersionControlTask

  • All Implemented Interfaces:
    MonitoredRunnable
    Direct Known Subclasses:
    CheckInTask

    public abstract class VersionControlTask
    extends Task
    Task to show a dialog to enter comments for checking in a file
    • Field Detail

      • actionID

        protected int actionID
      • keepCheckedOut

        protected boolean keepCheckedOut
      • createKeep

        protected boolean createKeep
      • comments

        protected java.lang.String comments
      • filesInUse

        protected boolean filesInUse
      • wasCanceled

        protected boolean wasCanceled
      • parent

        protected java.awt.Component parent
    • Constructor Detail

      • VersionControlTask

        protected VersionControlTask​(java.lang.String title,
                                     PluginTool tool,
                                     java.util.List<DomainFile> list,
                                     java.awt.Component parent)
        Constructor
        Parameters:
        title - title of the task
        tool - tool associated with the task
        list - list of domain files
        parent - parent of the version control dialog; may be null
    • Method Detail

      • showDialog

        protected void showDialog​(boolean addToVersionControl,
                                  java.lang.String filename)
        Show the dialog.
        Parameters:
        addToVersionControl - true if the dialog is for adding files to version control, false for checking in files.
        filename - the name of the file currently to be added, whose comment we need.
      • checkFilesInUse

        protected void checkFilesInUse()
        Sets the filesInUse field if any file is in use. Call this method from the run() method so that the "Keep checked out" checkbox on the dialog is disabled if files are still in use.
      • checkFilesForUnsavedChanges

        protected boolean checkFilesForUnsavedChanges()