# HG changeset patch # User Rik # Date 1355779953 28800 # Node ID 37104cd70d0f30cb54a42575156a65d576c917cc # Parent 01d4f742d75de87518d4e94e06a286d05ef92482 Add command-line completion for method names of Java object. * libinterp/interpfcn/variables.cc(generate_struct_completions). Generate completions for structs (is_map) and for Java objects (is_java). diff --git a/libinterp/interpfcn/variables.cc b/libinterp/interpfcn/variables.cc --- a/libinterp/interpfcn/variables.cc +++ b/libinterp/interpfcn/variables.cc @@ -282,7 +282,7 @@ frame.run (); - if (tmp.is_defined () && tmp.is_map ()) + if (tmp.is_defined () && (tmp.is_map () || tmp.is_java ())) names = tmp.map_keys (); } }