From 943ef73645d0c1ccabf2c09a2a3047a6579c4333 Mon Sep 17 00:00:00 2001 From: Nils Christian Ehmke <nie@informatik.uni-kiel.de> Date: Sun, 22 Jan 2012 12:58:54 +0100 Subject: [PATCH] Added comments; Imported the clean-up and formatter from Kieker; Modified the structure of a project. --- .../.settings/org.eclipse.jdt.core.prefs | 282 +++++++++++++++++- .../.settings/org.eclipse.jdt.ui.prefs | 57 ++++ .../webgui/beans/AvailablePluginsBean.java | 28 +- .../webgui/beans/AvailableProjectsBean.java | 11 +- .../kieker/webgui/beans/CurrentThemeBean.java | 53 +++- .../beans/DependencyUploadController.java | 47 +-- .../webgui/beans/SelectedProjectBean.java | 79 +++-- .../java/kieker/webgui/beans/StringBean.java | 47 ++- .../webgui/beans/ThemeSwitcherBean.java | 92 +++--- .../converter/MIProjectToStringConverter.java | 27 +- Kieker.WebGUI/src/main/webapp/main.xhtml | 16 +- 11 files changed, 575 insertions(+), 164 deletions(-) create mode 100644 Kieker.WebGUI/.settings/org.eclipse.jdt.ui.prefs diff --git a/Kieker.WebGUI/.settings/org.eclipse.jdt.core.prefs b/Kieker.WebGUI/.settings/org.eclipse.jdt.core.prefs index 5a0ff7cf..8a7bab01 100644 --- a/Kieker.WebGUI/.settings/org.eclipse.jdt.core.prefs +++ b/Kieker.WebGUI/.settings/org.eclipse.jdt.core.prefs @@ -1,6 +1,286 @@ -#Sat Jan 21 18:45:36 CET 2012 +#Sun Jan 22 11:49:37 CET 2012 eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=165 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=1 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=165 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/Kieker.WebGUI/.settings/org.eclipse.jdt.ui.prefs b/Kieker.WebGUI/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..213ac915 --- /dev/null +++ b/Kieker.WebGUI/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,57 @@ +#Sun Jan 22 11:49:37 CET 2012 +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=true +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=true +cleanup.always_use_this_for_non_static_field_access=true +cleanup.always_use_this_for_non_static_method_access=true +cleanup.convert_to_enhanced_for_loop=true +cleanup.correct_indentation=true +cleanup.format_source_code=true +cleanup.format_source_code_changes_only=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=true +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=true +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=false +cleanup.organize_imports=true +cleanup.qualify_static_field_accesses_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=true +cleanup.remove_private_constructors=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_parentheses_in_expressions=true +cleanup.use_this_for_non_static_field_access=true +cleanup.use_this_for_non_static_field_access_only_if_necessary=false +cleanup.use_this_for_non_static_method_access=true +cleanup.use_this_for_non_static_method_access_only_if_necessary=false +cleanup_profile=_Kieker - Clean Up +cleanup_settings_version=2 +eclipse.preferences.version=1 +formatter_profile=_Kieker - Profile +formatter_settings_version=12 diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailablePluginsBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailablePluginsBean.java index cfef25fd..3003e968 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailablePluginsBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailablePluginsBean.java @@ -1,26 +1,32 @@ package kieker.webgui.beans; +import javax.enterprise.context.SessionScoped; import javax.faces.bean.ManagedBean; -import javax.faces.bean.RequestScoped; + import org.primefaces.model.DefaultTreeNode; import org.primefaces.model.TreeNode; /** - * This bean can be used to store and read the currently available plugins for - * the current main project. - * + * This bean can be used to store and read the currently available plugins for the current main project. + * * @author Nils Christian Ehmke */ @ManagedBean -@RequestScoped +@SessionScoped public class AvailablePluginsBean { - public synchronized TreeNode getAvailablePluginsRoot() { - TreeNode root = new DefaultTreeNode("Root", null); + /** + * Delivers the available plugins. + * + * @return A tree with the available plugins. + */ + @SuppressWarnings(value = { "unused" }) + public TreeNode getAvailablePluginsRoot() { + TreeNode root = new DefaultTreeNode("Root", null); - final TreeNode readerNode = new DefaultTreeNode("Reader", root); - final TreeNode analysisPluginsNode = new DefaultTreeNode("AnalysisPlugins", root); + final TreeNode readerNode = new DefaultTreeNode("Reader", root); + final TreeNode analysisPluginsNode = new DefaultTreeNode("AnalysisPlugins", root); - return root; - } + return root; + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailableProjectsBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailableProjectsBean.java index b10444f7..3f849ce1 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailableProjectsBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/AvailableProjectsBean.java @@ -2,15 +2,16 @@ package kieker.webgui.beans; import java.io.File; import java.util.ArrayList; -import java.util.Enumeration; import java.util.List; + import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; -import javax.servlet.http.HttpSession; + import kieker.analysis.AnalysisController; import kieker.analysis.model.analysisMetaModel.MIProject; import kieker.analysis.model.analysisMetaModel.impl.MAnalysisMetaModelFactory; + import org.primefaces.model.DefaultTreeNode; import org.primefaces.model.TreeNode; @@ -37,9 +38,12 @@ public class AvailableProjectsBean { project.setName(projectName); try { - File dir = new File(PROJECT_DIR); + File dir = new File(PROJECT_DIR + "/" + projectName); if (!dir.exists()) { dir.mkdir(); + } else { + /* The project exists already. */ + return false; } File f = new File(dir + "/" + projectName + ".xml"); new AnalysisController(project).saveToFile(f, projectName); @@ -56,6 +60,7 @@ public class AvailableProjectsBean { return projects.add(project); } + @SuppressWarnings(value = { "unused" }) public synchronized TreeNode getProjectsRoot() { TreeNode root = new DefaultTreeNode("Root", null); diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/CurrentThemeBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/CurrentThemeBean.java index a54b603e..a49d66c4 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/CurrentThemeBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/CurrentThemeBean.java @@ -6,28 +6,51 @@ import javax.faces.bean.SessionScoped; import javax.faces.context.FacesContext; /** - * + * This bean can be used for a single session of a user and stores the currently used theme (look and feel) for this user. Currently the default value being used is + * the "glass-x"-theme, if none is find within the parameters of the faces context. + * * @author Nils Christian Ehmke + * + * @see ThemeSwitcherBean */ @ManagedBean @SessionScoped public class CurrentThemeBean { - private String theme; + private static final String DEFAULT_THEME = "glass-x"; + private String theme; - public CurrentThemeBean() { - theme = "glass-x"; - Map<String, String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); - if (params.containsKey("theme")) { - theme = params.get("theme"); - } - } + /** + * Creates a new instance of this class. + */ + public CurrentThemeBean() { + /* Get the parameters within the current context. */ + Map<String, String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); + /* Try to find the default theme. */ + if (params.containsKey("theme")) { + theme = params.get("theme"); + } else { + /* Use the default theme. */ + theme = DEFAULT_THEME; + } + } - public String getTheme() { - return theme; - } + /** + * Delivers the current theme. + * + * @return The currently used theme. + */ + public String getTheme() { + return theme; + } - public void setTheme(String theme) { - this.theme = theme; - } + /** + * Sets the value of this bean. + * + * @param theme + * The new theme to be stored within this instance. + */ + public void setTheme(String theme) { + this.theme = theme; + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/DependencyUploadController.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/DependencyUploadController.java index 66fc730e..ff5fc66c 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/DependencyUploadController.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/DependencyUploadController.java @@ -1,27 +1,40 @@ package kieker.webgui.beans; -import org.primefaces.model.UploadedFile; -import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; +import javax.faces.bean.SessionScoped; + +import kieker.analysis.model.analysisMetaModel.MIProject; + +import org.primefaces.model.UploadedFile; /** - * + * * @author Nils Christian Ehmke */ @ManagedBean -@ApplicationScoped +@SessionScoped public class DependencyUploadController { - - private UploadedFile file; - - public UploadedFile getFile() { - return file; - } - - public void setFile(UploadedFile file) { - this.file = file; - } - - public void upload() { - } + + private UploadedFile file; + private MIProject project; + + public MIProject getProject() { + return project; + } + + public void setProject(MIProject project) { + this.project = project; + } + + public UploadedFile getFile() { + return file; + } + + public void setFile(UploadedFile file) { + this.file = file; + } + + public void upload() { + + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/SelectedProjectBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/SelectedProjectBean.java index 20877afc..04d6dd7b 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/SelectedProjectBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/SelectedProjectBean.java @@ -10,49 +10,48 @@ import kieker.analysis.model.analysisMetaModel.MIProject; import org.primefaces.model.TreeNode; /** - * This bean can be used to store the currently selected project and the current - * main project for the user. - * + * This bean can be used to store the currently selected project and the current main project for the user within a session. + * * @author Nils Christian Ehmke */ @ManagedBean @SessionScoped public class SelectedProjectBean { - - private TreeNode selectedNode; - private MIProject selectedProject; - private MIProject mainProject; - - public MIProject getMainProject() { - return mainProject; - } - - public void setMainProject(MIProject mainProject) { - this.mainProject = mainProject; - } - - public MIProject getSelectedProject() { - return selectedProject; - } - - public void setSelectedProject(MIProject selectedProject) { - this.selectedProject = selectedProject; - } - - public TreeNode getSelectedNode() { - return selectedNode; - } - - public void setSelectedNode(TreeNode selectedNode) { - this.selectedNode = selectedNode; - if (selectedNode != null && selectedNode.getData() instanceof MIProject) { - setSelectedProject((MIProject) selectedNode.getData()); - } else { - setSelectedProject(null); - } - } - - public String getFontWeight(MIProject project) { - return (project == mainProject) ? "bold" : "normal"; - } + + private TreeNode selectedNode; + private MIProject selectedProject; + private MIProject mainProject; + + public MIProject getMainProject() { + return mainProject; + } + + public void setMainProject(MIProject mainProject) { + this.mainProject = mainProject; + } + + public MIProject getSelectedProject() { + return selectedProject; + } + + public void setSelectedProject(MIProject selectedProject) { + this.selectedProject = selectedProject; + } + + public TreeNode getSelectedNode() { + return selectedNode; + } + + public void setSelectedNode(TreeNode selectedNode) { + this.selectedNode = selectedNode; + if (selectedNode != null && selectedNode.getData() instanceof MIProject) { + setSelectedProject((MIProject) selectedNode.getData()); + } else { + setSelectedProject(null); + } + } + + public String getFontWeight(MIProject project) { + return (project == mainProject) ? "bold" : "normal"; + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/StringBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/StringBean.java index 925e44bd..2f16cae3 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/StringBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/StringBean.java @@ -4,29 +4,46 @@ import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; /** - * This bean can be used to store a simple string. - * + * This simple bean can be used to store a string. It can be used for a single request. + * * @author Nils Christian Ehmke */ @ManagedBean @RequestScoped public class StringBean { - private String string; + private String string; - public StringBean() { - this.string = ""; - } + /** + * Creates a new instance of this bean and initializes it with an empty string. + */ + public StringBean() { + this.string = ""; + } - public String getString() { - return string; - } + /** + * Delivers the value of this bean. + * + * @return The current string stored within this bean. + */ + public String getString() { + return string; + } - public void setString(String string) { - this.string = string; - } + /** + * Sets the value of this bean. + * + * @param string + * The new string to be stored within this bean. + */ + public void setString(String string) { + this.string = string; + } - public void clear() { - this.string = ""; - } + /** + * Clears the bean; in other words: Sets the value of this bean to an empty string. + */ + public void clear() { + this.string = ""; + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/ThemeSwitcherBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/ThemeSwitcherBean.java index 89704d63..23156fe7 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/ThemeSwitcherBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/ThemeSwitcherBean.java @@ -5,55 +5,65 @@ import java.util.TreeMap; import javax.annotation.PostConstruct; import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; -import javax.faces.context.FacesContext; /** - * + * This bean is an application-wide bean, responsible for storing the possible themes (look and feels) available within the program. It is not possible to import new + * themes during runtime. + * * @author Nils Christian Ehmke */ @ManagedBean @ApplicationScoped public class ThemeSwitcherBean { - private Map<String, String> themes; + private Map<String, String> themes; - public Map<String, String> getThemes() { - return themes; - } + /** + * Returns the available themes. + * + * @return A map containing the user readable names of the themes as a key and the actual theme-names as the corresponding value. + */ + public Map<String, String> getThemes() { + return themes; + } - @PostConstruct - public void init() { - themes = new TreeMap<String, String>(); - themes.put("Aristo", "aristo"); - themes.put("Black-Tie", "black-tie"); - themes.put("Blitzer", "blitzer"); - themes.put("Bluesky", "bluesky"); - themes.put("Casablanca", "casablanca"); - themes.put("Cupertino", "cupertino"); - themes.put("Dark-Hive", "dark-hive"); - themes.put("Dot-Luv", "dot-luv"); - themes.put("Eggplant", "eggplant"); - themes.put("Excite-Bike", "excite-bike"); - themes.put("Flick", "flick"); - themes.put("Glass-X", "glass-x"); - themes.put("Hot-Sneaks", "hot-sneaks"); - themes.put("Humanity", "humanity"); - themes.put("Le-Frog", "le-frog"); - themes.put("Midnight", "midnight"); - themes.put("Mint-Choc", "mint-choc"); - themes.put("Overcast", "overcast"); - themes.put("Pepper-Grinder", "pepper-grinder"); - themes.put("Redmond", "redmond"); - themes.put("Rocket", "rocket"); - themes.put("Sam", "sam"); - themes.put("Smoothness", "smoothness"); - themes.put("South-Street", "south-street"); - themes.put("Start", "start"); - themes.put("Sunny", "sunny"); - themes.put("Swanky-Purse", "swanky-purse"); - themes.put("Trontastic", "trontastic"); - themes.put("UI-Darkness", "ui-darkness"); - themes.put("UI-Lightness", "ui-lightness"); - themes.put("Vader", "vader"); - } + /** + * Initializes the bean. If one wants to add new themes to the program, this is the right place. + */ + @PostConstruct + public void init() { + themes = new TreeMap<String, String>(); + + themes.put("Aristo", "aristo"); + themes.put("Black-Tie", "black-tie"); + themes.put("Blitzer", "blitzer"); + themes.put("Bluesky", "bluesky"); + themes.put("Casablanca", "casablanca"); + themes.put("Cupertino", "cupertino"); + themes.put("Dark-Hive", "dark-hive"); + themes.put("Dot-Luv", "dot-luv"); + themes.put("Eggplant", "eggplant"); + themes.put("Excite-Bike", "excite-bike"); + themes.put("Flick", "flick"); + themes.put("Glass-X", "glass-x"); + themes.put("Hot-Sneaks", "hot-sneaks"); + themes.put("Humanity", "humanity"); + themes.put("Le-Frog", "le-frog"); + themes.put("Midnight", "midnight"); + themes.put("Mint-Choc", "mint-choc"); + themes.put("Overcast", "overcast"); + themes.put("Pepper-Grinder", "pepper-grinder"); + themes.put("Redmond", "redmond"); + themes.put("Rocket", "rocket"); + themes.put("Sam", "sam"); + themes.put("Smoothness", "smoothness"); + themes.put("South-Street", "south-street"); + themes.put("Start", "start"); + themes.put("Sunny", "sunny"); + themes.put("Swanky-Purse", "swanky-purse"); + themes.put("Trontastic", "trontastic"); + themes.put("UI-Darkness", "ui-darkness"); + themes.put("UI-Lightness", "ui-lightness"); + themes.put("Vader", "vader"); + } } diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/converter/MIProjectToStringConverter.java b/Kieker.WebGUI/src/main/java/kieker/webgui/converter/MIProjectToStringConverter.java index 62af7d4f..34e1475f 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/converter/MIProjectToStringConverter.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/converter/MIProjectToStringConverter.java @@ -7,21 +7,24 @@ import javax.faces.convert.FacesConverter; import kieker.analysis.model.analysisMetaModel.MIProject; /** - * This converter can be used to convert an instance of <i>MIProject</i> to a - * human readle string, but <b>not</b> vice versa. - * + * This converter can be used to convert an instance of <i>MIProject</i> to a human readable string, but <b>not</b> vice versa. + * * @author Nils Christian Ehmke */ -@FacesConverter(value = "kieker.webgui.converter.MIProjectToStringConverter") +@FacesConverter(value = MIProjectToStringConverter.NAME) public class MIProjectToStringConverter implements Converter { - @Override - public Object getAsObject(FacesContext fc, UIComponent uic, String string) { - return null; - } + public static final String NAME = "kieker.webgui.converter.MIProjectToStringConverter"; + /** + * Delivers always null + */ + @Override + public Object getAsObject(FacesContext fc, UIComponent uic, String string) { + return null; + } - @Override - public String getAsString(FacesContext fc, UIComponent uic, Object o) { - return (o == null || !(o instanceof MIProject)) ? null : ((MIProject) o).getName(); - } + @Override + public String getAsString(FacesContext fc, UIComponent uic, Object o) { + return (o == null || !(o instanceof MIProject)) ? null : ((MIProject) o).getName(); + } } diff --git a/Kieker.WebGUI/src/main/webapp/main.xhtml b/Kieker.WebGUI/src/main/webapp/main.xhtml index 8adbf794..e70cbabd 100644 --- a/Kieker.WebGUI/src/main/webapp/main.xhtml +++ b/Kieker.WebGUI/src/main/webapp/main.xhtml @@ -59,7 +59,7 @@ </p:treeNode> </p:tree> - <p:contextMenu for="ProjectsListTree"> + <p:contextMenu for="ProjectsListTree" nodeType="project"> <p:menuitem value="New Project" onclick="NewProjectDialog.show();" ajax="true" update="ProjectsList"/> <p:menuitem value="Save Project" ajax="true" /> <p:menuitem value="Set as Main Project" ajax="true" action="#{selectedProjectBean.setMainProject(selectedProjectBean.getSelectedProject())}" update="ProjectsListTree"/> @@ -67,15 +67,13 @@ <p:menuitem value="Delete Project" ajax="true" /> <p:menuitem value="Reset Project" ajax="true" /> </p:contextMenu> - <p:contextMenu for="ProjectsListTree" > - <p:menuitem value="New Project" onclick="NewProjectDialog.show();" ajax="true" update="ProjectsList"/> - <p:menuitem value="Save Project" ajax="true" /> - <p:menuitem value="Set as Main Project" ajax="true" action="#{selectedProjectBean.setMainProject(selectedProjectBean.getSelectedProject())}" update="ProjectsListTree"/> - <p:separator/> - <p:menuitem value="Delete Project" ajax="true" /> - <p:menuitem value="Reset Project" ajax="true" /> + <p:contextMenu for="ProjectsListTree" nodeType="dependencies"> + <p:menuitem value="Add Dependency" ajax="true" onclick="DependenciesUploadDialog.show();"/> + <p:menuitem value="Delete Dependency" ajax="true" /> + </p:contextMenu> + <p:contextMenu for="ProjectsListTree" nodeType="usedPlugins"> + </p:contextMenu> - </h:form> </p:layoutUnit> -- GitLab