diff --git a/plugins/language-support-cpp-java/plugin.c b/plugins/language-support-cpp-java/plugin.c
index 5200ac7..a49fcdf 100644
--- a/plugins/language-support-cpp-java/plugin.c
+++ b/plugins/language-support-cpp-java/plugin.c
@@ -845,6 +845,67 @@ static gboolean insert_after_mark (IAnjutaEditor* editor, gchar* mark,
 
        ianjuta_editor_insert (editor, mark_position, code_to_add, -1, NULL);
 
+       int line = ianjuta_editor_get_line_from_position (editor, mark_position, NULL);
+       gchar *filename = ianjuta_document_get_filename (IANJUTA_DOCUMENT (editor), NULL);
+
+
+       IAnjutaSymbolManager *symbol_manager =
+              anjuta_shell_get_interface (ANJUTA_PLUGIN (lang_plugin)->shell, IAnjutaSymbolManager, NULL);
+       IAnjutaSymbolQuery *query_scope =
+       ianjuta_symbol_manager_create_query (symbol_manager,
+		                                     IANJUTA_SYMBOL_QUERY_SEARCH_SCOPE,
+		                                     IANJUTA_SYMBOL_QUERY_DB_PROJECT, NULL);
+
+       if (query_scope) printf("Query creation sucessful!\n");
+
+       printf ("Inserting in line %d in file %s.\n", line, filename);
+
+       printf ("Trying to get scope...\n");
+       GFile *file = ianjuta_file_get_file (IANJUTA_FILE(editor), NULL);
+       gchar* path = g_file_get_path (file);
+       printf ("File complete path is %s.\n", path);
+       IAnjutaIterable* scope =
+              ianjuta_symbol_query_search_scope (query_scope,
+                                                 path,
+                                                 line,
+                                                 NULL);
+
+       if (scope) {
+              printf ("Scope found!\n");
+              gchar* symbol_name;
+              symbol_name = ianjuta_symbol_get_string (IANJUTA_SYMBOL(scope),
+			                                         IANJUTA_SYMBOL_FIELD_NAME,
+			                                         NULL);
+              printf ("Scope: %s.\n", symbol_name);
+
+			  printf ("Preparing members query...\n");
+
+              IAnjutaSymbolQuery *query_members =
+               ianjuta_symbol_manager_create_query (symbol_manager,
+                                      IANJUTA_SYMBOL_QUERY_SEARCH_MEMBERS,
+                                      IANJUTA_SYMBOL_QUERY_DB_PROJECT,
+                                      NULL);
+              
+
+			  if (query_members) {
+                     printf ("Members query creation sucessful!\n");
+                     printf ("Querying...\n");
+                     IAnjutaIterable *members =
+                       ianjuta_symbol_query_search_members (query_members, IANJUTA_SYMBOL(scope), NULL);
+
+                     if (members) {
+                            printf ("Members found!\n");
+                            do {
+                                   IAnjutaSymbol *symbol = IANJUTA_SYMBOL (members);
+                                   printf ("%s\n", ianjuta_symbol_get_string (symbol,
+                                            IANJUTA_SYMBOL_FIELD_NAME, NULL));
+                            }while (ianjuta_iterable_next (members, NULL));
+
+
+                     } else printf ("No members found :(\n");
+			  }
+       }
+
        /* Emit code-added signal, so symbols will be updated */
        g_signal_emit_by_name (G_OBJECT (editor), "code-added", mark_position, code_to_add);
        g_object_unref (mark_position);
