Package docking.widgets.tree.tasks
Class GTreeSelectPathsTask
- java.lang.Object
-
- ghidra.util.worker.Job
-
- ghidra.util.worker.PriorityJob
-
- docking.widgets.tree.GTreeTask
-
- docking.widgets.tree.tasks.GTreeSelectPathsTask
-
public class GTreeSelectPathsTask extends GTreeTask
-
-
Constructor Summary
Constructors Constructor Description GTreeSelectPathsTask(GTree gtree, javax.swing.JTree tree, java.util.List<javax.swing.tree.TreePath> paths, GTreeSelectionEvent.EventOrigin origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(TaskMonitor monitor)
The method that gets called by the Worker when this job is selected to be run by the Worker.void
setExpandingDisabled(boolean disabled)
Tells the JTree to not expand paths for each selection that is set upon it.-
Methods inherited from class docking.widgets.tree.GTreeTask
runOnSwingThread, setTaskMonitor, translatePath
-
Methods inherited from class ghidra.util.worker.PriorityJob
getID, getPriority
-
Methods inherited from class ghidra.util.worker.Job
cancel, getError, hasError, isCancelled, isCompleted, setCompleted, setError
-
-
-
-
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.
-
-