about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2002-04-16 14:15:33 +0000
committerFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2002-04-16 14:15:33 +0000
commitb3e7ac2f75ab8581e426b7015ee24623be32bc3e (patch)
tree8b2eb77cce3f7233f732382c12f4b7f69bc70b6a /Completion/Unix
parent2603a2d2b7cacc59a990acd58d2269acf45bb2c5 (diff)
downloadzsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.tar.gz
zsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.tar.xz
zsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.zip
Modified _java to use _java_class.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_java19
1 files changed, 5 insertions, 14 deletions
diff --git a/Completion/Unix/Command/_java b/Completion/Unix/Command/_java
index baa51d16c..48ccd4eaf 100644
--- a/Completion/Unix/Command/_java
+++ b/Completion/Unix/Command/_java
@@ -44,7 +44,7 @@ java)
     '-version[print version]' \
     '-help[print help message]' \
     '(- 1)-jar[specify a program capsulated as jar]:jar:_files -g \*.jar' \
-    '(-):class:->class' \
+    '(-):class:_java_class -m main' \
     '*::args: _normal' \
      && return 0
   ;;
@@ -57,7 +57,7 @@ javadoc)
     '-package[display packages, public/protected classes and members only]' \
     '-private[display all classes and members]' \
     '-help[print help message]' \
-    '-doclet[specify a doclet]:doclet:->doclet' \
+    '-doclet[specify a doclet]:doclet:_java_class -t doclet' \
     '-docletpath[specify a path to search doclet]:doclet path:->docletpath' \
     '-1.1[Javadoc 1.1 compatible output]' \
     '-sourcepath[specify path for source files]:source path:->sourcepath' \
@@ -140,7 +140,7 @@ javah|javah_g)
     '-bootclasspath[specify path for bootstrap class files]:bootstrap class path:->bootstrapclasspath' \
     '-old[generate old JDK1.0-style header files]' \
     '-force[force output]' \
-    '*:fully qualified classname:->class' && return 0
+    '*:fully qualified classname:_java_class -m main' && return 0
   ;;
 
 javap)
@@ -159,7 +159,7 @@ javap)
     '-classpath[specify path for user class files]:class path:->classpath' \
     '-bootclasspath[specify path for bootstrap class files]:bootstrap class path:->bootstrapclasspath' \
     '-extdirs[specify directories for extensions]:extensions directories:->extdirs' \
-    '*:class:->class' && return 0
+    '*:class:_java_class' && return 0
   ;;
 
 extcheck)
@@ -182,7 +182,7 @@ rmic)
     '-verbose[print verbose messages]' \
     '-v1.1[JDK 1.1 stub protocol]' \
     '-v1.2[JDK 1.2 stub protocol]' \
-    '*:package qualified class name:->class' && return 0
+    '*:package qualified class name:_java_class' && return 0
   ;;
 
 rmiregistry)
@@ -503,15 +503,6 @@ property)
   fi
   ;;
 
-class|doclet)
-  match=()
-  compset -P '(#b)(*.)'
-  basedir=${match[1]//.//}
-  _alternative \
-    'classes:class:compadd $basedir*.class(.:t:s/.class//)' \
-    'packages:package:compadd -qS. $basedir*~$basedir*.*(/:t)'
-  ;;
-
 docsrc)
   if compset -P @; then
     _wanted files expl 'package/source list file' _files