diff options
author | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2002-04-16 14:15:33 +0000 |
---|---|---|
committer | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2002-04-16 14:15:33 +0000 |
commit | b3e7ac2f75ab8581e426b7015ee24623be32bc3e (patch) | |
tree | 8b2eb77cce3f7233f732382c12f4b7f69bc70b6a | |
parent | 2603a2d2b7cacc59a990acd58d2269acf45bb2c5 (diff) | |
download | zsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.tar.gz zsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.tar.xz zsh-b3e7ac2f75ab8581e426b7015ee24623be32bc3e.zip |
Modified _java to use _java_class.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_java | 19 |
2 files changed, 10 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog index 2b53a3ee0..e42286121 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-16 Felix Rosencrantz <f_rosencrantz@yahoo.com> + + * 16956: Completion/Unix/Command/_java: Changed to use + new _java_class function. + 2002-04-16 Sven Wischnowsky <wischnow@zsh.org> * users/4836: Completion/Unix/Type/_path_files: make 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 |