Class GTreeSelectPathsTask


  • public class GTreeSelectPathsTask
    extends GTreeTask
    • Constructor Detail

      • GTreeSelectPathsTask

        public GTreeSelectPathsTask​(GTree gtree,
                                    javax.swing.JTree tree,
                                    java.util.List<javax.swing.tree.TreePath> paths,
                                    GTreeSelectionEvent.EventOrigin origin)
    • Method Detail

      • setExpandingDisabled

        public void setExpandingDisabled​(boolean disabled)
        Tells the JTree to not expand paths for each selection that is set upon it. Doing this will speed-up performance. However, only call this when some other task is going to ensure that paths are properly expanded.
        Parameters:
        disabled - true to disable
      • run

        public void run​(TaskMonitor monitor)
        Description copied from class: Job
        The method that gets called by the Worker when this job is selected to be run by the Worker.
        Specified by:
        run in class Job