Revision: 895 http://svn.sourceforge.net/geany/?rev=895&view=rev Author: eht16 Date: 2006-10-13 16:47:18 -0700 (Fri, 13 Oct 2006)
Log Message: ----------- Improved symbol list view for filetype Java.
Modified Paths: -------------- trunk/ChangeLog trunk/src/treeviews.c trunk/src/ui_utils.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-10-13 23:04:04 UTC (rev 894) +++ trunk/ChangeLog 2006-10-13 23:47:18 UTC (rev 895) @@ -1,3 +1,9 @@ +2006-10-13 Enrico Tröger enrico.troeger@uvena.de + + * src/ui_utils.c, src/treeviews.c: + Improved symbol list view for filetype Java. + + 2006-10-13 Nick Treleaven nick.treleaven@btinternet.com
* src/utils.c: Fix infinite loop from parsing current function name.
Modified: trunk/src/treeviews.c =================================================================== --- trunk/src/treeviews.c 2006-10-13 23:04:04 UTC (rev 894) +++ trunk/src/treeviews.c 2006-10-13 23:47:18 UTC (rev 895) @@ -179,6 +179,26 @@ */ break; } + case GEANY_FILETYPES_JAVA: + { + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_function), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_function), 0, _("Methods"), -1); + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_class), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_class), 0, _("Classes"), -1); + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_struct), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_struct), 0, _("Interfaces"), -1); + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_member), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_member), 0, _("Members"), -1); + //gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_macro), NULL); + //gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_macro), 0, _("Macros"), -1); + //gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_variable), NULL); + //gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_variable), 0, _("Variables"), -1); + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_namespace), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_namespace), 0, _("Packages"), -1); + gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_other), NULL); + gtk_tree_store_set(doc_list[idx].tag_store, &(tv.tag_other), 0, _("Other"), -1); + break; + } default: { gtk_tree_store_append(doc_list[idx].tag_store, &(tv.tag_function), NULL);
Modified: trunk/src/ui_utils.c =================================================================== --- trunk/src/ui_utils.c 2006-10-13 23:04:04 UTC (rev 894) +++ trunk/src/ui_utils.c 2006-10-13 23:47:18 UTC (rev 895) @@ -240,6 +240,7 @@ switch (((GeanySymbol*)tmp->data)->type) { case tm_tag_prototype_t: + case tm_tag_method_t: case tm_tag_function_t: { if (tv.tag_function.stamp == -1) break; @@ -263,6 +264,7 @@ break; } case tm_tag_member_t: + case tm_tag_field_t: { if (tv.tag_member.stamp == -1) break; gtk_tree_store_append(doc_list[idx].tag_store, &iter, &(tv.tag_member)); @@ -273,6 +275,7 @@ case tm_tag_enum_t: case tm_tag_union_t: case tm_tag_struct_t: + case tm_tag_interface_t: { if (tv.tag_struct.stamp == -1) break; gtk_tree_store_append(doc_list[idx].tag_store, &iter, &(tv.tag_struct)); @@ -287,6 +290,7 @@ break; } case tm_tag_namespace_t: + case tm_tag_package_t: { if (tv.tag_namespace.stamp == -1) break; gtk_tree_store_append(doc_list[idx].tag_store, &iter, &(tv.tag_namespace));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.