View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd/searches
In directory usw-pr-cvs1:/tmp/cvs-serv8428/searches

Modified Files:
        jdk.xml 
Log Message:
More jdk search options.

Index: jdk.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/jdk.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** jdk.xml     24 Jul 2002 09:03:14 -0000      1.4
--- jdk.xml     24 Jul 2002 10:19:19 -0000      1.5
***************
*** 6,13 ****
--- 6,19 ----
          <tr><td>/1.4</td><td> - </td><td>Version 1.4 JDK (default)</td></tr>
          <tr><td>/1.3</td><td> - </td><td>Version 1.3 JDK</td></tr>
+         <tr><td>/tutorial</td><td> - </td><td>Java language tutorial</td></tr>
+         <tr><td>/j2ee</td><td> - </td><td>J2EE documentation</td></tr>
+         <tr><td>/jls</td><td> - </td><td>Java language specification</td></tr>
+         <tr><td>/jvm</td><td> - </td><td>Java VM specification</td></tr>
+         <tr><td>/all</td><td> - </td><td>Search all of java.sun.com</td></tr>
        </table>
      <div class="helpboxDescLabels">Example:</div>
      <table class="helpboxDescTable">
        <tr><td>jdk HashMap /1.3</td></tr>
+       <tr><td>jdk catch /tutorial</td></tr>
      </table>
    </description>
***************
*** 26,55 ****
      function jdk(q)
      {
!       // Note: Google does not index 1.2 for some reason.
!       var args = parseArgs(q, "1.4, 1.3");
        if (q == "")
!         openSearchWindow("http://java.sun.com/j2se/1.4/docs/api/";);
        else if (args.switches.length > 1)
          nullArgs("jdk","?");
        else
        {
-         var version = "v1.4.0";
          if (args.switches.length == 1)
          {
            switch (args.switches[0].name)
            {
              case "1.3":
!               version = "v1.3.1"; break;
              case "1.4":
              default:
!               version = "v1.4.0"; break;
            }
            if (args.q == "")
            {
!             openSearchWindow("http://java.sun.com/j2se/"; + args.switches[0].name + 
"/docs/api/");
              return;
            }
          }
!         document.jdkf.q.value='intitle:' + args.q + ' "' + version + '" 
site:java.sun.com inurl:docs/api';
          submitForm(jdkf);
        }
--- 32,81 ----
      function jdk(q)
      {
!       var defpage = 'http://java.sun.com/j2se/1.4/docs/api/';
!       var version = '"v1.4.0" inurl:api intitle:';
!       var args = parseArgs(q, "1.4, 1.3, all, tutorial, jls, jvm, j2ee");
        if (q == "")
!         openSearchWindow(defpage);
        else if (args.switches.length > 1)
          nullArgs("jdk","?");
        else
        {
          if (args.switches.length == 1)
          {
            switch (args.switches[0].name)
            {
+             case "all":
+               version = ''; break;
+             case "tutorial":
+               defpage = 'http://java.sun.com/docs/books/tutorial/index.html';
+               version = 'inurl:nutsandbolts -inurl:reallybigindex -inurl:_keywords 
+-inurl:TOC ';
+               break;
+             case "jls":
+               defpage = 
+'http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html';
+               version = 'inurl:jls inurl:second_edition -inurl:jTOC -inurl:jIX ';
+               break;
+             case "jvm":
+               defpage = 
+'http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html';
+               version = 'inurl:vmspec inurl:2nd -inurl:VMSpecTOC ';
+               break;
+             case "j2ee":
+               defpage = 'http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html';
+               version = 'inurl:j2ee inurl:api intitle:';
+               break;
              case "1.3":
!               defpage = 'http://java.sun.com/j2se/1.3/docs/api/';
!               version = '"v1.3.1" inurl:api intitle:';
!               break;
              case "1.4":
              default:
!               // this is the default already
            }
            if (args.q == "")
            {
!             openSearchWindow(defpage);
              return;
            }
          }
!         document.jdkf.q.value=version + args.q + ' site:java.sun.com';
          submitForm(jdkf);
        }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to