From: Shlomy R. <sh...@us...> - 2011-07-30 18:13:16
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "MarkerSets jEdit plugin". The branch, master has been updated via c6138d891c14a83321839a07ac6975897ff733fb (commit) from d90f990a2c386f60fc335688275b8bc7be375212 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c6138d891c14a83321839a07ac6975897ff733fb Author: Shlomy Reinstein <shlomy@upontek2.(none)> Date: Sat Jul 30 21:12:31 2011 +0300 Add a method to expand a single source link parent, keeping all others collapsed. diff --git a/src/marker/tree/SourceLinkTree.java b/src/marker/tree/SourceLinkTree.java index 261b90d..3d8c06f 100644 --- a/src/marker/tree/SourceLinkTree.java +++ b/src/marker/tree/SourceLinkTree.java @@ -591,5 +591,11 @@ public class SourceLinkTree extends JTree model.nodesWereRemoved(root, new int [] {i}, new Object [] { node }); } } + + public void setExpandedOnly(SourceLinkParentNode parent) + { + collapsePath(new TreePath(root.getPath())); + expandAllChildren(parent); + } } ----------------------------------------------------------------------- Summary of changes: src/marker/tree/SourceLinkTree.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) hooks/post-receive -- MarkerSets jEdit plugin |