From: Alan E. <ez...@us...> - 2013-01-28 23:22:15
|
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 "ProjectViewer jEdit plugin". The branch, master has been updated via f148286869abc8423594c9c4882a797b312ba34e (commit) from 116e9738f5526f620e0a66c39e2600bd0691657c (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: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=commit;h=f148286869abc8423594c9c4882a797b312ba34e commitdiff: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=commitdiff;h=f148286869abc8423594c9c4882a797b312ba34e tree: http://jedit.git.sourceforge.net/git/gitweb.cgi?p=jedit/ProjectViewer;a=tree;h=f148286869abc8423594c9c4882a797b312ba34e;hb=f148286869abc8423594c9c4882a797b312ba34e commit f148286869abc8423594c9c4882a797b312ba34e Author: Alan Ezust <ez...@ic...> Date: Mon Jan 28 15:21:51 2013 -0800 Don't send VFSNodeSelect events for the root or group nodes. diff --git a/projectviewer/vpt/VPTRoot.java b/projectviewer/vpt/VPTRoot.java index 9e80701..e9c604a 100644 --- a/projectviewer/vpt/VPTRoot.java +++ b/projectviewer/vpt/VPTRoot.java @@ -25,7 +25,8 @@ import org.gjt.sp.jedit.jEdit; //}}} /** - * The root of the tree. Aside from being the root of the project tree, it + * The root of the PV tree, representing "All Projects" + * Aside from being the root of the project tree, it * provides methods for manipulating the projects and persisting data * to the disk. * @@ -57,7 +58,7 @@ public class VPTRoot extends VPTGroup { public String getNodePath() { return File.separator; } //}}} - + //{{{ +compareTo(VPTNode) : int /** The root is always the first node. Period. */ public int compareTo(VPTNode node) { diff --git a/projectviewer/vpt/VPTSelectionListener.java b/projectviewer/vpt/VPTSelectionListener.java index d352af1..53e4635 100644 --- a/projectviewer/vpt/VPTSelectionListener.java +++ b/projectviewer/vpt/VPTSelectionListener.java @@ -140,6 +140,7 @@ public final class VPTSelectionListener implements TreeSelectionListener, MouseL } sel = (VPTNode) e.getPath().getLastPathComponent(); + if (sel.isGroup() || sel.isRoot()) return; EditBus.send(new NodeSelectionUpdate(viewer, sel)); viewer.setStatus(sel.toString()); } ----------------------------------------------------------------------- Summary of changes: projectviewer/vpt/VPTRoot.java | 5 +++-- projectviewer/vpt/VPTSelectionListener.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- ProjectViewer jEdit plugin |