Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration')
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.classpath14
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.settings/org.eclipse.jdt.core.prefs582
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/about.html56
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/build.properties20
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/plugin.xml16
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/pom.xml20
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd464
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Activator.java150
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Configuration.java208
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/ConfigurationService.java242
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/CustomizeActionBars.java354
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PapyrusPerspectiveListener.java748
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PerspectiveConfigurator.java76
13 files changed, 1475 insertions, 1475 deletions
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.classpath b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.classpath
index 2d1a4302f04..64c5e31b7a2 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.classpath
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.settings/org.eclipse.jdt.core.prefs b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.settings/org.eclipse.jdt.core.prefs
index 4759947300a..c585cc455ae 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/.settings/org.eclipse.jdt.core.prefs
@@ -1,291 +1,291 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
-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_lambda_body=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=260
-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=2
-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_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not 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=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=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_lambda_arrow=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_lambda_arrow=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=260
-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=5
-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
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+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_lambda_body=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=260
+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=2
+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_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not 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=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=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_lambda_arrow=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_lambda_arrow=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=260
+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=5
+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/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/about.html b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/about.html
index 82d49bf5f81..d35d5aed64c 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/about.html
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/about.html
@@ -1,28 +1,28 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/build.properties b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/build.properties
index 976e4c9e418..6dfb1b3e6ba 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/build.properties
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/build.properties
@@ -1,11 +1,11 @@
-#
-#Mon Sep 12 09:30:21 CEST 2011
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- plugin.properties,\
- schema/,\
- about.html
-output.. = bin/
-src.includes = about.html
+#
+#Mon Sep 12 09:30:21 CEST 2011
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties,\
+ schema/,\
+ about.html
+output.. = bin/
+src.includes = about.html
source.. = src/ \ No newline at end of file
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/plugin.xml b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/plugin.xml
index 4b29545eab0..68c35897bc2 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/plugin.xml
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/plugin.xml
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension-point
- id="org.eclipse.papyrus.editor.perspectiveconfiguration"
- name="org.eclipse.papyrus.editor.perspectiveconfiguration"
- schema="schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd"/>
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension-point
+ id="org.eclipse.papyrus.editor.perspectiveconfiguration"
+ name="org.eclipse.papyrus.editor.perspectiveconfiguration"
+ schema="schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd"/>
+</plugin>
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/pom.xml b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/pom.xml
index 9bea53b5ee3..560c9e01a29 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/pom.xml
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/pom.xml
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.eclipse.papyrus</groupId>
- <artifactId>org.eclipse.papyrus-editor</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>org.eclipse.papyrus.editor.perspectiveconfiguration</artifactId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus-editor</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.papyrus.editor.perspectiveconfiguration</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
</project>
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd
index 1948179b2b8..bc6a23c5e3c 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/schema/org.eclipse.papyrus.editor.perspectiveconfiguration.exsd
@@ -1,232 +1,232 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.papyrus.editor.perspectiveconfiguration" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.papyrus.editor.perspectiveconfiguration" id="org.eclipse.papyrus.editor.perspectiveconfiguration" name="org.eclipse.papyrus.editor.perspectiveconfiguration"/>
- </appinfo>
- <documentation>
- This extension point is used to configure a set of perpsectives.
-For each perspective, only given action set, menu or category can be shown. It is only possible to configure the menu preference that can be seen for a perspective.
-I is also possible to set if a perspective can be customize by the the eclipse dialog box.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="configuration"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="configuration">
- <annotation>
- <documentation>
- this is a configuration for a perspective
- </documentation>
- </annotation>
- <complexType>
- <sequence>
- <element ref="actionSet" minOccurs="0" maxOccurs="unbounded"/>
- <element ref="menu" minOccurs="0" maxOccurs="unbounded"/>
- <element ref="toolbar" minOccurs="0" maxOccurs="unbounded"/>
- <element ref="preferencePage" minOccurs="0" maxOccurs="unbounded"/>
- <element ref="category" minOccurs="0" maxOccurs="unbounded"/>
- <element ref="command" minOccurs="0" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="perspectiveID" type="string" use="required">
- <annotation>
- <documentation>
- this the is of the perpective that will be configured.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="actionSet">
- <annotation>
- <documentation>
- This is the list of action Set that will be displayed
- </documentation>
- </annotation>
- <complexType>
- <attribute name="actionSetID" type="string">
- <annotation>
- <documentation>
- Id of the action Set to display
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.actionSets/actionSet/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="menu">
- <complexType>
- <attribute name="menuID" type="string" use="required">
- <annotation>
- <documentation>
- the id of the menu that we want to display
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.menus/menuContribution/menu/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="toolbar">
- <complexType>
- <attribute name="toolbarID" type="string" use="required">
- <annotation>
- <documentation>
- the id of the tool bar that we want to display
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.menus/menuContribution/toolbar/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="preferencePage">
- <complexType>
- <attribute name="preferencepageID" type="string" use="required">
- <annotation>
- <documentation>
- the id of the preference page that we want to display
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.preferencePages/page/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="category">
- <complexType>
- <attribute name="categoryID" type="string" use="required">
- <annotation>
- <documentation>
- this is the id of the category (a set of commands) that we want to display.
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="command">
- <complexType>
- <attribute name="commandID" type="string" use="required">
- <annotation>
- <documentation>
- this is the ID of a command that we want to display
- </documentation>
- <appinfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- 0.7.0
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiinfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- /*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.papyrus.editor.perspectiveconfiguration" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.eclipse.papyrus.editor.perspectiveconfiguration" id="org.eclipse.papyrus.editor.perspectiveconfiguration" name="org.eclipse.papyrus.editor.perspectiveconfiguration"/>
+ </appinfo>
+ <documentation>
+ This extension point is used to configure a set of perpsectives.
+For each perspective, only given action set, menu or category can be shown. It is only possible to configure the menu preference that can be seen for a perspective.
+I is also possible to set if a perspective can be customize by the the eclipse dialog box.
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="configuration"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="configuration">
+ <annotation>
+ <documentation>
+ this is a configuration for a perspective
+ </documentation>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="actionSet" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="menu" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="toolbar" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="preferencePage" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="category" minOccurs="0" maxOccurs="unbounded"/>
+ <element ref="command" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="perspectiveID" type="string" use="required">
+ <annotation>
+ <documentation>
+ this the is of the perpective that will be configured.
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="actionSet">
+ <annotation>
+ <documentation>
+ This is the list of action Set that will be displayed
+ </documentation>
+ </annotation>
+ <complexType>
+ <attribute name="actionSetID" type="string">
+ <annotation>
+ <documentation>
+ Id of the action Set to display
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.actionSets/actionSet/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="menu">
+ <complexType>
+ <attribute name="menuID" type="string" use="required">
+ <annotation>
+ <documentation>
+ the id of the menu that we want to display
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.menus/menuContribution/menu/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="toolbar">
+ <complexType>
+ <attribute name="toolbarID" type="string" use="required">
+ <annotation>
+ <documentation>
+ the id of the tool bar that we want to display
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.menus/menuContribution/toolbar/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="preferencePage">
+ <complexType>
+ <attribute name="preferencepageID" type="string" use="required">
+ <annotation>
+ <documentation>
+ the id of the preference page that we want to display
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.preferencePages/page/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="category">
+ <complexType>
+ <attribute name="categoryID" type="string" use="required">
+ <annotation>
+ <documentation>
+ this is the id of the category (a set of commands) that we want to display.
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="command">
+ <complexType>
+ <attribute name="commandID" type="string" use="required">
+ <annotation>
+ <documentation>
+ this is the ID of a command that we want to display
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ 0.7.0
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="copyright"/>
+ </appinfo>
+ <documentation>
+ /*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+ </documentation>
+ </annotation>
+
+</schema>
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Activator.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Activator.java
index 728374c0ddf..c2ad4cdbd9a 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Activator.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Activator.java
@@ -1,75 +1,75 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.editor.perspectiveconfiguration"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /** Logging helper */
- public static LogHelper log;
-
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- // register the login helper
- log = new LogHelper(plugin);
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.editor.perspectiveconfiguration"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /** Logging helper */
+ public static LogHelper log;
+
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ // register the login helper
+ log = new LogHelper(plugin);
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Configuration.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Configuration.java
index ac6e83e106d..3ef1e15542f 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Configuration.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/Configuration.java
@@ -1,104 +1,104 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import java.util.ArrayList;
-
-/**
- * this class is a structure that contains a configuration
- *
- */
-public class Configuration {
-
- protected String perspectiveID = null;
-
- protected ArrayList<String> actionSetIDList = new ArrayList<String>();
-
- protected ArrayList<String> menuIDList = new ArrayList<String>();
-
- protected ArrayList<String> toolBarIDList = new ArrayList<String>();
-
- protected ArrayList<String> preferenceIDList = new ArrayList<String>();
-
- protected ArrayList<String> categoryIDList = new ArrayList<String>();
-
- protected ArrayList<String> commandIDList = new ArrayList<String>();
-
- public ArrayList<String> getCategoryIDList() {
- return categoryIDList;
- }
-
-
- public void addCategory(String id) {
- categoryIDList.add(id);
- }
-
- public void addCommandID(String id) {
- commandIDList.add(id);
- }
-
- public ArrayList<String> getCommandIDList() {
- return commandIDList;
- }
-
- public ArrayList<String> getActionSetIDList() {
- return actionSetIDList;
- }
-
- public void addActionSet(String id) {
- actionSetIDList.add(id);
- }
-
- public void addMenu(String id) {
- menuIDList.add(id);
- }
-
- public void addtoolBar(String id) {
- toolBarIDList.add(id);
- }
-
- public void addPreference(String id) {
- preferenceIDList.add(id);
- }
-
- public ArrayList<String> getMenuIDList() {
- return menuIDList;
- }
-
- public ArrayList<String> getToolBarID() {
- return toolBarIDList;
- }
-
- public ArrayList<String> getPreferenceID() {
- return preferenceIDList;
- }
-
- public String getPerspectiveID() {
- return perspectiveID;
- }
-
- public void setPerspectiveID(String perspectiveID) {
- this.perspectiveID = perspectiveID;
- }
-
- /**
- * constructor of a perspective
- *
- * @param perspectiveName
- */
- public Configuration(String perspectiveName) {
- setPerspectiveID(perspectiveName);
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import java.util.ArrayList;
+
+/**
+ * this class is a structure that contains a configuration
+ *
+ */
+public class Configuration {
+
+ protected String perspectiveID = null;
+
+ protected ArrayList<String> actionSetIDList = new ArrayList<String>();
+
+ protected ArrayList<String> menuIDList = new ArrayList<String>();
+
+ protected ArrayList<String> toolBarIDList = new ArrayList<String>();
+
+ protected ArrayList<String> preferenceIDList = new ArrayList<String>();
+
+ protected ArrayList<String> categoryIDList = new ArrayList<String>();
+
+ protected ArrayList<String> commandIDList = new ArrayList<String>();
+
+ public ArrayList<String> getCategoryIDList() {
+ return categoryIDList;
+ }
+
+
+ public void addCategory(String id) {
+ categoryIDList.add(id);
+ }
+
+ public void addCommandID(String id) {
+ commandIDList.add(id);
+ }
+
+ public ArrayList<String> getCommandIDList() {
+ return commandIDList;
+ }
+
+ public ArrayList<String> getActionSetIDList() {
+ return actionSetIDList;
+ }
+
+ public void addActionSet(String id) {
+ actionSetIDList.add(id);
+ }
+
+ public void addMenu(String id) {
+ menuIDList.add(id);
+ }
+
+ public void addtoolBar(String id) {
+ toolBarIDList.add(id);
+ }
+
+ public void addPreference(String id) {
+ preferenceIDList.add(id);
+ }
+
+ public ArrayList<String> getMenuIDList() {
+ return menuIDList;
+ }
+
+ public ArrayList<String> getToolBarID() {
+ return toolBarIDList;
+ }
+
+ public ArrayList<String> getPreferenceID() {
+ return preferenceIDList;
+ }
+
+ public String getPerspectiveID() {
+ return perspectiveID;
+ }
+
+ public void setPerspectiveID(String perspectiveID) {
+ this.perspectiveID = perspectiveID;
+ }
+
+ /**
+ * constructor of a perspective
+ *
+ * @param perspectiveName
+ */
+ public Configuration(String perspectiveName) {
+ setPerspectiveID(perspectiveName);
+ }
+
+}
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/ConfigurationService.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/ConfigurationService.java
index a2b0ef1a121..c05154f24d2 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/ConfigurationService.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/ConfigurationService.java
@@ -1,121 +1,121 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import java.util.HashMap;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Platform;
-
-/**
- * Take information form the extension point in order to configure Papyrus.
- */
-public class ConfigurationService {
-
- public static String PERSPECTIVE_CONFIGURATION_EXTENSION_POINT_ID = "org.eclipse.papyrus.editor.perspectiveconfiguration";
-
- public static String PERPSECTIVE_ID = "perspectiveID";
-
- public static String ACTION_SET = "actionSet";
-
- public static String ACTION_SET_ID = "actionSetID";
-
- public static String MENU = "menu";
-
- public static String MENU_ID = "menuID";
-
- public static String TOOLBAR = "toolbar";
-
- public static String TOOLBAR_ID = "toolbarID";
-
- public static String PREFERENCEPAGE = "preferencePage";
-
- public static String PREFERENCEPAGEID = "preferencepageID";
-
- public static String CATEGORY = "category";
-
- public static String CATEGORYID = "categoryID";
-
- public static String COMMAND = "command";
-
- public static String COMMANDID = "commandID";
-
-
- protected HashMap<String, Configuration> configurationMap = new HashMap<String, Configuration>();
-
- public ConfigurationService() {
- IConfigurationElement[] configElements = Platform.getExtensionRegistry().getConfigurationElementsFor(PERSPECTIVE_CONFIGURATION_EXTENSION_POINT_ID);
- for (int i = 0; i < configElements.length; i++) {
- constructAConfiguation(configElements[i]);
- }
- }
-
- protected void constructAConfiguation(IConfigurationElement iConfigurationElement) {
- try {
- String configName = iConfigurationElement.getAttribute(PERPSECTIVE_ID);
- if (!configurationMap.containsKey(configName) || configurationMap.get(configName) == null) {
- configurationMap.put(configName, new Configuration(configName));
- }
- Configuration configuration = configurationMap.get(configName);
-
- IConfigurationElement[] element = iConfigurationElement.getChildren(ACTION_SET);
- for (int i = 0; i < element.length; i++) {
- configuration.addActionSet(element[i].getAttribute(ACTION_SET_ID));
- }
- element = iConfigurationElement.getChildren(MENU);
- for (int i = 0; i < element.length; i++) {
- configuration.addMenu(element[i].getAttribute(MENU_ID));
- }
- element = iConfigurationElement.getChildren(TOOLBAR);
- for (int i = 0; i < element.length; i++) {
- configuration.addtoolBar(element[i].getAttribute(TOOLBAR_ID));
- }
- element = iConfigurationElement.getChildren(PREFERENCEPAGE);
- for (int i = 0; i < element.length; i++) {
- configuration.addPreference(element[i].getAttribute(PREFERENCEPAGEID));
- }
- element = iConfigurationElement.getChildren(CATEGORY);
- for (int i = 0; i < element.length; i++) {
- configuration.addCategory(element[i].getAttribute(CATEGORYID));
- }
-
- element = iConfigurationElement.getChildren(COMMAND);
- for (int i = 0; i < element.length; i++) {
- configuration.addCommandID(element[i].getAttribute(COMMANDID));
- }
- } catch (Exception e) {
- Activator.log.error("- " + iConfigurationElement + " can not be loaded ", e);
- }
- }
-
- /**
- *
- * @return a set of perspective id that has a configuration
- */
- protected Set<String> getPerspectiveList() {
- return configurationMap.keySet();
- }
-
- /**
- * get a configuration from a perspective ID
- *
- * @param perspectiveID
- * @return a configuration or null if a configuration is not defined for the given perspective ID
- */
- protected Configuration getConfiguration(String perspectiveID) {
- return configurationMap.get(perspectiveID);
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import java.util.HashMap;
+import java.util.Set;
+
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.Platform;
+
+/**
+ * Take information form the extension point in order to configure Papyrus.
+ */
+public class ConfigurationService {
+
+ public static String PERSPECTIVE_CONFIGURATION_EXTENSION_POINT_ID = "org.eclipse.papyrus.editor.perspectiveconfiguration";
+
+ public static String PERPSECTIVE_ID = "perspectiveID";
+
+ public static String ACTION_SET = "actionSet";
+
+ public static String ACTION_SET_ID = "actionSetID";
+
+ public static String MENU = "menu";
+
+ public static String MENU_ID = "menuID";
+
+ public static String TOOLBAR = "toolbar";
+
+ public static String TOOLBAR_ID = "toolbarID";
+
+ public static String PREFERENCEPAGE = "preferencePage";
+
+ public static String PREFERENCEPAGEID = "preferencepageID";
+
+ public static String CATEGORY = "category";
+
+ public static String CATEGORYID = "categoryID";
+
+ public static String COMMAND = "command";
+
+ public static String COMMANDID = "commandID";
+
+
+ protected HashMap<String, Configuration> configurationMap = new HashMap<String, Configuration>();
+
+ public ConfigurationService() {
+ IConfigurationElement[] configElements = Platform.getExtensionRegistry().getConfigurationElementsFor(PERSPECTIVE_CONFIGURATION_EXTENSION_POINT_ID);
+ for (int i = 0; i < configElements.length; i++) {
+ constructAConfiguation(configElements[i]);
+ }
+ }
+
+ protected void constructAConfiguation(IConfigurationElement iConfigurationElement) {
+ try {
+ String configName = iConfigurationElement.getAttribute(PERPSECTIVE_ID);
+ if (!configurationMap.containsKey(configName) || configurationMap.get(configName) == null) {
+ configurationMap.put(configName, new Configuration(configName));
+ }
+ Configuration configuration = configurationMap.get(configName);
+
+ IConfigurationElement[] element = iConfigurationElement.getChildren(ACTION_SET);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addActionSet(element[i].getAttribute(ACTION_SET_ID));
+ }
+ element = iConfigurationElement.getChildren(MENU);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addMenu(element[i].getAttribute(MENU_ID));
+ }
+ element = iConfigurationElement.getChildren(TOOLBAR);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addtoolBar(element[i].getAttribute(TOOLBAR_ID));
+ }
+ element = iConfigurationElement.getChildren(PREFERENCEPAGE);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addPreference(element[i].getAttribute(PREFERENCEPAGEID));
+ }
+ element = iConfigurationElement.getChildren(CATEGORY);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addCategory(element[i].getAttribute(CATEGORYID));
+ }
+
+ element = iConfigurationElement.getChildren(COMMAND);
+ for (int i = 0; i < element.length; i++) {
+ configuration.addCommandID(element[i].getAttribute(COMMANDID));
+ }
+ } catch (Exception e) {
+ Activator.log.error("- " + iConfigurationElement + " can not be loaded ", e);
+ }
+ }
+
+ /**
+ *
+ * @return a set of perspective id that has a configuration
+ */
+ protected Set<String> getPerspectiveList() {
+ return configurationMap.keySet();
+ }
+
+ /**
+ * get a configuration from a perspective ID
+ *
+ * @param perspectiveID
+ * @return a configuration or null if a configuration is not defined for the given perspective ID
+ */
+ protected Configuration getConfiguration(String perspectiveID) {
+ return configurationMap.get(perspectiveID);
+ }
+}
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/CustomizeActionBars.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/CustomizeActionBars.java
index ea2e1ebf00f..6fda82bef53 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/CustomizeActionBars.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/CustomizeActionBars.java
@@ -1,177 +1,177 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import java.util.List;
-
-import org.eclipse.jface.action.CoolBarManager;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.ICoolBarManager;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.IStatusLineManager;
-import org.eclipse.jface.action.IToolBarManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.StatusLineManager;
-import org.eclipse.jface.action.ToolBarManager;
-import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem;
-import org.eclipse.jface.internal.provisional.action.ToolBarContributionItem2;
-import org.eclipse.ui.IActionBars2;
-import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
-import org.eclipse.ui.internal.provisional.application.IActionBarConfigurer2;
-import org.eclipse.ui.internal.registry.IActionSetDescriptor;
-import org.eclipse.ui.services.IServiceLocator;
-
-
-/**
- * this class is used to collection all information about menu, cool bar, statusline...
- *
- */
-public class CustomizeActionBars implements IActionBarConfigurer2, IActionBars2 {
-
- protected List<IActionSetDescriptor> actionSet = null;
-
-
- /**
- * get the list of action set
- *
- * @return
- */
- public List<IActionSetDescriptor> getActionSet() {
- return actionSet;
- }
-
- /**
- * set the list of action Set
- *
- * @param actionSet
- */
- public void setActionSet(List<IActionSetDescriptor> actionSet) {
- this.actionSet = actionSet;
- }
-
- protected MenuManager menuManager = new MenuManager();
-
- protected CoolBarManager coolBarManager = new CoolBarManager();
-
- protected StatusLineManager statusLineManager = new StatusLineManager();
-
- protected ToolBarManager toolBarManager = new ToolBarManager();
-
- /**
- * Create a new instance of this class.
- *
- * @param configurer
- * the configurer
- */
- public CustomizeActionBars(IWorkbenchWindowConfigurer configurer) {
- }
-
- /**
- * do not call this method
- */
- public IWorkbenchWindowConfigurer getWindowConfigurer() {
- return null;
- }
-
- /**
- * get the manager in charge to display all menu
- */
-
- public IMenuManager getMenuManager() {
- return menuManager;
- }
-
- /**
- * the manager in charge to display the status line
- */
- public IStatusLineManager getStatusLineManager() {
- return statusLineManager;
- }
-
- /**
- * the manager in charge to display the cool bar, this also the tool bar in eclipse
- */
- public ICoolBarManager getCoolBarManager() {
- return coolBarManager;
- }
-
- /**
- * see the getCoolBarManager
- */
- public IToolBarManager getToolBarManager() {
- return toolBarManager;
- }
-
- /**
- * {@inheritDoc}
- */
- public void setGlobalActionHandler(String actionID, IAction handler) {
- }
-
- /**
- * {@inheritDoc}
- */
- public void updateActionBars() {
- }
-
- /**
- * {@inheritDoc}
- */
- public void clearGlobalActionHandlers() {
- }
-
- /**
- * {@inheritDoc}
- */
- public IAction getGlobalActionHandler(String actionId) {
- return null;
- }
-
- public void registerGlobalAction(IAction action) {
- }
-
- /**
- * Clean up the action bars.
- */
- public void dispose() {
- coolBarManager.dispose();
- menuManager.dispose();
- statusLineManager.dispose();
- toolBarManager.dispose();
- }
-
- /**
- * {@inheritDoc}
- */
- public final IServiceLocator getServiceLocator() {
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public IToolBarManager createToolBarManager() {
- return toolBarManager;
- }
-
- /**
- * {@inheritDoc}
- */
- public IToolBarContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) {
- return new ToolBarContributionItem2(toolBarManager, id);
- }
-
-
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import java.util.List;
+
+import org.eclipse.jface.action.CoolBarManager;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.ICoolBarManager;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IStatusLineManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.StatusLineManager;
+import org.eclipse.jface.action.ToolBarManager;
+import org.eclipse.jface.internal.provisional.action.IToolBarContributionItem;
+import org.eclipse.jface.internal.provisional.action.ToolBarContributionItem2;
+import org.eclipse.ui.IActionBars2;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.internal.provisional.application.IActionBarConfigurer2;
+import org.eclipse.ui.internal.registry.IActionSetDescriptor;
+import org.eclipse.ui.services.IServiceLocator;
+
+
+/**
+ * this class is used to collection all information about menu, cool bar, statusline...
+ *
+ */
+public class CustomizeActionBars implements IActionBarConfigurer2, IActionBars2 {
+
+ protected List<IActionSetDescriptor> actionSet = null;
+
+
+ /**
+ * get the list of action set
+ *
+ * @return
+ */
+ public List<IActionSetDescriptor> getActionSet() {
+ return actionSet;
+ }
+
+ /**
+ * set the list of action Set
+ *
+ * @param actionSet
+ */
+ public void setActionSet(List<IActionSetDescriptor> actionSet) {
+ this.actionSet = actionSet;
+ }
+
+ protected MenuManager menuManager = new MenuManager();
+
+ protected CoolBarManager coolBarManager = new CoolBarManager();
+
+ protected StatusLineManager statusLineManager = new StatusLineManager();
+
+ protected ToolBarManager toolBarManager = new ToolBarManager();
+
+ /**
+ * Create a new instance of this class.
+ *
+ * @param configurer
+ * the configurer
+ */
+ public CustomizeActionBars(IWorkbenchWindowConfigurer configurer) {
+ }
+
+ /**
+ * do not call this method
+ */
+ public IWorkbenchWindowConfigurer getWindowConfigurer() {
+ return null;
+ }
+
+ /**
+ * get the manager in charge to display all menu
+ */
+
+ public IMenuManager getMenuManager() {
+ return menuManager;
+ }
+
+ /**
+ * the manager in charge to display the status line
+ */
+ public IStatusLineManager getStatusLineManager() {
+ return statusLineManager;
+ }
+
+ /**
+ * the manager in charge to display the cool bar, this also the tool bar in eclipse
+ */
+ public ICoolBarManager getCoolBarManager() {
+ return coolBarManager;
+ }
+
+ /**
+ * see the getCoolBarManager
+ */
+ public IToolBarManager getToolBarManager() {
+ return toolBarManager;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void setGlobalActionHandler(String actionID, IAction handler) {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void updateActionBars() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void clearGlobalActionHandlers() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IAction getGlobalActionHandler(String actionId) {
+ return null;
+ }
+
+ public void registerGlobalAction(IAction action) {
+ }
+
+ /**
+ * Clean up the action bars.
+ */
+ public void dispose() {
+ coolBarManager.dispose();
+ menuManager.dispose();
+ statusLineManager.dispose();
+ toolBarManager.dispose();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public final IServiceLocator getServiceLocator() {
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IToolBarManager createToolBarManager() {
+ return toolBarManager;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public IToolBarContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) {
+ return new ToolBarContributionItem2(toolBarManager, id);
+ }
+
+
+
+}
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PapyrusPerspectiveListener.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PapyrusPerspectiveListener.java
index 63e53463758..2658ff4725a 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PapyrusPerspectiveListener.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PapyrusPerspectiveListener.java
@@ -1,374 +1,374 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-
-import org.eclipse.jface.action.IContributionItem;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.preference.IPreferenceNode;
-import org.eclipse.jface.preference.PreferenceNode;
-import org.eclipse.ui.IPerspectiveDescriptor;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PerspectiveAdapter;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.activities.IActivityManager;
-import org.eclipse.ui.activities.IWorkbenchActivitySupport;
-import org.eclipse.ui.commands.ICommandService;
-import org.eclipse.ui.internal.Workbench;
-import org.eclipse.ui.internal.WorkbenchPage;
-import org.eclipse.ui.internal.WorkbenchPlugin;
-import org.eclipse.ui.internal.WorkbenchWindow;
-import org.eclipse.ui.internal.registry.PerspectiveRegistry;
-
-//import org.eclipse.ui.internal.Perspective;
-
-/**
- * this is a listener hat has in charge to configure a perspective when it is openend etc..
- *
- */
-public class PapyrusPerspectiveListener extends PerspectiveAdapter {
-
- private IWorkbenchWindow window;
-
- protected ConfigurationService configurationservice;
-
- protected ArrayList<PreferenceNode> hiddenRootPref = new ArrayList<PreferenceNode>();
-
-
- /**
- * creation of the listener
- *
- * @param window
- */
- public PapyrusPerspectiveListener(IWorkbenchWindow window) {
- this.window = window;
- this.configurationservice = new ConfigurationService();
-
- // this is the lauch of eclipse, so we look for which perspective is opened
- if (window.getActivePage() != null) {
- IPerspectiveDescriptor openedPerspectiveDescriptor = window.getActivePage().getPerspective();
- if (configurationservice.getConfiguration(openedPerspectiveDescriptor.getId()) != null) {
- // it is the frist time?
- if (!isAlreadySave(openedPerspectiveDescriptor.getId())) {
- // Activator.log.debug("First time to open it");
- updateTooling(openedPerspectiveDescriptor);
- window.getActivePage().savePerspective();
- }
-
- }
- updatePreferencePage(openedPerspectiveDescriptor);
- }
- }
-
- /**
- * return yes id it exist a file that custom a given perspective
- *
- * @param perspectiveID
- * the id of the perspective
- * @return yes it find a file,if not no
- */
- public boolean isAlreadySave(String perspectiveID) {
- PerspectiveRegistry perspRegistry = (PerspectiveRegistry) WorkbenchPlugin.getDefault().getPerspectiveRegistry();
- try {
- // IMemento memento = perspRegistry.getCustomPersp(perspectiveID);
- // Activator.log.debug(""+memento);
- return true;
- } catch (Exception e) {
- return false;
- }
- }
-
- @Override
- public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspectivedescriptor) {
- // Activator.log.debug("perspectiveActivated "+perspectivedescriptor.getId());
- super.perspectiveActivated(page, perspectivedescriptor);
-
-
- // test is we are interesting by the current perspective
- if (configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
- // if(!isAlreadySave(perspectivedescriptor.getId())) {
- updateTooling(perspectivedescriptor);
- // page.savePerspective();
- // }
-
-
- }
- updatePreferencePage(perspectivedescriptor);
- // Perspective perspective = ((WorkbenchPage)page).findPerspective(perspectivedescriptor);
- //
- // //due to a bug on the refresh, we need to call explicitly this method.
- // //to remove, when the origin is found.
- // if( perspective!=null){
- // perspective.updateActionBars();
- // }
- }
-
- protected void updatePreferencePage(IPerspectiveDescriptor perspectivedescriptor) {
- // test is we are interesting by the current perspective
- if (configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
-
- Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
- IPreferenceNode[] preferencepagelist = window.getWorkbench().getPreferenceManager().getRootSubNodes();
-
- // take in account the preferences
- for (int i = 0; i < preferencepagelist.length; i++) {
- if (preferencepagelist[i] instanceof PreferenceNode) {
- PreferenceNode node = (PreferenceNode) preferencepagelist[i];
- if (!configuration.getPreferenceID().contains(node.getId())) {
- hiddenRootPref.add(node);
- }
- }
- }
- Iterator<PreferenceNode> iteratorpreftoremove = hiddenRootPref.iterator();
- while (iteratorpreftoremove.hasNext()) {
- window.getWorkbench().getPreferenceManager().remove(iteratorpreftoremove.next());
- }
- } else {
- // this is not an interesting perspective
- Iterator<PreferenceNode> iteratorpreftoremove = hiddenRootPref.iterator();
- while (iteratorpreftoremove.hasNext()) {
- window.getWorkbench().getPreferenceManager().addToRoot(iteratorpreftoremove.next());
- }
- hiddenRootPref.clear();
- }
-
- }
-
-
- protected void updateTooling(final IPerspectiveDescriptor perspectivedescriptor) {
- IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI.getWorkbench().getActivitySupport();
- IActivityManager activityManager = workbenchActivitySupport.getActivityManager();
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
- public void run() {
- try {
- IWorkbenchWindow window = Workbench.getInstance().getActiveWorkbenchWindow();
- if (window instanceof WorkbenchWindow) {
- WorkbenchPage worbenchPage = (WorkbenchPage) window.getActivePage();
- ICommandService cmdService = (ICommandService) worbenchPage.getActivePart().getSite().getService(ICommandService.class);
- Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
-
- ArrayList<String> commandIdToRemove = new ArrayList<String>();
-
- try {
-
- // put all commands that not reference to the given category
- for (int i = 0; i < cmdService.getDefinedCommands().length; i++) {
- if (!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
- commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
- }
- // else{System.err.println("keep "+cmdService.getDefinedCommands()[i].getId());}
- }
-
- // then verify for each command by taking account its id.
- for (int i = 0; i < cmdService.getDefinedCommands().length; i++) {
- // put the commands in the list to hide, theis command are not referenced in the given list of command id and are not in the given list of category
- if (!configuration.getCommandIDList().contains(cmdService.getDefinedCommands()[i].getId())) {
- if (!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
- if (!commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
- commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
- }
- }
- } else {// may be the id that we want to keep was in already in the list because of the filter on category
- if (commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
- commandIdToRemove.remove(cmdService.getDefinedCommands()[i].getId());
- }
- }
- }
- } catch (Exception e) {
- System.err.println(e);
- }
-
-
-
-
- MenuManager menuManager = ((WorkbenchWindow) window).getMenuManager();
- IContributionItem[] items = menuManager.getItems();
- for (IContributionItem item : items) {
- if (!(configuration.getMenuIDList().contains(item.getId()))) {
- menuManager.remove(item.getId());
- }
-
- }
-
- }
- }
- catch (Exception e) {
- System.err.println(e);
- }
- }
- });
- }
-
- // /**
- // * this method hide menu, tool bar and action hat are not interesting
- // *
- // * @param perspectivedescriptor
- // */
- // protected void updateTooling(IPerspectiveDescriptor perspectivedescriptor) {
- //
- // CustomizeActionBars customizeActionBars = loadData();
- //
- // if(configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
- // Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
- // //Activator.log.debug("Update tooling");
- // //Load all information about menus....
- // WorkbenchPage worbenchPage = (WorkbenchPage)window.getActivePage();
- // // Get the perspective
- // Perspective perspective = worbenchPage.findPerspective(perspectivedescriptor);
- //
- // ICommandService cmdService = (ICommandService)worbenchPage.getActivePart().getSite().getService(ICommandService.class);
- //
- //
- // ArrayList<String> commandIdToRemove = new ArrayList<String>();
- //
- // try {
- //
- // //put all commands that not reference to the given category
- // for(int i = 0; i < cmdService.getDefinedCommands().length; i++) {
- // if(!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
- // commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
- // }
- // // else{System.err.println("keep "+cmdService.getDefinedCommands()[i].getId());}
- // }
- //
- // //then verify for each command by taking account its id.
- // for(int i = 0; i < cmdService.getDefinedCommands().length; i++) {
- // //put the commands in the list to hide, theis command are not referenced in the given list of command id and are not in the given list of category
- // if(!configuration.getCommandIDList().contains(cmdService.getDefinedCommands()[i].getId())) {
- // if(!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
- // if(!commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
- // commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
- // }
- // }
- // } else {//may be the id that we want to keep was in already in the list because of the filter on category
- // if(commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
- // commandIdToRemove.remove(cmdService.getDefinedCommands()[i].getId());
- // }
- // }
- // }
- // } catch (Exception e) {
- // System.err.println(e);
- // }
- //
- //
- // perspective.getHiddenMenuItems().clear();
- // perspective.getHiddenToolbarItems().clear();
- //
- // //look for all actionSet
- // ArrayList<IActionSetDescriptor> actionSetToRemove = new ArrayList<IActionSetDescriptor>();
- // Iterator<IActionSetDescriptor> iteratorActionSet = customizeActionBars.getActionSet().iterator();
- // while(iteratorActionSet.hasNext()) {
- // IActionSetDescriptor currentActionSetDescriptor = iteratorActionSet.next();
- // //test if the configuationSet contains the id
- // if(!configuration.getActionSetIDList().contains(currentActionSetDescriptor.getId())) {
- // actionSetToRemove.add(currentActionSetDescriptor);
- // }
- // }
- //
- //
- //
- // // look for all menu
- // ArrayList<String> menuToRemove = new ArrayList<String>();
- //
- // for(int i = 0; i < customizeActionBars.getMenuManager().getItems().length; i++) {
- // if(!configuration.getMenuIDList().contains(customizeActionBars.getMenuManager().getItems()[i].getId())) {
- // menuToRemove.add(customizeActionBars.getMenuManager().getItems()[i].getId());
- // }
- // }
- //
- // //look for all toolbar
- // ArrayList<String> toolbarToRemove = new ArrayList<String>();
- // for(int i = 0; i < customizeActionBars.getToolBarManager().getItems().length; i++) {
- //
- // if(!configuration.getToolBarID().contains(customizeActionBars.getToolBarManager().getItems()[i].getId())) {
- // toolbarToRemove.add(customizeActionBars.getToolBarManager().getItems()[i].getId());
- // }
- // }
- //
- // perspective.getHiddenMenuItems().addAll(commandIdToRemove);
- // perspective.getHiddenToolbarItems().addAll(commandIdToRemove);
- // //hide elements
- // perspective.turnOffActionSets((IActionSetDescriptor[])actionSetToRemove.toArray(new IActionSetDescriptor[actionSetToRemove.size()]));
- // perspective.getHiddenMenuItems().addAll(menuToRemove);
- // perspective.getHiddenToolbarItems().addAll(toolbarToRemove);
- // perspective.updateActionBars();
- //
- // }
- //
- // }
- //
- // /**
- // * this method search all identifier of menu toolbar and actionSet that are loaded in eclipse
- // *
- // * @return a structure that contains all references of the toolbar, menu, and actionSet..
- // */
- // protected CustomizeActionBars loadData() {
- //
- //
- // CustomizeActionBars ownedActionBar = new CustomizeActionBars(null);
- // //actionSet
- // // Just get the action sets at this point. Do not load the action set
- // // until it is actually selected in the dialog.
- // ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();
- // IActionSetDescriptor[] sets = reg.getActionSets();
- // IActionSetDescriptor[] actionSetDescriptors = ((WorkbenchPage)window.getActivePage()).getActionSets();
- // List initiallyAvailableActionSets = Arrays.asList(actionSetDescriptors);
- // ownedActionBar.setActionSet(initiallyAvailableActionSets);
- //
- //
- //
- // // Fill fake action bars with static menu information.
- // ((WorkbenchWindow)window).fillActionBars(ownedActionBar, ActionBarAdvisor.FILL_PROXY | ActionBarAdvisor.FILL_MENU_BAR | ActionBarAdvisor.FILL_COOL_BAR);
- // // Activator.log.debug("\n+-> ActionSetDescriptor");
- // for(int i = 0; i < sets.length; i++) {
- // ActionSetDescriptor actionSetDesc = (ActionSetDescriptor)sets[i];
- // // Activator.log.debug("+--->" + actionSetDesc.getId());
- //
- // }
- //
- // final IMenuService menuService = (IMenuService)window.getService(IMenuService.class);
- // menuService.populateContributionManager((ContributionManager)ownedActionBar.getMenuManager(), MenuUtil.MAIN_MENU);
- // //Activator.log.debug("\n+-> Menu " + ownedActionBar.getMenuManager().getItems().length);
- // for(int i = 0; i < ownedActionBar.getMenuManager().getItems().length; i++) {
- // IContributionItem item = ownedActionBar.getMenuManager().getItems()[i];
- // // Activator.log.debug("+--->" + item.getId());
- // }
- //
- //
- // IToolBarManager toolBarManager = ownedActionBar.getToolBarManager();
- // menuService.populateContributionManager((ContributionManager)toolBarManager, MenuUtil.MAIN_TOOLBAR);
- // //Activator.log.debug("\n+-> toolbar " + ownedActionBar.getToolBarManager() + " " + ownedActionBar.getToolBarManager().getItems().length);
- // for(int i = 0; i < ownedActionBar.getToolBarManager().getItems().length; i++) {
- // IContributionItem item = toolBarManager.getItems()[i];
- // //Activator.log.debug("+--->" + item.getId());
- // }
- //
- // return ownedActionBar;
- // }
-
- /**
- * {@inheritDoc}
- */
-
- @Override
- public void perspectiveDeactivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
- // in the case of reset this method is called.
- // Activator.log.debug("perspectiveDeactivated "+perspective.getId());
- // updateTooling(perspective);
- // page.savePerspective();
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.preference.IPreferenceNode;
+import org.eclipse.jface.preference.PreferenceNode;
+import org.eclipse.ui.IPerspectiveDescriptor;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PerspectiveAdapter;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.activities.IActivityManager;
+import org.eclipse.ui.activities.IWorkbenchActivitySupport;
+import org.eclipse.ui.commands.ICommandService;
+import org.eclipse.ui.internal.Workbench;
+import org.eclipse.ui.internal.WorkbenchPage;
+import org.eclipse.ui.internal.WorkbenchPlugin;
+import org.eclipse.ui.internal.WorkbenchWindow;
+import org.eclipse.ui.internal.registry.PerspectiveRegistry;
+
+//import org.eclipse.ui.internal.Perspective;
+
+/**
+ * this is a listener hat has in charge to configure a perspective when it is openend etc..
+ *
+ */
+public class PapyrusPerspectiveListener extends PerspectiveAdapter {
+
+ private IWorkbenchWindow window;
+
+ protected ConfigurationService configurationservice;
+
+ protected ArrayList<PreferenceNode> hiddenRootPref = new ArrayList<PreferenceNode>();
+
+
+ /**
+ * creation of the listener
+ *
+ * @param window
+ */
+ public PapyrusPerspectiveListener(IWorkbenchWindow window) {
+ this.window = window;
+ this.configurationservice = new ConfigurationService();
+
+ // this is the lauch of eclipse, so we look for which perspective is opened
+ if (window.getActivePage() != null) {
+ IPerspectiveDescriptor openedPerspectiveDescriptor = window.getActivePage().getPerspective();
+ if (configurationservice.getConfiguration(openedPerspectiveDescriptor.getId()) != null) {
+ // it is the frist time?
+ if (!isAlreadySave(openedPerspectiveDescriptor.getId())) {
+ // Activator.log.debug("First time to open it");
+ updateTooling(openedPerspectiveDescriptor);
+ window.getActivePage().savePerspective();
+ }
+
+ }
+ updatePreferencePage(openedPerspectiveDescriptor);
+ }
+ }
+
+ /**
+ * return yes id it exist a file that custom a given perspective
+ *
+ * @param perspectiveID
+ * the id of the perspective
+ * @return yes it find a file,if not no
+ */
+ public boolean isAlreadySave(String perspectiveID) {
+ PerspectiveRegistry perspRegistry = (PerspectiveRegistry) WorkbenchPlugin.getDefault().getPerspectiveRegistry();
+ try {
+ // IMemento memento = perspRegistry.getCustomPersp(perspectiveID);
+ // Activator.log.debug(""+memento);
+ return true;
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
+ @Override
+ public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspectivedescriptor) {
+ // Activator.log.debug("perspectiveActivated "+perspectivedescriptor.getId());
+ super.perspectiveActivated(page, perspectivedescriptor);
+
+
+ // test is we are interesting by the current perspective
+ if (configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
+ // if(!isAlreadySave(perspectivedescriptor.getId())) {
+ updateTooling(perspectivedescriptor);
+ // page.savePerspective();
+ // }
+
+
+ }
+ updatePreferencePage(perspectivedescriptor);
+ // Perspective perspective = ((WorkbenchPage)page).findPerspective(perspectivedescriptor);
+ //
+ // //due to a bug on the refresh, we need to call explicitly this method.
+ // //to remove, when the origin is found.
+ // if( perspective!=null){
+ // perspective.updateActionBars();
+ // }
+ }
+
+ protected void updatePreferencePage(IPerspectiveDescriptor perspectivedescriptor) {
+ // test is we are interesting by the current perspective
+ if (configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
+
+ Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
+ IPreferenceNode[] preferencepagelist = window.getWorkbench().getPreferenceManager().getRootSubNodes();
+
+ // take in account the preferences
+ for (int i = 0; i < preferencepagelist.length; i++) {
+ if (preferencepagelist[i] instanceof PreferenceNode) {
+ PreferenceNode node = (PreferenceNode) preferencepagelist[i];
+ if (!configuration.getPreferenceID().contains(node.getId())) {
+ hiddenRootPref.add(node);
+ }
+ }
+ }
+ Iterator<PreferenceNode> iteratorpreftoremove = hiddenRootPref.iterator();
+ while (iteratorpreftoremove.hasNext()) {
+ window.getWorkbench().getPreferenceManager().remove(iteratorpreftoremove.next());
+ }
+ } else {
+ // this is not an interesting perspective
+ Iterator<PreferenceNode> iteratorpreftoremove = hiddenRootPref.iterator();
+ while (iteratorpreftoremove.hasNext()) {
+ window.getWorkbench().getPreferenceManager().addToRoot(iteratorpreftoremove.next());
+ }
+ hiddenRootPref.clear();
+ }
+
+ }
+
+
+ protected void updateTooling(final IPerspectiveDescriptor perspectivedescriptor) {
+ IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI.getWorkbench().getActivitySupport();
+ IActivityManager activityManager = workbenchActivitySupport.getActivityManager();
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ try {
+ IWorkbenchWindow window = Workbench.getInstance().getActiveWorkbenchWindow();
+ if (window instanceof WorkbenchWindow) {
+ WorkbenchPage worbenchPage = (WorkbenchPage) window.getActivePage();
+ ICommandService cmdService = (ICommandService) worbenchPage.getActivePart().getSite().getService(ICommandService.class);
+ Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
+
+ ArrayList<String> commandIdToRemove = new ArrayList<String>();
+
+ try {
+
+ // put all commands that not reference to the given category
+ for (int i = 0; i < cmdService.getDefinedCommands().length; i++) {
+ if (!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
+ commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
+ }
+ // else{System.err.println("keep "+cmdService.getDefinedCommands()[i].getId());}
+ }
+
+ // then verify for each command by taking account its id.
+ for (int i = 0; i < cmdService.getDefinedCommands().length; i++) {
+ // put the commands in the list to hide, theis command are not referenced in the given list of command id and are not in the given list of category
+ if (!configuration.getCommandIDList().contains(cmdService.getDefinedCommands()[i].getId())) {
+ if (!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
+ if (!commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
+ commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
+ }
+ }
+ } else {// may be the id that we want to keep was in already in the list because of the filter on category
+ if (commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
+ commandIdToRemove.remove(cmdService.getDefinedCommands()[i].getId());
+ }
+ }
+ }
+ } catch (Exception e) {
+ System.err.println(e);
+ }
+
+
+
+
+ MenuManager menuManager = ((WorkbenchWindow) window).getMenuManager();
+ IContributionItem[] items = menuManager.getItems();
+ for (IContributionItem item : items) {
+ if (!(configuration.getMenuIDList().contains(item.getId()))) {
+ menuManager.remove(item.getId());
+ }
+
+ }
+
+ }
+ }
+ catch (Exception e) {
+ System.err.println(e);
+ }
+ }
+ });
+ }
+
+ // /**
+ // * this method hide menu, tool bar and action hat are not interesting
+ // *
+ // * @param perspectivedescriptor
+ // */
+ // protected void updateTooling(IPerspectiveDescriptor perspectivedescriptor) {
+ //
+ // CustomizeActionBars customizeActionBars = loadData();
+ //
+ // if(configurationservice.getConfiguration(perspectivedescriptor.getId()) != null) {
+ // Configuration configuration = configurationservice.getConfiguration(perspectivedescriptor.getId());
+ // //Activator.log.debug("Update tooling");
+ // //Load all information about menus....
+ // WorkbenchPage worbenchPage = (WorkbenchPage)window.getActivePage();
+ // // Get the perspective
+ // Perspective perspective = worbenchPage.findPerspective(perspectivedescriptor);
+ //
+ // ICommandService cmdService = (ICommandService)worbenchPage.getActivePart().getSite().getService(ICommandService.class);
+ //
+ //
+ // ArrayList<String> commandIdToRemove = new ArrayList<String>();
+ //
+ // try {
+ //
+ // //put all commands that not reference to the given category
+ // for(int i = 0; i < cmdService.getDefinedCommands().length; i++) {
+ // if(!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
+ // commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
+ // }
+ // // else{System.err.println("keep "+cmdService.getDefinedCommands()[i].getId());}
+ // }
+ //
+ // //then verify for each command by taking account its id.
+ // for(int i = 0; i < cmdService.getDefinedCommands().length; i++) {
+ // //put the commands in the list to hide, theis command are not referenced in the given list of command id and are not in the given list of category
+ // if(!configuration.getCommandIDList().contains(cmdService.getDefinedCommands()[i].getId())) {
+ // if(!configuration.getCategoryIDList().contains(cmdService.getDefinedCommands()[i].getCategory().getId())) {
+ // if(!commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
+ // commandIdToRemove.add(cmdService.getDefinedCommands()[i].getId());
+ // }
+ // }
+ // } else {//may be the id that we want to keep was in already in the list because of the filter on category
+ // if(commandIdToRemove.contains(cmdService.getDefinedCommands()[i].getId())) {
+ // commandIdToRemove.remove(cmdService.getDefinedCommands()[i].getId());
+ // }
+ // }
+ // }
+ // } catch (Exception e) {
+ // System.err.println(e);
+ // }
+ //
+ //
+ // perspective.getHiddenMenuItems().clear();
+ // perspective.getHiddenToolbarItems().clear();
+ //
+ // //look for all actionSet
+ // ArrayList<IActionSetDescriptor> actionSetToRemove = new ArrayList<IActionSetDescriptor>();
+ // Iterator<IActionSetDescriptor> iteratorActionSet = customizeActionBars.getActionSet().iterator();
+ // while(iteratorActionSet.hasNext()) {
+ // IActionSetDescriptor currentActionSetDescriptor = iteratorActionSet.next();
+ // //test if the configuationSet contains the id
+ // if(!configuration.getActionSetIDList().contains(currentActionSetDescriptor.getId())) {
+ // actionSetToRemove.add(currentActionSetDescriptor);
+ // }
+ // }
+ //
+ //
+ //
+ // // look for all menu
+ // ArrayList<String> menuToRemove = new ArrayList<String>();
+ //
+ // for(int i = 0; i < customizeActionBars.getMenuManager().getItems().length; i++) {
+ // if(!configuration.getMenuIDList().contains(customizeActionBars.getMenuManager().getItems()[i].getId())) {
+ // menuToRemove.add(customizeActionBars.getMenuManager().getItems()[i].getId());
+ // }
+ // }
+ //
+ // //look for all toolbar
+ // ArrayList<String> toolbarToRemove = new ArrayList<String>();
+ // for(int i = 0; i < customizeActionBars.getToolBarManager().getItems().length; i++) {
+ //
+ // if(!configuration.getToolBarID().contains(customizeActionBars.getToolBarManager().getItems()[i].getId())) {
+ // toolbarToRemove.add(customizeActionBars.getToolBarManager().getItems()[i].getId());
+ // }
+ // }
+ //
+ // perspective.getHiddenMenuItems().addAll(commandIdToRemove);
+ // perspective.getHiddenToolbarItems().addAll(commandIdToRemove);
+ // //hide elements
+ // perspective.turnOffActionSets((IActionSetDescriptor[])actionSetToRemove.toArray(new IActionSetDescriptor[actionSetToRemove.size()]));
+ // perspective.getHiddenMenuItems().addAll(menuToRemove);
+ // perspective.getHiddenToolbarItems().addAll(toolbarToRemove);
+ // perspective.updateActionBars();
+ //
+ // }
+ //
+ // }
+ //
+ // /**
+ // * this method search all identifier of menu toolbar and actionSet that are loaded in eclipse
+ // *
+ // * @return a structure that contains all references of the toolbar, menu, and actionSet..
+ // */
+ // protected CustomizeActionBars loadData() {
+ //
+ //
+ // CustomizeActionBars ownedActionBar = new CustomizeActionBars(null);
+ // //actionSet
+ // // Just get the action sets at this point. Do not load the action set
+ // // until it is actually selected in the dialog.
+ // ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();
+ // IActionSetDescriptor[] sets = reg.getActionSets();
+ // IActionSetDescriptor[] actionSetDescriptors = ((WorkbenchPage)window.getActivePage()).getActionSets();
+ // List initiallyAvailableActionSets = Arrays.asList(actionSetDescriptors);
+ // ownedActionBar.setActionSet(initiallyAvailableActionSets);
+ //
+ //
+ //
+ // // Fill fake action bars with static menu information.
+ // ((WorkbenchWindow)window).fillActionBars(ownedActionBar, ActionBarAdvisor.FILL_PROXY | ActionBarAdvisor.FILL_MENU_BAR | ActionBarAdvisor.FILL_COOL_BAR);
+ // // Activator.log.debug("\n+-> ActionSetDescriptor");
+ // for(int i = 0; i < sets.length; i++) {
+ // ActionSetDescriptor actionSetDesc = (ActionSetDescriptor)sets[i];
+ // // Activator.log.debug("+--->" + actionSetDesc.getId());
+ //
+ // }
+ //
+ // final IMenuService menuService = (IMenuService)window.getService(IMenuService.class);
+ // menuService.populateContributionManager((ContributionManager)ownedActionBar.getMenuManager(), MenuUtil.MAIN_MENU);
+ // //Activator.log.debug("\n+-> Menu " + ownedActionBar.getMenuManager().getItems().length);
+ // for(int i = 0; i < ownedActionBar.getMenuManager().getItems().length; i++) {
+ // IContributionItem item = ownedActionBar.getMenuManager().getItems()[i];
+ // // Activator.log.debug("+--->" + item.getId());
+ // }
+ //
+ //
+ // IToolBarManager toolBarManager = ownedActionBar.getToolBarManager();
+ // menuService.populateContributionManager((ContributionManager)toolBarManager, MenuUtil.MAIN_TOOLBAR);
+ // //Activator.log.debug("\n+-> toolbar " + ownedActionBar.getToolBarManager() + " " + ownedActionBar.getToolBarManager().getItems().length);
+ // for(int i = 0; i < ownedActionBar.getToolBarManager().getItems().length; i++) {
+ // IContributionItem item = toolBarManager.getItems()[i];
+ // //Activator.log.debug("+--->" + item.getId());
+ // }
+ //
+ // return ownedActionBar;
+ // }
+
+ /**
+ * {@inheritDoc}
+ */
+
+ @Override
+ public void perspectiveDeactivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
+ // in the case of reset this method is called.
+ // Activator.log.debug("perspectiveDeactivated "+perspective.getId());
+ // updateTooling(perspective);
+ // page.savePerspective();
+ }
+}
diff --git a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PerspectiveConfigurator.java b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PerspectiveConfigurator.java
index 190d28daa3a..2b8815fc104 100644
--- a/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PerspectiveConfigurator.java
+++ b/plugins/editor/org.eclipse.papyrus.editor.perspectiveconfiguration/src/org/eclipse/papyrus/editor/perspectiveconfiguration/PerspectiveConfigurator.java
@@ -1,38 +1,38 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.editor.perspectiveconfiguration;
-
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IStartup;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * this class is used to hide unuseful menu and action Set
- *
- */
-public class PerspectiveConfigurator implements IStartup {
-
- public void earlyStartup() {
- Display.getDefault().asyncExec(new Runnable() {
-
- public void run() {
- final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- // a perspective listener is added
- workbenchWindow.addPerspectiveListener(new PapyrusPerspectiveListener(workbenchWindow));
- }
- });
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.editor.perspectiveconfiguration;
+
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IStartup;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * this class is used to hide unuseful menu and action Set
+ *
+ */
+public class PerspectiveConfigurator implements IStartup {
+
+ public void earlyStartup() {
+ Display.getDefault().asyncExec(new Runnable() {
+
+ public void run() {
+ final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ // a perspective listener is added
+ workbenchWindow.addPerspectiveListener(new PapyrusPerspectiveListener(workbenchWindow));
+ }
+ });
+ }
+
+}

Back to the top