[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[19519] plugins/Javadoc/trunk
From:       kog13 () users ! sourceforge ! net
Date:       2011-04-21 21:33:05
Message-ID: E1QD1Un-0005Bk-P5 () sfp-svn-5 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 19519
          http://jedit.svn.sourceforge.net/jedit/?rev=19519&view=rev
Author:   kog13
Date:     2011-04-21 21:33:05 +0000 (Thu, 21 Apr 2011)

Log Message:
-----------
Made class-name search case insensitive

Modified Paths:
--------------
    plugins/Javadoc/trunk/Javadoc.props
    plugins/Javadoc/trunk/javadoc/JavadocPlugin.java

Modified: plugins/Javadoc/trunk/Javadoc.props
===================================================================
--- plugins/Javadoc/trunk/Javadoc.props	2011-04-21 21:21:18 UTC (rev 19518)
+++ plugins/Javadoc/trunk/Javadoc.props	2011-04-21 21:33:05 UTC (rev 19519)
@@ -1,7 +1,7 @@
 plugin.javadoc.JavadocPlugin.activate=startup
 plugin.javadoc.JavadocPlugin.name=Javadoc
 plugin.javadoc.JavadocPlugin.author=Damien Radtke
-plugin.javadoc.JavadocPlugin.version=1.1
+plugin.javadoc.JavadocPlugin.version=1.2
 plugin.javadoc.JavadocPlugin.description=The Javadoc plugin provides a user \
 	interface for accessing java api documentation. Api trees can be easily \
 	opened or searched through by class name.

Modified: plugins/Javadoc/trunk/javadoc/JavadocPlugin.java
===================================================================
--- plugins/Javadoc/trunk/javadoc/JavadocPlugin.java	2011-04-21 21:21:18 UTC (rev \
                19518)
+++ plugins/Javadoc/trunk/javadoc/JavadocPlugin.java	2011-04-21 21:33:05 UTC (rev \
19519) @@ -14,6 +14,7 @@
 import org.gjt.sp.jedit.EditPlugin;
 import org.gjt.sp.jedit.View;
 import org.gjt.sp.jedit.jEdit;
+import org.gjt.sp.jedit.MiscUtilities;
 import org.gjt.sp.jedit.Buffer;
 import org.gjt.sp.jedit.msg.PropertiesChanged;
 import org.gjt.sp.util.Log;
@@ -62,6 +63,7 @@
 	 */
 	public static void search(final View view, final String name) {
 		view.getStatus().setMessage("Searching ... ");
+		// TODO: re-write this to use ThreadUtilities
 		new Thread() {
 			public void run() {
 				String path = jEdit.getProperty("options.javadoc.path", "");
@@ -77,9 +79,11 @@
 					for (int i = 0; i<packageList.getLineCount(); i++) {
 						String pkg = packageList.getLineText(i).replace(".", File.separator);
 						File pkgDir = new File(dir, pkg);
-						File cls = new File(pkgDir, name+".html");
-						if (cls.exists()) {
-							pathList.add(cls.getPath());
+						String pkgDirPath = pkgDir.getPath();
+						String[] pages = pkgDir.list();
+						for (int j = 0; j<pages.length; j++) {
+							if (pages[j].equalsIgnoreCase(name+".html"))
+								pathList.add(MiscUtilities.constructPath(pkgDirPath, pages[j]));
 						}
 					}
 				}


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic