diff options
author | Eike Stepper | 2008-08-08 21:40:58 +0000 |
---|---|---|
committer | Eike Stepper | 2008-08-08 21:40:58 +0000 |
commit | 47a483d842c3fc4d3b005e3b722ba9e7f2a4eff3 (patch) | |
tree | 8cc64a5821845b4e084d95689138b8229df72483 /plugins | |
parent | feb16534f639544ee1e34f41f94d625c93af48ca (diff) | |
download | cdo-committers/smcduff/merge-238414.tar.gz cdo-committers/smcduff/merge-238414.tar.xz cdo-committers/smcduff/merge-238414.zip |
This commit was manufactured by cvs2svn to create tagcommitters/smcduff/merge-238414committers/smcduff/merge-238414
'simone_merge_238414_before_merge_from_HEAD_to'.
Diffstat (limited to 'plugins')
365 files changed, 0 insertions, 26122 deletions
diff --git a/plugins/.cvsignore b/plugins/.cvsignore deleted file mode 100644 index 3a4edf690c..0000000000 --- a/plugins/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -.project diff --git a/plugins/org.eclipse.emf.cdo.doc/.classpath b/plugins/org.eclipse.emf.cdo.doc/.classpath deleted file mode 100644 index 91432ac3fa..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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=""/> - <classpathentry kind="output" path=""/> -</classpath> diff --git a/plugins/org.eclipse.emf.cdo.doc/.cvsignore b/plugins/org.eclipse.emf.cdo.doc/.cvsignore deleted file mode 100644 index a32fe23c60..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -bin -*.jar
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.doc/.project b/plugins/org.eclipse.emf.cdo.doc/.project deleted file mode 100644 index 2de363a1ec..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.project +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.doc</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index a7c3c34ae3..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,271 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 4270887083..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:45:34 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 63f0444025..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:08:52 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index cf70a33e7b..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:08:52 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.doc/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.doc/META-INF/MANIFEST.MF deleted file mode 100644 index 9d7c40589d..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.emf.cdo.doc; singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Require-Bundle: org.eclipse.help;bundle-version="[3.3.0,4.0.0)" -Bundle-RequiredExecutionEnvironment: J2SE-1.5 diff --git a/plugins/org.eclipse.emf.cdo.doc/about.html b/plugins/org.eclipse.emf.cdo.doc/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.doc/about.ini b/plugins/org.eclipse.emf.cdo.doc/about.ini deleted file mode 100644 index b7e87ca285..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/about.ini +++ /dev/null @@ -1,15 +0,0 @@ -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%featureText - -# Property "featureImage" contains path to feature image (32x32) -featureImage=modeling32.png - -# Property "appName" contains name of the application (translated) -appName=%featureName - diff --git a/plugins/org.eclipse.emf.cdo.doc/about.mappings b/plugins/org.eclipse.emf.cdo.doc/about.mappings deleted file mode 100644 index 7d795dc23a..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/about.mappings +++ /dev/null @@ -1,5 +0,0 @@ -# This file contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=@build@ diff --git a/plugins/org.eclipse.emf.cdo.doc/about.properties b/plugins/org.eclipse.emf.cdo.doc/about.properties deleted file mode 100644 index 085b5f6f14..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/about.properties +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -featureName = CDO Documentation -featureText = CDO Documentation\n\ -Version: {featureVersion}\n\ -Build id: {0}\n\ -\n\ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. All rights reserved.\n\ -\n\ -Visit http://wiki.eclipse.org/CDO - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.doc/build.properties b/plugins/org.eclipse.emf.cdo.doc/build.properties deleted file mode 100644 index 847b666cf2..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/build.properties +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -custom = true diff --git a/plugins/org.eclipse.emf.cdo.doc/build.xml b/plugins/org.eclipse.emf.cdo.doc/build.xml deleted file mode 100644 index 7f04426b55..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/build.xml +++ /dev/null @@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project name="org.eclipse.emf.cdo.doc" default="build.jars" basedir="."> - - <!-- Plug-in version. This is a HACK. Do not forget to update. --> - <property name="pluginVersion" value="1.0.0"/> - - <property name="plugin" value="org.eclipse.emf.cdo"/> - <property name="docPlugin" value="org.eclipse.emf.cdo.doc"/> - - <property name="filesToInclude" value="META-INF/,about.*,*.gif,*.png,plugin.*,doc.zip,toc.xml,index/**"/> - - <!-- Compiler settings. --> - <property name="javacFailOnError" value="false"/> - <property name="javacDebugInfo" value="on"/> - <property name="javacVerbose" value="true"/> - <property name="compilerArg" value=""/> - - <echo message="Set javacSource and javacTarget = 1.5"/> - <property name="javacSource" value="1.5" /> - <property name="javacTarget" value="1.5" /> - - <path id="bc"> - <fileset dir="${java.home}/lib"> - <include name="*.jar" /> - </fileset> - </path> - <property name="bootclasspath" refid="bc" /> - - <!-- new 060508 to make build work when using JDK1.5 source/target --> - <echo message="Set J2SE-1.5 = ${bootclasspath}"/> - <property name="J2SE-1.5" value="${bootclasspath}"/> - <condition property="bundleBootClasspath" value="${J2SE-1.5}"><isset property="J2SE-1.5"/></condition> - <condition property="bundleJavacSource" value="1.5"><isset property="J2SE-1.5"/></condition> - <condition property="bundleJavacTarget" value="1.5"><isset property="J2SE-1.5"/></condition> - - <property name="basews" value="${ws}"/> - <property name="baseos" value="${os}"/> - <property name="basearch" value="${arch}"/> - <property name="basenl" value="${nl}"/> - - <target name="init" depends="properties"> - <condition property="pluginTemp" value="${buildTempFolder}/plugins"> - <isset property="buildTempFolder"/> - </condition> - <property name="pluginTemp" value="${basedir}"/> - <condition property="build.result.folder" value="${pluginTemp}/${docPlugin}"> - <isset property="buildTempFolder"/> - </condition> - <property name="build.result.folder" value="${basedir}"/> - <property name="temp.folder" value="${basedir}/temp.folder"/> - <property name="plugin.destination" value="${basedir}"/> - </target> - - <target name="properties" if="eclipse.running"> - <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> - </target> - - <target name="build.update.jar" depends="init" description="Build the plug-in: ${plugin} for an update site."> - <delete dir="${temp.folder}"/> - <mkdir dir="${temp.folder}"/> - <antcall target="build.jars"/> - <antcall target="gather.bin.parts"> - <param name="destination.temp.folder" value="${temp.folder}/"/> - </antcall> - <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.jar" basedir="${temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" filesonly="false" whenempty="skip" update="false"/> - <delete dir="${temp.folder}"/> - </target> - - <target name="build.jars" depends="init" description="Build all the jars for the plug-in: ${docPlugin}."> - <!-- Execute a shell script that will create an ant javadoc script and then run it for us --> - <exec executable="sh"> - <arg value="build/antJavadoc.sh"/> - <arg value="${eclipse.home}/../eclipse"/> - </exec> - - <antcall target="build.index"/> - - <!-- Zip up all of the documentation artifacts - references(including javadoc), images, tutorials, etc. --> - <zip destfile="doc.zip" compress="true"> - <!-- Add new folders for documentation zip here. --> - <zipfileset dir="references" prefix="references" excludes="**/impl,**/impl/**"/> - <zipfileset dir="images" prefix="images"/> - <zipfileset dir="tutorials" prefix="tutorials"/> - </zip> - </target> - - <target name="build.index" depends="init" description="Builds search index for the plug-in" if="eclipse.running"> - <help.buildHelpIndex manifest="plugin.xml" destination="."/> - </target> - - <target name="build.sources" depends="init"> - </target> - - <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> - <mkdir dir="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}"/> - <copy todir="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" failonerror="true" overwrite="false"> - <fileset dir="${basedir}" includes="${filesToInclude}"/> - </copy> - <eclipse.versionReplacer - path="${destination.temp.folder}/${docPlugin}_${pluginVersion}.${forceContextQualifier}" - version="${pluginVersion}.${forceContextQualifier}"/> - </target> - - <target name="build.zips" depends="init"> - </target> - - <target name="gather.sources" depends="init" if="destination.temp.folder"> - </target> - - <target name="gather.logs" depends="init" if="destination.temp.folder"> - </target> - - <target name="clean" depends="init" description="Clean the plug-in: ${docPlugin} of all the zips, jars and logs created."> - <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.jar"/> - <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.zip"/> - <delete dir="${temp.folder}"/> - </target> - - <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: ${docPlugin}."> - <delete dir="${temp.folder}"/> - <mkdir dir="${temp.folder}"/> - <antcall target="build.jars"/> - <antcall target="build.sources"/> - <antcall target="gather.bin.parts"> - <param name="destination.temp.folder" value="${temp.folder}/"/> - </antcall> - <antcall target="gather.sources"> - <param name="destination.temp.folder" value="${temp.folder}/"/> - </antcall> - <delete> - <fileset dir="${temp.folder}" includes="**/*.bin.log" /> - </delete> - <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.${forceContextQualifier}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> - <delete dir="${temp.folder}"/> - </target> - -</project> diff --git a/plugins/org.eclipse.emf.cdo.doc/build/antJavadoc.sh b/plugins/org.eclipse.emf.cdo.doc/build/antJavadoc.sh deleted file mode 100644 index 951912b392..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/build/antJavadoc.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/sh - -# BEGIN CUSTOMIZATIONS - -# The plugin name -pluginName="org.eclipse.emf.cdo"; - -# string labels for javadoc content -windowTitle="CDO Javadoc"; -groupTitle="CDO"; - -# files to exclude from javadoc process - use Ant syntax -javadocExclusions="<exclude name=\"**/internal/**\"/> <exclude name=\"**/examples/**\"/> <exclude name=\"**/tests/**\"/>"; - -# use 1.5 -export JAVA_HOME=/opt/sun-java2-5.0 - -# END CUSTOMIZATIONS - -########################################################################## - -debug=0; if [ $debug -gt 0 ]; then echo "[antJd] debug: "$debug; fi - -if [ "x"$ANT_HOME = "x" ]; then export ANT_HOME=/opt/apache-ant-1.6; fi -if [ "x"$JAVA_HOME = "x" ]; then export JAVA_HOME=/opt/ibm-java2-1.4; fi -export PATH=${PATH}:${ANT_HOME}/bin - -# current directory - all but the name of this script, no trailing slash -currentPath=$PWD"/"$0; currentPath=${currentPath%/*}; if [ $debug -gt 0 ]; then echo "[antJd] currentPath: "$currentPath; fi - -# path to $buildID/eclipse/plugins, no trailing slash -pluginPath=${currentPath%/$pluginName*}; if [ $debug -gt 0 ]; then echo "[antJd] pluginName: "$pluginName; echo "[antJd] pluginPath: "$pluginPath; fi - -# ant script to create and then execute -antScript=$currentPath"/javadoc.xml"; if [ $debug -gt 0 ]; then echo "[antJd] antScript: "$antScript; fi - -# The eclipse directory -eclipseDir=`cd $1; echo $PWD`; if [ $debug -gt 0 ]; then echo "[antJd] eclipseDir: "$eclipseDir; fi - -# The destination directory -destDir=$currentPath/../references/javadoc; mkdir -p $destDir; destDir=`cd $destDir; echo $PWD`; # resolve relative path -if [ $debug -gt 0 ]; then echo "[antJd] destDir: "$destDir; fi - -hasToken=`grep -c "@plugin@" $antScript".template"`; -if [ $hasToken -gt 0 ]; then - srcDir=$pluginPath/$pluginName.source/src; if [ $debug -gt 0 ]; then echo "[antJd] srcDir: "$srcDir; fi - if [ -d "$srcDir" ]; then - if [ `find $srcDir -name "*.java" | grep -c .` -eq 0 ]; then # must unpack zips first - if [ $debug -gt 0 ]; then echo "[antJd] Unpacking *src.zip"; fi - for f in `find $srcDir -name "*src.zip"`; do - if [ $debug -gt 1 ]; then echo "[antJd] Unpack $f"; fi - unzip -q -d $srcDir $f; - done - fi - if [ $debug -gt 0 ]; then echo "[antJd] *.java in srcDir: "; echo "-----------------"; echo `find $srcDir -type f -name '*.java'`; echo "-----------------"; fi - packages=`find $srcDir -type f -name '*.java' -exec grep -e '^package .*;' {} \; | sed -e 's/^package *\(.*\);/\1/' | sed -e 's/[ ]*//g' | dos2unix | sort | uniq | xargs | sed -e 's/ /:/g'`; - if [ $debug -gt 1 ]; then echo "[antJd] packages1: "$packages; fi - packages=`echo $packages | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`; # slash escape - if [ $debug -gt 1 ]; then echo "[antJd] packages2: "$packages; fi - cat $antScript.template | sed -e "s/\@plugin\@/$packages/g" > $antScript.template.tmp; - else - echo "[antJd] ERROR! "$srcDir" does not exist!"; - exit 1; - fi -else - echo "[antJd] ERROR! "$currentPath"/javadoc.xml.template does not contain token @plugin@!"; - exit 1; -fi - -# Finds plugins in the Workspace: -pluginDirs=`find $pluginPath -name "${pluginName}*" -maxdepth 1 -type d -printf '%T@ %p\n' | sort -n | cut -f2 -d' '`; -if [ $debug -gt 0 ]; then - echo "[antJd] pluginDirs:"; - for pluginDir in $pluginDirs; do echo "[antJd] "$pluginDir; done -fi - -### TODO?: missing emf/sdo/xsd plugins in $eclipseDir - need to copy them over or reference source so that all classes/packages (and thus @links) can be resolved - -# All the jars in the plugins directory -classpath="."`find $eclipseDir/plugins -name "*.jar" -printf ":%p"`; if [ $debug -gt 0 ]; then echo "[antJd] classpath: "$classpath; fi - -# Calculates the packagesets and the calls to copyDocFiles -packagesets=""; -copydocfiles=""; -for pluginDir in $pluginDirs; do - pluginDir=`echo $pluginDir | sed -e 's/\/runtime$//g'`; - srcDir=$pluginDir/src; - if [ $debug -gt 0 ]; then echo "[antJd] srcDir: "$srcDir; fi - if [ -d "$srcDir" ]; then - # define what to include when javadoc'ing here: - packagesets=$packagesets"<packageset dir=\"$srcDir\"> "; - packagesets=$packagesets"<exclude name=\"$srcDir/**/doc-files/**\"/> "; - packagesets=$packagesets""$javadocExclusions; - packagesets=$packagesets"</packageset>"; - copydocfiles=$copydocfiles"<copyDocFiles pluginDir=\"$pluginDir\"/>"; - fi -done -if [ $debug -gt 0 ]; then - echo "[antJd] packagesets:"; echo $packagesets; - echo "[antJd] copydocfiles:"; echo $copydocfiles; -fi - -# Finds the proper org.eclipse.platform.doc.isv jar -docjar=`find $eclipseDir/plugins/ -name "org.eclipse.platform.doc.isv*.jar" -printf "%f"`; if [ $debug -gt 1 ]; then echo "[antJd] docjar: "$docjar; fi - -if [ -f $antScript.template ]; then - true; -else - cp $antScript.template $antScript.template.tmp; -fi - -# do replacements in template -if [ $debug -gt 1 ]; then echo "[antJd] Replace @packagesets@ in the template ..."; fi -packagesets=`echo $packagesets | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`; -sed -e "s/\@packagesets\@/${packagesets}/g" $antScript.template.tmp > $antScript.template.tmp2; - -if [ $debug -gt 1 ]; then echo "[antJd] Replace @copydocfiles@ in the template ..."; fi -copydocfiles=`echo $copydocfiles | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`; -sed -e "s/\@copydocfiles\@/${copydocfiles}/g" $antScript.template.tmp2 > $antScript; - -#run ant to do javadoc build -ant -f $antScript \ - -DdestDir="$destDir" \ - -Dclasspath="$classpath" \ - -DeclipseDir="$eclipseDir" \ - -Ddocjar="$docjar" \ - -DwindowTitle="$windowTitle" \ - -DgroupTitle="$groupTitle" \ - -Doverview="$currentPath/overview.html"; - -# Clean up templates -rm -f $antScript $antScript.template.tmp $antScript.template.tmp2; diff --git a/plugins/org.eclipse.emf.cdo.doc/build/javadoc.xml.template b/plugins/org.eclipse.emf.cdo.doc/build/javadoc.xml.template deleted file mode 100644 index b9726f85dd..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/build/javadoc.xml.template +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project name="Plugin Javadoc" default="javadoc"> - <property name="destDir" value="doc"/> - <property name="classpath" value="bin"/> - <property name="overview" value="build/overview.html"/> - <property name="eclipseDir" value="."/> - <property name="docjar" value="org.eclipse.platform.doc.isv.jar"/> - - <!-- other properties that must be passed to this script include: - windowTitle - groupTitle - --> - - <property environment="env"/> - <property name="javaHome" value="${env.JAVA_HOME}"/> - - <property name="javadoc.link.location" value="${eclipseDir}/javadoc"/> - <available property="platformJavadocExists" file="${javadoc.link.location}/platform/"/> - - <!-- TODO Enable linking to the platform javadoc --> - <!-- <target name="extractPlatformJavadoc" unless="platformJavadocExists"> - <exec executable="find"> - <arg value="${eclipseDir}/.."/> - <arg value="-type"/> - <arg value="d"/> - <arg value="-name"/> - <arg value="javadoc"/> - </exec> - <unzip src="${eclipseDir}/@docjar@" dest="${javadoc.link.location}/platform/"/> - </target> --> - - <!-- TODO Enable linking to the platform javadoc --> - <!-- <target name="javadoc" depends="extractPlatformJavadoc"> --> - - <target name="javadoc"> - <javadoc - destdir="${destDir}" - classpath="${classpath}" - overview="${overview}" - - windowtitle="${windowTitle}" - footer="Copyright (c) 2004 - 2008 Eike Stepper, Germany.<br> All Rights Reserved." - - access="protected" - additionalparam="-breakiterator -tag model:X -tag generated:X -tag ordered:X" - author="false" - breakiterator="true" - charset="UTF-8" - docencoding="UTF-8" - nodeprecated="false" - nodeprecatedlist="false" - noindex="false" - nonavbar="false" - notree="false" - source="1.5" - splitindex="true" - use="true" - version="true"> - <arg value="-J-Xmx180m"/> - - <link offline="true" href="http://java.sun.com/j2se/1.4/docs/api/" packagelistLoc="${javaHome}/docs/api/"/> - <!-- TODO Enable link to platform documentation --> - <!-- <link offline="true" href="/help/topic/org.eclipse.platform.doc.isv/reference/api/" packagelistLoc="${javadoc.link.location}/platform/reference/api/"/> --> - - <tag name="ignore" description="ignore" enabled="false"/> - <tag name="generated" description="ignore" enabled="false"/> - <tag name="model" description="ignore" enabled="false"/> - <tag name="modifiable" description="ignore" enabled="false"/> - <tag name="extends" description="ignore" enabled="false"/> - <tag name="implements" description="ignore" enabled="false"/> - <tag name="ordered" description="ignore" enabled="false"/> - - <!-- If you add a @ plugin @ below, don't forget to update the antjavadoc.sh file --> - - <group title="${groupTitle}" packages="@plugin@"/> - - <!-- If you add a @ plugin @ above, don't forget to update the antjavadoc.sh file --> - - @packagesets@ - - </javadoc> - - <!-- make sure the doc-files are copied --> - <macrodef name="copyDocFiles"> - <attribute name="pluginDir"/> - <sequential> - <copy todir="${destDir}" failonerror="false"> - <fileset dir="@{pluginDir}/src" includes="**/doc-files/**"/> - </copy> - </sequential> - </macrodef> - - @copydocfiles@ - - </target> -</project>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.doc/build/overview.html b/plugins/org.eclipse.emf.cdo.doc/build/overview.html deleted file mode 100644 index 32c3292c73..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/build/overview.html +++ /dev/null @@ -1,42 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<!-- -/** - * <copyright> - * - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - Initial API and implementation - * - * </copyright> - * - */ ---> -</head> -<meta http-equiv="Content-Type" -content="text/html; charset=utf-8" /> -<body bgcolor="white"> -<!-- -This plug-in provides -an <a href="org/eclipse/cdo/helper/package-summary.html#details">API</a> -for cdo. ---> -<!-- The summary links point here when the contents are "copied". --> -<!-- -<a name="details"></a> -Please refer to -the -<a href="org/eclipse/cdo/helper/package-summary.html#details">org.eclipse.emf.cdo.helper</a> -and -<a href="org/eclipse/cdo/parser/package-summary.html#details">org.eclipse.emf.cdo.parser</a> -package documentation for API details. ---> -</body> -</html> diff --git a/plugins/org.eclipse.emf.cdo.doc/copyright.txt b/plugins/org.eclipse.emf.cdo.doc/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.doc/epl-v10.html b/plugins/org.eclipse.emf.cdo.doc/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.doc/images/.cvsignore b/plugins/org.eclipse.emf.cdo.doc/images/.cvsignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/images/.cvsignore +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.doc/license.html b/plugins/org.eclipse.emf.cdo.doc/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.doc/modeling32.png b/plugins/org.eclipse.emf.cdo.doc/modeling32.png Binary files differdeleted file mode 100644 index 6b08de2ada..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/modeling32.png +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.doc/plugin.properties b/plugins/org.eclipse.emf.cdo.doc/plugin.properties deleted file mode 100644 index a1516b2249..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/plugin.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Documentation -providerName = Eclipse.org - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.doc/plugin.xml b/plugins/org.eclipse.emf.cdo.doc/plugin.xml deleted file mode 100644 index fdc5998935..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/plugin.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.3"?> -<!-- - <copyright> - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - 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: - Eike Stepper - Initial API and implementation - - </copyright> ---> - -<plugin> - - <extension - point="org.eclipse.help.toc"> - <toc file="toc.xml" primary="true"/> - <index path="index"/> - </extension> - -</plugin> - diff --git a/plugins/org.eclipse.emf.cdo.doc/references/.cvsignore b/plugins/org.eclipse.emf.cdo.doc/references/.cvsignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/references/.cvsignore +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.doc/toc.xml b/plugins/org.eclipse.emf.cdo.doc/toc.xml deleted file mode 100644 index f217bd69a6..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/toc.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?NLS TYPE="org.eclipse.help.toc"?> - -<toc label="CDO Table of Contents"> - <topic label="Java Docs" href="references/javadoc/index.html"/> - <topic label="Online Docs"> - <topic label="CDO Wiki" href="http://wiki.eclipse.org/CDO" /> - </topic> -</toc> diff --git a/plugins/org.eclipse.emf.cdo.doc/tutorials/.cvsignore b/plugins/org.eclipse.emf.cdo.doc/tutorials/.cvsignore deleted file mode 100644 index e69de29bb2..0000000000 --- a/plugins/org.eclipse.emf.cdo.doc/tutorials/.cvsignore +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/.classpath b/plugins/org.eclipse.emf.cdo.edit/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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/org.eclipse.emf.cdo.edit/.cvsignore b/plugins/org.eclipse.emf.cdo.edit/.cvsignore deleted file mode 100644 index 693869726d..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -bin -doc diff --git a/plugins/org.eclipse.emf.cdo.edit/.project b/plugins/org.eclipse.emf.cdo.edit/.project deleted file mode 100644 index 3d47a25f00..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.edit</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index a7c3c34ae3..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,271 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 3114e9abc8..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:45:49 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 5ef17555f2..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:09:00 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index b3588aec81..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:09:00 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.edit/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.edit/META-INF/MANIFEST.MF deleted file mode 100644 index 3752c26b09..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.edit; singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-ActivationPolicy: lazy -Bundle-Activator: org.eclipse.emf.cdo.eresource.provider.EresourceEditPlugin$Implementation -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: . -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", - org.eclipse.emf.edit;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.ecore.edit;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.cdo;bundle-version="[2.0.0,3.0.0)";visibility:=reexport -Export-Package: org.eclipse.emf.cdo.edit;version="2.0.0", - org.eclipse.emf.cdo.eresource.provider;version="2.0.0" diff --git a/plugins/org.eclipse.emf.cdo.edit/about.html b/plugins/org.eclipse.emf.cdo.edit/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.edit/build.properties b/plugins/org.eclipse.emf.cdo.edit/build.properties deleted file mode 100644 index 109227717d..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html -jars.compile.order = . -source.. = src/ -output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.edit/copyright.txt b/plugins/org.eclipse.emf.cdo.edit/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.edit/epl-v10.html b/plugins/org.eclipse.emf.cdo.edit/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAnnotation.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAnnotation.gif Binary files differdeleted file mode 100644 index accf314bb3..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAnnotation.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAttribute.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAttribute.gif Binary files differdeleted file mode 100644 index c5e047b325..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EAttribute.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EClass.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EClass.gif Binary files differdeleted file mode 100644 index 4c29533ccf..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EClass.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EDataType.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EDataType.gif Binary files differdeleted file mode 100644 index d523a96589..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EDataType.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnum.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnum.gif Binary files differdeleted file mode 100644 index 6d944d72a8..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnum.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnumLiteral.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnumLiteral.gif Binary files differdeleted file mode 100644 index 3052dce139..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EEnumLiteral.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EFactory.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EFactory.gif Binary files differdeleted file mode 100644 index b5ff106252..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EFactory.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EGenericType.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EGenericType.gif Binary files differdeleted file mode 100644 index 1cd7fa09f3..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EGenericType.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EObject.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EObject.gif Binary files differdeleted file mode 100644 index 1623e88e3d..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EObject.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EOperation.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EOperation.gif Binary files differdeleted file mode 100644 index 6844bf8a90..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EOperation.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EPackage.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EPackage.gif Binary files differdeleted file mode 100644 index 6d944d72a8..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EPackage.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EParameter.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EParameter.gif Binary files differdeleted file mode 100644 index 4ae0144c11..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EParameter.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EReference.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EReference.gif Binary files differdeleted file mode 100644 index 19b38abf6c..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_EReference.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_ETypeParameter.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_ETypeParameter.gif Binary files differdeleted file mode 100644 index b5ff106252..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/ctool16/CreateCDOResource_contents_ETypeParameter.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/icons/full/obj16/CDOResource.gif b/plugins/org.eclipse.emf.cdo.edit/icons/full/obj16/CDOResource.gif Binary files differdeleted file mode 100644 index a3908bcf7b..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/icons/full/obj16/CDOResource.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.edit/license.html b/plugins/org.eclipse.emf.cdo.edit/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.edit/plugin.properties b/plugins/org.eclipse.emf.cdo.edit/plugin.properties deleted file mode 100644 index a65712bce7..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/plugin.properties +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Edit Support -providerName = Eclipse.org - -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - -_UI_PropertyDescriptor_description = The {0} of the {1} - -_UI_CDOResource_type = CDO Resource -_UI_Unknown_type = Object - -_UI_Unknown_datatype= Value - -_UI_CDOResource_resourceSet_feature = Resource Set -_UI_CDOResource_uRI_feature = URI -_UI_CDOResource_contents_feature = Contents -_UI_CDOResource_modified_feature = Modified -_UI_CDOResource_loaded_feature = Loaded -_UI_CDOResource_trackingModification_feature = Tracking Modification -_UI_CDOResource_errors_feature = Errors -_UI_CDOResource_warnings_feature = Warnings -_UI_CDOResource_path_feature = Path -_UI_Unknown_feature = Unspecified - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== -_UI_CDOResource_timeStamp_feature = Time Stamp diff --git a/plugins/org.eclipse.emf.cdo.edit/plugin.xml b/plugins/org.eclipse.emf.cdo.edit/plugin.xml deleted file mode 100644 index f6f11a0b28..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.3"?> -<!-- - <copyright> - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - 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: - Eike Stepper - Initial API and implementation - - </copyright> ---> - -<plugin> - - <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories"> - <factory - uri = "http://www.eclipse.org/emf/CDO/resource/1.0.0" - class = "org.eclipse.emf.cdo.eresource.provider.EresourceItemProviderAdapterFactory" - supportedTypes = - "org.eclipse.emf.edit.provider.IEditingDomainItemProvider - org.eclipse.emf.edit.provider.IStructuredItemContentProvider - org.eclipse.emf.edit.provider.ITreeItemContentProvider - org.eclipse.emf.edit.provider.IItemLabelProvider - org.eclipse.emf.edit.provider.IItemPropertySource" /> - </extension> - -</plugin> diff --git a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/edit/CDOItemProviderAdapter.java b/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/edit/CDOItemProviderAdapter.java deleted file mode 100644 index 0bd668db26..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/edit/CDOItemProviderAdapter.java +++ /dev/null @@ -1,63 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.edit; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -import java.util.Collection; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class CDOItemProviderAdapter extends ItemProviderAdapter -{ - public CDOItemProviderAdapter(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - @Override - @SuppressWarnings("deprecation") - public boolean hasChildren(Object object) - { - Collection<? extends EStructuralFeature> anyChildrenFeatures = getChildrenFeatures(object); - if (anyChildrenFeatures.isEmpty()) - { - anyChildrenFeatures = getChildrenReferences(object); - } - - EObject eObject = (EObject)object; - for (EStructuralFeature feature : anyChildrenFeatures) - { - if (feature.isMany()) - { - List<?> children = (List<?>)eObject.eGet(feature); - if (!children.isEmpty()) - { - return true; - } - } - else - { - if (eObject.eIsSet(feature)) - { - return true; - } - } - } - - return false; - } -} diff --git a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/CDOResourceItemProvider.java b/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/CDOResourceItemProvider.java deleted file mode 100644 index c191c8080e..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/CDOResourceItemProvider.java +++ /dev/null @@ -1,271 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.eresource.provider; - -import org.eclipse.emf.cdo.common.CDOProtocolConstants; -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.eresource.EresourcePackage; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -import java.util.Collection; -import java.util.List; - -/** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.eresource.CDOResource} object. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - */ -public class CDOResourceItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource -{ - /** - * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public CDOResourceItemProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) - { - if (itemPropertyDescriptors == null) - { - super.getPropertyDescriptors(object); - - addURIPropertyDescriptor(object); - addModifiedPropertyDescriptor(object); - addLoadedPropertyDescriptor(object); - addTrackingModificationPropertyDescriptor(object); - addTimeStampPropertyDescriptor(object); - addPathPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the URI feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addURIPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_uRI_feature"), getString( - "_UI_PropertyDescriptor_description", "_UI_CDOResource_uRI_feature", "_UI_CDOResource_type"), - EresourcePackage.Literals.CDO_RESOURCE__URI, false, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, null)); - } - - /** - * This adds a property descriptor for the Modified feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addModifiedPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_modified_feature"), getString( - "_UI_PropertyDescriptor_description", "_UI_CDOResource_modified_feature", "_UI_CDOResource_type"), - EresourcePackage.Literals.CDO_RESOURCE__MODIFIED, false, false, false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Loaded feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addLoadedPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_loaded_feature"), getString( - "_UI_PropertyDescriptor_description", "_UI_CDOResource_loaded_feature", "_UI_CDOResource_type"), - EresourcePackage.Literals.CDO_RESOURCE__LOADED, false, false, false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Tracking Modification feature. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - protected void addTrackingModificationPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_trackingModification_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_CDOResource_trackingModification_feature", - "_UI_CDOResource_type"), EresourcePackage.Literals.CDO_RESOURCE__TRACKING_MODIFICATION, true, false, false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Time Stamp feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addTimeStampPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_timeStamp_feature"), getString( - "_UI_PropertyDescriptor_description", "_UI_CDOResource_timeStamp_feature", "_UI_CDOResource_type"), - EresourcePackage.Literals.CDO_RESOURCE__TIME_STAMP, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Path feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addPathPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) - .getRootAdapterFactory(), getResourceLocator(), getString("_UI_CDOResource_path_feature"), getString( - "_UI_PropertyDescriptor_description", "_UI_CDOResource_path_feature", "_UI_CDOResource_type"), - EresourcePackage.Literals.CDO_RESOURCE__PATH, false, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) - { - if (childrenFeatures == null) - { - super.getChildrenFeatures(object); - childrenFeatures.add(EresourcePackage.Literals.CDO_RESOURCE__CONTENTS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) - { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns CDOResource.gif. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object getImage(Object object) - { - return overlayImage(object, getResourceLocator().getImage("full/obj16/CDOResource")); - } - - /** - * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - @Override - public String getText(Object object) - { - CDOResource resource = (CDOResource)object; - return CDOProtocolConstants.PROTOCOL_NAME + ":" + resource.getPath(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a - * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) - { - updateChildren(notification); - - switch (notification.getFeatureID(CDOResource.class)) - { - case EresourcePackage.CDO_RESOURCE__RESOURCE_SET: - case EresourcePackage.CDO_RESOURCE__URI: - case EresourcePackage.CDO_RESOURCE__MODIFIED: - case EresourcePackage.CDO_RESOURCE__LOADED: - case EresourcePackage.CDO_RESOURCE__TRACKING_MODIFICATION: - case EresourcePackage.CDO_RESOURCE__ERRORS: - case EresourcePackage.CDO_RESOURCE__WARNINGS: - case EresourcePackage.CDO_RESOURCE__TIME_STAMP: - case EresourcePackage.CDO_RESOURCE__PATH: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case EresourcePackage.CDO_RESOURCE__CONTENTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under - * this object. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) - { - } - - /** - * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() - { - return ((IChildCreationExtender)adapterFactory).getResourceLocator(); - } - -} diff --git a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceEditPlugin.java b/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceEditPlugin.java deleted file mode 100644 index 6ca82c8ffb..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceEditPlugin.java +++ /dev/null @@ -1,93 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.eresource.provider; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; - -/** - * This is the central singleton for the Eresource edit plugin. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ -public final class EresourceEditPlugin extends EMFPlugin -{ - /** - * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static final EresourceEditPlugin INSTANCE = new EresourceEditPlugin(); - - /** - * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EresourceEditPlugin() - { - super(new ResourceLocator[] { EcoreEditPlugin.INSTANCE, }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() - { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() - { - return plugin; - } - - /** - * The actual implementation of the Eclipse <b>Plugin</b>. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static class Implementation extends EclipsePlugin - { - /** - * Creates an instance. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Implementation() - { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceItemProviderAdapterFactory.java deleted file mode 100644 index c6cf41d0ae..0000000000 --- a/plugins/org.eclipse.emf.cdo.edit/src/org/eclipse/emf/cdo/eresource/provider/EresourceItemProviderAdapterFactory.java +++ /dev/null @@ -1,260 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.eresource.provider; - -import org.eclipse.emf.cdo.eresource.EresourcePackage; -import org.eclipse.emf.cdo.eresource.util.EresourceAdapterFactory; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this - * factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. The adapters - * also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ -public class EresourceItemProviderAdapterFactory extends EresourceAdapterFactory implements ComposeableAdapterFactory, - IChangeNotifier, IDisposable, IChildCreationExtender -{ - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager( - EresourceEditPlugin.INSTANCE, EresourcePackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EresourceItemProviderAdapterFactory() - { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.eresource.CDOResource} instances. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected CDOResourceItemProvider cdoResourceItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.emf.cdo.eresource.CDOResource}. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - @Override - public Adapter createCDOResourceAdapter() - { - if (cdoResourceItemProvider == null) - { - cdoResourceItemProvider = new CDOResourceItemProvider(this); - } - - return cdoResourceItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() - { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) - { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) - { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) - { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) - { - if (isFactoryForType(type)) - { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) - { - return adapter; - } - } - - return null; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public List<IChildCreationExtender> getChildCreationExtenders() - { - return childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Collection<?> getNewChildDescriptors(Object object, EditingDomain editingDomain) - { - return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ResourceLocator getResourceLocator() - { - return childCreationExtenderManager; - } - - /** - * This adds a listener. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) - { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) - { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - public void fireNotifyChanged(Notification notification) - { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) - { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void dispose() - { - if (cdoResourceItemProvider != null) cdoResourceItemProvider.dispose(); - } - -} diff --git a/plugins/org.eclipse.emf.cdo.examples/.classpath b/plugins/org.eclipse.emf.cdo.examples/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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/org.eclipse.emf.cdo.examples/.cvsignore b/plugins/org.eclipse.emf.cdo.examples/.cvsignore deleted file mode 100644 index 860dbe9785..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -bin -doc -state diff --git a/plugins/org.eclipse.emf.cdo.examples/.options b/plugins/org.eclipse.emf.cdo.examples/.options deleted file mode 100644 index 8054983edb..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.options +++ /dev/null @@ -1,3 +0,0 @@ -# Debugging and tracing options - -org.eclipse.emf.cdo.examples/debug = true diff --git a/plugins/org.eclipse.emf.cdo.examples/.project b/plugins/org.eclipse.emf.cdo.examples/.project deleted file mode 100644 index ac4c556af6..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.examples</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index a7c3c34ae3..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,271 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 199978c3fe..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,66 +0,0 @@ -#Sat Feb 23 10:46:00 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -internal.default.compliance=default -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 38bd7eebd6..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:09:08 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index fff614c50c..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:09:08 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.examples/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.examples/META-INF/MANIFEST.MF deleted file mode 100644 index 8ef1a953dc..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.examples;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Activator: org.eclipse.emf.cdo.internal.examples.bundle.OM$Activator -Bundle-ClassPath: . -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)";resolution:=optional, - org.eclipse.emf.cdo;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, - org.eclipse.net4j.tcp;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.cdo.tests.model1;bundle-version="1.0.0" -Bundle-ActivationPolicy: lazy -Export-Package: org.eclipse.emf.cdo.examples, - org.eclipse.emf.cdo.internal.examples.bundle;x-internal:=true diff --git a/plugins/org.eclipse.emf.cdo.examples/about.html b/plugins/org.eclipse.emf.cdo.examples/about.html deleted file mode 100644 index f2decc3a0d..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/about.html +++ /dev/null @@ -1,70 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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> - - <head> - - <meta content="text/html; charset=ISO-8859-1" - http-equiv="Content-Type"/> - - <title>About</title> - - </head> - - <body lang="EN-US"> - - <h2>About This Content</h2> - - <p>May 17, 2007</p> - - <h3>License</h3> - - <p>The Eclipse Foundation makes available all content in this - plug-in ("Content"). Unless otherwise indicated below, - the Content is provided to you under the terms and conditions of - the Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 - ("Redistributor") 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.</p> - - </body> - -</html> - diff --git a/plugins/org.eclipse.emf.cdo.examples/about.ini b/plugins/org.eclipse.emf.cdo.examples/about.ini deleted file mode 100644 index b7e87ca285..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/about.ini +++ /dev/null @@ -1,15 +0,0 @@ -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%featureText - -# Property "featureImage" contains path to feature image (32x32) -featureImage=modeling32.png - -# Property "appName" contains name of the application (translated) -appName=%featureName - diff --git a/plugins/org.eclipse.emf.cdo.examples/about.mappings b/plugins/org.eclipse.emf.cdo.examples/about.mappings deleted file mode 100644 index bddaab4310..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/about.mappings +++ /dev/null @@ -1,6 +0,0 @@ -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=@build@
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples/about.properties b/plugins/org.eclipse.emf.cdo.examples/about.properties deleted file mode 100644 index 24168ef926..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/about.properties +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -featureName = CDO Examples -featureText = CDO Examples \n\ -Version: {featureVersion}\n\ -Build id: {0}\n\ -\n\ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. All rights reserved.\n\ -\n\ -Visit http://wiki.eclipse.org/CDO - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.examples/build.properties b/plugins/org.eclipse.emf.cdo.examples/build.properties deleted file mode 100644 index 7e27ae404a..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/build.properties +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -output.. = bin/ -bin.includes = META-INF/,\ - plugin.properties,\ - .options,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - modeling32.png,\ - . -source.. = src/ -jars.compile.order = examples.jar diff --git a/plugins/org.eclipse.emf.cdo.examples/copyright.txt b/plugins/org.eclipse.emf.cdo.examples/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples/epl-v10.html b/plugins/org.eclipse.emf.cdo.examples/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples/license.html b/plugins/org.eclipse.emf.cdo.examples/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples/modeling32.png b/plugins/org.eclipse.emf.cdo.examples/modeling32.png Binary files differdeleted file mode 100644 index 6b08de2ada..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/modeling32.png +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.examples/plugin.properties b/plugins/org.eclipse.emf.cdo.examples/plugin.properties deleted file mode 100644 index 3f930e1e5e..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/plugin.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Examples -providerName = Eclipse.org - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneContainerExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneContainerExample.java deleted file mode 100644 index 3b1c3a2fed..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneContainerExample.java +++ /dev/null @@ -1,78 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.examples; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOSessionConfiguration; -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.tests.model1.Model1Factory; -import org.eclipse.emf.cdo.tests.model1.Model1Package; -import org.eclipse.emf.cdo.util.CDOUtil; - -import org.eclipse.net4j.Net4jUtil; -import org.eclipse.net4j.connector.IConnector; -import org.eclipse.net4j.tcp.TCPUtil; -import org.eclipse.net4j.util.container.ContainerUtil; -import org.eclipse.net4j.util.container.IManagedContainer; -import org.eclipse.net4j.util.lifecycle.LifecycleUtil; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.log.PrintLogHandler; -import org.eclipse.net4j.util.om.trace.PrintTraceHandler; - -import org.eclipse.emf.ecore.EObject; - -/** - * @author Eike Stepper - */ -public class StandaloneContainerExample -{ - public static void main(String[] args) - { - // Enable logging and tracing - OMPlatform.INSTANCE.setDebugging(true); - OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE); - OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE); - - // Prepare container - IManagedContainer container = ContainerUtil.createContainer(); - Net4jUtil.prepareContainer(container); // Register Net4j factories - TCPUtil.prepareContainer(container); // Register TCP factories - CDOUtil.prepareContainer(container, false); // Register CDO factories - - // Create connector - IConnector connector = TCPUtil.getConnector(container, "localhost:2036"); - - // Create configuration - CDOSessionConfiguration configuration = CDOUtil.createSessionConfiguration(); - configuration.setConnector(connector); - configuration.setRepositoryName("repo1"); - - // Open session - CDOSession session = configuration.openSession(); - session.getPackageRegistry().putEPackage(Model1Package.eINSTANCE); - - // Open transaction - CDOTransaction transaction = session.openTransaction(); - - // Get or create resource - CDOResource resource = transaction.getOrCreateResource("/path/to/my/resource"); - - // Work with the resource and commit the transaction - EObject object = Model1Factory.eINSTANCE.createCompany(); - resource.getContents().add(object); - transaction.commit(); - - // Cleanup - session.close(); - LifecycleUtil.deactivate(connector); - } -} diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneManualExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneManualExample.java deleted file mode 100644 index d5f018577d..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/StandaloneManualExample.java +++ /dev/null @@ -1,112 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.examples; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOSessionConfiguration; -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.tests.model1.Model1Factory; -import org.eclipse.emf.cdo.tests.model1.Model1Package; -import org.eclipse.emf.cdo.util.CDOUtil; - -import org.eclipse.net4j.Net4jUtil; -import org.eclipse.net4j.buffer.IBufferProvider; -import org.eclipse.net4j.util.factory.IFactory; -import org.eclipse.net4j.util.factory.IFactoryKey; -import org.eclipse.net4j.util.lifecycle.LifecycleUtil; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.log.PrintLogHandler; -import org.eclipse.net4j.util.om.trace.PrintTraceHandler; -import org.eclipse.net4j.util.registry.HashMapRegistry; -import org.eclipse.net4j.util.registry.IRegistry; - -import org.eclipse.emf.ecore.EObject; - -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.ThreadFactory; - -/** - * @author Eike Stepper - */ -public class StandaloneManualExample -{ - @SuppressWarnings("restriction") - public static void main(String[] args) - { - // Enable logging and tracing - OMPlatform.INSTANCE.setDebugging(true); - OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE); - OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE); - - // Prepare receiveExecutor - final ThreadGroup threadGroup = new ThreadGroup("net4j"); - ExecutorService receiveExecutor = Executors.newCachedThreadPool(new ThreadFactory() - { - public Thread newThread(Runnable r) - { - Thread thread = new Thread(threadGroup, r); - thread.setDaemon(true); - return thread; - } - }); - - // Prepare bufferProvider - IBufferProvider bufferProvider = Net4jUtil.createBufferPool(); - LifecycleUtil.activate(bufferProvider); - - // Prepare protocolFactoryRegistry - IFactory protocolFactory = new org.eclipse.emf.internal.cdo.protocol.CDOClientProtocolFactory(); - IRegistry<IFactoryKey, IFactory> protocolFactoryRegistry = new HashMapRegistry<IFactoryKey, IFactory>(); - protocolFactoryRegistry.put(protocolFactory.getKey(), protocolFactory); - LifecycleUtil.activate(protocolFactoryRegistry); - - // Prepare selector - org.eclipse.net4j.internal.tcp.TCPSelector selector = new org.eclipse.net4j.internal.tcp.TCPSelector(); - selector.activate(); - - // Prepare connector - org.eclipse.net4j.internal.tcp.TCPClientConnector connector = new org.eclipse.net4j.internal.tcp.TCPClientConnector(); - connector.setReceiveExecutor(receiveExecutor); - connector.setBufferProvider(bufferProvider); - connector.setProtocolFactoryRegistry(protocolFactoryRegistry); - connector.setSelector(selector); - connector.setNegotiator(null); - connector.setHost("localhost"); - connector.setPort(2036); - connector.activate(); - - // Create configuration - CDOSessionConfiguration configuration = CDOUtil.createSessionConfiguration(); - configuration.setConnector(connector); - configuration.setRepositoryName("repo1"); - - // Open session - CDOSession session = configuration.openSession(); - session.getPackageRegistry().putEPackage(Model1Package.eINSTANCE); - - // Open transaction - CDOTransaction transaction = session.openTransaction(); - - // Get or create resource - CDOResource resource = transaction.getOrCreateResource("/path/to/my/resource"); - - // Work with the resource and commit the transaction - EObject object = Model1Factory.eINSTANCE.createCompany(); - resource.getContents().add(object); - transaction.commit(); - - // Cleanup - session.close(); - connector.deactivate(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/internal/examples/bundle/OM.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/internal/examples/bundle/OM.java deleted file mode 100644 index 3429544879..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/internal/examples/bundle/OM.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.examples.bundle; - -import org.eclipse.net4j.util.om.OMBundle; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.OSGiActivator; -import org.eclipse.net4j.util.om.log.OMLogger; -import org.eclipse.net4j.util.om.trace.OMTracer; - -/** - * The <em>Operations & Maintenance</em> class of this bundle. - * - * @author Eike Stepper - */ -public abstract class OM -{ - public static final String BUNDLE_ID = "org.eclipse.emf.cdo.examples"; //$NON-NLS-1$ - - public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class); - - public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$ - - public static final OMLogger LOG = BUNDLE.logger(); - - /** - * @author Eike Stepper - */ - public static final class Activator extends OSGiActivator - { - public Activator() - { - super(BUNDLE); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.migrator/.classpath b/plugins/org.eclipse.emf.cdo.migrator/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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/org.eclipse.emf.cdo.migrator/.cvsignore b/plugins/org.eclipse.emf.cdo.migrator/.cvsignore deleted file mode 100644 index 5298e8d079..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -bin -mixin-bin -doc -text diff --git a/plugins/org.eclipse.emf.cdo.migrator/.project b/plugins/org.eclipse.emf.cdo.migrator/.project deleted file mode 100644 index 96663e7f6a..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.migrator</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 47fe667c1f..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,272 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 6b1be04a4c..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:46:08 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 77dae488d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:09:26 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index 2c46241b5f..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:09:26 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.migrator/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.migrator/META-INF/MANIFEST.MF deleted file mode 100644 index 2430e90847..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.migrator;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: . -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", - org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)", - org.eclipse.ui;bundle-version="[3.4.0,4.0.0)", - org.eclipse.emf.ecore.xmi;bundle-version="[2.4.0,3.0.0)", - org.eclipse.emf.importer;bundle-version="[2.4.0,3.0.0)" -Export-Package: org.eclipse.emf.cdo.internal.migrator;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.migrator.actions;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.migrator.wizards;version="2.0.0";x-internal:=true diff --git a/plugins/org.eclipse.emf.cdo.migrator/about.html b/plugins/org.eclipse.emf.cdo.migrator/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.migrator/build.properties b/plugins/org.eclipse.emf.cdo.migrator/build.properties deleted file mode 100644 index 32ecdea01e..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -bin.includes = .,\ - META-INF/,\ - plugin.properties,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html,\ - plugin.xml,\ - icons/ -jars.compile.order = . -source.. = src/ -output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.migrator/copyright.txt b/plugins/org.eclipse.emf.cdo.migrator/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.migrator/epl-v10.html b/plugins/org.eclipse.emf.cdo.migrator/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.migrator/icons/.cvsignore b/plugins/org.eclipse.emf.cdo.migrator/icons/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/icons/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.migrator/icons/full/.cvsignore b/plugins/org.eclipse.emf.cdo.migrator/icons/full/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/icons/full/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/.cvsignore b/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/CDOModelFile.gif b/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/CDOModelFile.gif Binary files differdeleted file mode 100644 index dad78b27a8..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/icons/full/obj16/CDOModelFile.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.migrator/license.html b/plugins/org.eclipse.emf.cdo.migrator/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.migrator/plugin.properties b/plugins/org.eclipse.emf.cdo.migrator/plugin.properties deleted file mode 100644 index d569946a2f..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/plugin.properties +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Migrator Tool -providerName = Eclipse.org - -_UI_CDOImporter_label = Ecore model (CDO Native) -_UI_CDOImporter_description = Create the Ecore model based on other Ecore or EMOF models - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.migrator/plugin.xml b/plugins/org.eclipse.emf.cdo.migrator/plugin.xml deleted file mode 100644 index 3298a9eb09..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/plugin.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.3"?> -<!-- - <copyright> - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - 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: - Eike Stepper - Initial API and implementation - - </copyright> ---> - -<plugin> - - <extension point="org.eclipse.emf.importer.modelImporterDescriptors"> - <modelImporterDescriptor - id="org.eclipse.emf.importer.cdo" - name="%_UI_CDOImporter_label" - icon="icons/full/obj16/CDOModelFile.gif" - extensions="ecore,emof" - description="%_UI_CDOImporter_description" - wizard="org.eclipse.emf.cdo.internal.migrator.wizards.CDOImporterWizard" /> - </extension> - - <extension - point="org.eclipse.ui.popupMenus"> - <objectContribution - id="org.eclipse.emf.cdo.migrator.MigrateContribution" - nameFilter="*.genmodel" - objectClass="org.eclipse.core.resources.IFile"> - <menu - id="org.eclipse.emf.cdo.migrator.menu1" - label="CDO" - path="additions"> - <separator - name="group1"> - </separator> - </menu> - <action - class="org.eclipse.emf.cdo.internal.migrator.actions.MigrateAction" - enablesFor="1" - id="org.eclipse.emf.cdo.migrator.MigrateAction" - label="Migrate EMF Model" - menubarPath="org.eclipse.emf.cdo.migrator.menu1/group1"> - </action> - </objectContribution> - </extension> - -</plugin> diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOImporter.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOImporter.java deleted file mode 100644 index 4a368a8e9a..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOImporter.java +++ /dev/null @@ -1,158 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.migrator; - -import org.eclipse.emf.codegen.ecore.genmodel.GenModel; -import org.eclipse.emf.codegen.ecore.genmodel.GenPackage; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.DiagnosticException; -import org.eclipse.emf.common.util.Monitor; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.common.util.UniqueEList; -import org.eclipse.emf.converter.ConverterPlugin; -import org.eclipse.emf.converter.util.ConverterUtil; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.Diagnostician; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.importer.ModelImporter; - -import org.eclipse.core.resources.IProject; - -import java.text.MessageFormat; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class CDOImporter extends ModelImporter -{ - public static final String IMPORTER_ID = "org.eclipse.emf.importer.cdo"; - - public CDOImporter() - { - } - - @Override - public String getID() - { - return IMPORTER_ID; - } - - @Override - protected Diagnostic doComputeEPackages(Monitor monitor) throws Exception - { - Diagnostic diagnostic = Diagnostic.OK_INSTANCE; - - List<URI> locationURIs = getModelLocationURIs(); - if (locationURIs.isEmpty()) - { - diagnostic = new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.cdo.internal.migrator", 0, - "Specify a valid Ecore model and try loading again", null); - } - else - { - monitor.beginTask("", 2); - monitor.subTask(MessageFormat.format("Loading {0}", locationURIs)); - - ResourceSet ecoreResourceSet = createResourceSet(); - for (URI ecoreModelLocation : locationURIs) - { - ecoreResourceSet.getResource(ecoreModelLocation, true); - } - EcoreUtil.resolveAll(ecoreResourceSet); - - for (Resource resource : ecoreResourceSet.getResources()) - { - getEPackages().addAll( - EcoreUtil.<EPackage> getObjectsByType(resource.getContents(), EcorePackage.Literals.EPACKAGE)); - } - - BasicDiagnostic diagnosticChain = new BasicDiagnostic(ConverterPlugin.ID, ConverterUtil.ACTION_MESSAGE_NONE, - "Problems were detected while validating and converting the Ecore models", null); - for (EPackage ePackage : getEPackages()) - { - Diagnostician.INSTANCE.validate(ePackage, diagnosticChain); - } - if (diagnosticChain.getSeverity() != Diagnostic.OK) - { - diagnostic = diagnosticChain; - } - } - return diagnostic; - } - - @Override - public void addToResource(EPackage ePackage, ResourceSet resourceSet) - { - if (ePackage.eResource() != null && getGenModel().eResource() != null) - { - URI ePackageURI = ePackage.eResource().getURI(); - URI genModelURI = getGenModel().eResource().getURI(); - - if (!ePackageURI.trimSegments(1).equals(genModelURI.trimSegments(1))) - { - ePackage.eResource().getContents().remove(ePackage); - } - } - super.addToResource(ePackage, resourceSet); - } - - @Override - protected void adjustGenModel(Monitor monitor) - { - super.adjustGenModel(monitor); - - GenModel genModel = getGenModel(); - URI genModelURI = createFileURI(getGenModelPath().toString()); - for (URI uri : getModelLocationURIs()) - { - genModel.getForeignModel().add(makeRelative(uri, genModelURI).toString()); - } - - IProject project = getWorkspaceRoot().getProject(getModelProjectName()); - CDOMigrator.adjustGenModel(genModel, project); - } - - @Override - protected void handleOriginalGenModel() throws DiagnosticException - { - URI genModelURI = getOriginalGenModel().eResource().getURI(); - StringBuffer text = new StringBuffer(); - for (String value : getOriginalGenModel().getForeignModel()) - { - if (value.endsWith(".ecore") || value.endsWith(".emof")) - { - text.append(makeAbsolute(URI.createURI(value), genModelURI).toString()); - text.append(" "); - } - } - - if (text.length() == 0) - { - List<URI> locations = new UniqueEList<URI>(); - for (GenPackage genPackage : getOriginalGenModel().getGenPackages()) - { - URI ecoreURI = genPackage.getEcorePackage().eResource().getURI(); - if (locations.add(ecoreURI)) - { - text.append(makeAbsolute(URI.createURI(ecoreURI.toString()), genModelURI).toString()); - text.append(" "); - } - } - } - - setModelLocation(text.toString().trim()); - } -} diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOMigrator.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOMigrator.java deleted file mode 100644 index 1beb14495a..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/CDOMigrator.java +++ /dev/null @@ -1,112 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.migrator; - -import org.eclipse.emf.codegen.ecore.genmodel.GenDelegationKind; -import org.eclipse.emf.codegen.ecore.genmodel.GenModel; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.WrappedException; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.NullProgressMonitor; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; - -/** - * @author Eike Stepper - */ -public abstract class CDOMigrator -{ - public static final String ROOT_EXTENDS_CLASS = "org.eclipse.emf.internal.cdo.CDOObjectImpl"; - - public static final String ROOT_EXTENDS_INTERFACE = "org.eclipse.emf.cdo.CDOObject"; - - public static final String PLUGIN_VARIABLE = "CDO=org.eclipse.emf.cdo"; - - public static final String CDO_MF_CONTENTS = "This is a marker file for bundles with CDO native models.\n"; - - private CDOMigrator() - { - } - - public static String adjustGenModel(GenModel genModel, IProject project) - { - StringBuilder builder = new StringBuilder(); - - if (genModel.getFeatureDelegation() != GenDelegationKind.REFLECTIVE_LITERAL) - { - genModel.setFeatureDelegation(GenDelegationKind.REFLECTIVE_LITERAL); - builder.append("Set Feature Delegation = "); - builder.append(GenDelegationKind.REFLECTIVE_LITERAL); - builder.append("\n"); - } - - if (!ROOT_EXTENDS_CLASS.equals(genModel.getRootExtendsClass())) - { - genModel.setRootExtendsClass(ROOT_EXTENDS_CLASS); - builder.append("Set Root Extends Class = "); - builder.append(ROOT_EXTENDS_CLASS); - builder.append("\n"); - } - - if (!ROOT_EXTENDS_INTERFACE.equals(genModel.getRootExtendsInterface())) - { - genModel.setRootExtendsInterface(ROOT_EXTENDS_INTERFACE); - builder.append("Set Root Extends Interface = "); - builder.append(ROOT_EXTENDS_INTERFACE); - builder.append("\n"); - } - - EList<String> pluginVariables = genModel.getModelPluginVariables(); - if (!pluginVariables.contains(PLUGIN_VARIABLE)) - { - pluginVariables.add(PLUGIN_VARIABLE); - builder.append("Added Model Plugin Variables = "); - builder.append(PLUGIN_VARIABLE); - builder.append("\n"); - } - - IFolder folder = project.getFolder("META-INF"); - if (!folder.exists()) - { - try - { - folder.create(true, true, new NullProgressMonitor()); - builder.append("Created META-INF folder\n"); - } - catch (CoreException ex) - { - throw new WrappedException(ex); - } - } - - IFile file = folder.getFile("CDO.MF"); - if (!file.exists()) - { - try - { - InputStream contents = new ByteArrayInputStream(CDO_MF_CONTENTS.getBytes()); - file.create(contents, true, new NullProgressMonitor()); - builder.append("Created CDO.MF marker file\n"); - } - catch (CoreException ex) - { - throw new WrappedException(ex); - } - } - - return builder.length() == 0 ? null : builder.toString(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/actions/MigrateAction.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/actions/MigrateAction.java deleted file mode 100644 index b4682e94f4..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/actions/MigrateAction.java +++ /dev/null @@ -1,184 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.migrator.actions; - -import org.eclipse.emf.cdo.internal.migrator.CDOMigrator; - -import org.eclipse.emf.codegen.ecore.genmodel.GenModel; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.core.runtime.jobs.Job; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IObjectActionDelegate; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PlatformUI; - -import java.util.Map; - -/** - * @author Eike Stepper - */ -public class MigrateAction implements IObjectActionDelegate -{ - @SuppressWarnings("unused") - private IAction action; - - private ISelection selection; - - public MigrateAction() - { - } - - public void selectionChanged(IAction action, ISelection selection) - { - this.action = action; - this.selection = selection; - } - - public void setActivePart(IAction action, IWorkbenchPart targetPart) - { - this.action = action; - } - - public void run(IAction action) - { - new Job("Migrating EMF model") - { - @Override - protected IStatus run(IProgressMonitor monitor) - { - try - { - IFile file = getFile(); - if (file == null) - { - showMessage("The selected element is not a *.genmodel file.", true); - } - else - { - GenModel genModel = getGenModel(file); - if (genModel == null) - { - showMessage("The selected file does not contain a generator model.", true); - } - else - { - String msg = CDOMigrator.adjustGenModel(genModel, file.getProject()); - if (msg == null) - { - showMessage("The selected generator model was already migrated.", false); - } - else - { - genModel.eResource().save(null); - showMessage("The selected generator model has been migrated:\n\n" + msg, false); - } - } - } - } - catch (Exception ex) - { - return new Status(IStatus.ERROR, "org.eclipse.emf.cdo.internal.migrator", "Problem while migrating EMF model", ex); - } - - return Status.OK_STATUS; - } - }.schedule(); - } - - protected IFile getFile() - { - if (selection instanceof IStructuredSelection) - { - Object element = ((IStructuredSelection)selection).getFirstElement(); - if (element instanceof IFile) - { - IFile file = (IFile)element; - if ("genmodel".equals(file.getFileExtension())) - { - return file; - } - } - } - - return null; - } - - protected GenModel getGenModel(IFile file) - { - ResourceSet resourceSet = new ResourceSetImpl(); - - Map<String, Object> map = resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap(); - map.put("*", new XMIResourceFactoryImpl()); - - URI uri = URI.createPlatformResourceURI(file.getFullPath().toString(), false); - Resource resource = resourceSet.getResource(uri, true); - - EList<EObject> contents = resource.getContents(); - if (!contents.isEmpty()) - { - EObject object = contents.get(0); - if (object instanceof GenModel) - { - return (GenModel)object; - } - } - - return null; - } - - protected void showMessage(final String msg, final boolean error) - { - try - { - final Display display = PlatformUI.getWorkbench().getDisplay(); - display.syncExec(new Runnable() - { - public void run() - { - try - { - final Shell shell = new Shell(display); - if (error) - { - MessageDialog.openError(shell, "CDO Migrator", msg); - } - else - { - MessageDialog.openInformation(shell, "CDO Migrator", msg); - } - } - catch (RuntimeException ignore) - { - } - } - }); - } - catch (RuntimeException ignore) - { - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/wizards/CDOImporterWizard.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/wizards/CDOImporterWizard.java deleted file mode 100644 index 5defc3ad7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/wizards/CDOImporterWizard.java +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.migrator.wizards; - -import org.eclipse.emf.cdo.internal.migrator.CDOImporter; - -import org.eclipse.emf.converter.ModelConverter; -import org.eclipse.emf.importer.ui.contribution.base.ModelImporterDetailPage; -import org.eclipse.emf.importer.ui.contribution.base.ModelImporterPackagePage; -import org.eclipse.emf.importer.ui.contribution.base.ModelImporterWizard; - -/** - * @author Eike Stepper - */ -public class CDOImporterWizard extends ModelImporterWizard -{ - public CDOImporterWizard() - { - } - - @Override - protected ModelConverter createModelConverter() - { - return new CDOImporter(); - } - - @Override - public void addPages() - { - ModelImporterDetailPage detailPage = new ModelImporterDetailPage(getModelImporter(), "EcoreModel"); - detailPage.setTitle("Ecore &Import"); - detailPage - .setDescription(detailPage.showGenModel() ? "Specify one or more \'.ecore\' or \'.emof\' URIs, try to load them, and choose a file name for the generator model" - : "Specify one or more \'.ecore\' or \'.emof\' URIs and try to load them"); - addPage(detailPage); - - ModelImporterPackagePage packagePage = new ModelImporterPackagePage(getModelImporter(), "EcorePackages"); - packagePage.setShowReferencedGenModels(true); - addPage(packagePage); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.classpath b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.classpath deleted file mode 100644 index 304e86186a..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <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="output" path="bin"/> -</classpath> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.cvsignore b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.cvsignore deleted file mode 100644 index e59ed82764..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -bin -doc -*.jar diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.project b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.project deleted file mode 100644 index c316db8704..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.server.hibernate.teneo</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 07f56f92aa..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,335 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=ignore -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore -org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeUncheckedExceptions=disabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 1de73a7bf9..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:47:53 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 1936d37033..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:11:00 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index 6b005097b5..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:11:00 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.pde.core.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index e03b596f21..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Mon Mar 03 10:59:33 CET 2008 -eclipse.preferences.version=1 -resolve.requirebundle=false diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/META-INF/MANIFEST.MF deleted file mode 100644 index f9f1113cfa..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/META-INF/MANIFEST.MF +++ /dev/null @@ -1,13 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.server.hibernate.teneo;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Require-Bundle: org.eclipse.emf.ecore.xmi;bundle-version="[2.4.0,3.0.0)", - org.eclipse.emf.cdo.server.hibernate;bundle-version="[2.0.0,3.0.0)";visibility:=reexport -Import-Package: org.eclipse.emf.teneo.hibernate.cdo, - org.hibernate.cfg -Export-Package: org.eclipse.emf.cdo.server.hibernate.teneo;version="2.0.0" diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/build.properties b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/build.properties deleted file mode 100644 index 2259a9eec4..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/build.properties +++ /dev/null @@ -1,9 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - copyright.txt,\ - epl-v10.html,\ - license.html,\ - plugin.properties -jars.extra.classpath = platform:/plugin/org.eclipse.emf.cdo.server.hibernate.libraries/lib/hibernate3.jar diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/copyright.txt b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/copyright.txt deleted file mode 100644 index ae21640f79..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Martin Taal - initial API and implementation diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/epl-v10.html b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/license.html b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/plugin.properties b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/plugin.properties deleted file mode 100644 index 3b12c5cff7..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/plugin.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Server Hibernate Teneo Integration -providerName = Eclipse.org - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/src/org/eclipse/emf/cdo/server/hibernate/teneo/TeneoHibernateMappingProvider.java b/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/src/org/eclipse/emf/cdo/server/hibernate/teneo/TeneoHibernateMappingProvider.java deleted file mode 100644 index 8c8b2b70dd..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate.teneo/src/org/eclipse/emf/cdo/server/hibernate/teneo/TeneoHibernateMappingProvider.java +++ /dev/null @@ -1,161 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Springsite B.V. and others - * 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: - * Martin Taal - initial API and implementation - * Eike Stepper - https://bugs.eclipse.org/238300 - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate.teneo; - -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.server.hibernate.IHibernateMappingProvider; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStore; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl; -import org.eclipse.emf.ecore.xml.type.XMLTypePackage; -import org.eclipse.emf.teneo.hibernate.cdo.CDOHelper; - -import org.hibernate.cfg.Configuration; - -import java.io.ByteArrayInputStream; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Properties; - -/** - * Uses the ecore string in the cdoPackages of the store to generate a mapping. - * - * @author Martin Taal - * @author Eike Stepper - */ -public class TeneoHibernateMappingProvider implements IHibernateMappingProvider -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, TeneoHibernateMappingProvider.class); - - private IHibernateStore hibernateStore; - - public void addMapping(Configuration configuration) - { - final String mapping = generateMapping(); - if (TRACER.isEnabled()) - { - TRACER.trace("Generated hibernate mapping:"); - TRACER.trace(mapping); - } - - configuration.addXML(mapping); - if (TRACER.isEnabled()) - { - TRACER.trace("Added mapping to configuration"); - } - } - - // the passed modelObjects collection is defined as a collection of Objects - // to prevent binary dependency on emf. - public String generateMapping() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Generating Hibernate Mapping"); - } - - final Properties properties = HibernateUtil.getInstance().getPropertiesFromStore(getHibernateStore()); - - // TODO: handle nested package structures - final List<EPackage> epacks = new ArrayList<EPackage>(); - final ResourceSet rs = new ResourceSetImpl(); - rs.getPackageRegistry().put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE); - rs.getPackageRegistry().put(XMLTypePackage.eNS_URI, XMLTypePackage.eINSTANCE); - rs.getResourceFactoryRegistry().getExtensionToFactoryMap().put("*", new EcoreResourceFactoryImpl()); - for (CDOPackage cdoPackage : getHibernateStore().getPackageHandler().getCDOPackages()) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Using cdoPackage : " + cdoPackage.getName() + " - " + cdoPackage.getPackageURI()); - } - - final String ecoreStr = cdoPackage.getEcore(); - if (ecoreStr == null) - { - // happens at initialization time - continue; - } - - // this assumes that the (default) encoding is the same on both the client and server - final ByteArrayInputStream bis = new ByteArrayInputStream(ecoreStr.getBytes()); - - // fool the resourceset by passing a fake uri - final URI epackageURI = URI.createURI(cdoPackage.getPackageURI()); - final Resource resource = rs.createResource(epackageURI); - try - { - resource.load(bis, Collections.EMPTY_MAP); - - // now the toplevel content should be EPackage - for (Object contentObject : resource.getContents()) - { - epacks.addAll(resolveSubPackages((EPackage)contentObject)); - } - } - catch (Exception e) - { - throw WrappedException.wrap(e); - } - } - - // translate the list of EPackages to an array - final EPackage[] ePackageArray = epacks.toArray(new EPackage[epacks.size()]); - properties.put("teneo.mapping.also_map_as_class", "false"); - return CDOHelper.getInstance().generateMapping(ePackageArray, properties); - } - - // this will check the global package registry and read the epackages from - // there if the epackage is already present there - protected List<EPackage> resolveSubPackages(EPackage ePackage) - { - final List<EPackage> result = new ArrayList<EPackage>(); - resolveSubPackages(ePackage, result); - return result; - } - - private void resolveSubPackages(EPackage ePackage, List<EPackage> result) - { - EPackage globalPackage = EPackage.Registry.INSTANCE.getEPackage(ePackage.getNsURI()); - if (globalPackage != null) - { - ePackage = globalPackage; - } - - result.add(ePackage); - for (EPackage subEPackage : ePackage.getESubpackages()) - { - resolveSubPackages(subEPackage, result); - } - } - - public IHibernateStore getHibernateStore() - { - return hibernateStore; - } - - public void setHibernateStore(IHibernateStore hibernateStore) - { - this.hibernateStore = hibernateStore; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.classpath b/plugins/org.eclipse.emf.cdo.server.hibernate/.classpath deleted file mode 100644 index b6498f9459..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> - <classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.cvsignore b/plugins/org.eclipse.emf.cdo.server.hibernate/.cvsignore deleted file mode 100644 index e59ed82764..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -bin -doc -*.jar diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.options b/plugins/org.eclipse.emf.cdo.server.hibernate/.options deleted file mode 100644 index b688dd9aed..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.options +++ /dev/null @@ -1,3 +0,0 @@ -# Debugging and tracing options - -org.eclipse.emf.cdo.server.hibernate/debug = true diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.project b/plugins/org.eclipse.emf.cdo.server.hibernate/.project deleted file mode 100644 index 186aba3e41..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.server.hibernate</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 277708cd18..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,329 +0,0 @@ -#Mon Jun 09 18:09:30 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore -org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeUncheckedExceptions=disabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 3b7272149d..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:47:41 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 2faf67e44b..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:10:24 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index be6c1b0826..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:10:30 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.pde.core.prefs b/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index 3864d82455..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -#Sat Mar 01 20:35:21 CET 2008 -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.server.hibernate/META-INF/MANIFEST.MF deleted file mode 100644 index d6c1b3a729..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/META-INF/MANIFEST.MF +++ /dev/null @@ -1,20 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.server.hibernate;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-ActivationPolicy: lazy -Bundle-Activator: org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM$Activator -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: . -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", - org.eclipse.emf.cdo.server;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.cdo.server.hibernate.libraries;bundle-version="[1.0.0,2.0.0)";visibility:=reexport, - org.eclipse.emf.cdo.server.hibernate.id;bundle-version="[2.0.0,3.0.0)";visibility:=reexport -Export-Package: org.eclipse.emf.cdo.server.hibernate;version="2.0.0", - org.eclipse.emf.cdo.server.internal.hibernate;version="2.0.0", - org.eclipse.emf.cdo.server.internal.hibernate.bundle;version="2.0.0", - org.eclipse.emf.cdo.server.internal.hibernate.info;version="2.0.0", - org.eclipse.emf.cdo.server.internal.hibernate.tuplizer;version="2.0.0" diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/about.html b/plugins/org.eclipse.emf.cdo.server.hibernate/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.server.hibernate/about.ini b/plugins/org.eclipse.emf.cdo.server.hibernate/about.ini deleted file mode 100644 index b7e87ca285..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/about.ini +++ /dev/null @@ -1,15 +0,0 @@ -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%featureText - -# Property "featureImage" contains path to feature image (32x32) -featureImage=modeling32.png - -# Property "appName" contains name of the application (translated) -appName=%featureName - diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/about.mappings b/plugins/org.eclipse.emf.cdo.server.hibernate/about.mappings deleted file mode 100644 index 720ca870fa..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/about.mappings +++ /dev/null @@ -1,6 +0,0 @@ -# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/about.properties b/plugins/org.eclipse.emf.cdo.server.hibernate/about.properties deleted file mode 100644 index 8195ca89fa..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/about.properties +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -featureName = CDO Server Hibernate -featureText = CDO Server Hibernate\n\ -Version: {featureVersion}\n\ -Build id: {0}\n\ -\n\ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. All rights reserved.\n\ -\n\ -Visit http://wiki.eclipse.org/CDO - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/build.properties b/plugins/org.eclipse.emf.cdo.server.hibernate/build.properties deleted file mode 100644 index d936599c9b..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/build.properties +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - .options,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html,\ - plugin.xml,\ - plugin.properties,\ - mappings/,\ - about.ini,\ - about.mappings,\ - about.properties,\ - modeling32.png diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/copyright.txt b/plugins/org.eclipse.emf.cdo.server.hibernate/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/epl-v10.html b/plugins/org.eclipse.emf.cdo.server.hibernate/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/license.html b/plugins/org.eclipse.emf.cdo.server.hibernate/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml deleted file mode 100644 index 74961d1fb0..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> -<hibernate-mapping package="org.eclipse.emf.cdo.internal.common.model"> - - <class name="org.eclipse.emf.cdo.common.model.CDOClassProxy" table="cdo_classes_proxy" lazy="false"> - <id column="id" type="int"> - <generator class="increment" /> - </id> - <many-to-one name="classRef" class="org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl" column="cdoClassProxy" - not-null="false" cascade="all" access="field" /> - </class> - - <class name="org.eclipse.emf.cdo.internal.common.model.CDOClassRefImpl" table="cdo_classes_ref" lazy="false"> - <id column="id" type="int"> - <generator class="increment" /> - </id> - <property name="packageURI" column="packageURI" type="string" not-null="true" access="field" /> - <property name="classifierID" column="classifier" type="int" not-null="true" access="field" /> - </class> - - <class name="CDOModelElementImpl" table="cdo_modelelements" lazy="false"> - <id name="serverInfo" column="id" type="int"> - <generator class="increment" /> - </id> - <property name="name" type="string" not-null="true" length="255" /> - </class> - - <joined-subclass name="CDOPackageImpl" table="cdo_packages" lazy="false" extends="CDOModelElementImpl"> - <key /> - <property name="packageURI" column="uri" type="string" not-null="true" length="255" /> - <property name="ecore" type="text" not-null="false" /> - <property name="dynamic" type="boolean" not-null="true" /> - <property name="parentURI" column="parentUri" type="string" length="255" /> - <property name="metaIDRange" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDMetaRangeUserType" - not-null="true"> - <column name="metaIDStart" /> - <column name="metaIDSize" /> - </property> - <list name="classes" lazy="false" cascade="all, delete-orphan" access="field"> - <key /> - <list-index /> - <one-to-many class="CDOClassImpl" /> - </list> - </joined-subclass> - - <joined-subclass name="CDOClassImpl" table="cdo_classes" lazy="false" extends="CDOModelElementImpl"> - <key /> - <property name="classifierID" column="classifier" type="int" not-null="true" /> - <property name="abstract" column="abstract" type="boolean" not-null="true" /> - <list name="superTypes" lazy="false" cascade="merge,persist,save-update,lock,refresh" access="field"> - <key> - <column name="supertype" /> - </key> - <list-index /> - <many-to-many class="org.eclipse.emf.cdo.common.model.CDOClassProxy" /> - </list> - <list name="features" lazy="false" cascade="all, delete-orphan" access="field"> - <key /> - <list-index /> - <one-to-many class="CDOFeatureImpl" /> - </list> - </joined-subclass> - - <joined-subclass name="CDOFeatureImpl" table="cdo_features" extends="CDOModelElementImpl" lazy="false"> - <key /> - <property name="featureID" column="feature" type="int" not-null="true" /> - <property name="type" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOTypeUserType" not-null="false" /> - <many-to-one name="referenceTypeProxy" class="org.eclipse.emf.cdo.common.model.CDOClassProxy" column="reftype" - not-null="false" cascade="persist, merge, save-update, evict, replicate, lock, refresh" - access="field" /> - <property name="many" type="boolean" not-null="true" /> - <property name="containment" type="boolean" not-null="false" /> - </joined-subclass> -</hibernate-mapping>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml deleted file mode 100644 index f369963959..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> -<hibernate-mapping auto-import="false"> - <class entity-name="CDOResource" abstract="false" lazy="false" discriminator-value="cdoresource" table="`cdo_resources`"> - <meta attribute="eclassName">CDOResource</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/resource/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticIdPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticVersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="path" type="string" not-null="true" length="255" /> - <list name="contents" lazy="true" cascade="all,delete-orphan"> - <key/> - <list-index/> - <element type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType"> - <column name="entityName"/> - <column name="idString"/> - <column name="idBinary" length="1000"/> - </element> - </list> - </class> -</hibernate-mapping> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/modeling32.png b/plugins/org.eclipse.emf.cdo.server.hibernate/modeling32.png Binary files differdeleted file mode 100644 index 6b08de2ada..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/modeling32.png +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.properties b/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.properties deleted file mode 100644 index 8b2703f0a6..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Server Hibernate -providerName = Eclipse.org - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.xml b/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.xml deleted file mode 100644 index fa269f23cf..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/plugin.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.3"?> -<!-- - <copyright> - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - 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: - Eike Stepper - Initial API and implementation - - </copyright> ---> - -<plugin> - - <extension - point="org.eclipse.emf.cdo.server.storeFactories"> - <storeFactory - class="org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreFactory" - storeType="hibernate"> - </storeFactory> - </extension> - -</plugin> diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/CDOHibernateUtil.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/CDOHibernateUtil.java deleted file mode 100644 index 1545af13c9..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/CDOHibernateUtil.java +++ /dev/null @@ -1,30 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - added mappingProvider support - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore; - -/** - * @author Eike Stepper - * @author Martin Taal - */ -public final class CDOHibernateUtil -{ - private CDOHibernateUtil() - { - } - - public static IHibernateStore createStore(IHibernateMappingProvider mappingProvider) - { - return new HibernateStore(mappingProvider); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateMappingProvider.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateMappingProvider.java deleted file mode 100644 index 2b1ec7df41..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateMappingProvider.java +++ /dev/null @@ -1,27 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.hibernate.cfg.Configuration; - -/** - * A mappingprovider adds a hibernate mapping to a hibernate configuration object. - * - * @author Martin Taal - */ -public interface IHibernateMappingProvider -{ - /** Adds a mapping to a configuration object */ - public void addMapping(Configuration configuration); - - /** Sets the Store in the mapping provider, is called before addMapping. */ - public void setHibernateStore(IHibernateStore hibernateStore); -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStore.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStore.java deleted file mode 100644 index 3f270d650b..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStore.java +++ /dev/null @@ -1,35 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.server.ISession; -import org.eclipse.emf.cdo.server.IStore; -import org.eclipse.emf.cdo.server.IView; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernatePackageHandler; - -import org.hibernate.SessionFactory; -import org.hibernate.cfg.Configuration; - -/** - * @author Eike Stepper - */ -public interface IHibernateStore extends IStore -{ - public Configuration getHibernateConfiguration(); - - public SessionFactory getHibernateSessionFactory(); - - public IHibernateStoreReader getReader(ISession session); - - public IHibernateStoreWriter getWriter(IView view); - - public HibernatePackageHandler getPackageHandler(); -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreAccessor.java deleted file mode 100644 index a506b6e5b0..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreAccessor.java +++ /dev/null @@ -1,25 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.server.IStoreAccessor; - -import org.hibernate.Session; - -/** - * @author Eike Stepper - */ -public interface IHibernateStoreAccessor extends IStoreAccessor -{ - public IHibernateStore getStore(); - - public Session getHibernateSession(); -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreChunkReader.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreChunkReader.java deleted file mode 100644 index dc36a94e53..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreChunkReader.java +++ /dev/null @@ -1,21 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.server.IStoreChunkReader; - -/** - * @author Eike Stepper - */ -public interface IHibernateStoreChunkReader extends IStoreChunkReader -{ - public IHibernateStoreReader getStoreReader(); -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreReader.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreReader.java deleted file mode 100644 index 8eda1d407b..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreReader.java +++ /dev/null @@ -1,23 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.IStoreReader; - -/** - * @author Eike Stepper - */ -public interface IHibernateStoreReader extends IHibernateStoreAccessor, IStoreReader -{ - public IHibernateStoreChunkReader createChunkReader(CDORevision revision, CDOFeature feature); -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreWriter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreWriter.java deleted file mode 100644 index 5ebd9fac01..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/hibernate/IHibernateStoreWriter.java +++ /dev/null @@ -1,20 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.hibernate; - -import org.eclipse.emf.cdo.server.IStoreWriter; - -/** - * @author Eike Stepper - */ -public interface IHibernateStoreWriter extends IHibernateStoreReader, IStoreWriter -{ -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateCommitContext.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateCommitContext.java deleted file mode 100644 index 41b0fd45c7..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateCommitContext.java +++ /dev/null @@ -1,96 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.IStoreWriter.CommitContext; - -import java.util.HashMap; - -/** - * A HibernateCommitContext contains the commitcontext as well as support for direct (hashmap) based search for a new or - * changed object using the id. - * - * @author Martin Taal - */ -public class HibernateCommitContext -{ - private CommitContext commitContext; - - private HashMap<CDOID, CDORevision> dirtyObjects = null; - - private HashMap<CDOID, CDORevision> newObjects = null; - - public CommitContext getCommitContext() - { - return commitContext; - } - - public void setCommitContext(CommitContext commitContext) - { - this.commitContext = commitContext; - } - - // initialize is not done when the commitContext is set because it appeared - // that at that moment the temp id's are not repaired. The initialize method - // is called on demand. - protected void initialize() - { - if (dirtyObjects != null) - { - return; - } - - dirtyObjects = new HashMap<CDOID, CDORevision>(); - for (CDORevision cdoRevision : commitContext.getDirtyObjects()) - { - dirtyObjects.put(cdoRevision.getID(), cdoRevision); - } - - newObjects = new HashMap<CDOID, CDORevision>(); - for (CDORevision cdoRevision : commitContext.getNewObjects()) - { - newObjects.put(cdoRevision.getID(), cdoRevision); - } - } - - public CDORevision getDirtyObject(CDOID id) - { - initialize(); - return dirtyObjects.get(id); - } - - public CDORevision getNewObject(CDOID id) - { - initialize(); - return newObjects.get(id); - } - - public void setNewID(CDOID oldId, CDOID newId) - { - initialize(); - CDORevision cdoRevision; - if ((cdoRevision = dirtyObjects.get(oldId)) != null) - { - dirtyObjects.remove(oldId); - dirtyObjects.put(newId, cdoRevision); - return; - } - - if ((cdoRevision = newObjects.get(oldId)) != null) - { - newObjects.remove(oldId); - newObjects.put(newId, cdoRevision); - return; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateFileMappingProvider.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateFileMappingProvider.java deleted file mode 100644 index f1853b3b0f..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateFileMappingProvider.java +++ /dev/null @@ -1,94 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Springsite B.V. and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.server.hibernate.IHibernateMappingProvider; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStore; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.io.IOUtil; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.cfg.Configuration; - -import java.io.InputStream; - -/** - * Reads the hibernate mapping file from one or more resource locations and adds them to the configuration. - * - * @author Martin Taal - */ -public class HibernateFileMappingProvider implements IHibernateMappingProvider -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateFileMappingProvider.class); - - private IHibernateStore hibernateStore; - - private final String[] mappingFileLocations; - - public HibernateFileMappingProvider(String location) - { - this(new String[] { location }); - } - - public HibernateFileMappingProvider(String[] locations) - { - mappingFileLocations = locations; - } - - public IHibernateStore getHibernateStore() - { - return hibernateStore; - } - - public void setHibernateStore(IHibernateStore hibernateStore) - { - this.hibernateStore = hibernateStore; - } - - public void addMapping(Configuration configuration) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Adding hibernate mapping from location(s):"); - } - - for (String location : mappingFileLocations) - { - if (TRACER.isEnabled()) - { - TRACER.trace(location); - } - - InputStream is = null; - try - { - // MT.Question: the mapping file is in a dependent plugin but when using the OM.BUNDLE - // it tries to find it in this plugin and I get: - // filenotfound: - // /home/mtaal/mydata/dev/workspaces/nextspace/org.eclipse.emf.cdo.server.hibernate/mappings/product.hbm.xml - // I have set Eclipse-BuddyPolicy to dependent - // is = OM.BUNDLE.getInputStream(location); - is = getClass().getResourceAsStream(location); - configuration.addInputStream(is); - } - catch (Exception e) - { - throw WrappedException.wrap(e); - } - finally - { - IOUtil.close(is); - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java deleted file mode 100644 index b3f5b8a031..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java +++ /dev/null @@ -1,428 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - moved code from HibernateStore to this class - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.model.CDOClass; -import org.eclipse.emf.cdo.common.model.CDOClassProxy; -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.common.model.CDOPackageInfo; -import org.eclipse.emf.cdo.server.IStoreWriter.CommitContext; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; -import org.eclipse.emf.cdo.spi.common.InternalCDOClass; -import org.eclipse.emf.cdo.spi.common.InternalCDOFeature; -import org.eclipse.emf.cdo.spi.common.InternalCDOPackage; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.io.IOUtil; -import org.eclipse.net4j.util.lifecycle.Lifecycle; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.Criteria; -import org.hibernate.Session; -import org.hibernate.SessionFactory; -import org.hibernate.Transaction; -import org.hibernate.cfg.Configuration; -import org.hibernate.criterion.Expression; -import org.hibernate.tool.hbm2ddl.SchemaUpdate; - -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * Delegate which stores and retrieves cdo packages. - * <p> - * TODO extend {@link Lifecycle}. See {@link #doActivate()} and {@link #doDeactivate()}. - * - * @author Eike Stepper - * @author Martin Taal - */ -public class HibernatePackageHandler extends Lifecycle -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateStoreWriter.class); - - private Configuration configuration; - - private SessionFactory sessionFactory; - - private int nextPackageID; - - private int nextClassID; - - private int nextFeatureID; - - private Collection<CDOPackageInfo> cdoPackageInfos = null; - - private HibernateStore hibernateStore; - - /** - * TODO Necessary to pass/store/dump the properties from the store? - */ - public HibernatePackageHandler(HibernateStore store) - { - hibernateStore = store; - } - - public List<CDOPackage> getCDOPackages() - { - List<CDOPackage> cdoPackages = new ArrayList<CDOPackage>(); - if (HibernateThreadContext.isHibernateCommitContextSet()) - { - CommitContext cc = HibernateThreadContext.getHibernateCommitContext().getCommitContext(); - if (cc instanceof org.eclipse.emf.cdo.internal.server.Transaction) - { - org.eclipse.emf.cdo.internal.server.Transaction tx = (org.eclipse.emf.cdo.internal.server.Transaction)cc; - for (CDOPackage cdoPackage : tx.getNewPackages()) - { - cdoPackages.add(cdoPackage); - } - } - } - - for (CDOPackage cdoPackage : hibernateStore.getRepository().getPackageManager().getPackages()) - { - cdoPackages.add(cdoPackage); - } - - for (CDOPackage cdoPackage : cdoPackages) - { - // force resolve - if (cdoPackage.getClassCount() == 0) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Returning " + cdoPackage.getPackageURI()); - } - } - } - - return cdoPackages; - } - - public void writePackages(CDOPackage... cdoPackages) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Persisting new CDOPackages"); - } - - Session session = getSessionFactory().openSession(); - Transaction tx = session.beginTransaction(); - boolean err = true; - boolean updated = false; - - try - { - for (CDOPackage cdoPackage : cdoPackages) - { - if (cdoPackageExistsAndIsUnchanged(cdoPackage)) - { - OM.LOG.warn("CDOPackage " + cdoPackage.getPackageURI() + " already exists not persisting it again!"); - continue; - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Persisting CDOPackage " + cdoPackage.getPackageURI()); - } - - session.saveOrUpdate(cdoPackage); - updated = true; - } - - tx.commit(); - err = false; - } - finally - { - if (err) - { - tx.rollback(); - } - - session.close(); - } - - if (updated) - { - reset(); - hibernateStore.reInitialize(); - } - } - - protected boolean cdoPackageExistsAndIsUnchanged(CDOPackage newCDOPackage) - { - CDOPackage[] cdoPackages = hibernateStore.getRepository().getPackageManager().getPackages(); - for (CDOPackage cdoPackage : cdoPackages) - { - if (cdoPackage.getClassCount() > 0 && cdoPackage.getPackageURI().compareTo(newCDOPackage.getPackageURI()) == 0) - { - return cdoPackage.getEcore().compareTo(newCDOPackage.getEcore()) == 0; - } - } - - return false; - } - - public void writePackage(CDOPackage cdoPackage) - { - if (cdoPackageExistsAndIsUnchanged(cdoPackage)) - { - OM.LOG.warn("CDOPackage " + cdoPackage.getPackageURI() + " already exists not persisting it again!"); - return; - } - - Session session = getSessionFactory().openSession(); - Transaction tx = session.beginTransaction(); - boolean err = true; - try - { - if (TRACER.isEnabled()) - { - TRACER.trace("Persisting CDOPackage " + cdoPackage.getPackageURI()); - } - - session.saveOrUpdate(cdoPackage); - tx.commit(); - err = false; - } - finally - { - if (err) - { - tx.rollback(); - } - - session.close(); - } - - reset(); - hibernateStore.reInitialize(); - } - - public Collection<CDOPackageInfo> getCDOPackageInfos() - { - readPackageInfos(); - return cdoPackageInfos; - } - - protected void readPackage(CDOPackage cdoPackage) - { - if (cdoPackage.getClassCount() > 0) - { // already initialized go away - return; - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Reading CDOPackage with uri " + cdoPackage.getPackageURI() + " from db"); - } - - Session session = getSessionFactory().openSession(); - - try - { - Criteria criteria = session.createCriteria(CDOPackage.class); - criteria.add(Expression.eq("packageURI", cdoPackage.getPackageURI())); - List<?> list = criteria.list(); - if (list.size() != 1) - { - throw new IllegalArgumentException("CDOPackage with uri " + cdoPackage.getPackageURI() - + " not present in the db"); - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Found " + list.size() + " CDOPackages in DB"); - } - - CDOPackage dbPackage = (CDOPackage)list.get(0); - if (TRACER.isEnabled()) - { - TRACER.trace("Read CDOPackage: " + cdoPackage.getName()); - } - - ((InternalCDOPackage)cdoPackage).setServerInfo(dbPackage.getServerInfo()); - ((InternalCDOPackage)cdoPackage).setName(dbPackage.getName()); - ((InternalCDOPackage)cdoPackage).setEcore(dbPackage.getEcore()); - ((InternalCDOPackage)cdoPackage).setMetaIDRange(cdoPackage.getMetaIDRange()); - - final List<CDOClass> cdoClasses = new ArrayList<CDOClass>(); - for (CDOClass cdoClass : dbPackage.getClasses()) - { - cdoClasses.add(cdoClass); - for (CDOClassProxy proxy : ((InternalCDOClass)cdoClass).getSuperTypeProxies()) - { - proxy.setCDOPackageManager(hibernateStore.getRepository().getPackageManager()); - } - - for (CDOFeature cdoFeature : cdoClass.getFeatures()) - { - final InternalCDOFeature internalFeature = (InternalCDOFeature)cdoFeature; - internalFeature.setContainingClass(cdoClass); - if (internalFeature.getReferenceTypeProxy() != null) - { - internalFeature.getReferenceTypeProxy().setCDOPackageManager( - hibernateStore.getRepository().getPackageManager()); - } - } - } - - ((InternalCDOPackage)cdoPackage).setClasses(cdoClasses); - } - finally - { - session.close(); - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Finished reading CDOPackages"); - } - } - - protected void readPackageInfos() - { - if (cdoPackageInfos == null || cdoPackageInfos.size() == 0) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Reading CDOPackages from db"); - } - - Collection<CDOPackageInfo> result = new ArrayList<CDOPackageInfo>(); - Session session = getSessionFactory().openSession(); - - try - { - Criteria criteria = session.createCriteria(CDOPackage.class); - List<?> list = criteria.list(); - if (TRACER.isEnabled()) - { - TRACER.trace("Found " + list.size() + " CDOPackages in DB"); - } - - for (Object object : list) - { - CDOPackage cdoPackage = (CDOPackage)object; - if (TRACER.isEnabled()) - { - TRACER.trace("Read CDOPackage: " + cdoPackage.getName()); - } - - result.add(new CDOPackageInfo(cdoPackage.getPackageURI(), cdoPackage.isDynamic(), - cdoPackage.getMetaIDRange(), cdoPackage.getParentURI())); - ((InternalCDOPackage)cdoPackage).setPackageManager(hibernateStore.getRepository().getPackageManager()); - } - - cdoPackageInfos = result; - } - finally - { - session.close(); - } - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Finished reading CDOPackages"); - } - } - - public synchronized SessionFactory getSessionFactory() - { - if (sessionFactory == null) - { - sessionFactory = configuration.buildSessionFactory(); - } - - return sessionFactory; - } - - public synchronized int getNextPackageID() - { - return nextPackageID++; - } - - public synchronized int getNextClassID() - { - return nextClassID++; - } - - public synchronized int getNextFeatureID() - { - return nextFeatureID++; - } - - public void reset() - { - cdoPackageInfos = null; - } - - @Override - protected void doActivate() throws Exception - { - super.doActivate(); - initConfiguration(); - initSchema(); - } - - @Override - protected void doDeactivate() throws Exception - { - if (sessionFactory != null) - { - sessionFactory.close(); - sessionFactory = null; - } - - super.doDeactivate(); - } - - protected void initConfiguration() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Initializing configuration for CDO metadata"); - } - - InputStream in = null; - - try - { - in = OM.BUNDLE.getInputStream("mappings/meta.hbm.xml"); - configuration = new Configuration(); - configuration.addInputStream(in); - configuration.setProperties(HibernateUtil.getInstance().getPropertiesFromStore(hibernateStore)); - } - catch (Exception ex) - { - throw WrappedException.wrap(ex); - } - finally - { - IOUtil.close(in); - } - } - - protected void initSchema() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Updating db schema for Hibernate PackageHandler"); - } - - new SchemaUpdate(configuration).execute(true, true); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStore.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStore.java deleted file mode 100644 index 23d49b4bb0..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStore.java +++ /dev/null @@ -1,299 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - moved cdopackage handler to other class, changed configuration - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.id.CDOIDLibraryDescriptor; -import org.eclipse.emf.cdo.common.id.CDOIDLibraryProvider; -import org.eclipse.emf.cdo.common.id.CDOIDObjectFactory; -import org.eclipse.emf.cdo.internal.server.Store; -import org.eclipse.emf.cdo.server.ISession; -import org.eclipse.emf.cdo.server.IView; -import org.eclipse.emf.cdo.server.hibernate.IHibernateMappingProvider; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStore; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateFactoryImpl; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateLibraryHandler; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; -import org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOInterceptor; -import org.eclipse.emf.cdo.spi.common.CDOIDLibraryProviderImpl; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.io.IOUtil; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.SessionFactory; -import org.hibernate.cfg.Configuration; - -import java.io.InputStream; - -/** - * @author Eike Stepper - * @author Martin Taal - */ -public class HibernateStore extends Store implements IHibernateStore -{ - public static final String TYPE = "hibernate"; - - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateStore.class); - - private static final CDOIDObjectFactory CDOID_OBJECT_FACTORY = new CDOIDHibernateFactoryImpl(); - - private static final IDLibraryProvider CDOID_LIBRARY_PROVIDER = new IDLibraryProvider(); - - private static final CDOIDLibraryDescriptor CDOID_LIBRARY_DESCRIPTOR = CDOID_LIBRARY_PROVIDER - .createDescriptor(CDOIDHibernateFactoryImpl.class.getName()); - - /** - * Used to give different extensions of Hibernate a context when initializing - */ - private static ThreadLocal<HibernateStore> currentHibernateStore = new ThreadLocal<HibernateStore>(); - - private Configuration hibernateConfiguration; - - private SessionFactory hibernateSessionFactory; - - private HibernatePackageHandler packageHandler; - - private IHibernateMappingProvider mappingProvider; - - public HibernateStore(IHibernateMappingProvider mappingProvider) - { - super(TYPE); - this.mappingProvider = mappingProvider; - packageHandler = new HibernatePackageHandler(this); - - if (TRACER.isEnabled() && mappingProvider != null) - { - TRACER.trace("HibernateStore with mappingProvider " + mappingProvider.getClass().getName()); - } - } - - public Configuration getHibernateConfiguration() - { - return hibernateConfiguration; - } - - public synchronized SessionFactory getHibernateSessionFactory() - { - if (hibernateSessionFactory == null) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Initializing SessionFactory for HibernateStore"); - } - - currentHibernateStore.set(this); - - try - { - initConfiguration(); - hibernateSessionFactory = hibernateConfiguration.buildSessionFactory(); - } - finally - { - currentHibernateStore.set(null); - } - } - - return hibernateSessionFactory; - } - - public boolean hasAuditingSupport() - { - return false; - } - - public boolean hasBranchingSupport() - { - return false; - } - - public boolean hasWriteDeltaSupport() - { - return false; - } - - public CDOIDObjectFactory getCDOIDObjectFactory() - { - return CDOID_OBJECT_FACTORY; - } - - public CDOIDLibraryDescriptor getCDOIDLibraryDescriptor() - { - return CDOID_LIBRARY_DESCRIPTOR; - } - - public CDOIDLibraryProvider getCDOIDLibraryProvider() - { - return CDOID_LIBRARY_PROVIDER; - } - - @Override - public HibernateStoreReader getReader(ISession session) - { - return (HibernateStoreReader)super.getReader(session); - } - - @Override - public HibernateStoreReader createReader(ISession session) - { - return new HibernateStoreReader(this, session); - } - - @Override - public HibernateStoreWriter getWriter(IView view) - { - return (HibernateStoreWriter)super.getWriter(view); - } - - @Override - public HibernateStoreWriter createWriter(IView view) - { - return new HibernateStoreWriter(this, view); - } - - public synchronized int getNextPackageID() - { - return packageHandler.getNextPackageID(); - } - - public synchronized int getNextClassID() - { - return packageHandler.getNextClassID(); - } - - public synchronized int getNextFeatureID() - { - return packageHandler.getNextFeatureID(); - } - - public boolean wasCrashed() - { - return false; - } - - public void repairAfterCrash() - { - throw new UnsupportedOperationException(); // TODO Implement me - } - - public HibernatePackageHandler getPackageHandler() - { - return packageHandler; - } - - // TODO: synchronize?? - @Override - protected void doActivate() throws Exception - { - super.doActivate(); - packageHandler.activate(); - } - - @Override - protected void doDeactivate() throws Exception - { - if (hibernateSessionFactory != null) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Closing SessionFactory"); - } - - hibernateSessionFactory.close(); - hibernateSessionFactory = null; - } - - packageHandler.deactivate(); - super.doDeactivate(); - } - - // is called after a new package has been added - // TODO: synchronize?? - // TODO: combine with doActivate/doDeactivate?? - // TODO: assumes that packageHandler has been reset - protected void reInitialize() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Re-Initializing HibernateStore"); - } - - if (hibernateSessionFactory != null) - { - if (!hibernateSessionFactory.isClosed()) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Closing SessionFactory"); - } - - hibernateSessionFactory.close(); - } - - hibernateSessionFactory = null; - } - } - - protected void initConfiguration() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Initializing Configuration"); - } - - InputStream in = null; - - try - { - hibernateConfiguration = new Configuration(); - if (mappingProvider != null) - { - mappingProvider.setHibernateStore(this); - mappingProvider.addMapping(hibernateConfiguration); - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Adding resource.hbm.xml to configuration"); - } - - in = OM.BUNDLE.getInputStream("mappings/resource.hbm.xml"); - hibernateConfiguration.addInputStream(in); - hibernateConfiguration.setInterceptor(new CDOInterceptor()); - hibernateConfiguration.setProperties(HibernateUtil.getInstance().getPropertiesFromStore(this)); - } - catch (Exception ex) - { - throw WrappedException.wrap(ex); - } - finally - { - IOUtil.close(in); - } - } - - public static HibernateStore getCurrentHibernateStore() - { - return currentHibernateStore.get(); - } - - /** - * @author Eike Stepper - */ - private static final class IDLibraryProvider extends CDOIDLibraryProviderImpl - { - public IDLibraryProvider() - { - addLibrary(CDOIDHibernateLibraryHandler.LIBRARY_NAME, org.eclipse.emf.cdo.server.hibernate.internal.id.bundle.OM.BUNDLE); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java deleted file mode 100644 index e01d838c31..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java +++ /dev/null @@ -1,120 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - specific hibernate functionality - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.internal.server.StoreAccessor; -import org.eclipse.emf.cdo.server.ISession; -import org.eclipse.emf.cdo.server.IView; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStoreAccessor; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.Session; -import org.hibernate.SessionFactory; - -/** - * @author Eike Stepper - * @author Martin Taal - */ -public class HibernateStoreAccessor extends StoreAccessor implements IHibernateStoreAccessor -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateStoreAccessor.class); - - private Session hibernateSession; - - protected HibernateStoreAccessor(HibernateStore store, ISession session) - { - super(store, session); - if (TRACER.isEnabled()) - { - TRACER.trace("Created " + this.getClass().getName() + " for repository " + store.getRepository().getName()); - } - } - - protected HibernateStoreAccessor(HibernateStore store, IView view) - { - super(store, view); - if (TRACER.isEnabled()) - { - TRACER.trace("Created " + this.getClass().getName() + " for repository " + store.getRepository().getName()); - } - } - - protected Session createHibernateSession() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Creating hibernate session and setting it in threadlocal HibernateThreadContext"); - } - - SessionFactory sessionFactory = getStore().getHibernateSessionFactory(); - Session session = sessionFactory.openSession(); - HibernateThreadContext.setSession(session); - return session; - } - - @Override - protected void doRelease() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Releasing hibernate session"); - } - - HibernateThreadContext.setSession(null); - clearHibernateSession(); - } - - /** Clears the current hibernate session and sets a new one in the thread context */ - public void resetHibernateSession() - { - clearHibernateSession(); - getHibernateSession(); - } - - @Override - public HibernateStore getStore() - { - return (HibernateStore)super.getStore(); - } - - public void clearHibernateSession() - { - if (TRACER.isEnabled()) - { - TRACER.trace("Removing hibernate session"); - } - - if (hibernateSession != null && hibernateSession.isOpen()) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Closing hibernate session"); - } - - hibernateSession.close(); - } - - hibernateSession = null; - } - - public Session getHibernateSession() - { - if (hibernateSession == null) - { - hibernateSession = createHibernateSession(); - } - - return hibernateSession; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreChunkReader.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreChunkReader.java deleted file mode 100644 index 5c99c483c1..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreChunkReader.java +++ /dev/null @@ -1,55 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.internal.server.StoreChunkReader; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStoreChunkReader; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStoreReader; - -import java.util.List; - -/** - * @author Eike Stepper - */ -public class HibernateStoreChunkReader extends StoreChunkReader implements IHibernateStoreChunkReader -{ - public HibernateStoreChunkReader(IHibernateStoreReader storeReader, CDORevision revision, CDOFeature feature) - { - super(storeReader, revision, feature); - } - - @Override - public HibernateStoreReader getStoreReader() - { - return (HibernateStoreReader)super.getStoreReader(); - } - - @Override - public void addSimpleChunk(int index) - { - // super.addSimpleChunk(index); - throw new UnsupportedOperationException(); // TODO Implement me - } - - @Override - public void addRangedChunk(int fromIndex, int toIndex) - { - // super.addRangedChunk(fromIndex, toIndex); - throw new UnsupportedOperationException(); // TODO Implement me - } - - public List<Chunk> executeRead() - { - throw new UnsupportedOperationException(); // TODO Implement me - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreFactory.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreFactory.java deleted file mode 100644 index 6cda2111c7..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.server.IStore; -import org.eclipse.emf.cdo.server.IStoreFactory; - -import org.w3c.dom.Element; - -/** - * @author Eike Stepper - */ -public class HibernateStoreFactory implements IStoreFactory -{ - public HibernateStoreFactory() - { - } - - public String getStoreType() - { - return HibernateStore.TYPE; - } - - public IStore createStore(Element storeConfig) - { - throw new UnsupportedOperationException(); // TODO Implement me - // IMappingStrategy mappingStrategy = getMappingStrategy(storeConfig); - // IDBAdapter dbAdapter = getDBAdapter(storeConfig); - // DataSource dataSource = getDataSource(storeConfig); - // IDBConnectionProvider connectionProvider = DBUtil.createConnectionProvider(dataSource); - // HibernateStore store = new HibernateStore(mappingStrategy, dbAdapter, connectionProvider); - // mappingStrategy.setStore(store); - // return store; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreReader.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreReader.java deleted file mode 100644 index 2424eaf0cb..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreReader.java +++ /dev/null @@ -1,160 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - specific hibernate functionality - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.model.CDOClassRef; -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.common.model.CDOPackageInfo; -import org.eclipse.emf.cdo.common.model.resource.CDOResourceClass; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.ISession; -import org.eclipse.emf.cdo.server.IView; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStoreReader; -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.collection.CloseableIterator; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.Criteria; -import org.hibernate.Query; -import org.hibernate.Session; -import org.hibernate.criterion.Expression; - -import java.util.Collection; -import java.util.List; - -/** - * @author Eike Stepper - * @author Martin Taal - */ -public class HibernateStoreReader extends HibernateStoreAccessor implements IHibernateStoreReader -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateStoreReader.class); - - public HibernateStoreReader(HibernateStore store, ISession session) - { - super(store, session); - } - - protected HibernateStoreReader(HibernateStore store, IView view) - { - super(store, view); - } - - public HibernateStoreChunkReader createChunkReader(CDORevision revision, CDOFeature feature) - { - return new HibernateStoreChunkReader(this, revision, feature); - } - - public CloseableIterator<CDOID> readObjectIDs(boolean withTypes) - { - throw new UnsupportedOperationException(); - } - - public CDOClassRef readObjectType(CDOID id) - { - CDORevision cdoRevision = readRevision(id, -1); - return cdoRevision.getCDOClass().createClassRef(); - } - - public void readPackage(CDOPackage cdoPackage) - { - getStore().getPackageHandler().readPackage(cdoPackage); - } - - public Collection<CDOPackageInfo> readPackageInfos() - { - return getStore().getPackageHandler().getCDOPackageInfos(); - } - - public CDOID readResourceID(String path) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Finding resourceid using path " + path); - } - - Session session = getHibernateSession(); - Criteria criteria = session.createCriteria(CDOResourceClass.NAME); - criteria.add(Expression.eq("path", path)); - List<?> result = criteria.list(); - if (result.size() == 0) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Resource not found"); - } - - // TODO: throw exception? - return null; - } - - // TODO: throw exception if list.size() > 1? - CDORevision cdoRevision = (CDORevision)result.get(0); - return cdoRevision.getID(); - } - - public String readResourcePath(CDOID id) - { - if (id == null) - { - throw new IllegalArgumentException("ID must be not null"); - } - - if (!(id instanceof CDOIDHibernate)) - { - throw new IllegalArgumentException("ID type " + id.getClass().getName() + " not supported by hibernate reader"); - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Finding resource using id " + id); - } - - Session session = getHibernateSession(); - Query qry = session.createQuery("select path from " + CDOResourceClass.NAME + " where id=:id"); - CDOIDHibernate idHibernate = (CDOIDHibernate)id; - qry.setParameter("id", idHibernate.getId()); - final List<?> result = qry.list(); - if (result.size() == 0) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Resource not found"); - } - - // TODO: throw exception? - return null; - } - - return (String)result.get(0); - } - - public CDORevision readRevision(CDOID id, int referenceChunk) - { - return HibernateUtil.getInstance().getCDORevision(id); - } - - public CDORevision readRevisionByTime(CDOID id, int referenceChunk, long timeStamp) - { - throw new UnsupportedOperationException(); - } - - public CDORevision readRevisionByVersion(CDOID id, int referenceChunk, int version) - { - // TODO Could be necessary to implement - throw new UnsupportedOperationException(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreWriter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreWriter.java deleted file mode 100644 index e8b84118a6..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreWriter.java +++ /dev/null @@ -1,193 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - added hibernate specific implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.model.CDOClassProxy; -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta; -import org.eclipse.emf.cdo.server.IView; -import org.eclipse.emf.cdo.server.hibernate.IHibernateStoreWriter; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; -import org.eclipse.emf.cdo.spi.common.InternalCDOClass; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.FlushMode; -import org.hibernate.Session; - -/** - * @author Eike Stepper - */ -public class HibernateStoreWriter extends HibernateStoreReader implements IHibernateStoreWriter -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateStoreWriter.class); - - public HibernateStoreWriter(HibernateStore store, IView view) - { - super(store, view); - } - - @Override - public void commit(CommitContext context) - { - if (TRACER.isEnabled()) - { - TRACER.trace("Committing transaction"); - } - - HibernateThreadContext.setCommitContext(context); - writePackages(context.getNewPackages()); - - try - { - // start with fresh hibernate session - Session session = getHibernateSession(); - session.setFlushMode(FlushMode.COMMIT); - session.beginTransaction(); - for (Object o : context.getNewObjects()) - { - CDORevision cdoRevision = (CDORevision)o; - session.save(HibernateUtil.getInstance().getEntityName(cdoRevision), o); - if (TRACER.isEnabled()) - { - TRACER.trace("Persisted new Object " + ((CDORevision)o).getCDOClass().getName() + " id: " - + cdoRevision.getID()); - } - } - - for (Object o : context.getDirtyObjects()) - { - try - { - CDORevision cdoRevision = (CDORevision)o; - if (cdoRevision instanceof InternalCDORevision) - { - ((InternalCDORevision)cdoRevision).setVersion(cdoRevision.getVersion() - 1); - } - - session.update(HibernateUtil.getInstance().getEntityName(cdoRevision), o); - if (TRACER.isEnabled()) - { - TRACER.trace("Updated Object " + ((CDORevision)o).getCDOClass().getName() + " id: " + cdoRevision.getID()); - } - } - catch (Exception e) - { - OM.LOG.error(e); - throw WrappedException.wrap(e); - } - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Commit hibernate transaction"); - } - - session.getTransaction().commit(); - } - finally - { - if (TRACER.isEnabled()) - { - TRACER.trace("Clearing used hibernate session"); - } - - HibernateThreadContext.setCommitContext(null); - } - - if (TRACER.isEnabled()) - { - TRACER.trace("Applying id mappings"); - } - - context.applyIDMappings(); - } - - @Override - public boolean isReader() - { - // TODO Is this necessary? - return false; - } - - @Override - public void rollback(CommitContext context) - { - // Don't do anything as the real action is done at commit (which does not happen now) - if (TRACER.isEnabled()) - { - TRACER.trace("Rollbacked called"); - } - } - - @Override - protected void writeClass(InternalCDOClass cdoClass) - { - throw new UnsupportedOperationException("Should not be called, should be handled by hibernate cascade"); - } - - @Override - protected void writeFeature(CDOFeature feature) - { - throw new UnsupportedOperationException("Should not be called, should be handled by hibernate cascade"); - } - - @Override - protected void writePackages(CDOPackage... cdoPackages) - { - if (cdoPackages != null && cdoPackages.length != 0) - { - getStore().getPackageHandler().writePackages(cdoPackages); - } - - // Set a new hibernatesession in the thread - resetHibernateSession(); - } - - @Override - protected void writePackage(CDOPackage cdoPackage) - { - throw new UnsupportedOperationException("Should not be called"); - } - - @Override - protected void writeRevision(CDORevision revision) - { - // Do nothing, do it all at commit - } - - @Override - protected void writeRevisionDelta(CDORevisionDelta revisionDelta) - { - } - - @Override - protected void writeRevisionDeltas(CDORevisionDelta[] revisionDeltas) - { - } - - @Override - protected void writeRevisions(CDORevision[] revisions) - { - // Don't do anything it is done at commit - } - - @Override - protected void writeSuperType(InternalCDOClass type, CDOClassProxy superType) - { - throw new UnsupportedOperationException("Should not be called, should be handled by hibernate cascade"); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateThreadContext.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateThreadContext.java deleted file mode 100644 index 9cca7a24ef..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateThreadContext.java +++ /dev/null @@ -1,111 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.server.IStoreWriter.CommitContext; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.Session; - -/** - * @author Martin Taal - */ -public class HibernateThreadContext -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, HibernateThreadContext.class); - - private static ThreadLocal<HibernateCommitContext> commitContext = new ThreadLocal<HibernateCommitContext>(); - - private static ThreadLocal<Session> session = new ThreadLocal<Session>(); - - public static Session getSession() - { - Session result = session.get(); - if (result == null) - { - throw new IllegalStateException("Session not set"); - } - - return result; - } - - public static void setSession(Session newSession) - { - if (newSession != null && session.get() != null) - { - throw new IllegalStateException("Session already set"); - } - - if (TRACER.isEnabled()) - { - if (newSession == null) - { - TRACER.trace("Clearing session in threadlocal"); - } - else - { - TRACER.trace("Setting session in threadlocal"); - } - } - - session.set(newSession); - } - - public static HibernateCommitContext getHibernateCommitContext() - { - HibernateCommitContext result = commitContext.get(); - if (result == null) - { - throw new IllegalStateException("CommitContext not set"); - } - - return result; - } - - public static boolean isHibernateCommitContextSet() - { - return commitContext.get() != null; - } - - public static void setCommitContext(CommitContext newCommitContext) - { - if (newCommitContext != null && commitContext.get() != null) - { - throw new IllegalStateException("CommitContext already set"); - } - - if (TRACER.isEnabled()) - { - if (newCommitContext == null) - { - TRACER.trace("Clearing commitcontext in threadlocal"); - } - else - { - TRACER.trace("Setting commitcontext in threadlocal"); - } - } - - // reset the context - if (newCommitContext == null) - { - commitContext.set(null); - } - else - { - final HibernateCommitContext hcc = new HibernateCommitContext(); - hcc.setCommitContext(newCommitContext); - commitContext.set(hcc); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateUtil.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateUtil.java deleted file mode 100644 index 37d5de5b41..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateUtil.java +++ /dev/null @@ -1,148 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDTemp; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.IStore; -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.Session; - -import java.util.Map; -import java.util.Properties; - -/** - * @author Martin Taal - */ -public class HibernateUtil -{ - private static HibernateUtil instance = new HibernateUtil(); - - /** - * @return the instance - */ - public static HibernateUtil getInstance() - { - return instance; - } - - /** - * @param instance - * the instance to set - */ - public static void setInstance(HibernateUtil instance) - { - HibernateUtil.instance = instance; - } - - /** Converts from a Map<String, String> to a Properties */ - public Properties getPropertiesFromStore(IStore store) - { - Properties props = new Properties(); - Map<String, String> storeProps = store.getRepository().getProperties(); - for (String key : storeProps.keySet()) - { - props.setProperty(key, storeProps.get(key)); - } - - return props; - } - - public String getEntityName(CDORevision cdoRevision) - { - return cdoRevision.getCDOClass().getName(); - } - - /** - * Translates a temporary cdoID into a hibernate ID, by finding the object it refers to in the CommitContext and then - * returning or by persisting the object. Note assumes that the hibernate session and CommitContext are set in - * HibernateThreadContext. - */ - public CDOIDHibernate getCDOIDHibernate(CDOID cdoID) - { - CDORevision cdoRevision = getCDORevision(cdoID); - if (cdoRevision.getID() instanceof CDOIDHibernate) - { - return (CDOIDHibernate)cdoRevision.getID(); - } - - Session session = HibernateThreadContext.getSession(); - session.saveOrUpdate(cdoRevision); - if (!(cdoRevision.getID() instanceof CDOIDHibernate)) - { - throw new IllegalStateException("CDORevision " + cdoRevision.getCDOClass().getName() + " " + cdoRevision.getID() - + " does not have a hibernate cdoid after saving/updating it"); - } - - return (CDOIDHibernate)cdoRevision.getID(); - } - - public InternalCDORevision getCDORevision(Object target) - { - // if (target instanceof CDOObject) - // { - // return (InternalCDORevision)((CDOObject)target).cdoRevision(); - // } - // else - // { - return (InternalCDORevision)target; - // } - } - - /** - * Gets a current object, first checks the new and dirty objects from the commitcontent. Otherwise reads it from the - * session. - */ - public CDORevision getCDORevision(CDOID id) - { - if (id.isNull()) - { - return null; - } - - if (HibernateThreadContext.isHibernateCommitContextSet()) - { - HibernateCommitContext hcc = HibernateThreadContext.getHibernateCommitContext(); - CDORevision revision; - if ((revision = hcc.getDirtyObject(id)) != null) - { - return revision; - } - if ((revision = hcc.getNewObject(id)) != null) - { - return revision; - } - - // maybe the temp was already translated - if (id instanceof CDOIDTemp) - { - CDOID newID = hcc.getCommitContext().getIDMappings().get(id); - if (newID != null) - { - return getCDORevision(newID); - } - } - } - - if (!(id instanceof CDOIDHibernate)) - { - throw new IllegalArgumentException("Passed cdoid is not an instance of CDOIDHibernate but a " - + id.getClass().getName() + ": " + id); - } - - CDOIDHibernate cdoIDHibernate = (CDOIDHibernate)id; - Session session = HibernateThreadContext.getSession(); - return (CDORevision)session.get(cdoIDHibernate.getEntityName(), cdoIDHibernate.getId()); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/bundle/OM.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/bundle/OM.java deleted file mode 100644 index eed970eb48..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/bundle/OM.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.bundle; - -import org.eclipse.net4j.util.om.OMBundle; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.OSGiActivator; -import org.eclipse.net4j.util.om.log.OMLogger; -import org.eclipse.net4j.util.om.trace.OMTracer; - -/** - * The <em>Operations & Maintenance</em> class of this bundle. - * - * @author Eike Stepper - */ -public abstract class OM -{ - public static final String BUNDLE_ID = "org.eclipse.emf.cdo.server.hibernate"; //$NON-NLS-1$ - - public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class); - - public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$ - - public static final OMLogger LOG = BUNDLE.logger(); - - /** - * @author Eike Stepper - */ - public static final class Activator extends OSGiActivator - { - public Activator() - { - super(BUNDLE); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ClassServerInfo.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ClassServerInfo.java deleted file mode 100644 index 9c581fd273..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ClassServerInfo.java +++ /dev/null @@ -1,18 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.info; - -/** - * @author Eike Stepper - */ -public final class ClassServerInfo extends ServerInfo -{ -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/FeatureServerInfo.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/FeatureServerInfo.java deleted file mode 100644 index df0339ce11..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/FeatureServerInfo.java +++ /dev/null @@ -1,18 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.info; - -/** - * @author Eike Stepper - */ -public final class FeatureServerInfo extends ServerInfo -{ -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/PackageServerInfo.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/PackageServerInfo.java deleted file mode 100644 index be70519c17..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/PackageServerInfo.java +++ /dev/null @@ -1,18 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.info; - -/** - * @author Eike Stepper - */ -public final class PackageServerInfo extends ServerInfo -{ -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ServerInfo.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ServerInfo.java deleted file mode 100644 index 90769ee831..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/info/ServerInfo.java +++ /dev/null @@ -1,18 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.info; - -/** - * @author Eike Stepper - */ -public abstract class ServerInfo -{ -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDMetaRangeUserType.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDMetaRangeUserType.java deleted file mode 100644 index 15a6f9213a..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDMetaRangeUserType.java +++ /dev/null @@ -1,131 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2008 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial api - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOIDMeta; -import org.eclipse.emf.cdo.common.id.CDOIDMetaRange; -import org.eclipse.emf.cdo.common.id.CDOIDUtil; - -import org.hibernate.Hibernate; -import org.hibernate.usertype.UserType; - -import java.io.Serializable; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Types; - -/** - * @author Martin Taal - */ -public class CDOIDMetaRangeUserType implements UserType -{ - private static final int[] SQL_TYPES = { Types.INTEGER, Types.INTEGER }; - - public CDOIDMetaRangeUserType() - { - } - - public int[] sqlTypes() - { - return SQL_TYPES; - } - - public Class<?> returnedClass() - { - return CDOIDMetaRange.class; - } - - public boolean isMutable() - { - return true; - } - - public Object deepCopy(Object value) - { - if (value == null) - { - return null; - } - - CDOIDMetaRange cdoRange = (CDOIDMetaRange)value; - CDOIDMeta newCdoIDMeta = CDOIDUtil.createMeta(((CDOIDMeta)cdoRange.getLowerBound()).getLongValue()); - return CDOIDUtil.createMetaRange(newCdoIDMeta, cdoRange.size()); - } - - public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws SQLException - { - Integer start = (Integer)Hibernate.INTEGER.nullSafeGet(rs, names[0]); - if (rs.wasNull()) - { - return null; - } - - Integer size = (Integer)Hibernate.INTEGER.nullSafeGet(rs, names[1]); - if (rs.wasNull()) - { - return null; - } - - CDOIDMeta newCdoIDMeta = CDOIDUtil.createMeta(start); - return CDOIDUtil.createMetaRange(newCdoIDMeta, size); - } - - public void nullSafeSet(PreparedStatement statement, Object value, int index) throws SQLException - { - if (value != null) - { - CDOIDMetaRange cdoRange = (CDOIDMetaRange)value; - statement.setLong(index, ((CDOIDMeta)cdoRange.getLowerBound()).getLongValue()); - statement.setInt(index + 1, cdoRange.size()); - } - else - { - statement.setNull(index, Types.INTEGER); - statement.setNull(index + 1, Types.INTEGER); - } - } - - public Serializable disassemble(Object value) - { - return (Serializable)value; - } - - public Object assemble(Serializable cachedValue, Object owner) - { - return cachedValue; - } - - public Object replace(Object original, Object target, Object owner) - { - return original; - } - - public boolean equals(Object x, Object y) - { - if (x == y) - { - return true; - } - - if (x == null || y == null) - { - return false; - } - - return x.equals(y); - } - - public int hashCode(Object x) - { - return x.hashCode(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertyGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertyGetter.java deleted file mode 100644 index cd8c67db80..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertyGetter.java +++ /dev/null @@ -1,61 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; - -/** - * @author Martin Taal - */ -public class CDOIDPropertyGetter extends CDOPropertyGetter -{ - private static final long serialVersionUID = 1L; - - public CDOIDPropertyGetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public Object get(Object target) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - if (!(revision.getID() instanceof CDOIDHibernate)) - { - return null; - } - - CDOIDHibernate cdoID = (CDOIDHibernate)revision.getID(); - if (isVirtualProperty()) - { - return cdoID.getId(); - } - else - { - Object id = super.get(target); - // TODO: does this make sense? - // if (cdoID.getId() == null) - // { - // cdoID.setId((Serializable)id); - // } - return id; - } - } - - @Override - protected boolean isVirtualPropertyAllowed() - { - return true; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertySetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertySetter.java deleted file mode 100644 index bdfc2947c9..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDPropertySetter.java +++ /dev/null @@ -1,94 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDTemp; -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateFactoryImpl; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateCommitContext; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateThreadContext; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionFactoryImplementor; - -import java.io.Serializable; - -/** - * @author Martin Taal - */ -public class CDOIDPropertySetter extends CDOPropertySetter -{ - private static final long serialVersionUID = 1L; - - public CDOIDPropertySetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - if (value == null) - { - return; - } - - HibernateCommitContext hcc = null; - if (HibernateThreadContext.isHibernateCommitContextSet()) - { - hcc = HibernateThreadContext.getHibernateCommitContext(); - } - InternalCDORevision revision = (InternalCDORevision)target; - CDOID cdoID = revision.getID(); - if (cdoID == null) - { - CDOIDHibernate newCDOID = CDOIDHibernateFactoryImpl.getInstance().createCDOID((Serializable)value, - revision.getCDOClass().getName()); - revision.setID(newCDOID); - if (hcc != null) - { - hcc.setNewID(cdoID, newCDOID); - } - } - else if (cdoID instanceof CDOIDTemp) - { - CDOIDHibernate newCDOID = CDOIDHibernateFactoryImpl.getInstance().createCDOID((Serializable)value, - revision.getCDOClass().getName()); - revision.setID(newCDOID); - if (hcc != null) - { - hcc.getCommitContext().addIDMapping((CDOIDTemp)cdoID, newCDOID); - hcc.setNewID(cdoID, newCDOID); - } - } - else - { - CDOIDHibernate hbCDOID = (CDOIDHibernate)revision.getID(); - if (!hbCDOID.getId().equals(value)) - { - throw new IllegalStateException("Current id and new id are different " + value + "/" + hbCDOID.getId()); - } - - } - if (!isVirtualProperty()) - { - super.set(target, value, factory); - } - } - - @Override - protected boolean isVirtualPropertyAllowed() - { - return true; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDUserType.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDUserType.java deleted file mode 100644 index e03ec49bed..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOIDUserType.java +++ /dev/null @@ -1,180 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2008 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial api - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDTemp; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateFactoryImpl; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; - -import org.eclipse.net4j.util.WrappedException; - -import org.hibernate.Hibernate; -import org.hibernate.usertype.UserType; - -import java.io.Serializable; -import java.lang.reflect.Constructor; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Types; -import java.util.HashMap; - -/** - * Persists a CDOID in the DB. - */ -public class CDOIDUserType implements UserType -{ - /** - * 1) entityname, 2) id, 3) id class name - */ - private static final int[] SQL_TYPES = { Types.VARCHAR, Types.VARCHAR, Types.VARCHAR }; - - /** Constructor by id */ - private final HashMap<String, Constructor<?>> constructors = new HashMap<String, Constructor<?>>(); - - public CDOIDUserType() - { - } - - public int[] sqlTypes() - { - return SQL_TYPES; - } - - public Class<?> returnedClass() - { - return CDOID.class; - } - - public boolean isMutable() - { - return false; - } - - public Object deepCopy(Object value) - { - return value; - } - - public boolean equals(Object x, Object y) - { - if (x == y) - { - return true; - } - - if (x == null || y == null) - { - return false; - } - - return x.equals(y); - } - - public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws SQLException - { - String entityName = (String)Hibernate.STRING.nullSafeGet(rs, names[0]); - if (rs.wasNull()) - { - return null; - } - - String idStr = (String)Hibernate.STRING.nullSafeGet(rs, names[1]); - if (rs.wasNull()) - { - return null; - } - - String idClassName = (String)Hibernate.STRING.nullSafeGet(rs, names[2]); - if (rs.wasNull()) - { - return null; - } - - Serializable id = getId(idStr, idClassName); - return CDOIDHibernateFactoryImpl.getInstance().createCDOID(id, entityName); - } - - public void nullSafeSet(PreparedStatement statement, Object value, int index) throws SQLException - { - if (value == null) - { - statement.setNull(index, Types.VARCHAR); - statement.setNull(index, Types.VARCHAR); - statement.setNull(index, Types.VARCHAR); - } - - if (value != null) - { - CDOIDHibernate cdoID; - if (value instanceof CDOIDTemp) - { - cdoID = HibernateUtil.getInstance().getCDOIDHibernate((CDOID)value); - } - else if (value instanceof CDORevision) - { - cdoID = (CDOIDHibernate)((CDORevision)value).getID(); - } - else - { - cdoID = (CDOIDHibernate)value; - } - - statement.setString(index, cdoID.getEntityName()); - statement.setString(index + 1, cdoID.getId().toString()); - statement.setString(index + 2, cdoID.getId().getClass().getName()); - } - } - - public Serializable disassemble(Object value) - { - return (Serializable)value; - } - - public Object assemble(Serializable cachedValue, Object owner) - { - return cachedValue; - } - - public Object replace(Object original, Object target, Object owner) - { - return original; - } - - public int hashCode(Object x) - { - return x.hashCode(); - } - - /** Creates an id object of the correct type */ - private Serializable getId(String idStr, String idType) - { - try - { - Constructor<?> constructor = constructors.get(idType); - if (constructor == null) - { - Class<?> idClass = this.getClass().getClassLoader().loadClass(idType); - constructor = idClass.getConstructor(new Class[] { String.class }); - constructors.put(idType, constructor); - } - - return (Serializable)constructor.newInstance(new Object[] { idStr }); - } - catch (Exception e) - { - throw WrappedException.wrap(e); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOInterceptor.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOInterceptor.java deleted file mode 100644 index c23fd4fcf6..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOInterceptor.java +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Springsite B.V. and others - * 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: - * Martin Taal - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.EmptyInterceptor; - -/** - * Resolves entitynames, todo: use entityname strategy! - * - * @author Martin Taal - */ -public class CDOInterceptor extends EmptyInterceptor -{ - private static final long serialVersionUID = 1L; - - public CDOInterceptor() - { - } - - @Override - public String getEntityName(Object object) - { - InternalCDORevision revision = HibernateUtil.getInstance().getCDORevision(object); - return revision.getCDOClass().getName(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceGetter.java deleted file mode 100644 index 6987480051..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceGetter.java +++ /dev/null @@ -1,76 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.eclipse.net4j.util.collection.MoveableArrayList; -import org.eclipse.net4j.util.collection.MoveableList; - -import org.hibernate.HibernateException; -import org.hibernate.collection.PersistentCollection; - -/** - * @author Martin Taal - */ -// Howto handle hibernate lists: -// - a new owner: the owner is persisted and its lists are replaced with hibernate -// persistentlist, the hibernate persitentlist will have a delegate (internally) which is the list which was previously -// present in the owner. -// - an existing owner: the owner is read from the db and hibernate will set a persistentlist -// directly -// -// The solution also needs to handle the following: -// - cdo does not have direct java references but stores cdoids in the list while hibernate expects real java object -// references. -// - cdo uses a moveablearraylist and not the standard arraylist -// -// The solution: -// - never return null when hibernate asks for the current value of the manyreference, always -// return a MoveableArrayList so that hibernate uses that as the delegate, set the MoveableArrayList -public class CDOManyReferenceGetter extends CDOPropertyGetter -{ - private static final long serialVersionUID = 1L; - - public CDOManyReferenceGetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public Object get(Object target) throws HibernateException - { - // Check if there is already a persistentcollection - PersistentCollection collection = PersistableListHolder.getInstance().getListMapping(target, getCDOFeature()); - if (collection != null) - { - return collection; - } - - // Not yet, get the moveablearraylist - @SuppressWarnings("unchecked") - MoveableList<Object> list = (MoveableList<Object>)super.get(target); - if (list == null) - { - // TODO: what initial size? - list = new MoveableArrayList<Object>(10); - InternalCDORevision revision = (InternalCDORevision)target; - revision.setValue(getCDOFeature(), list); - } - - // Wrap the moveablearraylist - HibernateMoveableListWrapper wrapper = new HibernateMoveableListWrapper(); - wrapper.setDelegate(list); - - // And return it - return wrapper; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceSetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceSetter.java deleted file mode 100644 index 6e4f178a24..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOManyReferenceSetter.java +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.hibernate.HibernateException; -import org.hibernate.collection.PersistentCollection; -import org.hibernate.collection.PersistentList; -import org.hibernate.engine.SessionFactoryImplementor; - -/** - * @author Martin Taal - */ -public class CDOManyReferenceSetter extends CDOPropertySetter -{ - private static final long serialVersionUID = 1L; - - public CDOManyReferenceSetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - // Do some checking - if (!(value instanceof PersistentList)) - { - throw new IllegalArgumentException("Value is not a persistentlist but a " + value.getClass().getName()); - } - - // Only set it in the listholder - PersistableListHolder.getInstance().putListMapping(target, getCDOFeature(), (PersistentCollection)value); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java deleted file mode 100644 index f23c77ca08..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java +++ /dev/null @@ -1,64 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionPropertyAccessor.CDORevisionSetter; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.property.Getter; - -import java.lang.reflect.Method; -import java.util.Map; - -/** - * TODO How does this differ from {@link CDORevisionSetter}? Both needed? - * - * @author Martin Taal - */ -public class CDOPropertyGetter extends CDOPropertyHandler implements Getter -{ - private static final long serialVersionUID = 1L; - - public CDOPropertyGetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - public Object get(Object target) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - return revision.getValue(getCDOFeature()); - } - - @SuppressWarnings("unchecked") - public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) throws HibernateException - { - return get(target); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - @SuppressWarnings("unchecked") - public Class getReturnType() - { - return Object.class; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyHandler.java deleted file mode 100644 index a9f263a609..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyHandler.java +++ /dev/null @@ -1,86 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.om.trace.ContextTracer; - -/** - * @author Martin Taal - */ -public abstract class CDOPropertyHandler -{ - private final ContextTracer tracer = new ContextTracer(OM.DEBUG, this.getClass()); - - private CDORevisionTuplizer tuplizer; - - private CDOFeature cdoFeature; - - private boolean virtualProperty = false; - - public CDOPropertyHandler(CDORevisionTuplizer tuplizer, String propertyName) - { - this.tuplizer = tuplizer; - cdoFeature = tuplizer.getCDOClass().lookupFeature(propertyName); - if (getTracer().isEnabled()) - { - getTracer().trace( - "Created " + this.getClass().getName() + " for cdoClass/feature: " + tuplizer.getCDOClass().getName() + "." - + propertyName); - } - - if (cdoFeature == null) - { - if (isVirtualPropertyAllowed()) - { - virtualProperty = true; - if (getTracer().isEnabled()) - { - getTracer().trace("This is a virtual property"); - } - } - else - { - throw new IllegalStateException("Feature not found: " + propertyName); - } - } - } - - protected ContextTracer getTracer() - { - return tracer; - } - - public CDORevisionTuplizer getTuplizer() - { - return tuplizer; - } - - public CDOFeature getCDOFeature() - { - return cdoFeature; - } - - protected boolean isVirtualPropertyAllowed() - { - return false; - } - - /** - * @return the virtualProperty - */ - public boolean isVirtualProperty() - { - return virtualProperty; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertySetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertySetter.java deleted file mode 100644 index af4e604821..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertySetter.java +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionPropertyAccessor.CDORevisionSetter; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionFactoryImplementor; -import org.hibernate.property.Setter; - -import java.lang.reflect.Method; - -/** - * TODO How does this differ from {@link CDORevisionSetter}? Both needed? - * - * @author Martin Taal - */ -public class CDOPropertySetter extends CDOPropertyHandler implements Setter -{ - private static final long serialVersionUID = 1L; - - public CDOPropertySetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - revision.setValue(getCDOFeature(), value); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceGetter.java deleted file mode 100644 index e4ef4d174a..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceGetter.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; - -import org.hibernate.HibernateException; - -/** - * @author Martin Taal - */ -public class CDOReferenceGetter extends CDOPropertyGetter -{ - private static final long serialVersionUID = 1L; - - public CDOReferenceGetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public Object get(Object target) throws HibernateException - { - final Object o = super.get(target); - if (o instanceof CDOID) - { - return HibernateUtil.getInstance().getCDORevision((CDOID)o); - } - - return o; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceSetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceSetter.java deleted file mode 100644 index 1726c14a30..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOReferenceSetter.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.revision.CDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionFactoryImplementor; - -/** - * @author Martin Taal - */ -public class CDOReferenceSetter extends CDOPropertySetter -{ - private static final long serialVersionUID = 1L; - - public CDOReferenceSetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - if (value == null) - { - super.set(target, null, factory); - } - else - { - CDORevision cdoValue = (CDORevision)value; - super.set(target, cdoValue.getID(), factory); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionInstantiator.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionInstantiator.java deleted file mode 100644 index 5db1c10a9a..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionInstantiator.java +++ /dev/null @@ -1,61 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOClass; -import org.eclipse.emf.cdo.common.revision.CDORevisionUtil; -import org.eclipse.emf.cdo.server.IRepository; -import org.eclipse.emf.cdo.server.IRevisionManager; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateFactoryImpl; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.mapping.PersistentClass; -import org.hibernate.tuple.Instantiator; - -import java.io.Serializable; - -/** - * @author Eike Stepper - */ -public class CDORevisionInstantiator implements Instantiator -{ - private static final long serialVersionUID = 1L; - - private CDOClass cdoClass; - - private IRevisionManager revisionManager; - - public CDORevisionInstantiator(CDORevisionTuplizer tuplizer, PersistentClass mappingInfo) - { - cdoClass = tuplizer.getCDOClass(); - HibernateStore hbStore = HibernateStore.getCurrentHibernateStore(); - IRepository repository = hbStore.getRepository(); - revisionManager = repository.getRevisionManager(); - } - - public Object instantiate() - { - // TODO CDO can't create a revision w/o CDOID - return instantiate(null); - } - - public Object instantiate(Serializable id) - { - return CDORevisionUtil.create(revisionManager, cdoClass, CDOIDHibernateFactoryImpl.getInstance().createCDOID(id, - cdoClass.getName())); - } - - public boolean isInstance(Object object) - { - return object instanceof InternalCDORevision; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionLazyInitializer.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionLazyInitializer.java deleted file mode 100644 index 0a1c9143cc..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionLazyInitializer.java +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.engine.SessionImplementor; -import org.hibernate.proxy.AbstractLazyInitializer; - -import java.io.Serializable; - -/** - * @author Eike Stepper - */ -public class CDORevisionLazyInitializer extends AbstractLazyInitializer implements Serializable -{ - private static final long serialVersionUID = 1L; - - CDORevisionLazyInitializer(String entityName, Serializable id, SessionImplementor session) - { - super(entityName, id, session); - } - - public InternalCDORevision getRevision() - { - return (InternalCDORevision)getImplementation(); - } - - @SuppressWarnings("unchecked") - public Class getPersistentClass() - { - throw new UnsupportedOperationException(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionPropertyAccessor.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionPropertyAccessor.java deleted file mode 100644 index 62dd956bfd..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionPropertyAccessor.java +++ /dev/null @@ -1,155 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.PropertyNotFoundException; -import org.hibernate.engine.SessionFactoryImplementor; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.property.Getter; -import org.hibernate.property.PropertyAccessor; -import org.hibernate.property.Setter; - -import java.lang.reflect.Method; -import java.util.Map; - -/** - * @author Eike Stepper - */ -public class CDORevisionPropertyAccessor implements PropertyAccessor -{ - private CDORevisionTuplizer tuplizer; - - public CDORevisionPropertyAccessor(CDORevisionTuplizer tuplizer) - { - this.tuplizer = tuplizer; - } - - public CDORevisionTuplizer getTuplizer() - { - return tuplizer; - } - - @SuppressWarnings("unchecked") - public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return new CDORevisionGetter(this, propertyName); - } - - @SuppressWarnings("unchecked") - public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return new CDORevisionSetter(this, propertyName); - } - - /** - * @author Eike Stepper - */ - public static class BaseAccessor - { - private CDORevisionPropertyAccessor propertyAccessor; - - private CDOFeature cdoFeature; - - public BaseAccessor(CDORevisionPropertyAccessor propertyAccessor, String propertyName) - { - this.propertyAccessor = propertyAccessor; - cdoFeature = propertyAccessor.getTuplizer().getCDOClass().lookupFeature(propertyName); - if (cdoFeature == null) - { - throw new IllegalStateException("Feature not found: " + propertyName); - } - } - - public CDORevisionPropertyAccessor getPropertyAccessor() - { - return propertyAccessor; - } - - public CDOFeature getCDOFeature() - { - return cdoFeature; - } - } - - /** - * @author Eike Stepper - */ - public static class CDORevisionGetter extends BaseAccessor implements Getter - { - private static final long serialVersionUID = 1L; - - public CDORevisionGetter(CDORevisionPropertyAccessor propertyAccessor, String propertyName) - { - super(propertyAccessor, propertyName); - } - - public Object get(Object target) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - return revision.getValue(getCDOFeature()); - } - - @SuppressWarnings("unchecked") - public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) throws HibernateException - { - return get(target); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - @SuppressWarnings("unchecked") - public Class getReturnType() - { - return Object.class; - } - } - - /** - * @author Eike Stepper - */ - public static class CDORevisionSetter extends BaseAccessor implements Setter - { - private static final long serialVersionUID = 1L; - - public CDORevisionSetter(CDORevisionPropertyAccessor propertyAccessor, String propertyName) - { - super(propertyAccessor, propertyName); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - revision.setValue(getCDOFeature(), value); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxy.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxy.java deleted file mode 100644 index 2da981e109..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxy.java +++ /dev/null @@ -1,302 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDProvider; -import org.eclipse.emf.cdo.common.id.CDOIDTemp; -import org.eclipse.emf.cdo.common.model.CDOClass; -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.common.revision.CDORevisionData; -import org.eclipse.emf.cdo.common.revision.CDORevisionResolver; -import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.eclipse.net4j.util.collection.MoveableList; -import org.eclipse.net4j.util.io.ExtendedDataOutput; - -import org.hibernate.proxy.HibernateProxy; -import org.hibernate.proxy.LazyInitializer; - -import java.io.IOException; -import java.io.Serializable; -import java.util.Map; - -/** - * @author Eike Stepper - */ -public class CDORevisionProxy implements HibernateProxy, InternalCDORevision, Serializable -{ - private static final long serialVersionUID = 1L; - - private CDORevisionLazyInitializer li; - - CDORevisionProxy(CDORevisionLazyInitializer li) - { - this.li = li; - } - - public Object writeReplace() - { - return this; - } - - public LazyInitializer getHibernateLazyInitializer() - { - return li; - } - - public void add(CDOFeature feature, int index, Object value) - { - li.getRevision().add(feature, index, value); - } - - public void adjustReferences(Map<CDOIDTemp, CDOID> idMappings) - { - li.getRevision().adjustReferences(idMappings); - } - - public void clear(CDOFeature feature) - { - li.getRevision().clear(feature); - } - - public CDORevisionDelta compare(CDORevision origin) - { - return li.getRevision().compare(origin); - } - - public boolean contains(CDOFeature feature, Object value) - { - return li.getRevision().contains(feature, value); - } - - public Object get(CDOFeature feature, int index) - { - return li.getRevision().get(feature, index); - } - - public CDOClass getCDOClass() - { - return li.getRevision().getCDOClass(); - } - - public CDOID getContainerID() - { - return li.getRevision().getContainerID(); - } - - public int getContainingFeatureID() - { - return li.getRevision().getContainingFeatureID(); - } - - public long getCreated() - { - return li.getRevision().getCreated(); - } - - public CDORevisionData getData() - { - return li.getRevision().getData(); - } - - public CDOID getID() - { - return li.getRevision().getID(); - } - - public MoveableList<Object> getList(CDOFeature feature, int size) - { - return li.getRevision().getList(feature, size); - } - - public MoveableList<Object> getList(CDOFeature feature) - { - return li.getRevision().getList(feature); - } - - public CDOID getResourceID() - { - return li.getRevision().getResourceID(); - } - - public long getRevised() - { - return li.getRevision().getRevised(); - } - - public CDORevision getRevision() - { - return li.getRevision().getRevision(); - } - - public CDORevisionResolver getRevisionResolver() - { - return li.getRevision().getRevisionResolver(); - } - - public Object getValue(CDOFeature feature) - { - return li.getRevision().getValue(feature); - } - - public int getVersion() - { - return li.getRevision().getVersion(); - } - - public int hashCode(CDOFeature feature) - { - return li.getRevision().hashCode(feature); - } - - public int indexOf(CDOFeature feature, Object value) - { - return li.getRevision().indexOf(feature, value); - } - - public boolean isCurrent() - { - return li.getRevision().isCurrent(); - } - - public boolean isEmpty(CDOFeature feature) - { - return li.getRevision().isEmpty(feature); - } - - public boolean isResource() - { - return li.getRevision().isResource(); - } - - public boolean isSet(CDOFeature feature) - { - return li.getRevision().isSet(feature); - } - - public boolean isTransactional() - { - return li.getRevision().isTransactional(); - } - - public boolean isValid(long timeStamp) - { - return li.getRevision().isValid(timeStamp); - } - - public int lastIndexOf(CDOFeature feature, Object value) - { - return li.getRevision().lastIndexOf(feature, value); - } - - public void merge(CDORevisionDelta delta) - { - li.getRevision().merge(delta); - } - - public Object move(CDOFeature feature, int targetIndex, int sourceIndex) - { - return li.getRevision().move(feature, targetIndex, sourceIndex); - } - - public Object remove(CDOFeature feature, int index) - { - return li.getRevision().remove(feature, index); - } - - public Object set(CDOFeature feature, int index, Object value) - { - return li.getRevision().set(feature, index, value); - } - - public void setContainerID(CDOID containerID) - { - li.getRevision().setContainerID(containerID); - } - - public void setContainingFeatureID(int containingFeatureID) - { - li.getRevision().setContainingFeatureID(containingFeatureID); - } - - public void setCreated(long created) - { - li.getRevision().setCreated(created); - } - - public void setID(CDOID id) - { - li.getRevision().setID(id); - } - - public void setListSize(CDOFeature feature, int size) - { - li.getRevision().setListSize(feature, size); - } - - public void setResourceID(CDOID resourceID) - { - li.getRevision().setResourceID(resourceID); - } - - public void setRevised(long revised) - { - li.getRevision().setRevised(revised); - } - - public int setTransactional() - { - return li.getRevision().setTransactional(); - } - - public void setUntransactional() - { - li.getRevision().setUntransactional(); - } - - public Object setValue(CDOFeature feature, Object value) - { - return li.getRevision().setValue(feature, value); - } - - public void setVersion(int version) - { - li.getRevision().setVersion(version); - } - - public int size(CDOFeature feature) - { - return li.getRevision().size(feature); - } - - public <T> T[] toArray(CDOFeature feature, T[] array) - { - return li.getRevision().toArray(feature, array); - } - - public Object[] toArray(CDOFeature feature) - { - return li.getRevision().toArray(feature); - } - - public void unset(CDOFeature feature) - { - li.getRevision().unset(feature); - } - - public void write(ExtendedDataOutput out, CDOIDProvider idProvider, int referenceChunk) throws IOException - { - li.getRevision().write(out, idProvider, referenceChunk); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxyFactory.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxyFactory.java deleted file mode 100644 index 320f6e1469..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionProxyFactory.java +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.proxy.HibernateProxy; -import org.hibernate.proxy.ProxyFactory; -import org.hibernate.type.AbstractComponentType; - -import java.io.Serializable; -import java.lang.reflect.Method; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public class CDORevisionProxyFactory implements ProxyFactory -{ - private String entityName; - - public CDORevisionProxyFactory() - { - } - - @SuppressWarnings("unchecked") - public void postInstantiate(String entityName, Class persistentClass, Set interfaces, Method getIdentifierMethod, - Method setIdentifierMethod, AbstractComponentType componentIdType) throws HibernateException - { - this.entityName = entityName; - } - - public HibernateProxy getProxy(Serializable id, SessionImplementor session) throws HibernateException - { - return new CDORevisionProxy(new CDORevisionLazyInitializer(entityName, id, session)); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionTuplizer.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionTuplizer.java deleted file mode 100644 index aaafdc0aa7..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDORevisionTuplizer.java +++ /dev/null @@ -1,293 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - changed handling of propertygetters/setters - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOClass; -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.common.model.resource.CDOResourcePackage; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.EntityMode; -import org.hibernate.HibernateException; -import org.hibernate.mapping.PersistentClass; -import org.hibernate.mapping.Property; -import org.hibernate.property.Getter; -import org.hibernate.property.Setter; -import org.hibernate.proxy.ProxyFactory; -import org.hibernate.tuple.Instantiator; -import org.hibernate.tuple.entity.AbstractEntityTuplizer; -import org.hibernate.tuple.entity.EntityMetamodel; - -/** - * @author Eike Stepper - */ -public class CDORevisionTuplizer extends AbstractEntityTuplizer -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, CDORevisionTuplizer.class); - - private CDOClass cdoClass; - - public CDORevisionTuplizer(EntityMetamodel entityMetamodel, PersistentClass mappingInfo) - { - super(entityMetamodel, mappingInfo); - if (TRACER.isEnabled()) - { - TRACER.trace("Created CDORevisionTuplizer for entity " + mappingInfo.getEntityName()); - } - - initCDOClass(mappingInfo); - } - - private void initCDOClass(PersistentClass mappingInfo) - { - if (cdoClass != null) - { - return; - } - - HibernateStore hbStore = HibernateStore.getCurrentHibernateStore(); - - // find the CDOClass/Package - // TODO: error handling if meta attribute not present - // TODO: error handling if entityname not set - String entityName = mappingInfo.getEntityName(); - String ePackageURI = mappingInfo.getMetaAttribute("epackage").getValue(); - - if (TRACER.isEnabled()) - { - TRACER.trace("EntityName/packageURI " + entityName + " " + ePackageURI); - } - - for (CDOPackage cdoPackage : hbStore.getPackageHandler().getCDOPackages()) - { - if (cdoPackage.getPackageURI().compareTo(ePackageURI) != 0) - { - continue; - } - - for (CDOClass localCdoClass : cdoPackage.getClasses()) - { - if (localCdoClass.getName().compareTo(entityName) == 0) - { - cdoClass = localCdoClass; - break; - } - } - } - - if (cdoClass == null && ePackageURI.compareTo(CDOResourcePackage.PACKAGE_URI) == 0) - { - for (CDOClass localCdoClass : hbStore.getRepository().getPackageManager().getCDOResourcePackage().getClasses()) - { - if (localCdoClass.getName().compareTo(entityName) == 0) - { - cdoClass = localCdoClass; - if (TRACER.isEnabled()) - { - TRACER.trace("Class is CDOResource class"); - } - - break; - } - } - } - - if (cdoClass == null) - { - throw new IllegalArgumentException("The mapped class " + mappingInfo.getEntityName()); - } - } - - // MT: probably not required as the property getter/setter do all the work - // /* - // * (non-Javadoc) - // * - // * @see org.hibernate.tuple.entity.AbstractEntityTuplizer#getVersion(java.lang.Object) - // */ - // @Override - // public Object getVersion(Object entity) throws HibernateException - // { - // if (entity instanceof CDORevision) - // { - // final CDORevision cdoRevision = (CDORevision)entity; - // return cdoRevision.getVersion(); - // } - // throw new IllegalArgumentException("Entity of type: " + entity.getClass().getName() - // + " not supported by this tuplizer"); - // } - // - // @Override - // public Serializable getIdentifier(Object entity) throws HibernateException - // { - // if (entity instanceof CDORevision) - // { - // final CDOID cdoID = ((CDORevision)entity).getID(); - // if (cdoID instanceof CDOIDHibernate) - // { - // return ((CDOIDHibernate)cdoID).getId(); - // } - // } - // throw new IllegalArgumentException("Entity of type: " + entity.getClass().getName() - // + " not supported by this tuplizer"); - // } - // - // @Override - // public void setIdentifier(Object entity, Serializable id) throws HibernateException - // { - // if (entity instanceof InternalCDORevision) - // { - // final InternalCDORevision cdoRevision = (InternalCDORevision)entity; - // final CDOID cdoID = cdoRevision.getID(); - // if (cdoID == null) - // { - // CDOIDHibernate hid = (CDOIDHibernate)HibernateStore.CDOID_OBJECT_FACTORY.createCDOIDObject(null); - // hid.setId(id); - // cdoRevision.setID(hid); - // return; - // } - // else if (cdoID instanceof CDOIDHibernate) - // { - // ((CDOIDHibernate)cdoID).setId(id); - // return; - // } - // } - // throw new IllegalArgumentException("Entity of type: " + entity.getClass().getName() - // + " not supported by this tuplizer"); - // } - - @Override - public EntityMode getEntityMode() - { - return EntityMode.MAP; - } - - public CDOClass getCDOClass() - { - return cdoClass; - } - - @Override - protected Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity) - { - initCDOClass(mappedEntity); - if (TRACER.isEnabled()) - { - TRACER.trace("Building property getter for " + cdoClass.getName() + "." + mappedProperty.getName()); - } - - if (mappedProperty.isBackRef()) - { - return mappedProperty.getGetter(mappedEntity.getMappedClass()); - } - else if (mappedProperty == mappedEntity.getIdentifierProperty()) - { - return new CDOIDPropertyGetter(this, mappedProperty.getName()); - } - else if (mappedProperty == mappedEntity.getVersion()) - { - return new CDOVersionPropertyGetter(this, mappedProperty.getName()); - } - - CDOFeature cdoFeature = getCDOClass().lookupFeature(mappedProperty.getName()); - if (cdoFeature.isReference() && cdoFeature.isMany()) - { - return new CDOManyReferenceGetter(this, mappedProperty.getName()); - } - else if (cdoFeature.isReference()) - { - return new CDOReferenceGetter(this, mappedProperty.getName()); - } - - return new CDOPropertyGetter(this, mappedProperty.getName()); - } - - @Override - protected Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity) - { - initCDOClass(mappedEntity); - if (TRACER.isEnabled()) - { - TRACER.trace("Building property setter for " + cdoClass.getName() + "." + mappedProperty.getName()); - } - - if (mappedProperty.isBackRef()) - { - return mappedProperty.getSetter(mappedEntity.getMappedClass()); - } - else if (mappedProperty == mappedEntity.getIdentifierProperty()) - { - return new CDOIDPropertySetter(this, mappedProperty.getName()); - } - else if (mappedProperty == mappedEntity.getVersion()) - { - return new CDOVersionPropertySetter(this, mappedProperty.getName()); - } - - CDOFeature cdoFeature = getCDOClass().lookupFeature(mappedProperty.getName()); - if (cdoFeature.isReference() && cdoFeature.isMany()) - { - return new CDOManyReferenceSetter(this, mappedProperty.getName()); - } - else if (cdoFeature.isReference()) - { - return new CDOReferenceSetter(this, mappedProperty.getName()); - } - - return new CDOPropertySetter(this, mappedProperty.getName()); - } - - @Override - protected Instantiator buildInstantiator(PersistentClass mappingInfo) - { - return new CDORevisionInstantiator(this, mappingInfo); - } - - @Override - protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter) - { - ProxyFactory pf = new CDORevisionProxyFactory(); - - try - { - pf.postInstantiate(getEntityName(), null, null, null, null, null); - } - catch (HibernateException ex) - { - OM.LOG.error("Could not create proxy factory for " + getEntityName(), ex); - pf = null; - } - - return pf; - } - - @SuppressWarnings("unchecked") - public Class getMappedClass() - { - return InternalCDORevision.class; - } - - @SuppressWarnings("unchecked") - public Class getConcreteProxyClass() - { - return InternalCDORevision.class; - } - - public boolean isInstrumented() - { - return false; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticIdPropertyHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticIdPropertyHandler.java deleted file mode 100644 index 3e19ef47e2..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticIdPropertyHandler.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * <copyright> - * - * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others - * 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: - * Martin Taal - * </copyright> - * - * $Id: CDOSyntheticIdPropertyHandler.java,v 1.5 2008-06-15 20:47:36 mtaal Exp $ - */ - -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDTemp; -import org.eclipse.emf.cdo.server.hibernate.id.CDOIDHibernate; -import org.eclipse.emf.cdo.server.hibernate.internal.id.CDOIDHibernateFactoryImpl; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateCommitContext; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateThreadContext; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.PropertyNotFoundException; -import org.hibernate.engine.SessionFactoryImplementor; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.property.Getter; -import org.hibernate.property.PropertyAccessor; -import org.hibernate.property.Setter; - -import java.io.Serializable; -import java.lang.reflect.Method; -import java.util.Map; - -/** - * Is only used for synthetic id's. - * - * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.5 $ - */ -@SuppressWarnings("unchecked") -public class CDOSyntheticIdPropertyHandler implements Getter, Setter, PropertyAccessor -{ - private static final long serialVersionUID = 1L; - - public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return this; - } - - public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return this; - } - - public Object get(Object owner) throws HibernateException - { - InternalCDORevision revision = HibernateUtil.getInstance().getCDORevision(owner); - if (revision == null) - { - return null; - } - - if (!(revision.getID() instanceof CDOIDHibernate)) - { - return null; - } - - CDOIDHibernate cdoID = (CDOIDHibernate)revision.getID(); - return cdoID.getId(); - } - - public Object getForInsert(Object arg0, Map arg1, SessionImplementor arg2) throws HibernateException - { - return get(arg0); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - public Class getReturnType() - { - return null; - } - - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - if (value == null) - { - return; - } - - HibernateCommitContext hcc = null; - if (HibernateThreadContext.isHibernateCommitContextSet()) - { - hcc = HibernateThreadContext.getHibernateCommitContext(); - } - - InternalCDORevision revision = HibernateUtil.getInstance().getCDORevision(target); - CDOID cdoID = revision.getID(); - if (cdoID == null) - { - CDOIDHibernate newCDOID = CDOIDHibernateFactoryImpl.getInstance().createCDOID((Serializable)value, - revision.getCDOClass().getName()); - revision.setID(newCDOID); - if (hcc != null) - { - hcc.setNewID(cdoID, newCDOID); - } - } - else if (cdoID instanceof CDOIDTemp) - { - CDOIDHibernate newCDOID = CDOIDHibernateFactoryImpl.getInstance().createCDOID((Serializable)value, - revision.getCDOClass().getName()); - revision.setID(newCDOID); - if (hcc != null) - { - hcc.getCommitContext().addIDMapping((CDOIDTemp)cdoID, newCDOID); - hcc.setNewID(cdoID, newCDOID); - } - } - else - { - CDOIDHibernate hbCDOID = (CDOIDHibernate)revision.getID(); - if (!hbCDOID.getId().equals(value)) - { - throw new IllegalStateException("Current id and new id are different " + value + "/" + hbCDOID.getId()); - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticVersionPropertyHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticVersionPropertyHandler.java deleted file mode 100644 index c998ea2f44..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOSyntheticVersionPropertyHandler.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * <copyright> - * - * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others - * 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: - * Martin Taal - * </copyright> - * - * $Id: CDOSyntheticVersionPropertyHandler.java,v 1.3 2008-06-03 09:45:56 estepper Exp $ - */ - -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.PropertyNotFoundException; -import org.hibernate.engine.SessionFactoryImplementor; -import org.hibernate.engine.SessionImplementor; -import org.hibernate.property.Getter; -import org.hibernate.property.PropertyAccessor; -import org.hibernate.property.Setter; - -import java.lang.reflect.Method; -import java.util.Map; - -/** - * Reads the version from the internal version cache. - * - * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.3 $ - */ -@SuppressWarnings("unchecked") -public class CDOSyntheticVersionPropertyHandler implements Getter, Setter, PropertyAccessor -{ - private static final long serialVersionUID = 1L; - - public CDOSyntheticVersionPropertyHandler() - { - } - - public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return this; - } - - public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException - { - return this; - } - - public Object get(Object owner) throws HibernateException - { - InternalCDORevision revision = HibernateUtil.getInstance().getCDORevision(owner); - if (revision == null) - { - return null; - } - - return revision.getVersion(); - } - - /** - * Reads the version from the versioncache - */ - public Object getForInsert(Object owner, Map mergeMap, SessionImplementor session) throws HibernateException - { - return get(owner); - } - - public Method getMethod() - { - return null; - } - - public String getMethodName() - { - return null; - } - - /** Returns Integer.class */ - public Class getReturnType() - { - return Integer.class; - } - - /** Sets the version in the internal version cache */ - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - InternalCDORevision revision = HibernateUtil.getInstance().getCDORevision(target); - revision.setVersion(((Number)value).intValue()); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOTypeUserType.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOTypeUserType.java deleted file mode 100644 index ee5b80f891..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOTypeUserType.java +++ /dev/null @@ -1,118 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2008 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial api - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOModelUtil; -import org.eclipse.emf.cdo.common.model.CDOType; - -import org.hibernate.Hibernate; -import org.hibernate.usertype.UserType; - -import java.io.Serializable; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Types; - -/** - * @author Martin Taal - */ -public class CDOTypeUserType implements UserType -{ - private static final int[] SQL_TYPES = { Types.INTEGER }; - - public CDOTypeUserType() - { - } - - public int[] sqlTypes() - { - return SQL_TYPES; - } - - public Class<?> returnedClass() - { - return CDOType.class; - } - - public boolean isMutable() - { - return false; - } - - public Object deepCopy(Object value) - { - return value; - } - - public boolean equals(Object x, Object y) - { - if (x == y) - { - return true; - } - - if (x == null || y == null) - { - return false; - } - - return x.equals(y); - } - - public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws SQLException - { - Integer value = (Integer)Hibernate.INTEGER.nullSafeGet(rs, names[0]); - if (rs.wasNull()) - { - return null; - } - - if (value == null) - { - return null; - } - - return CDOModelUtil.getType(value); - } - - public void nullSafeSet(PreparedStatement statement, Object value, int index) throws SQLException - { - if (value != null) - { - statement.setInt(index, ((CDOType)value).getTypeID()); - } - else - { - statement.setNull(index, Types.INTEGER); - } - } - - public Serializable disassemble(Object value) - { - return (Serializable)value; - } - - public Object assemble(Serializable cachedValue, Object owner) - { - return cachedValue; - } - - public Object replace(Object original, Object target, Object owner) - { - return original; - } - - public int hashCode(Object x) - { - return x.hashCode(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertyGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertyGetter.java deleted file mode 100644 index 2f366219fa..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertyGetter.java +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; - -/** - * @author Martin Taal - */ -public class CDOVersionPropertyGetter extends CDOPropertyGetter -{ - private static final long serialVersionUID = 1L; - - public CDOVersionPropertyGetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public Object get(Object target) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - if (isVirtualProperty()) - { - return revision.getVersion(); - } - - Object version = super.get(target); - // TODO: does this make sense? - // revision.setVersion(((Number)value).intValue()); - return version; - } - - @Override - protected boolean isVirtualPropertyAllowed() - { - return true; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertySetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertySetter.java deleted file mode 100644 index c0b7a9e019..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOVersionPropertySetter.java +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.spi.common.InternalCDORevision; - -import org.hibernate.HibernateException; -import org.hibernate.engine.SessionFactoryImplementor; - -/** - * @author Martin Taal - */ -public class CDOVersionPropertySetter extends CDOPropertySetter -{ - private static final long serialVersionUID = 1L; - - public CDOVersionPropertySetter(CDORevisionTuplizer tuplizer, String propertyName) - { - super(tuplizer, propertyName); - } - - @Override - public void set(Object target, Object value, SessionFactoryImplementor factory) throws HibernateException - { - InternalCDORevision revision = (InternalCDORevision)target; - revision.setVersion(((Number)value).intValue()); - if (!isVirtualProperty()) - { - super.set(target, value, factory); - } - } - - @Override - protected boolean isVirtualPropertyAllowed() - { - return true; - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/HibernateMoveableListWrapper.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/HibernateMoveableListWrapper.java deleted file mode 100644 index 9234a5d54d..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/HibernateMoveableListWrapper.java +++ /dev/null @@ -1,325 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2008 - 2008 Martin Taal and others - * 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: - * Martin Taal - initial api - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil; - -import org.eclipse.net4j.util.collection.MoveableList; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.ListIterator; - -/** - * Wraps a moveable list so that hibernate always sees an object view while cdo always sees a cdoid view. - * - * @author Martin Taal - */ -public class HibernateMoveableListWrapper implements List<Object> -{ - private MoveableList<Object> delegate; - - public HibernateMoveableListWrapper() - { - } - - /** - * @return the delegate - */ - public MoveableList<Object> getDelegate() - { - return delegate; - } - - /** - * @param delegate - * the delegate to set - */ - public void setDelegate(MoveableList<Object> delegate) - { - this.delegate = delegate; - } - - protected Object getObject(Object o) - { - if (o == null) - { - return null; - } - - // is already resolved - if (!(o instanceof CDOID)) - { - return o; - } - - return HibernateUtil.getInstance().getCDORevision((CDOID)o); - } - - protected List<Object> getObjects(List<?> cdoIDs) - { - List<Object> result = new ArrayList<Object>(); - for (Object o : cdoIDs) - { - result.add(getObject(o)); - } - - return result; - } - - protected CDOID getCDOID(Object o) - { - CDORevision cdoRevision = (CDORevision)o; - return cdoRevision.getID(); - } - - protected List<CDOID> getCDOIDs(Collection<?> c) - { - List<CDOID> newC = new ArrayList<CDOID>(); - for (Object o : c) - { - newC.add(getCDOID(o)); - } - - return newC; - } - - public void add(int index, Object element) - { - getDelegate().add(index, getCDOID(element)); - } - - public boolean add(Object o) - { - return getDelegate().add(getCDOID(o)); - } - - public boolean addAll(Collection<? extends Object> c) - { - return getDelegate().addAll(getCDOIDs(c)); - } - - public boolean addAll(int index, Collection<? extends Object> c) - { - return getDelegate().addAll(index, getCDOIDs(c)); - } - - public void clear() - { - getDelegate().clear(); - } - - public boolean contains(Object o) - { - return getDelegate().contains(getCDOID(o)); - } - - public boolean containsAll(Collection<?> c) - { - return getDelegate().containsAll(getCDOIDs(c)); - } - - public Object get(int index) - { - return getObject(getDelegate().get(index)); - } - - public int indexOf(Object o) - { - return getDelegate().indexOf(getCDOID(o)); - } - - public boolean isEmpty() - { - return getDelegate().isEmpty(); - } - - public Iterator<Object> iterator() - { - return new CDOHibernateIterator(getDelegate().iterator()); - } - - public int lastIndexOf(Object o) - { - return getDelegate().lastIndexOf(getCDOID(o)); - } - - public ListIterator<Object> listIterator() - { - return new CDOHibernateListIterator(getDelegate().listIterator()); - } - - public ListIterator<Object> listIterator(int index) - { - return new CDOHibernateListIterator(getDelegate().listIterator(index)); - } - - public Object remove(int index) - { - return getDelegate().remove(index); - } - - public boolean remove(Object o) - { - return getDelegate().remove(getCDOID(o)); - } - - public boolean removeAll(Collection<?> c) - { - return getDelegate().removeAll(getCDOIDs(c)); - } - - public boolean retainAll(Collection<?> c) - { - return getDelegate().retainAll(getCDOIDs(c)); - } - - public Object set(int index, Object element) - { - return getDelegate().set(index, getCDOID(element)); - } - - public int size() - { - return getDelegate().size(); - } - - public List<Object> subList(int fromIndex, int toIndex) - { - return getObjects(getDelegate().subList(fromIndex, toIndex)); - } - - public Object[] toArray() - { - Object[] result = new Object[size()]; - int i = 0; - for (Object o : this) - { - result[i++] = o; - } - - return result; - } - - @SuppressWarnings("unchecked") - public <T> T[] toArray(T[] a) - { - int i = 0; - for (Object o : this) - { - a[i++] = (T)o; - } - - return a; - } - - private static final class CDOHibernateIterator implements Iterator<Object> - { - private final Iterator<?> delegate; - - public CDOHibernateIterator(Iterator<?> delegate) - { - this.delegate = delegate; - } - - public boolean hasNext() - { - return delegate.hasNext(); - } - - public Object next() - { - Object o = delegate.next(); - if (o instanceof CDOID) - { - return HibernateUtil.getInstance().getCDORevision((CDOID)o); - } - - return o; - } - - public void remove() - { - delegate.remove(); - } - } - - private static final class CDOHibernateListIterator implements ListIterator<Object> - { - private final ListIterator<Object> delegate; - - public CDOHibernateListIterator(ListIterator<Object> delegate) - { - this.delegate = delegate; - } - - public void add(Object o) - { - delegate.add(((CDORevision)o).getID()); - } - - public boolean hasNext() - { - return delegate.hasNext(); - } - - public boolean hasPrevious() - { - return delegate.hasPrevious(); - } - - public Object next() - { - Object o = delegate.next(); - if (o instanceof CDOID) - { - return HibernateUtil.getInstance().getCDORevision((CDOID)delegate.next()); - } - - return o; - } - - public int nextIndex() - { - return delegate.nextIndex(); - } - - public Object previous() - { - Object o = delegate.previous(); - if (o instanceof CDOID) - { - return HibernateUtil.getInstance().getCDORevision((CDOID)delegate.next()); - } - - return o; - } - - public int previousIndex() - { - return delegate.previousIndex(); - } - - public void remove() - { - delegate.remove(); - } - - public void set(Object o) - { - delegate.set(((CDORevision)o).getID()); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/PersistableListHolder.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/PersistableListHolder.java deleted file mode 100644 index 108747dca9..0000000000 --- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/PersistableListHolder.java +++ /dev/null @@ -1,111 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Martin Taal and others - * 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: - * Martin Taal - copied from CDORevisionPropertyHandler and adapted - **************************************************************************/ -package org.eclipse.emf.cdo.server.internal.hibernate.tuplizer; - -import org.eclipse.emf.cdo.common.model.CDOFeature; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.server.internal.hibernate.bundle.OM; - -import org.eclipse.net4j.util.om.trace.ContextTracer; - -import org.hibernate.collection.PersistentCollection; - -import java.util.HashMap; -import java.util.Map; - -/** - * Keeps mappings from object/feature combinations to a hibernate persistable list. This works because the write action - * is done in one thread. - * - * @author Martin Taal - */ -public class PersistableListHolder -{ - private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, PersistableListHolder.class); - - private static PersistableListHolder instance = new PersistableListHolder(); - - private ThreadLocal<Map<Key, PersistentCollection>> listMapping = new ThreadLocal<Map<Key, PersistentCollection>>(); - - public PersistableListHolder() - { - } - - public void putListMapping(Object target, CDOFeature cdoFeature, PersistentCollection collection) - { - Key key = new Key(target, cdoFeature); - getListMapping().put(key, collection); - if (TRACER.isEnabled()) - { - TRACER.trace("Stored hb list in threadlocal: " + ((CDORevision)target).getCDOClass().getName() + "." - + cdoFeature.getName()); - } - } - - public PersistentCollection getListMapping(Object target, CDOFeature cdoFeature) - { - Key key = new Key(target, cdoFeature); - return getListMapping().get(key); - } - - private Map<Key, PersistentCollection> getListMapping() - { - if (listMapping.get() == null) - { - listMapping.set(new HashMap<Key, PersistentCollection>()); - } - - return listMapping.get(); - } - - public static PersistableListHolder getInstance() - { - return instance; - } - - public static void setInstance(PersistableListHolder instance) - { - PersistableListHolder.instance = instance; - } - - private static final class Key - { - private Object owner; - - private CDOFeature cdoFeature; - - public Key(Object owner, CDOFeature cdoFeature) - { - this.owner = owner; - this.cdoFeature = cdoFeature; - } - - @Override - public boolean equals(Object obj) - { - if (!(obj instanceof Key)) - { - return false; - } - - Key otherKey = (Key)obj; - // the owner is uniquely present in mem, the same applies for the cdoFeature - // therefore == is allowed - return owner == otherKey.owner && cdoFeature == otherKey.cdoFeature; - } - - @Override - public int hashCode() - { - return owner.hashCode() + cdoFeature.hashCode(); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.classpath b/plugins/org.eclipse.emf.cdo.tests.hibernate/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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/org.eclipse.emf.cdo.tests.hibernate/.cvsignore b/plugins/org.eclipse.emf.cdo.tests.hibernate/.cvsignore deleted file mode 100644 index ef2fbf6ec2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -bin -doc -model1X.ecore -state -*.log diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.project b/plugins/org.eclipse.emf.cdo.tests.hibernate/.project deleted file mode 100644 index 733b03fc03..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.tests.hibernate</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 30a2a63bd6..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,328 +0,0 @@ -#Mon Jun 09 18:09:29 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore -org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 473e5b4aff..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:48:18 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 9203d94542..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:11:15 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index d5f9cf5106..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:11:15 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.pde.core.prefs b/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.pde.core.prefs deleted file mode 100644 index 06b138ba0b..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/.settings/org.eclipse.pde.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -#Sat Mar 01 20:37:23 CET 2008 -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/HibernateServer.launch b/plugins/org.eclipse.emf.cdo.tests.hibernate/HibernateServer.launch deleted file mode 100644 index 3cd1aff9de..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/HibernateServer.launch +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> -<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> -<listEntry value="/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java"/> -</listAttribute> -<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> -<listEntry value="1"/> -</listAttribute> -<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> -<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> -<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> -</listAttribute> -<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.cdo.tests.hibernate.HibernateServer"/> -<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.emf.cdo.tests.hibernate"/> -</launchConfiguration> diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.hibernate/META-INF/MANIFEST.MF deleted file mode 100644 index a9ca11b4a6..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.emf.cdo.tests.hibernate;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-ActivationPolicy: lazy -Bundle-Activator: org.eclipse.emf.cdo.tests.hibernate.Activator -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ClassPath: . -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", - org.eclipse.net4j.db.mysql;bundle-version="[2.0.0,3.0.0)", - org.eclipse.net4j.db.hsqldb;bundle-version="[2.0.0,3.0.0)", - org.eclipse.net4j.tcp;bundle-version="[2.0.0,3.0.0)", - org.eclipse.emf.cdo;bundle-version="[2.0.0,3.0.0)", - org.eclipse.emf.cdo.server;bundle-version="[2.0.0,3.0.0)", - org.eclipse.emf.cdo.server.hibernate.libraries;bundle-version="[1.0.0,2.0.0)", - org.eclipse.emf.cdo.server.hibernate;bundle-version="[2.0.0,3.0.0)", - org.eclipse.emf.cdo.tests;bundle-version="[2.0.0,3.0.0)", - org.eclipse.emf.cdo.server.hibernate.teneo;bundle-version="[2.0.0,3.0.0)" -Export-Package: mappings;version="2.0.0", - org.eclipse.emf.cdo.tests.hibernate;version="2.0.0" diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.html b/plugins/org.eclipse.emf.cdo.tests.hibernate/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.tests.hibernate/about.ini b/plugins/org.eclipse.emf.cdo.tests.hibernate/about.ini deleted file mode 100644 index b7e87ca285..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.ini +++ /dev/null @@ -1,15 +0,0 @@ -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%featureText - -# Property "featureImage" contains path to feature image (32x32) -featureImage=modeling32.png - -# Property "appName" contains name of the application (translated) -appName=%featureName - diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.mappings b/plugins/org.eclipse.emf.cdo.tests.hibernate/about.mappings deleted file mode 100644 index bddaab4310..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.mappings +++ /dev/null @@ -1,6 +0,0 @@ -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=@build@
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.properties b/plugins/org.eclipse.emf.cdo.tests.hibernate/about.properties deleted file mode 100644 index d9516a7c46..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/about.properties +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -featureName = CDO Tests -featureText = CDO Tests\n\ -Version: {featureVersion}\n\ -Build id: {0}\n\ -\n\ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. All rights reserved.\n\ -\n\ -Visit http://wiki.eclipse.org/CDO - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/build.properties b/plugins/org.eclipse.emf.cdo.tests.hibernate/build.properties deleted file mode 100644 index 10d0d39618..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/build.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html,\ - plugin.properties,\ - about.ini,\ - about.mappings,\ - about.properties,\ - modeling32.png,\ - src/log4j.properties diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/copyright.txt b/plugins/org.eclipse.emf.cdo.tests.hibernate/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/epl-v10.html b/plugins/org.eclipse.emf.cdo.tests.hibernate/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/license.html b/plugins/org.eclipse.emf.cdo.tests.hibernate/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/model1.ecore b/plugins/org.eclipse.emf.cdo.tests.hibernate/model1.ecore deleted file mode 100644 index 716968f5d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/model1.ecore +++ /dev/null @@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model1" - nsURI="http://www.eclipse.org/emf/CDO/tests/model1/1.0.0" nsPrefix="model1"> - <eClassifiers xsi:type="ecore:EClass" name="Address"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Company" eSuperTypes="#//Address"> - <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1" - eType="#//Category" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="suppliers" upperBound="-1" - eType="#//Supplier" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1" - eType="#//Customer" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1" - eType="#//PurchaseOrder" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" upperBound="-1" - eType="#//SalesOrder" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Supplier" eSuperTypes="#//Address"> - <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1" - eType="#//PurchaseOrder" eOpposite="#//PurchaseOrder/supplier"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="preferred" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" - defaultValueLiteral="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Customer" eSuperTypes="#//Address"> - <eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" unique="false" - upperBound="-1" eType="#//SalesOrder" eOpposite="#//SalesOrder/customer"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Order"> - <eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1" - eType="#//OrderDetail" containment="true" eOpposite="#//OrderDetail/order"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="OrderDetail"> - <eStructuralFeatures xsi:type="ecore:EReference" name="order" lowerBound="1" eType="#//Order" - eOpposite="#//Order/orderDetails"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="product" eType="#//Product" - eOpposite="#//Product/orderDetails"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder" eSuperTypes="#//Order"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="supplier" lowerBound="1" - eType="#//Supplier" eOpposite="#//Supplier/purchaseOrders"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="SalesOrder" eSuperTypes="#//Order"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="customer" lowerBound="1" - eType="#//Customer" eOpposite="#//Customer/salesOrders"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Category"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1" - eType="#//Category" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="products" upperBound="-1" - eType="#//Product" containment="true"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Product"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1" - eType="#//OrderDetail" eOpposite="#//OrderDetail/product"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="vat" eType="#//VAT" defaultValueLiteral="vat15"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EEnum" name="VAT"> - <eLiterals name="vat0"/> - <eLiterals name="vat7" value="7"/> - <eLiterals name="vat15" value="15"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="OrderAddress" eSuperTypes="#//Address #//Order #//OrderDetail"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="testAttribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/> - </eClassifiers> -</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/modeling32.png b/plugins/org.eclipse.emf.cdo.tests.hibernate/modeling32.png Binary files differdeleted file mode 100644 index 6b08de2ada..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/modeling32.png +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/plugin.properties b/plugins/org.eclipse.emf.cdo.tests.hibernate/plugin.properties deleted file mode 100644 index eb359d68c7..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/plugin.properties +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Tests Hibernate -providerName = Eclipse.org - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/app.properties b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/app.properties deleted file mode 100644 index eeb34388d1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/app.properties +++ /dev/null @@ -1,23 +0,0 @@ -hibernate.hbm2ddl.auto=create-drop -hibernate.show_sql=false -hibernate.connection.pool_size=10 - -# ----------------------------------------------------------- -# DEFAULT SETTINGS FOR IN MEMORY HSQLDB DATABASE. -# -hibernate.dialect=org.hibernate.dialect.HSQLDialect -hibernate.connection.driver_class=org.hsqldb.jdbcDriver -hibernate.connection.url=jdbc:hsqldb:mem:cdohibernate -hibernate.connection.username=sa -hibernate.connection.password= -hibernate.connection.autocommit=true -hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider - -#-------------------------------------------------------------- -# EXAMPLE SETTING FOR MYSQL DATABASE. UNCOMMENT AND EDIT TO USE. -# -#hibernate.connection.driver_class=com.mysql.jdbc.Driver -#hibernate.connection.url=jdbc:mysql://localhost:3306/cdohibernate -#hibernate.connection.username=cdo -#hibernate.connection.password= -#hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/log4j.properties b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/log4j.properties deleted file mode 100644 index b956a8a902..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/log4j.properties +++ /dev/null @@ -1,44 +0,0 @@ -# Set root logger level to error and its only appender to A1. -log4j.rootCategory=error, A1 - -log4j.category.JPOX=OFF - -# A1 is set to be a ConsoleAppender. -log4j.appender.A1=org.apache.log4j.ConsoleAppender - -# A1 uses PatternLayout. -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n - -#log4j.logger.org.hibernate=error -log4j.logger.org.hibernate=error -#org.hibernate.pretty - -### log HQL query parser activity -log4j.logger.org.hibernate.hql.ast.AST=error - -### log just the SQL -log4j.logger.org.hibernate.SQL=error - -### log JDBC bind parameters ### -log4j.logger.org.hibernate.type=error -#log4j.logger.org.hibernate.type=error - -### log schema export/update ### -log4j.logger.org.hibernate.tool.hbm2ddl=error - -### log HQL parse trees -log4j.logger.org.hibernate.hql=error - -### log cache activity ### -log4j.logger.org.hibernate.cache=error - -### log transaction activity -log4j.logger.org.hibernate.transaction=error - -### log JDBC resource acquisition -log4j.logger.org.hibernate.jdbc=error - -### enable the following line if you want to track down connection ### -### leakages when using DriverManagerConnectionProvider ### -log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=error diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/mappings/product.hbm.xml b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/mappings/product.hbm.xml deleted file mode 100644 index 174d68a56f..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/mappings/product.hbm.xml +++ /dev/null @@ -1,218 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> - -<hibernate-mapping auto-import="false"> - <class entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`"> - <meta attribute="eclassName">Address</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`street`"/> - </property> - <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`city`"/> - </property> - </class> - <subclass entity-name="Company" abstract="false" lazy="false" extends="Address" discriminator-value="Company"> - <meta attribute="eclassName">Company</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <list name="categories" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="company_categories"> - <column name="`company_categories_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`company_categories_idx`"/> - <one-to-many entity-name="Category"/> - </list> - <list name="suppliers" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="company_suppliers"> - <column name="`company_suppliers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`company_suppliers_idx`"/> - <one-to-many entity-name="Supplier"/> - </list> - <list name="customers" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="company_customers"> - <column name="`company_customers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`company_customers_idx`"/> - <one-to-many entity-name="Customer"/> - </list> - <list name="purchaseOrders" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="company_purchaseorders"> - <column name="`company_purchaseorders_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`company_purchaseorders_idx`"/> - <one-to-many entity-name="PurchaseOrder"/> - </list> - <list name="salesOrders" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="company_salesorders"> - <column name="`company_salesorders_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`company_salesorders_idx`"/> - <one-to-many entity-name="SalesOrder"/> - </list> - </subclass> - <subclass entity-name="Supplier" abstract="false" lazy="false" extends="Address" discriminator-value="Supplier"> - <meta attribute="eclassName">Supplier</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <list name="purchaseOrders" lazy="true"> - <key update="true"> - <column name="`purchaseorder_supplier_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`supplier_purchaseorders_idx`"/> - <one-to-many entity-name="PurchaseOrder"/> - </list> - </subclass> - <subclass entity-name="Customer" abstract="false" lazy="false" extends="Address" discriminator-value="Customer"> - <meta attribute="eclassName">Customer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <list name="salesOrders" lazy="true"> - <key update="true"> - <column name="`salesorder_customer_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`customer_salesorders_idx`"/> - <one-to-many entity-name="SalesOrder"/> - </list> - </subclass> - <class entity-name="Order" abstract="false" lazy="false" discriminator-value="Order" table="`order`"> - <meta attribute="eclassName">Order</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="orderDetails" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`orderdetail_order_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`order_orderdetails_idx`"/> - <one-to-many entity-name="OrderDetail"/> - </list> - </class> - <class entity-name="OrderDetail" abstract="false" lazy="false" discriminator-value="OrderDetail" table="`orderdetail`"> - <meta attribute="eclassName">OrderDetail</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <many-to-one name="order" entity-name="Order" foreign-key="orderdetail_order" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`orderdetail_order_e_id`"/> - </many-to-one> - <many-to-one name="product" entity-name="Product" foreign-key="orderdetail_product" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`orderdetail_product_e_id`"/> - </many-to-one> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`price`"/> - </property> - </class> - <subclass entity-name="PurchaseOrder" abstract="false" lazy="false" extends="Order" discriminator-value="PurchaseOrder"> - <meta attribute="eclassName">PurchaseOrder</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <property name="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`date`"/> - </property> - <many-to-one name="supplier" entity-name="Supplier" foreign-key="purchaseorder_supplier" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`purchaseorder_supplier_e_id`"/> - </many-to-one> - </subclass> - <subclass entity-name="SalesOrder" abstract="false" lazy="false" extends="Order" discriminator-value="SalesOrder"> - <meta attribute="eclassName">SalesOrder</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`id`"/> - </property> - <many-to-one name="customer" entity-name="Customer" foreign-key="salesorder_customer" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`salesorder_customer_e_id`"/> - </many-to-one> - </subclass> - <class entity-name="Category" abstract="false" lazy="false" discriminator-value="Category" table="`category`"> - <meta attribute="eclassName">Category</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <list name="categories" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="category_categories"> - <column name="`category_categories_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`category_categories_idx`"/> - <one-to-many entity-name="Category"/> - </list> - <list name="products" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="category_products"> - <column name="`category_products_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`category_products_idx`"/> - <one-to-many entity-name="Product"/> - </list> - </class> - <class entity-name="Product" abstract="false" lazy="false" discriminator-value="Product" table="`product`"> - <meta attribute="eclassName">Product</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/CDO/tests/model1/1.0.0</meta> - <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator column="`dtype`" type="string"/> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <list name="orderDetails" lazy="true"> - <key update="true"> - <column name="`orderdetail_product_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`product_orderdetails_idx`"/> - <one-to-many entity-name="OrderDetail"/> - </list> - </class> -</hibernate-mapping> diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/Activator.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/Activator.java deleted file mode 100644 index d8c7c569aa..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/Activator.java +++ /dev/null @@ -1,48 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.core.runtime.Plugin; - -import org.osgi.framework.BundleContext; - -/** - * @author Eike Stepper - */ -public class Activator extends Plugin -{ - public static final String PLUGIN_ID = "org.eclipse.emf.cdo.tests.hibernate"; - - private static Activator plugin; - - public Activator() - { - } - - @Override - public void start(BundleContext context) throws Exception - { - super.start(context); - plugin = this; - } - - @Override - public void stop(BundleContext context) throws Exception - { - plugin = null; - super.stop(context); - } - - public static Activator getDefault() - { - return plugin; - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/AllTests.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/AllTests.java deleted file mode 100644 index d8e33d9faa..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/AllTests.java +++ /dev/null @@ -1,77 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.emf.cdo.tests.ContainmentTest; -import org.eclipse.emf.cdo.tests.CrossReferenceTest; -import org.eclipse.emf.cdo.tests.EnumTest; -import org.eclipse.emf.cdo.tests.IndexReconstructionTest; -import org.eclipse.emf.cdo.tests.InitialTest; -import org.eclipse.emf.cdo.tests.InvalidationTest; -import org.eclipse.emf.cdo.tests.MangoTest; -import org.eclipse.emf.cdo.tests.NoLegacyTest; -import org.eclipse.emf.cdo.tests.NonCDOResourceTest; -import org.eclipse.emf.cdo.tests.RevisionDeltaTest; -import org.eclipse.emf.cdo.tests.RevisionHolderTest; -import org.eclipse.emf.cdo.tests.RollbackTest; -import org.eclipse.emf.cdo.tests.StateMachineTest; -import org.eclipse.emf.cdo.tests.StoreRepositoryProvider; -import org.eclipse.emf.cdo.tests.ViewTest; - -import junit.framework.Test; -import junit.framework.TestSuite; - -/** - * @author Eike Stepper - */ -public class AllTests -{ - public static Test suite() - { - StoreRepositoryProvider.setInstance(HbStoreRepositoryProvider.getInstance()); - - TestSuite suite = new TestSuite("Tests for CDO using Hibernate"); - suite.addTestSuite(HbTransactionDeadLockTest.class); - suite.addTestSuite(HibernatePackageRegistryTest.class); - suite.addTestSuite(ContainmentTest.class); - suite.addTestSuite(RevisionDeltaTest.class); - suite.addTestSuite(RollbackTest.class); - suite.addTestSuite(StateMachineTest.class); - suite.addTestSuite(RevisionHolderTest.class); - suite.addTestSuite(CrossReferenceTest.class); - suite.addTestSuite(MangoTest.class); - suite.addTestSuite(EnumTest.class); - suite.addTestSuite(NoLegacyTest.class); - suite.addTestSuite(NonCDOResourceTest.class); - suite.addTestSuite(InvalidationTest.class); - suite.addTestSuite(InitialTest.class); - suite.addTestSuite(ViewTest.class); - suite.addTestSuite(IndexReconstructionTest.class); - - // These fail for standard cdo >>> - // suite.addTestSuite(DymamicEcoreTest.class); - // suite.addTestSuite(ContentAdapterTest.class); - // suite.addTestSuite(FetchRuleAnalyzerTest.class); - // suite.addTestSuite(GeneratedEcoreTest.class); - - // Chunking is not supported by Hibernate - // suite.addTestSuite(ChunkingTest.class); - // failures: /testWriteNative, testChunkWithTemporaryObject - // suite.addTestSuite(ChunkingWithMEMTest.class); - // failures testReadNative, testWriteNative - - // $JUnit-BEGIN$ - // TODO suite.addTestSuite(GeneratedEcoreTest.class); - // $JUnit-END$ - - return suite; - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbStoreRepositoryProvider.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbStoreRepositoryProvider.java deleted file mode 100644 index 03ebd4b4c2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbStoreRepositoryProvider.java +++ /dev/null @@ -1,102 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.emf.cdo.server.CDOServerUtil; -import org.eclipse.emf.cdo.server.IRepository; -import org.eclipse.emf.cdo.server.IStore; -import org.eclipse.emf.cdo.server.IRepository.Props; -import org.eclipse.emf.cdo.server.hibernate.IHibernateMappingProvider; -import org.eclipse.emf.cdo.server.hibernate.teneo.TeneoHibernateMappingProvider; -import org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore; -import org.eclipse.emf.cdo.tests.StoreRepositoryProvider; - -import org.eclipse.net4j.util.WrappedException; -import org.eclipse.net4j.util.om.OMPlatform; - -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; - -/** - * @author Eike Stepper - * @author Martin Taal - */ -public class HbStoreRepositoryProvider extends StoreRepositoryProvider -{ - public static final String MAPPING_FILE = "mappingfile"; - - private static HbStoreRepositoryProvider instance = new HbStoreRepositoryProvider(); - - public static HbStoreRepositoryProvider getInstance() - { - return instance; - } - - public static void setInstance(HbStoreRepositoryProvider instance) - { - HbStoreRepositoryProvider.instance = instance; - } - - @Override - public IRepository createRepository(String name, Map<String, String> testProperties) - { - setLogging(); - - Map<String, String> props = new HashMap<String, String>(); - props.put(Props.PROP_OVERRIDE_UUID, "f8188187-65de-4c8a-8e75-e0ce5949837a"); - props.put(Props.PROP_SUPPORTING_AUDITS, "false"); - props.put(Props.PROP_SUPPORTING_REVISION_DELTAS, "false"); - props.put(Props.PROP_VERIFYING_REVISIONS, "false"); - props.put(Props.PROP_CURRENT_LRU_CAPACITY, "10000"); - props.put(Props.PROP_REVISED_LRU_CAPACITY, "10000"); - addHibernateTeneoProperties(props); - - // override with the test properties - props.putAll(testProperties); - - return CDOServerUtil.createRepository(name, createStore(), props); - } - - private void addHibernateTeneoProperties(Map<String, String> props) - { - try - { - final Properties teneoProperties = new Properties(); - teneoProperties.load(getClass().getResourceAsStream("/app.properties")); - for (Object key : teneoProperties.keySet()) - { - props.put((String)key, teneoProperties.getProperty((String)key)); - } - } - catch (Exception e) - { - throw WrappedException.wrap(e); - } - } - - @Override - public IStore createStore() - { - IHibernateMappingProvider mappingProvider = new TeneoHibernateMappingProvider(); - // return new HibernateStore(props, mappingProvider); - // IHibernateMappingProvider mappingProvider = new CDOInterceptor("/mappings/product.hbm.xml"); - return new HibernateStore(mappingProvider); - } - - protected void setLogging() - { - OMPlatform.INSTANCE.setDebugging(false); - // OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE); - // OMPlatform.INSTANCE.addTraceHandler(new PrintTraceHandler(new PrintStream("trace.txt"))); - // OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE); - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbTransactionDeadLockTest.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbTransactionDeadLockTest.java deleted file mode 100644 index 292d6f9a88..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HbTransactionDeadLockTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Simon McDuff - initial API and implementation - * Eike Stepper - maintenance - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.emf.cdo.tests.TransactionDeadLockTest; - -import java.util.HashMap; -import java.util.Map; - -/** - * @see https://bugs.eclipse.org/213782 - * @see https://bugs.eclipse.org/201366 - * @author Simon McDuff - */ -public class HbTransactionDeadLockTest extends TransactionDeadLockTest -{ - - // allows a testcase to pass specific properties - @Override - protected Map<String, String> getTestProperties() - { - final Map<String, String> testProperties = new HashMap<String, String>(); - testProperties.put("hibernate.hbm2ddl.auto", "update"); - return testProperties; - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernatePackageRegistryTest.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernatePackageRegistryTest.java deleted file mode 100644 index f233f3ff11..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernatePackageRegistryTest.java +++ /dev/null @@ -1,93 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Simon McDuff - initial API and implementation - * Eike Stepper - maintenance - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.emf.cdo.tests.PackageRegistryTest; - -import java.util.HashMap; -import java.util.Map; - -/** - * Overrides the real testclass because it needs some specific create-drop settings for specific testcases. This is not - * the nicest way of doing this but it is short and easy to understand. - */ -public class HibernatePackageRegistryTest extends PackageRegistryTest -{ - - private String hbm2ddlValue = null; - - // allows a testcase to pass specific properties - @Override - protected Map<String, String> getTestProperties() - { - final Map<String, String> testProperties = new HashMap<String, String>(); - if (getHbm2ddlValue() != null) - { - testProperties.put("hibernate.hbm2ddl.auto", getHbm2ddlValue()); - } - return testProperties; - } - - public void testRereadPackages() throws Exception - { - setHbm2ddlValue("update"); - super.testCommitTwoPackages(); - doTearDown(); - doSetUp(); - super.testCommitTwoPackages(); - doTearDown(); - setHbm2ddlValue(null); - } - - @Override - // this testcase can't handle create-drop because in the middle of the - // testcase a new package is written to the db - public void testCommitUnrelatedPackage() throws Exception - { - setHbm2ddlValue("update"); - // this needs to be extra because in doSetup it is unknown which testcase is being run - doTearDown(); - doSetUp(); - try - { - super.testCommitUnrelatedPackage(); - } - finally - { - setHbm2ddlValue(null); - } - } - - @Override - protected void doSetUp() throws Exception - { - System.err.println("Called dosetup"); - super.doSetUp(); - } - - @Override - protected void doTearDown() throws Exception - { - System.err.println("Called doteardown"); - super.doTearDown(); - } - - public String getHbm2ddlValue() - { - return hbm2ddlValue; - } - - public void setHbm2ddlValue(String hbm2ddlValue) - { - this.hbm2ddlValue = hbm2ddlValue; - } -} diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java deleted file mode 100644 index eaba46867e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java +++ /dev/null @@ -1,89 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany, and others - * 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: - * Eike Stepper - initial API and implementation - * Martin Taal - extended testcase - **************************************************************************/ -package org.eclipse.emf.cdo.tests.hibernate; - -import org.eclipse.emf.cdo.server.CDOServerUtil; - -import org.eclipse.net4j.Net4jUtil; -import org.eclipse.net4j.tcp.TCPUtil; -import org.eclipse.net4j.util.container.ContainerUtil; -import org.eclipse.net4j.util.container.IManagedContainer; -import org.eclipse.net4j.util.io.IOUtil; -import org.eclipse.net4j.util.lifecycle.LifecycleUtil; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.log.PrintLogHandler; -import org.eclipse.net4j.util.om.trace.PrintTraceHandler; - -import java.io.FileNotFoundException; -import java.io.PrintStream; -import java.util.HashMap; - -/** - * @author Eike Stepper - */ -public class HibernateServer -{ - private static final String REPOSITORY_NAME = "repo1"; - - private static final boolean TRACE_TO_CONSOLE = true; - - private static final boolean TRACE_TO_FILE = false; - - private static PrintStream traceStream; - - public static void main(String[] args) throws Exception - { - try - { - IManagedContainer container = initContainer(); - TCPUtil.getAcceptor(container, "0.0.0.0:2036"); // Start the JVM transport - CDOServerUtil.addRepository(container, HbStoreRepositoryProvider.getInstance().createRepository(REPOSITORY_NAME, - new HashMap<String, String>())); - IOUtil.OUT().println(); - IOUtil.OUT().println("Hit any key to shut down..."); - while (System.in.read() == -1) - { - Thread.sleep(500); - } - - LifecycleUtil.deactivate(container); - } - finally - { - IOUtil.closeSilent(traceStream); - } - } - - private static IManagedContainer initContainer() throws FileNotFoundException - { - // Turn on tracing - OMPlatform.INSTANCE.setDebugging(false); - OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE); - if (TRACE_TO_FILE) - { - traceStream = new PrintStream("trace.txt"); - OMPlatform.INSTANCE.addTraceHandler(new PrintTraceHandler(traceStream)); - } - - if (TRACE_TO_CONSOLE) - { - OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE); - } - - // Prepare the standalone infra structure (not needed when running inside Eclipse) - IManagedContainer container = ContainerUtil.createContainer(); // Create a wiring container - Net4jUtil.prepareContainer(container); // Prepare the Net4j kernel - TCPUtil.prepareContainer(container); // Prepare the TCP transport - CDOServerUtil.prepareContainer(container); // Prepare the CDO server - return container; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/.classpath b/plugins/org.eclipse.emf.cdo.ui/.classpath deleted file mode 100644 index 64c5e31b7a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?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/org.eclipse.emf.cdo.ui/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/.cvsignore deleted file mode 100644 index 693869726d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -bin -doc diff --git a/plugins/org.eclipse.emf.cdo.ui/.options b/plugins/org.eclipse.emf.cdo.ui/.options deleted file mode 100644 index 79322d02b3..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.options +++ /dev/null @@ -1,6 +0,0 @@ -# Debugging and tracing options - -org.eclipse.emf.cdo.ui/debug = true - -org.eclipse.emf.cdo.ui/test = false -org.eclipse.emf.cdo.ui/test.bulk_add = false diff --git a/plugins/org.eclipse.emf.cdo.ui/.project b/plugins/org.eclipse.emf.cdo.ui/.project deleted file mode 100644 index a5d170dfa1..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.emf.cdo.ui</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index fd01b317c8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,271 +0,0 @@ -#Mon Jun 09 18:09:30 CEST 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -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_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_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_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.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -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=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -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=false -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=120 -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.format_guardian_clause_on_one_line=false -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=2 -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_member=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_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_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_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_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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_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.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=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index b7c1575976..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,65 +0,0 @@ -#Sat Feb 23 10:49:15 CET 2008 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/***************************************************************************\r\n * Copyright (c) 2004 - 2008 Eike Stepper, Germany.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n **************************************************************************/</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates> diff --git a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs deleted file mode 100644 index 7f1832044c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Sun Mar 09 19:15:26 CET 2008 -eclipse.preferences.version=1 -project.repository.kind=bugzilla -project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.team.ui.prefs deleted file mode 100644 index e72b02b02f..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/.settings/org.eclipse.mylyn.team.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Mar 09 19:15:26 CET 2008 -commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} -eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.ui/CDOClient1.launch b/plugins/org.eclipse.emf.cdo.ui/CDOClient1.launch deleted file mode 100644 index f53f58411d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/CDOClient1.launch +++ /dev/null @@ -1,363 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> -<booleanAttribute key="askclear" value="true"/> -<booleanAttribute key="automaticAdd" value="false"/> -<booleanAttribute key="automaticValidate" value="false"/> -<stringAttribute key="bootstrap" value=""/> -<stringAttribute key="checked" value="org.eclipse.emf.cdo,org.eclipse.emf.cdo.examples,org.eclipse.emf.cdo.ui,org.eclipse.net4j,org.eclipse.net4j.http,org.eclipse.net4j.http.common,org.eclipse.net4j.tcp,org.eclipse.net4j.ui,org.eclipse.net4j.util,org.eclipse.net4j.util.ui"/> -<booleanAttribute key="clearConfig" value="true"/> -<booleanAttribute key="clearws" value="false"/> -<booleanAttribute key="clearwslog" value="false"/> -<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/CDOClient1"/> -<booleanAttribute key="default" value="false"/> -<booleanAttribute key="includeOptional" value="false"/> -<stringAttribute key="location" value="${workspace_loc}/../cdo.client1"/> -<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> -<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> -<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> -<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> -</listAttribute> -<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-nosplash -console"/> -<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.aspectj.tracing.debug=false -Xms40m -Xmx512m"/> -<stringAttribute key="pde.version" value="3.3"/> -<stringAttribute key="product" value="org.eclipse.sdk.ide"/> -<stringAttribute key="selectedPlugin" value="org.eclipse.net4j.http.common"/> -<stringAttribute key="selected_target_plugins" value="org.apache.lucene*1.9.1.v20080530-1600,org.eclipse.team.cvs.core,org.eclipse.emf.common,org.eclipse.jdt.source,org.eclipse.team.core,org.eclipse.help,org.eclipse.core.resources.compatibility,org.apache.commons.el,org.eclipse.pde.ui.templates,org.eclipse.core.resources.win32.x86,org.apache.commons.logging*1.1.1.v20080605-1935,org.eclipse.equinox.security.win32.x86,org.eclipse.update.core,org.eclipse.team.cvs.ui,org.eclipse.emf.converter,org.eclipse.emf.cheatsheets,org.apache.ant*1.7.0.v200803061910,org.eclipse.ui.win32,org.junit4,org.eclipse.emf.ant,org.eclipse.team.cvs.ssh,org.eclipse.jface.databinding,org.eclipse.help.base,org.eclipse.jdt.junit,org.eclipse.ant.core,org.eclipse.emf.importer,org.eclipse.update.ui,org.eclipse.emf.codegen.ecore.ui,org.eclipse.cvs,org.eclipse.ui.editors,org.eclipse.core.filesystem.win32.x86,org.eclipse.jdt.ui,org.eclipse.jdt.debug.ui,org.eclipse.core.net.win32.x86,org.eclipse.debug.ui,org.eclipse.core.jobs,org.eclipse.equinox.jsp.jasper.registry,org.eclipse.core.runtime.compatibility.auth,org.eclipse.emf.ecore.change,org.eclipse.emf.mapping,org.eclipse.pde.doc.user,org.eclipse.emf.exporter,org.eclipse.pde.build,org.mortbay.jetty*5.1.14.v200806031611,org.eclipse.compare,org.eclipse.emf.doc,org.eclipse.text,org.eclipse.jface,org.apache.jasper,org.eclipse.emf.codegen.ecore,org.eclipse.core.filebuffers,org.eclipse.cvs.source,org.eclipse.help.webapp,org.eclipse.help.appserver,org.eclipse.swt.win32.win32.x86,org.eclipse.equinox.common,org.eclipse.core.variables,org.eclipse.xsd.ecore.exporter,org.eclipse.jdt.compiler.tool,org.eclipse.emf.mapping.ecore2ecore,org.eclipse.equinox.registry,org.eclipse.team.cvs.ssh2,org.eclipse.core.expressions,org.apache.lucene.analysis,org.eclipse.core.databinding.beans,org.eclipse.core.databinding,org.eclipse.osgi.services,org.eclipse.emf.codegen.ui,org.eclipse.jdt.launching,org.eclipse.core.runtime.compatibility.registry,org.eclipse.ltk.core.refactoring,org.eclipse.emf.ecore.xmi,org.eclipse.emf.edit.ui,org.eclipse.pde.core,org.eclipse.emf.mapping.ui,org.eclipse.emf.importer.rose,org.eclipse.equinox.http.registry,org.eclipse.pde.runtime,org.eclipse.ant.ui,org.eclipse.core.filesystem,org.eclipse.equinox.jsp.jasper,org.eclipse.search,org.eclipse.emf.mapping.xsd2ecore,org.eclipse.emf.mapping.ecore2ecore.editor,org.eclipse.emf.common.ui,org.eclipse.core.contenttype,org.eclipse.ui.workbench.compatibility,org.eclipse.osgi.util,org.eclipse.xsd,org.eclipse.ui.intro.universal,org.eclipse.emf.mapping.ecore2xml,org.eclipse.xsd.ecore.importer,org.eclipse.emf.ecore.editor,org.eclipse.emf.importer.ecore,org.eclipse.emf.edit,org.eclipse.platform.source,org.eclipse.emf.ecore.sdo.source,org.eclipse.ui.browser,org.eclipse.debug.core,org.eclipse.core.commands,org.eclipse.ui.views.log,org.eclipse.update.core.win32,org.eclipse.emf.ecore.edit,org.eclipse.ui.ide,javax.servlet*2.5.0.v200806031605,org.eclipse.ui.workbench,org.eclipse.jdt.junit4.runtime,org.eclipse.emf.ecore.change.edit,org.eclipse.team.ui,org.eclipse.xsd.edit,org.eclipse.jdt.doc.isv,org.eclipse.ui,org.eclipse.equinox.app,org.eclipse.update.scheduler,org.eclipse.pde.source,org.eclipse.equinox.launcher,com.ibm.icu,org.eclipse.core.resources,org.eclipse.swt,org.eclipse.ui.intro,org.eclipse.emf.ecore,org.eclipse.equinox.http.jetty,org.eclipse.jdt.compiler.apt,org.eclipse.update.configurator,org.eclipse.emf.mapping.ecore2xml.ui,org.eclipse.emf.ecore.sdo.edit,org.eclipse.core.net,org.eclipse.emf.source,org.eclipse.jsch.core,org.eclipse.emf.ecore.sdo,org.eclipse.xsd.source,org.eclipse.ui.ide.application,org.eclipse.ui.views.properties.tabbed,javax.servlet.jsp*2.0.0.v200806031607,org.eclipse.emf.ecore.sdo.editor,org.eclipse.core.boot,org.junit*3.8.2.v20080602-1318,org.eclipse.ui.externaltools,org.eclipse.emf.mapping.xsd2ecore.editor,org.eclipse.equinox.security,org.eclipse.emf.ecore.sdo.doc,org.eclipse.ui.forms,org.eclipse.jdt.junit.runtime,org.eclipse.jdt.doc.user,org.eclipse.jdt.debug,org.eclipse.platform.doc.isv,org.eclipse.ui.cheatsheets,org.eclipse.equinox.launcher.win32.win32.x86,org.eclipse.jdt.core,org.eclipse.equinox.http.servlet,org.eclipse.ui.navigator.resources,org.eclipse.pde.junit.runtime,org.eclipse.ui.views,org.eclipse.sdk,org.eclipse.pde.ui,org.eclipse.emf.codegen,org.eclipse.emf.commonj.sdo,org.eclipse.xsd.editor,org.eclipse.ltk.ui.refactoring,org.eclipse.core.runtime.compatibility,org.eclipse.xsd.cheatsheets,org.eclipse.xsd.doc,org.eclipse.equinox.preferences,org.eclipse.osgi,org.eclipse.emf.importer.java,org.eclipse.rcp.source,org.eclipse.core.runtime,org.eclipse.ui.presentations.r21,org.eclipse.ui.console,org.eclipse.pde,org.eclipse.help.ui,com.jcraft.jsch*0.1.37.v200803061811,org.eclipse.jdt.core.manipulation,org.eclipse.ui.workbench.texteditor,org.eclipse.ui.navigator,org.eclipse.jface.text"/> -<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.tests.mango.edit,org.eclipse.emf.cdo.examples,org.eclipse.emf.cdo.tests.model3.edit,org.eclipse.emf.cdo.tests.model1.edit,org.eclipse.emf.cdo.common,org.eclipse.net4j.util.ui,org.eclipse.emf.cdo.tests.mango,org.eclipse.net4j.tcp,org.eclipse.net4j.ui,org.eclipse.emf.cdo.tests.model3,org.eclipse.emf.cdo.tests.model2,org.eclipse.ant.optional.junit,org.eclipse.net4j.util,org.eclipse.emf.cdo.edit,org.eclipse.emf.cdo.ui,org.eclipse.emf.cdo,org.eclipse.emf.cdo.tests.model2.edit,org.eclipse.net4j,org.eclipse.emf.cdo.tests.model1"/> -<booleanAttribute key="show_selected_only" value="false"/> -<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/> -<booleanAttribute key="tracing" value="true"/> -<mapAttribute key="tracingOptions"> -<mapEntry key="org.eclipse.core.runtime/debug/context" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/beginend" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/completion" value="false"/> -<mapEntry key="org.eclipse.ui/trace/sources" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/indexmanager" value="false"/> -<mapEntry key="org.eclipse.ltk.core.refactoring/perf/participants/checkConditions" value="300"/> -<mapEntry key="org.eclipse.jface.text.source/debug/RevisionRulerColumn" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/updateSequence" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/filename" value="runtime.traces"/> -<mapEntry key="org.eclipse.debug.ui/debug/contextlaunching" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug" value="false"/> -<mapEntry key="org.eclipse.net4j.tcp/debug" value="true"/> -<mapEntry key="org.eclipse.team.cvs.core/dirtycaching" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.repository" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/javamodel" value="false"/> -<mapEntry key="org.eclipse.ui.intro/trace/printHTML" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.ltk.core.refactoring/perf/participants/createChanges" value="300"/> -<mapEntry key="org.eclipse.net4j.util/debug.lifecycle.dump" value="true"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPerspectiveListener" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.util" value="true"/> -<mapEntry key="org.eclipse.osgi/resolver/debug" value="false"/> -<mapEntry key="org.eclipse.team.core/refreshjob" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/installhandler" value="false"/> -<mapEntry key="org.eclipse.ui/debug" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug/infopop" value="false"/> -<mapEntry key="org.eclipse.pde.core/classpath" value="false"/> -<mapEntry key="org.eclipse.team.cvs.core/threading" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/general" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug.store" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers.performance" value="false"/> -<mapEntry key="org.eclipse.ui/trace/operations.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/activation" value="false"/> -<mapEntry key="org.eclipse.debug.core/debug/commands" value="false"/> -<mapEntry key="org.eclipse.team.core/threading" value="false"/> -<mapEntry key="org.eclipse.ui/perf/workbench.restore" value="30000"/> -<mapEntry key="org.eclipse.update.core/debug/parsing" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/postaction" value="false"/> -<mapEntry key="org.eclipse.ui/trace/graphics" value="false"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/logsynchronously" value="false"/> -<mapEntry key="org.eclipse.net4j.db/debug" value="true"/> -<mapEntry key="org.eclipse.ui/debug/workingSets" value="false"/> -<mapEntry key="org.eclipse.osgi/monitor/activation" value="false"/> -<mapEntry key="org.eclipse.net4j.jms/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.debug.ui/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/buffermanager" value="false"/> -<mapEntry key="org.eclipse.help.base/debug/search" value="false"/> -<mapEntry key="org.eclipse.pde.build/debug" value="false"/> -<mapEntry key="org.eclipse.jface.text/debug/ContentAssistSubjectAdapters" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/search/participants" value="300"/> -<mapEntry key="org.eclipse.ui/perf/perspective.create" value="800"/> -<mapEntry key="org.eclipse.net4j.buddies.common/debug" value="true"/> -<mapEntry key="org.eclipse.update.core/debug/type" value="false"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/platformadmin" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/generics" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPropertyChangeListener" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/requires" value="false"/> -<mapEntry key="org.eclipse.core.resources/refresh" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/containerinitializer" value="5000"/> -<mapEntry key="org.eclipse.osgi/profile/benchmark" value="false"/> -<mapEntry key="org.eclipse.help.webapp/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/debug/ASTProvider" value="false"/> -<mapEntry key="org.eclipse.osgi/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.types" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts.performance" value="false"/> -<mapEntry key="org.eclipse.net4j.buddies/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/completion" value="300"/> -<mapEntry key="org.eclipse.team.cvs.core/metafiles" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/startup" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs" value="false"/> -<mapEntry key="org.eclipse.core.resources/perf/save.participants" value="500"/> -<mapEntry key="org.eclipse.net4j/perf" value="false"/> -<mapEntry key="org.eclipse.help.base/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug.signal" value="true"/> -<mapEntry key="org.eclipse.core.jobs/jobs/timing" value="false"/> -<mapEntry key="org.eclipse.net4j.fileshare/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.db.hsqldb/debug.sql" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/reconcile" value="1000"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPageListener" value="false"/> -<mapEntry key="org.eclipse.net4j/debug.buffer" value="false"/> -<mapEntry key="org.eclipse.core.resources/contenttype/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.repository" value="true"/> -<mapEntry key="org.eclipse.core.jobs/jobs/locks" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/configuration" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.examples/debug" value="true"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/connect" value="false"/> -<mapEntry key="org.eclipse.ui/trace/handlers.verbose.commandId" value=""/> -<mapEntry key="org.eclipse.ui.ide/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/debug" value="false"/> -<mapEntry key="org.eclipse.pde.core/debug" value="true"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPartReference" value="false"/> -<mapEntry key="org.eclipse.ui/debug/job.stale" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.registry" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/createPartControl" value="1300"/> -<mapEntry key="org.eclipse.jdt.core/debug/hierarchy" value="false"/> -<mapEntry key="org.eclipse.ui.ide/debug/internalerror/openDialog" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.object" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/variableinitializer" value="5000"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.revision" value="false"/> -<mapEntry key="org.eclipse.core.resources/strings" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/sourcemapper" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/mastertable" value="false"/> -<mapEntry key="org.eclipse.core.expressions/tracePropertyResolving" value="false"/> -<mapEntry key="org.eclipse.ui/perf/showHeapStatus" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/javadelta" value="false"/> -<mapEntry key="org.eclipse.core.resources/preferences" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/selection" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/content_assist_sorters/extensions" value=""/> -<mapEntry key="org.eclipse.jdt.core/debug/javamodel/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/perf.revision" value="true"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/logfilename" value=""/> -<mapEntry key="org.eclipse.team.core/backgroundevents" value="false"/> -<mapEntry key="org.eclipse.ui/trace/keyBindings" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.session" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.activate" value="200"/> -<mapEntry key="org.eclipse.update.core/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/debug/security" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/needbuild" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/metainfo" value="false"/> -<mapEntry key="org.eclipse.core.resources/perf/builders" value="10000"/> -<mapEntry key="org.eclipse.net4j.jms.admin/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.net4j.db.hsqldb/debug" value="true"/> -<mapEntry key="org.eclipse.ui/perf/perspective.listeners" value="200"/> -<mapEntry key="org.eclipse.ui/debug/showAllJobs" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.store" value="true"/> -<mapEntry key="org.eclipse.core.resources/history" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPartListener" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/search" value="false"/> -<mapEntry key="org.eclipse.pde.core/validation" value="false"/> -<mapEntry key="org.eclipse.team.cvs.core/cvsprotocol" value="true"/> -<mapEntry key="org.eclipse.jface.text/debug/AnnotationPainter" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/mastertable" value="false"/> -<mapEntry key="org.eclipse.core.runtime/debug" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/set" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/snapshots" value="false"/> -<mapEntry key="org.eclipse.ui/perf/perspective.switch" value="800"/> -<mapEntry key="org.eclipse.emf.cdo/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.help.webapp/debug/workingsets" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/bundleTime" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision" value="true"/> -<mapEntry key="org.eclipse.core.resources/restore/markers" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.model" value="true"/> -<mapEntry key="org.eclipse.ui/perf/workbench.start" value="45000"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision.reading" value="true"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/cachecopy" value="false"/> -<mapEntry key="org.eclipse.core.runtime/perf/success" value="false"/> -<mapEntry key="org.eclipse.net4j/debug.connector" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/selection" value="300"/> -<mapEntry key="org.eclipse.osgi/debug/startlevel" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/wiring" value="false"/> -<mapEntry key="org.eclipse.net4j.buddies.server/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/perf/snapshot" value="1000"/> -<mapEntry key="org.eclipse.ui.intro/trace/logPerformance" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/loader" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/grouping" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/makeActions" value="1000"/> -<mapEntry key="org.eclipse.net4j/debug.acceptor" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.ui/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/perf" value="true"/> -<mapEntry key="org.eclipse.core.resources/save/markers" value="false"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/platformadmin/resolver" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPartListener2" value="false"/> -<mapEntry key="org.eclipse.net4j.jvm/debug" value="true"/> -<mapEntry key="org.eclipse.ui/trace/operations" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/install" value="false"/> -<mapEntry key="org.eclipse.equinox.registry/debug/events" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/metainfo" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.lifecycle" value="true"/> -<mapEntry key="org.eclipse.ui/perf/contentTypes" value="200"/> -<mapEntry key="org.eclipse.help.ui/debug/embeddedBrowser/inprocess" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/javadeltalistener" value="500"/> -<mapEntry key="org.eclipse.core.resources/perf/listeners" value="500"/> -<mapEntry key="org.eclipse.ui.intro/flags/noBrowser" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.init" value="800"/> -<mapEntry key="org.eclipse.core.contenttype/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/imports" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/tree" value="false"/> -<mapEntry key="org.eclipse.ui.intro.universal/trace/logPerformance" value="false"/> -<mapEntry key="org.eclipse.help/debug/context" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/manifest" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug" value="true"/> -<mapEntry key="org.eclipse.ui/trace/multipageeditor" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.examples/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/build/needbuildstack" value="false"/> -<mapEntry key="org.eclipse.ui/debug/swtdebug" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/syncinfo" value="false"/> -<mapEntry key="org.eclipse.team.cvs.ssh/debug" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/failure" value="false"/> -<mapEntry key="org.eclipse.team.core/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/builder" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.revision" value="true"/> -<mapEntry key="org.eclipse.osgi/trace/classLoading" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server.jdbc/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/save" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/errorondeadlock" value="false"/> -<mapEntry key="org.eclipse.core.resources/contenttype" value="false"/> -<mapEntry key="org.eclipse.jface.text/debug/FastPartitioner/PositionCache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/compiler" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/events" value="false"/> -<mapEntry key="org.eclipse.ui/trace/commands" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/get" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/debug/ResultCollector" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/launchhistory" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.om" value="true"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.db.mysql/debug" value="true"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/model" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug" value="true"/> -<mapEntry key="org.eclipse.equinox.registry/debug" value="false"/> -<mapEntry key="org.eclipse.ui.intro/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/cpresolution/advanced" value="false"/> -<mapEntry key="org.eclipse.net4j.jms/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/converter/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.resource" value="true"/> -<mapEntry key="org.eclipse.net4j.db.derby/debug.sql" value="true"/> -<mapEntry key="org.eclipse.net4j.debug/debug" value="true"/> -<mapEntry key="org.eclipse.pde.core/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.ui/test" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.transaction" value="true"/> -<mapEntry key="org.eclipse.emf.cdo.server.db/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug.selector" value="true"/> -<mapEntry key="org.eclipse.debug.core/debug/events" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/monitor/classes" value="false"/> -<mapEntry key="org.eclipse.net4j.db/debug.sql" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.input" value="200"/> -<mapEntry key="org.eclipse.ui.intro.universal/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/debug/TypeConstraints" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/messageBundles" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/invoking" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/javadelta/verbose" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.concurrency" value="true"/> -<mapEntry key="org.eclipse.net4j.fileshare.ui/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/save/tree" value="false"/> -<mapEntry key="org.eclipse.ui/debug/contributions" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/warning" value="false"/> -<mapEntry key="org.eclipse.core.resources/natures" value="false"/> -<mapEntry key="org.eclipse.jdt.core.manipulation/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision.writing" value="true"/> -<mapEntry key="org.eclipse.net4j.jms.admin/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.model" value="true"/> -<mapEntry key="org.eclipse.net4j.db.derby/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/cpresolution" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug/embeddedBrowser" value="false"/> -<mapEntry key="org.eclipse.help/debug/search" value="false"/> -<mapEntry key="org.eclipse.team.cvs.ssh/ssh_protocol" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.create" value="800"/> -<mapEntry key="org.eclipse.core.resources/build/stacktrace" value="false"/> -<mapEntry key="org.eclipse.ui.intro/trace/logInfo" value="true"/> -<mapEntry key="org.eclipse.team.core/streams" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo.ui/test.bulk_add" value="true"/> -<mapEntry key="org.eclipse.ui.ide/debug/undomonitor" value="false"/> -<mapEntry key="org.eclipse.net4j.ui/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/RefactorActionGroup" value="150"/> -<mapEntry key="org.eclipse.ui/experimental/menus" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/shutdown" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/packageadmin" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.session" value="true"/> -<mapEntry key="org.eclipse.core.runtime/compatibility/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.adapter" value="true"/> -<mapEntry key="org.eclipse.ui/debug/declaredImages" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/reconciler" value="false"/> -<mapEntry key="org.eclipse.ui.ide/debug/gc" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/contentProvider" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/services" value="false"/> -<mapEntry key="org.eclipse.net4j.db.mysql/debug.sql" value="true"/> -<mapEntry key="org.eclipse.net4j.util.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.chat.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.chat/debug" value="true"/> -<mapEntry key="org.eclipse.ui.workbench/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/content_assist/extensions" value="1000"/> -<mapEntry key="org.eclipse.osgi/debug/filter" value="false"/> -<mapEntry key="org.eclipse.debug.core/debug" value="false"/> -<mapEntry key="org.eclipse.core.resources/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/zipaccess" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.ui.browser/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/impl" value="org.eclipse.osgi.internal.profile.DefaultProfileLogger"/> -<mapEntry key="org.eclipse.update.core/debug/web" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.team.cvs.core/debug" value="false"/> -<mapEntry key="org.eclipse.help/debug" value="true"/> -<mapEntry key="org.eclipse.core.runtime/perf" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/filters" value="trace.properties"/> -<mapEntry key="org.eclipse.net4j/debug.channel" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/perf.revision.loading" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.revision" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.view" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.listeners" value="200"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/viewer" value="false"/> -<mapEntry key="org.eclipse.ui/trace/keyBindings.verbose" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/syncinfo" value="false"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/buffersize" value="256"/> -<mapEntry key="org.eclipse.ui/perf/page.listeners" value="200"/> -<mapEntry key="org.eclipse.team.cvs.core/syncchangeevents" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.resource" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/monitor/resources" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.control" value="800"/> -<mapEntry key="org.eclipse.net4j/debug.buffer.stream" value="false"/> -<mapEntry key="org.eclipse.ui/perf/uijob" value="200"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/cachelookup" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPartListener2" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/delta" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/interrupt" value="false"/> -<mapEntry key="org.eclipse.core.runtime/preferences/plugin" value="false"/> -<mapEntry key="org.eclipse.core.runtime/url/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/cycles" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPartListener" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/resolution" value="false"/> -<mapEntry key="org.eclipse.update.configurator/debug" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/deltas" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/location" value="false"/> -<mapEntry key="org.eclipse.ui.intro.universal/trace/logInfo" value="true"/> -</mapAttribute> -<booleanAttribute key="useDefaultConfig" value="true"/> -<booleanAttribute key="useDefaultConfigArea" value="true"/> -<booleanAttribute key="useNamedJRE" value="true"/> -<booleanAttribute key="useProduct" value="true"/> -<booleanAttribute key="usefeatures" value="false"/> -</launchConfiguration> diff --git a/plugins/org.eclipse.emf.cdo.ui/CDOClient2.launch b/plugins/org.eclipse.emf.cdo.ui/CDOClient2.launch deleted file mode 100644 index 2b70ceee12..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/CDOClient2.launch +++ /dev/null @@ -1,361 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> -<booleanAttribute key="askclear" value="true"/> -<booleanAttribute key="automaticAdd" value="false"/> -<booleanAttribute key="automaticValidate" value="false"/> -<stringAttribute key="bootstrap" value=""/> -<stringAttribute key="checked" value="org.eclipse.emf.cdo,org.eclipse.emf.cdo.examples,org.eclipse.emf.cdo.ui,org.eclipse.net4j,org.eclipse.net4j.tcp,org.eclipse.net4j.ui,org.eclipse.net4j.util,org.eclipse.net4j.util.ui"/> -<booleanAttribute key="clearConfig" value="true"/> -<booleanAttribute key="clearws" value="false"/> -<booleanAttribute key="clearwslog" value="false"/> -<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/CDOClient2"/> -<booleanAttribute key="default" value="false"/> -<booleanAttribute key="includeOptional" value="false"/> -<stringAttribute key="location" value="${workspace_loc}/../cdo.client2"/> -<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> -<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> -<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> -<listEntry value="org.eclipse.debug.ui.launchGroup.run"/> -</listAttribute> -<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-nosplash -console"/> -<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.aspectj.tracing.debug=false -Xms40m -Xmx512m"/> -<stringAttribute key="pde.version" value="3.3"/> -<stringAttribute key="product" value="org.eclipse.sdk.ide"/> -<stringAttribute key="selectedPlugin" value="org.eclipse.emf.cdo"/> -<stringAttribute key="selected_target_plugins" value="org.eclipse.xsd.source,org.eclipse.core.runtime.compatibility.registry,org.eclipse.ui,org.eclipse.emf.exporter,org.eclipse.jface.databinding,org.eclipse.core.resources.win32.x86,org.eclipse.update.ui,org.eclipse.jdt.junit4.runtime,org.eclipse.xsd.edit,org.eclipse.emf.ecore.sdo,org.eclipse.jdt.doc.isv,org.eclipse.emf.mapping,org.eclipse.equinox.registry,org.eclipse.sdk,org.eclipse.jdt.launching,org.eclipse.emf.mapping.ecore2ecore.editor,org.eclipse.ant.core,org.eclipse.emf.ecore.xmi,org.eclipse.equinox.jsp.jasper.registry,org.eclipse.jface,org.eclipse.xsd.doc,org.apache.jasper,org.eclipse.xsd.cheatsheets,org.eclipse.emf.ecore.sdo.editor,org.eclipse.emf.mapping.ecore2xml,org.eclipse.core.resources.compatibility,org.eclipse.team.core,org.eclipse.emf.edit.ui,org.eclipse.emf.codegen.ecore.ui,org.eclipse.search,org.eclipse.jdt.compiler.tool,org.eclipse.ui.ide.application,org.eclipse.help.appserver,org.eclipse.ui.editors,org.eclipse.ui.views.properties.tabbed,org.eclipse.equinox.security.win32.x86,com.ibm.icu,org.eclipse.equinox.jsp.jasper,org.eclipse.pde,org.eclipse.ltk.ui.refactoring,org.eclipse.osgi.services,org.eclipse.ltk.core.refactoring,org.eclipse.equinox.http.servlet,org.eclipse.jdt.doc.user,org.eclipse.swt,org.eclipse.equinox.security,org.eclipse.emf.converter,org.eclipse.jface.text,org.eclipse.emf.mapping.ecore2ecore,org.eclipse.pde.core,org.eclipse.jdt.core.manipulation,org.eclipse.core.runtime,org.junit4,org.eclipse.debug.ui,org.eclipse.core.variables,org.eclipse.ui.workbench.texteditor,org.eclipse.ui.forms,org.eclipse.emf.ecore.sdo.doc,org.eclipse.update.core.win32,org.eclipse.emf.codegen,org.apache.ant*1.7.0.v200803061910,org.eclipse.team.ui,org.apache.lucene.analysis,org.eclipse.emf.mapping.xsd2ecore.editor,org.eclipse.ui.cheatsheets,org.eclipse.emf.ecore.sdo.edit,org.eclipse.core.resources,com.jcraft.jsch*0.1.37.v200803061811,org.eclipse.jdt.debug.ui,org.eclipse.emf.importer.rose,org.eclipse.ui.externaltools,org.eclipse.emf.source,org.eclipse.equinox.http.registry,org.eclipse.emf.ecore.edit,org.eclipse.emf.edit,org.eclipse.xsd.editor,org.eclipse.swt.win32.win32.x86,org.eclipse.cvs,org.eclipse.emf.mapping.ui,org.eclipse.emf.doc,org.eclipse.ui.win32,org.eclipse.core.filebuffers,org.eclipse.emf.codegen.ui,org.eclipse.core.databinding,org.eclipse.emf.common,org.eclipse.rcp.source,org.eclipse.help.ui,javax.servlet.jsp*2.0.0.v200803061910,org.eclipse.emf.mapping.xsd2ecore,org.eclipse.pde.ui.templates,org.eclipse.xsd,org.apache.commons.httpclient*3.1.0.v200803061910,org.eclipse.osgi,org.eclipse.jdt.junit.runtime,org.eclipse.ui.ide,org.eclipse.jdt.ui,org.eclipse.core.boot,org.eclipse.emf.ecore,org.eclipse.ui.workbench,org.eclipse.update.configurator,org.eclipse.core.net.win32.x86,org.eclipse.pde.ui,org.eclipse.jsch.core,org.eclipse.platform.source,org.eclipse.core.contenttype,org.eclipse.text,org.eclipse.emf.ecore.sdo.source,org.eclipse.ui.console,org.eclipse.equinox.common,org.junit*3.8.2.v20080327,org.eclipse.emf.ecore.change.edit,org.eclipse.xsd.ecore.importer,org.eclipse.ui.navigator,org.eclipse.help,org.eclipse.emf.cheatsheets,org.eclipse.ui.intro.universal,org.eclipse.emf.common.ui,org.eclipse.jdt.compiler.apt,org.eclipse.core.jobs,org.eclipse.pde.junit.runtime,org.eclipse.team.cvs.core,org.eclipse.ant.ui,org.eclipse.core.expressions,org.eclipse.ui.presentations.r21,org.apache.commons.el,org.eclipse.core.net,org.mortbay.jetty*5.1.14.v200804221617,org.eclipse.ui.browser,org.eclipse.emf.ecore.change,org.eclipse.debug.core,org.apache.lucene*1.9.1.v200803061811,org.eclipse.jdt.core,org.eclipse.core.runtime.compatibility,org.eclipse.ui.views,org.eclipse.update.core,org.eclipse.equinox.launcher,org.eclipse.equinox.launcher.win32.win32.x86,org.eclipse.emf.importer.java,org.eclipse.equinox.app,org.eclipse.platform.doc.isv,org.eclipse.ui.navigator.resources,org.apache.commons.logging*1.0.4.v200803061811,org.eclipse.equinox.http.jetty,org.eclipse.pde.source,org.eclipse.jdt.junit,javax.servlet*2.4.0.v200803061910,org.eclipse.equinox.preferences,org.eclipse.xsd.ecore.exporter,org.eclipse.emf.importer,org.eclipse.emf.codegen.ecore,org.eclipse.pde.runtime,org.eclipse.core.commands,org.eclipse.pde.doc.user,org.eclipse.cvs.source,org.eclipse.compare,org.eclipse.core.databinding.beans,org.eclipse.emf.importer.ecore,org.eclipse.ui.workbench.compatibility,org.eclipse.osgi.util,org.eclipse.jdt.source,org.eclipse.team.cvs.ssh2,org.eclipse.team.cvs.ssh,org.eclipse.pde.build,org.eclipse.help.base,org.eclipse.emf.ecore.editor,org.eclipse.emf.commonj.sdo,org.eclipse.ui.intro,org.eclipse.jdt.debug,org.eclipse.emf.mapping.ecore2xml.ui,org.eclipse.core.filesystem.win32.x86,org.eclipse.team.cvs.ui,org.eclipse.core.runtime.compatibility.auth,org.eclipse.emf.ant,org.eclipse.core.filesystem,org.eclipse.help.webapp,org.eclipse.ui.views.log,org.eclipse.update.scheduler,org.apache.commons.codec*1.3.0.v200803061910"/> -<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.tests.mango.edit,org.eclipse.emf.cdo.examples,org.eclipse.emf.cdo.tests.model3.edit,org.eclipse.emf.cdo.tests.model1.edit,org.eclipse.emf.cdo.common,org.eclipse.net4j.util.ui,org.eclipse.emf.cdo.tests.mango,org.eclipse.net4j.tcp,org.eclipse.emf.cdo.doc,org.eclipse.net4j.ui,org.eclipse.emf.cdo.tests.model3,org.eclipse.emf.cdo.tests.model2,org.eclipse.ant.optional.junit,org.eclipse.net4j.util,org.eclipse.emf.cdo.edit,org.eclipse.emf.cdo.ui,org.eclipse.emf.cdo,org.eclipse.emf.cdo.tests.model2.edit,org.eclipse.net4j,org.eclipse.emf.cdo.tests.model1"/> -<booleanAttribute key="show_selected_only" value="false"/> -<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/> -<booleanAttribute key="tracing" value="true"/> -<mapAttribute key="tracingOptions"> -<mapEntry key="org.eclipse.core.runtime/debug/context" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/beginend" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/completion" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.revision" value="true"/> -<mapEntry key="org.eclipse.ui/trace/sources" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/indexmanager" value="false"/> -<mapEntry key="org.eclipse.ltk.core.refactoring/perf/participants/checkConditions" value="300"/> -<mapEntry key="org.eclipse.jface.text.source/debug/RevisionRulerColumn" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/updateSequence" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/filename" value="runtime.traces"/> -<mapEntry key="org.eclipse.debug.ui/debug/contextlaunching" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug" value="false"/> -<mapEntry key="org.eclipse.net4j.tcp/debug" value="true"/> -<mapEntry key="org.eclipse.team.cvs.core/dirtycaching" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.repository" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/javamodel" value="false"/> -<mapEntry key="org.eclipse.ui.intro/trace/printHTML" value="false"/> -<mapEntry key="org.eclipse.ltk.core.refactoring/perf/participants/createChanges" value="300"/> -<mapEntry key="org.eclipse.net4j.util/debug.lifecycle.dump" value="true"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPerspectiveListener" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.util" value="true"/> -<mapEntry key="org.eclipse.osgi/resolver/debug" value="false"/> -<mapEntry key="org.eclipse.team.core/refreshjob" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/installhandler" value="false"/> -<mapEntry key="org.eclipse.ui/debug" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug/infopop" value="false"/> -<mapEntry key="org.eclipse.pde.core/classpath" value="false"/> -<mapEntry key="org.eclipse.team.cvs.core/threading" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/general" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug.store" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers.performance" value="false"/> -<mapEntry key="org.eclipse.ui/trace/operations.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/activation" value="false"/> -<mapEntry key="org.eclipse.debug.core/debug/commands" value="false"/> -<mapEntry key="org.eclipse.team.core/threading" value="false"/> -<mapEntry key="org.eclipse.ui/perf/workbench.restore" value="30000"/> -<mapEntry key="org.eclipse.update.core/debug/parsing" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/postaction" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.ui/trace/graphics" value="false"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/logsynchronously" value="false"/> -<mapEntry key="org.eclipse.net4j.db/debug" value="true"/> -<mapEntry key="org.eclipse.ui/debug/workingSets" value="false"/> -<mapEntry key="org.eclipse.osgi/monitor/activation" value="false"/> -<mapEntry key="org.eclipse.net4j.jms/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.debug.ui/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/buffermanager" value="false"/> -<mapEntry key="org.eclipse.help.base/debug/search" value="false"/> -<mapEntry key="org.eclipse.pde.build/debug" value="false"/> -<mapEntry key="org.eclipse.jface.text/debug/ContentAssistSubjectAdapters" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/search/participants" value="300"/> -<mapEntry key="org.eclipse.ui/perf/perspective.create" value="800"/> -<mapEntry key="org.eclipse.net4j.buddies.common/debug" value="true"/> -<mapEntry key="org.eclipse.update.core/debug/type" value="false"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/platformadmin" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/generics" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPropertyChangeListener" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/requires" value="false"/> -<mapEntry key="org.eclipse.core.resources/refresh" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/containerinitializer" value="5000"/> -<mapEntry key="org.eclipse.osgi/profile/benchmark" value="false"/> -<mapEntry key="org.eclipse.help.webapp/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/debug/ASTProvider" value="false"/> -<mapEntry key="org.eclipse.osgi/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.types" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts.performance" value="false"/> -<mapEntry key="org.eclipse.net4j.buddies/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/completion" value="300"/> -<mapEntry key="org.eclipse.team.cvs.core/metafiles" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/startup" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs" value="false"/> -<mapEntry key="org.eclipse.core.resources/perf/save.participants" value="500"/> -<mapEntry key="org.eclipse.net4j/perf" value="false"/> -<mapEntry key="org.eclipse.help.base/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug.signal" value="true"/> -<mapEntry key="org.eclipse.core.jobs/jobs/timing" value="false"/> -<mapEntry key="org.eclipse.net4j.fileshare/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.db.hsqldb/debug.sql" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/reconcile" value="1000"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPageListener" value="false"/> -<mapEntry key="org.eclipse.net4j/debug.buffer" value="false"/> -<mapEntry key="org.eclipse.core.resources/contenttype/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.repository" value="true"/> -<mapEntry key="org.eclipse.core.jobs/jobs/locks" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/configuration" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.examples/debug" value="true"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/connect" value="false"/> -<mapEntry key="org.eclipse.ui/trace/handlers.verbose.commandId" value=""/> -<mapEntry key="org.eclipse.ui.ide/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/debug" value="false"/> -<mapEntry key="org.eclipse.pde.core/debug" value="true"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPartReference" value="false"/> -<mapEntry key="org.eclipse.ui/debug/job.stale" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.registry" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/createPartControl" value="1300"/> -<mapEntry key="org.eclipse.jdt.core/debug/hierarchy" value="false"/> -<mapEntry key="org.eclipse.ui.ide/debug/internalerror/openDialog" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.object" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/variableinitializer" value="5000"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.revision" value="false"/> -<mapEntry key="org.eclipse.core.resources/strings" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/sourcemapper" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/mastertable" value="false"/> -<mapEntry key="org.eclipse.core.expressions/tracePropertyResolving" value="false"/> -<mapEntry key="org.eclipse.ui/perf/showHeapStatus" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/javadelta" value="false"/> -<mapEntry key="org.eclipse.core.resources/preferences" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/selection" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/content_assist_sorters/extensions" value=""/> -<mapEntry key="org.eclipse.jdt.core/debug/javamodel/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/perf.revision" value="true"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/logfilename" value=""/> -<mapEntry key="org.eclipse.team.core/backgroundevents" value="false"/> -<mapEntry key="org.eclipse.ui/trace/keyBindings" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.session" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.activate" value="200"/> -<mapEntry key="org.eclipse.update.core/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/debug/security" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/needbuild" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/metainfo" value="false"/> -<mapEntry key="org.eclipse.core.resources/perf/builders" value="10000"/> -<mapEntry key="org.eclipse.net4j.jms.admin/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.net4j.db.hsqldb/debug" value="true"/> -<mapEntry key="org.eclipse.ui/perf/perspective.listeners" value="200"/> -<mapEntry key="org.eclipse.ui/debug/showAllJobs" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.store" value="true"/> -<mapEntry key="org.eclipse.core.resources/history" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPartListener" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/search" value="false"/> -<mapEntry key="org.eclipse.pde.core/validation" value="false"/> -<mapEntry key="org.eclipse.team.cvs.core/cvsprotocol" value="true"/> -<mapEntry key="org.eclipse.jface.text/debug/AnnotationPainter" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/mastertable" value="false"/> -<mapEntry key="org.eclipse.core.runtime/debug" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/set" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/snapshots" value="false"/> -<mapEntry key="org.eclipse.ui/perf/perspective.switch" value="800"/> -<mapEntry key="org.eclipse.emf.cdo/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.help.webapp/debug/workingsets" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/bundleTime" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision" value="true"/> -<mapEntry key="org.eclipse.core.resources/restore/markers" value="false"/> -<mapEntry key="org.eclipse.ui/perf/workbench.start" value="45000"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/cachecopy" value="false"/> -<mapEntry key="org.eclipse.core.runtime/perf/success" value="false"/> -<mapEntry key="org.eclipse.net4j/debug.connector" value="true"/> -<mapEntry key="org.eclipse.jdt.core/perf/selection" value="300"/> -<mapEntry key="org.eclipse.osgi/debug/startlevel" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/wiring" value="false"/> -<mapEntry key="org.eclipse.net4j.buddies.server/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/perf/snapshot" value="1000"/> -<mapEntry key="org.eclipse.ui.intro/trace/logPerformance" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/loader" value="false"/> -<mapEntry key="org.eclipse.ui/trace/contexts.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/grouping" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/makeActions" value="1000"/> -<mapEntry key="org.eclipse.net4j/debug.acceptor" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.ui/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/perf" value="true"/> -<mapEntry key="org.eclipse.core.resources/save/markers" value="false"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/platformadmin/resolver" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchPage.IPartListener2" value="false"/> -<mapEntry key="org.eclipse.net4j.jvm/debug" value="true"/> -<mapEntry key="org.eclipse.ui/trace/operations" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/install" value="false"/> -<mapEntry key="org.eclipse.equinox.registry/debug/events" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/metainfo" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.lifecycle" value="true"/> -<mapEntry key="org.eclipse.ui/perf/contentTypes" value="200"/> -<mapEntry key="org.eclipse.help.ui/debug/embeddedBrowser/inprocess" value="false"/> -<mapEntry key="org.eclipse.jdt.core/perf/javadeltalistener" value="500"/> -<mapEntry key="org.eclipse.core.resources/perf/listeners" value="500"/> -<mapEntry key="org.eclipse.ui.intro/flags/noBrowser" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.init" value="800"/> -<mapEntry key="org.eclipse.core.contenttype/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/imports" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/tree" value="false"/> -<mapEntry key="org.eclipse.ui.intro.universal/trace/logPerformance" value="false"/> -<mapEntry key="org.eclipse.help/debug/context" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/manifest" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug" value="true"/> -<mapEntry key="org.eclipse.ui/trace/multipageeditor" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.examples/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/build/needbuildstack" value="false"/> -<mapEntry key="org.eclipse.ui/debug/swtdebug" value="false"/> -<mapEntry key="org.eclipse.core.resources/save/syncinfo" value="false"/> -<mapEntry key="org.eclipse.team.cvs.ssh/debug" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/failure" value="false"/> -<mapEntry key="org.eclipse.team.core/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/builder" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/classLoading" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server.jdbc/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/save" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/errorondeadlock" value="false"/> -<mapEntry key="org.eclipse.core.resources/contenttype" value="false"/> -<mapEntry key="org.eclipse.jface.text/debug/FastPartitioner/PositionCache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/compiler" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/events" value="false"/> -<mapEntry key="org.eclipse.ui/trace/commands" value="false"/> -<mapEntry key="org.eclipse.equinox.preferences/get" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/debug/ResultCollector" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/launchhistory" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.om" value="true"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.db.mysql/debug" value="true"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/model" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug" value="true"/> -<mapEntry key="org.eclipse.equinox.registry/debug" value="false"/> -<mapEntry key="org.eclipse.ui.intro/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/cpresolution/advanced" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision.reading" value="true"/> -<mapEntry key="org.eclipse.net4j.jms/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/converter/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.resource" value="true"/> -<mapEntry key="org.eclipse.net4j.db.derby/debug.sql" value="true"/> -<mapEntry key="org.eclipse.net4j.debug/debug" value="true"/> -<mapEntry key="org.eclipse.pde.core/cache" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.transaction" value="true"/> -<mapEntry key="org.eclipse.emf.cdo.server.db/debug" value="true"/> -<mapEntry key="org.eclipse.net4j/debug.selector" value="true"/> -<mapEntry key="org.eclipse.debug.core/debug/events" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/monitor/classes" value="false"/> -<mapEntry key="org.eclipse.net4j.db/debug.sql" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.input" value="200"/> -<mapEntry key="org.eclipse.ui.intro.universal/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/debug/TypeConstraints" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/messageBundles" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/invoking" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/javadelta/verbose" value="false"/> -<mapEntry key="org.eclipse.net4j.util/debug.concurrency" value="true"/> -<mapEntry key="org.eclipse.net4j.fileshare.ui/debug" value="true"/> -<mapEntry key="org.eclipse.core.resources/save/tree" value="false"/> -<mapEntry key="org.eclipse.ui/debug/contributions" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/warning" value="false"/> -<mapEntry key="org.eclipse.core.resources/natures" value="false"/> -<mapEntry key="org.eclipse.jdt.core.manipulation/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.jms.admin/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.model" value="true"/> -<mapEntry key="org.eclipse.net4j.db.derby/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.core/debug/cpresolution" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug/embeddedBrowser" value="false"/> -<mapEntry key="org.eclipse.help/debug/search" value="false"/> -<mapEntry key="org.eclipse.team.cvs.ssh/ssh_protocol" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.create" value="800"/> -<mapEntry key="org.eclipse.core.resources/build/stacktrace" value="false"/> -<mapEntry key="org.eclipse.ui.intro/trace/logInfo" value="true"/> -<mapEntry key="org.eclipse.team.core/streams" value="false"/> -<mapEntry key="org.eclipse.ui.ide/debug/undomonitor" value="false"/> -<mapEntry key="org.eclipse.net4j.ui/debug" value="true"/> -<mapEntry key="org.eclipse.jdt.ui/perf/explorer/RefactorActionGroup" value="150"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf.revision.writing" value="true"/> -<mapEntry key="org.eclipse.ui/experimental/menus" value="false"/> -<mapEntry key="org.eclipse.core.jobs/jobs/shutdown" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/packageadmin" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.session" value="true"/> -<mapEntry key="org.eclipse.core.runtime/compatibility/debug" value="false"/> -<mapEntry key="org.eclipse.emf.cdo/debug.adapter" value="true"/> -<mapEntry key="org.eclipse.ui/debug/declaredImages" value="false"/> -<mapEntry key="org.eclipse.update.core/debug/reconciler" value="false"/> -<mapEntry key="org.eclipse.ui.ide/debug/gc" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/contentProvider" value="false"/> -<mapEntry key="org.eclipse.osgi/debug/services" value="false"/> -<mapEntry key="org.eclipse.net4j.db.mysql/debug.sql" value="true"/> -<mapEntry key="org.eclipse.net4j.util.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.chat.ui/debug" value="true"/> -<mapEntry key="org.eclipse.net4j.buddies.chat/debug" value="true"/> -<mapEntry key="org.eclipse.ui.workbench/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.ui/perf/content_assist/extensions" value="1000"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug.model" value="true"/> -<mapEntry key="org.eclipse.osgi/debug/filter" value="false"/> -<mapEntry key="org.eclipse.debug.core/debug" value="false"/> -<mapEntry key="org.eclipse.core.resources/debug" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/zipaccess" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.server/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.ui.browser/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/profile/impl" value="org.eclipse.osgi.internal.profile.DefaultProfileLogger"/> -<mapEntry key="org.eclipse.update.core/debug/web" value="false"/> -<mapEntry key="org.eclipse.net4j.jms.server/debug.protocol" value="true"/> -<mapEntry key="org.eclipse.team.cvs.core/debug" value="false"/> -<mapEntry key="org.eclipse.help/debug" value="true"/> -<mapEntry key="org.eclipse.core.runtime/perf" value="false"/> -<mapEntry key="org.eclipse.osgi/trace/filters" value="trace.properties"/> -<mapEntry key="org.eclipse.net4j/debug.channel" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/perf.revision.loading" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.revision" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.view" value="true"/> -<mapEntry key="org.eclipse.ui/perf/part.listeners" value="200"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/viewer" value="false"/> -<mapEntry key="org.eclipse.ui/trace/keyBindings.verbose" value="false"/> -<mapEntry key="org.eclipse.core.resources/restore/syncinfo" value="false"/> -<mapEntry key="org.eclipse.osgi/defaultprofile/buffersize" value="256"/> -<mapEntry key="org.eclipse.ui/perf/page.listeners" value="200"/> -<mapEntry key="org.eclipse.team.cvs.core/syncchangeevents" value="false"/> -<mapEntry key="org.eclipse.emf.cdo.common/debug" value="true"/> -<mapEntry key="org.eclipse.emf.cdo/debug.resource" value="true"/> -<mapEntry key="org.eclipse.emf.cdo.common/perf" value="true"/> -<mapEntry key="org.eclipse.ui/trace/handlers.verbose" value="false"/> -<mapEntry key="org.eclipse.osgi/monitor/resources" value="false"/> -<mapEntry key="org.eclipse.ui/perf/part.control" value="800"/> -<mapEntry key="org.eclipse.net4j/debug.buffer.stream" value="false"/> -<mapEntry key="org.eclipse.ui/perf/uijob" value="200"/> -<mapEntry key="org.eclipse.core.runtime/url/debug/cachelookup" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPartListener2" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/delta" value="false"/> -<mapEntry key="org.eclipse.core.resources/build/interrupt" value="false"/> -<mapEntry key="org.eclipse.core.runtime/preferences/plugin" value="false"/> -<mapEntry key="org.eclipse.core.runtime/url/debug" value="false"/> -<mapEntry key="org.eclipse.osgi/resolver/cycles" value="false"/> -<mapEntry key="org.eclipse.ui/listeners/IWorkbenchWindow.IPartListener" value="false"/> -<mapEntry key="org.eclipse.jdt.core/debug/resolution" value="false"/> -<mapEntry key="org.eclipse.update.configurator/debug" value="false"/> -<mapEntry key="org.eclipse.debug.ui/debug/viewers/deltas" value="false"/> -<mapEntry key="org.eclipse.help.ui/debug" value="true"/> -<mapEntry key="org.eclipse.osgi/eclipseadaptor/debug/location" value="false"/> -<mapEntry key="org.eclipse.ui.intro.universal/trace/logInfo" value="true"/> -</mapAttribute> -<booleanAttribute key="useDefaultConfig" value="true"/> -<booleanAttribute key="useDefaultConfigArea" value="true"/> -<booleanAttribute key="useNamedJRE" value="true"/> -<booleanAttribute key="useProduct" value="true"/> -<booleanAttribute key="usefeatures" value="false"/> -</launchConfiguration> diff --git a/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF deleted file mode 100644 index ad347310eb..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,29 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.emf.cdo.ui;singleton:=true -Bundle-Version: 2.0.0.qualifier -Bundle-Activator: org.eclipse.emf.cdo.internal.ui.bundle.OM$Activator -Bundle-Vendor: %providerName -Bundle-ClassPath: . -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", - org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)", - org.eclipse.ui;bundle-version="[3.4.0,4.0.0)", - org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)";visibility:=reexport, - org.eclipse.emf.edit.ui;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.ecore.edit;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, - org.eclipse.net4j;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, - org.eclipse.net4j.util.ui;bundle-version="[1.0.0,2.0.0)";visibility:=reexport, - org.eclipse.emf.cdo;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, - org.eclipse.emf.cdo.edit;bundle-version="[2.0.0,3.0.0)" -Export-Package: org.eclipse.emf.cdo.internal.ui;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.actions;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.bundle;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.dialogs;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.editor;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.preferences;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.internal.ui.views;version="2.0.0";x-internal:=true, - org.eclipse.emf.cdo.ui;version="2.0.0" -Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.ui/about.html b/plugins/org.eclipse.emf.cdo.ui/about.html deleted file mode 100644 index d35d5aed64..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!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 ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/org.eclipse.emf.cdo.ui/build.properties b/plugins/org.eclipse.emf.cdo.ui/build.properties deleted file mode 100644 index 5fa621d71a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/build.properties +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml,\ - plugin.properties,\ - model/,\ - icons/,\ - .options,\ - about.html,\ - copyright.txt,\ - epl-v10.html,\ - license.html diff --git a/plugins/org.eclipse.emf.cdo.ui/copyright.txt b/plugins/org.eclipse.emf.cdo.ui/copyright.txt deleted file mode 100644 index 529118d99e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/copyright.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2004 - 2008 Eike Stepper, Germany. -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: - Eike Stepper - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.ui/epl-v10.html b/plugins/org.eclipse.emf.cdo.ui/epl-v10.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/epl-v10.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons.sample/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/acceptor.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/acceptor.gif Binary files differdeleted file mode 100644 index a830867191..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/acceptor.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/adapter.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/adapter.gif Binary files differdeleted file mode 100644 index e8c1e6ff7e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/adapter.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/add.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/add.gif Binary files differdeleted file mode 100644 index 7df3bfe7d4..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/add.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/add_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/add_obj.gif Binary files differdeleted file mode 100644 index 252d7ebcb8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/add_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/channel.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/channel.gif Binary files differdeleted file mode 100644 index df67abd507..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/channel.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/connector.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/connector.gif Binary files differdeleted file mode 100644 index 3b3ad7c16e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/connector.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von deadlock_ovr.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von deadlock_ovr.gif Binary files differdeleted file mode 100644 index 4499ad076d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von deadlock_ovr.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von doc_co.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von doc_co.gif Binary files differdeleted file mode 100644 index 52ef67722a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von doc_co.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von file_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von file_obj.gif Binary files differdeleted file mode 100644 index 061161ae1c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von file_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von pagedmedia_props.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von pagedmedia_props.gif Binary files differdeleted file mode 100644 index 6b635b03d8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von pagedmedia_props.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von read_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von read_obj.gif Binary files differdeleted file mode 100644 index c876ebd2fd..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Kopie von read_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Resource.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Resource.gif Binary files differdeleted file mode 100644 index b226e41c52..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/Resource.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/ResourceSet.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/ResourceSet.gif Binary files differdeleted file mode 100644 index 2e4de3d12a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/ResourceSet.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/deadlock_ovr.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/deadlock_ovr.gif Binary files differdeleted file mode 100644 index 4499ad076d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/deadlock_ovr.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/doc_co.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/doc_co.gif Binary files differdeleted file mode 100644 index 05ef403308..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/doc_co.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/file_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/file_obj.gif Binary files differdeleted file mode 100644 index 061161ae1c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/file_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/pagedmedia_props.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/pagedmedia_props.gif Binary files differdeleted file mode 100644 index 6b635b03d8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/pagedmedia_props.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/read_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/read_obj.gif Binary files differdeleted file mode 100644 index c876ebd2fd..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/read_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/readwrite_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/readwrite_obj.gif Binary files differdeleted file mode 100644 index b11bfe201e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/readwrite_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/resource_persp.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/resource_persp.gif Binary files differdeleted file mode 100644 index 2a3eb9190a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/resource_persp.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/searchhit_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/searchhit_obj.gif Binary files differdeleted file mode 100644 index ead314f664..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/searchhit_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/textpane_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/textpane_obj.gif Binary files differdeleted file mode 100644 index c77fa1308d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/textpane_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/write_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/write_obj.gif Binary files differdeleted file mode 100644 index feb8e94a74..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/edit/write_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/factory.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/factory.gif Binary files differdeleted file mode 100644 index 955d5e87a5..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/factory.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/folder.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/folder.gif Binary files differdeleted file mode 100644 index 42e027c933..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/folder.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/channel.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/channel.gif Binary files differdeleted file mode 100644 index df67abd507..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/channel.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/history_view.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/history_view.gif Binary files differdeleted file mode 100644 index c5f904abb8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/history_view.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/launch_publish.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/launch_publish.gif Binary files differdeleted file mode 100644 index 87827af379..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/launch_publish.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/properties.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/properties.gif Binary files differdeleted file mode 100644 index b2361a3a05..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/properties.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repo_rep.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repo_rep.gif Binary files differdeleted file mode 100644 index c13bea1ca4..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repo_rep.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repository_rep.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repository_rep.gif Binary files differdeleted file mode 100644 index 0470e1588d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/repository_rep.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/server_explorer.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/server_explorer.gif Binary files differdeleted file mode 100644 index 7ef3c2c80b..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/repo/server_explorer.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/app_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/app_obj.gif Binary files differdeleted file mode 100644 index 753cad744c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/app_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/apply.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/apply.gif Binary files differdeleted file mode 100644 index 136235eeaa..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/apply.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/config_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/config_obj.gif Binary files differdeleted file mode 100644 index c984fba703..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/config_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/history_working_set_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/history_working_set_obj.gif Binary files differdeleted file mode 100644 index 4fc84e4c3a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/history_working_set_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/launch_profile.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/launch_profile.gif Binary files differdeleted file mode 100644 index 89c33404b6..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/launch_profile.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/profile_on_server.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/profile_on_server.gif Binary files differdeleted file mode 100644 index aca952208a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/profile_on_server.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/resource_obj.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/resource_obj.gif Binary files differdeleted file mode 100644 index 3bd4e36057..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/resource_obj.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/synch_co.gif b/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/synch_co.gif Binary files differdeleted file mode 100644 index 2069e1d409..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons.sample/time/synch_co.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons/full/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/delete.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/delete.gif Binary files differdeleted file mode 100644 index b6922ac11c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/delete.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_editor.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_editor.gif Binary files differdeleted file mode 100644 index 8838433ebd..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_editor.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_session.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_session.gif Binary files differdeleted file mode 100644 index 80d31435a0..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/etool16/open_session.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/CDOModelFile.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/CDOModelFile.gif Binary files differdeleted file mode 100644 index d5cfa16f12..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/CDOModelFile.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EClass.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EClass.gif Binary files differdeleted file mode 100644 index 2b8da630d8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EClass.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackage.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackage.gif Binary files differdeleted file mode 100644 index 30c5c10cc4..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackage.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageConverted.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageConverted.gif Binary files differdeleted file mode 100644 index f7c0a7608a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageConverted.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageLegacy.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageLegacy.gif Binary files differdeleted file mode 100644 index 30c5c10cc4..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageLegacy.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageNative.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageNative.gif Binary files differdeleted file mode 100644 index 3f98b284a7..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EPackageNative.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EditorModelFile.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EditorModelFile.gif Binary files differdeleted file mode 100644 index d5cfa16f12..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/EditorModelFile.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor.gif Binary files differdeleted file mode 100644 index acd9c16732..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_historical.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_historical.gif Binary files differdeleted file mode 100644 index dddb821a8e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_historical.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readonly.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readonly.gif Binary files differdeleted file mode 100644 index e5cc6b6f86..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readonly.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readwrite.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readwrite.gif Binary files differdeleted file mode 100644 index 93be7ea8a8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_editor_readwrite.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_session.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_session.gif Binary files differdeleted file mode 100644 index 672ae6ea34..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/obj16/cdo_session.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/.cvsignore b/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/.cvsignore deleted file mode 100644 index 085e8baf0c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Thumbs.db diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/cdo_sessions.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/cdo_sessions.gif Binary files differdeleted file mode 100644 index 672ae6ea34..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/view16/cdo_sessions.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewCDO.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewCDO.gif Binary files differdeleted file mode 100644 index 2054126392..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewCDO.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewEditor.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewEditor.gif Binary files differdeleted file mode 100644 index 2054126392..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/NewEditor.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif b/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif Binary files differdeleted file mode 100644 index 25980e99a5..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/full/wizban/PackageManager.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/icons/sample.gif b/plugins/org.eclipse.emf.cdo.ui/icons/sample.gif Binary files differdeleted file mode 100644 index 34fb3c9d8c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/icons/sample.gif +++ /dev/null diff --git a/plugins/org.eclipse.emf.cdo.ui/license.html b/plugins/org.eclipse.emf.cdo.ui/license.html deleted file mode 100644 index d7b88e9416..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/license.html +++ /dev/null @@ -1,319 +0,0 @@ -<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head> -<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> -<meta name="ProgId" content="Word.Document"> -<meta name="Generator" content="Microsoft Word 9"> -<meta name="Originator" content="Microsoft Word 9"> -<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml> - <o:DocumentProperties> - <o:Revision>2</o:Revision> - <o:TotalTime>3</o:TotalTime> - <o:Created>2004-03-05T23:03:00Z</o:Created> - <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> - <o:Pages>4</o:Pages> - <o:Words>1626</o:Words> - <o:Characters>9270</o:Characters> - <o:Lines>77</o:Lines> - <o:Paragraphs>18</o:Paragraphs> - <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> - <o:Version>9.4402</o:Version> - </o:DocumentProperties> -</xml><![endif]--><!--[if gte mso 9]><xml> - <w:WordDocument> - <w:TrackRevisions/> - </w:WordDocument> -</xml><![endif]--> - - -<style> -<!-- - /* Font Definitions */ -@font-face - {font-family:Tahoma; - panose-1:2 11 6 4 3 5 4 4 2 4; - mso-font-charset:0; - mso-generic-font-family:swiss; - mso-font-pitch:variable; - mso-font-signature:553679495 -2147483648 8 0 66047 0;} - /* Style Definitions */ -p.MsoNormal, li.MsoNormal, div.MsoNormal - {mso-style-parent:""; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p - {margin-right:0in; - mso-margin-top-alt:auto; - mso-margin-bottom-alt:auto; - margin-left:0in; - mso-pagination:widow-orphan; - font-size:12.0pt; - font-family:"Times New Roman"; - mso-fareast-font-family:"Times New Roman";} -p.BalloonText, li.BalloonText, div.BalloonText - {mso-style-name:"Balloon Text"; - margin:0in; - margin-bottom:.0001pt; - mso-pagination:widow-orphan; - font-size:8.0pt; - font-family:Tahoma; - mso-fareast-font-family:"Times New Roman";} -@page Section1 - {size:8.5in 11.0in; - margin:1.0in 1.25in 1.0in 1.25in; - mso-header-margin:.5in; - mso-footer-margin:.5in; - mso-paper-source:0;} -div.Section1 - {page:Section1;} ---> -</style></head> - -<body style="" lang="EN-US"> - -<div class="Section1"> - -<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b> -</p> - -<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER -THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, -REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE -OF THIS AGREEMENT.</span> </p> - -<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p> - -<p><span style="font-size: 10pt;">"Contribution" means:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and<br clear="left"> -b) in the case of each subsequent Contributor:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -changes to the Program, and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -additions to the Program;</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where -such changes and/or additions to the Program originate from and are distributed -by that particular Contributor. A Contribution 'originates' from a Contributor -if it was added to the Program by such Contributor itself or anyone acting on -such Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in conjunction -with the Program under their own license agreement, and (ii) are not derivative -works of the Program. </span></p> - -<p><span style="font-size: 10pt;">"Contributor" means any person or -entity that distributes the Program.</span> </p> - -<p><span style="font-size: 10pt;">"Licensed Patents " mean patent -claims licensable by a Contributor which are necessarily infringed by the use -or sale of its Contribution alone or when combined with the Program. </span></p> - -<p><span style="font-size: 10pt;">"Program" means the Contributions -distributed in accordance with this Agreement.</span> </p> - -<p><span style="font-size: 10pt;">"Recipient" means anyone who -receives the Program under this Agreement, including all Contributors.</span> </p> - -<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -Subject to the terms of this Agreement, each Contributor hereby grants Recipient -a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly -display, publicly perform, distribute and sublicense the Contribution of such -Contributor, if any, and such derivative works, in source code and object code -form.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free -patent license under Licensed Patents to make, use, sell, offer to sell, import -and otherwise transfer the Contribution of such Contributor, if any, in source -code and object code form. This patent license shall apply to the combination -of the Contribution and the Program if, at the time the Contribution is added -by the Contributor, such addition of the Contribution causes such combination -to be covered by the Licensed Patents. The patent license shall not apply to -any other combinations which include the Contribution. No hardware per se is -licensed hereunder. </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c) -Recipient understands that although each Contributor grants the licenses to its -Contributions set forth herein, no assurances are provided by any Contributor -that the Program does not infringe the patent or other intellectual property -rights of any other entity. Each Contributor disclaims any liability to Recipient -for claims brought by any other entity based on infringement of intellectual -property rights or otherwise. As a condition to exercising the rights and -licenses granted hereunder, each Recipient hereby assumes sole responsibility -to secure any other intellectual property rights needed, if any. For example, -if a third party patent license is required to allow Recipient to distribute -the Program, it is Recipient's responsibility to acquire that license before -distributing the Program.</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d) -Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. </span></p> - -<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p> - -<p><span style="font-size: 10pt;">A Contributor may choose to distribute the -Program in object code form under its own license agreement, provided that:</span> -</p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it complies with the terms and conditions of this Agreement; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) -its license agreement:</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i) -effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title -and non-infringement, and implied warranties or conditions of merchantability -and fitness for a particular purpose; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii) -effectively excludes on behalf of all Contributors all liability for damages, -including direct, indirect, special, incidental and consequential damages, such -as lost profits; </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii) -states that any provisions which differ from this Agreement are offered by that -Contributor alone and not by any other party; and</span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv) -states that source code for the Program is available from such Contributor, and -informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange.<span style="color: blue;"> </span></span></p> - -<p><span style="font-size: 10pt;">When the Program is made available in source -code form:</span> </p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a) -it must be made available under this Agreement; and </span></p> - -<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a -copy of this Agreement must be included with each copy of the Program. </span></p> - -<p><span style="font-size: 10pt;">Contributors may not remove or alter any -copyright notices contained within the Program. </span></p> - -<p><span style="font-size: 10pt;">Each Contributor must identify itself as the -originator of its Contribution, if any, in a manner that reasonably allows -subsequent Recipients to identify the originator of the Contribution. </span></p> - -<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p> - -<p><span style="font-size: 10pt;">Commercial distributors of software may -accept certain responsibilities with respect to end users, business partners -and the like. While this license is intended to facilitate the commercial use -of the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes the -Program in a commercial product offering, such Contributor ("Commercial -Contributor") hereby agrees to defend and indemnify every other -Contributor ("Indemnified Contributor") against any losses, damages and -costs (collectively "Losses") arising from claims, lawsuits and other -legal actions brought by a third party against the Indemnified Contributor to -the extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may participate -in any such claim at its own expense.</span> </p> - -<p><span style="font-size: 10pt;">For example, a Contributor might include the -Program in a commercial product offering, Product X. That Contributor is then a -Commercial Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance claims and -warranties are such Commercial Contributor's responsibility alone. Under this -section, the Commercial Contributor would have to defend claims against the -other Contributors related to those performance claims and warranties, and if a -court requires any other Contributor to pay any damages as a result, the -Commercial Contributor must pay those damages.</span> </p> - -<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, -WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, -MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and distributing the -Program and assumes all risks associated with its exercise of rights under this -Agreement , including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs or -equipment, and unavailability or interruption of operations. </span></p> - -<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p> - -<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS -AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF -THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES.</span> </p> - -<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p> - -<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid -or unenforceable under applicable law, it shall not affect the validity or -enforceability of the remainder of the terms of this Agreement, and without -further action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable.</span> </p> - -<p><span style="font-size: 10pt;">If Recipient institutes patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that the Program itself (excluding combinations of the Program with -other software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the date -such litigation is filed. </span></p> - -<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement -shall terminate if it fails to comply with any of the material terms or -conditions of this Agreement and does not cure such failure in a reasonable -period of time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive. </span></p> - -<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute -copies of this Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The Agreement -Steward reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement Steward has -the right to modify this Agreement. The Eclipse Foundation is the initial -Agreement Steward. The Eclipse Foundation may assign the responsibility to -serve as the Agreement Steward to a suitable separate entity. Each new version -of the Agreement will be given a distinguishing version number. The Program -(including Contributions) may always be distributed subject to the version of -the Agreement under which it was received. In addition, after a new version of -the Agreement is published, Contributor may elect to distribute the Program -(including its Contributions) under the new version. Except as expressly stated -in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to -the intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved.</span> </p> - -<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the -State of New York and the intellectual property laws of the United States of -America. No party to this Agreement will bring a legal action under this -Agreement more than one year after the cause of action arose. Each party waives -its rights to a jury trial in any resulting litigation.</span> </p> - -<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></p> - -</div> - -</body></html>
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.ui/model/DONT_GENERATE_MODEL.txt b/plugins/org.eclipse.emf.cdo.ui/model/DONT_GENERATE_MODEL.txt deleted file mode 100644 index 964c62f4fd..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/model/DONT_GENERATE_MODEL.txt +++ /dev/null @@ -1,4 +0,0 @@ -Don't generate the model! - -Only generate the editor! - diff --git a/plugins/org.eclipse.emf.cdo.ui/model/editor.ecore b/plugins/org.eclipse.emf.cdo.ui/model/editor.ecore deleted file mode 100644 index 8fbdda4f33..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/model/editor.ecore +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ecore:EPackage xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="editor" - nsURI="http://www.eclipse.org/emf/CDO/editor/1.0.0" nsPrefix="editor"> - <eClassifiers xsi:type="ecore:EClass" name="Dummy"/> -</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.ui/model/editor.genmodel b/plugins/org.eclipse.emf.cdo.ui/model/editor.genmodel deleted file mode 100644 index 37af764811..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/model/editor.genmodel +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<genmodel:GenModel xmi:version="2.0" - xmlns:xmi="http://www.omg.org/XMI" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.cdo.ui/src" - editDirectory="" editorDirectory="/org.eclipse.emf.cdo.ui/src" modelPluginID="org.eclipse.emf.cdo.ui" - modelName="Editor" editorPluginClass="org.eclipse.emf.cdo.internal.ui.editor.PluginDelegator" - updateClasspath="false" codeFormatting="true" testsDirectory="" importerID="org.eclipse.emf.importer.ecore" - complianceLevel="5.0"> - <foreignModel>editor.ecore</foreignModel> - <genPackages prefix="CDO" basePackage="org.eclipse.emf.cdo.internal.ui" disposableProviderFactory="true" - presentationPackageSuffix="" multipleEditorPages="false" generateModelWizard="false" - extensibleProviderFactory="true" childCreationExtenders="true" ecorePackage="editor.ecore#/"> - <genClasses ecoreClass="editor.ecore#//Dummy"/> - </genPackages> -</genmodel:GenModel> diff --git a/plugins/org.eclipse.emf.cdo.ui/plugin.properties b/plugins/org.eclipse.emf.cdo.ui/plugin.properties deleted file mode 100644 index fc4fa3e586..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/plugin.properties +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright (c) 2004 - 2008 Eike Stepper, Germany. -# 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: -# Eike Stepper - initial API and implementation - -# NLS_MESSAGEFORMAT_VAR - -# ============================================================================== -# Do not change the properties between this line and the last line containing: -# %%% END OF TRANSLATED PROPERTIES %%% -# Instead, either redefine an existing property, or create a new property, -# append it to the end of the file, and change the code to use the new name. -# ============================================================================== - -pluginName = CDO Model Repository Client UI -providerName = Eclipse.org - -_UI_CreateChild_menu_item = &New Child -_UI_CreateSibling_menu_item = N&ew Sibling -
_UI_ShowPropertiesView_menu_item = Show &Properties View -_UI_RefreshViewer_menu_item = &Refresh -
_UI_SelectionPage_label = Selection -
_UI_NoObjectSelected = Selected Nothing -_UI_SingleObjectSelected = Selected Object: {0} -_UI_MultiObjectSelected = Selected {0} Objects -
_UI_OpenEditorError_label = Open Editor -
_UI_Wizard_category = Example EMF Model Creation Wizards -
_UI_CreateModelError_message = Problems encountered in file "{0}" -
_UI_Wizard_label = New -
_WARN_FilenameExtension = The file name must end in ".{0}" -
_UI_ModelObject = Model Object -_UI_XMLEncoding = XML Encoding -_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1 -_UI_Wizard_initial_object_description = Select a model object to create -
_UI_FileConflict_label = File Conflict -_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes? - -_UI_EditorEditor_menu = &Editor Editor -
_UI_ParentPage_label = Parent -_UI_ListPage_label = List -_UI_TreePage_label = Tree -_UI_TablePage_label = Table -_UI_TreeWithColumnsPage_label = Tree with Columns -_UI_ObjectColumn_label = Object -_UI_SelfColumn_label = Self -
_UI_EditorModelWizard_label = Editor Model -_UI_EditorModelWizard_description = Create a new Editor model -
_UI_EditorEditor_label = Editor Model Editor -
_UI_EditorEditorFilenameDefaultBase = My -_UI_EditorEditorFilenameExtension = editor - -_UI_CDOEditor_menu = &CDO Editor -
_UI_CDOModelWizard_label = CDO Model -_UI_CDOModelWizard_description = Create a new CDO model -
_UI_CDOEditor_label = CDO Model Editor -
_UI_CDOEditorFilenameDefaultBase = My -_UI_CDOEditorFilenameExtension = cdo - -# ============================================================================== -# %%% END OF TRANSLATED PROPERTIES %%% -# The above properties have been shipped for translation. -# ============================================================================== -_UI_CDOEditorFilenameExtensions = cdo -
_WARN_FilenameExtensions = The file name must have one of the following extensions: {0} -
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.ui/plugin.xml b/plugins/org.eclipse.emf.cdo.ui/plugin.xml deleted file mode 100644 index 37456fb2cf..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/plugin.xml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.3"?> -<!-- - <copyright> - - Copyright (c) 2004 - 2008 Eike Stepper, Germany. - 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: - Eike Stepper - Initial API and implementation - - </copyright> ---> - -<plugin> - -<!-- - <extension point="org.eclipse.net4j.util.elementProcessors"> - <elementProcessor class="org.eclipse.emf.cdo.common.util.CDOGZIPStreamWrapperInjector"/> - </extension> ---> - - <extension - point="org.eclipse.ui.views"> - <category - id="org.eclipse.emf.cdo" - name="CDO"> - </category> - <view - category="org.eclipse.emf.cdo" - class="org.eclipse.emf.cdo.internal.ui.views.CDOSessionsView" - icon="icons/full/view16/cdo_sessions.gif" - id="org.eclipse.emf.cdo.CDOSessionsView" - name="CDO Sessions"> - </view> - </extension> - - <extension - point="org.eclipse.ui.perspectiveExtensions"> - <perspectiveExtension - targetID="org.eclipse.ui.resourcePerspective"> - <view - id="org.eclipse.emf.cdo.CDOSessionsView" - ratio="0.2" - relationship="bottom" - relative="org.eclipse.ui.views.ResourceNavigator"> - </view> - </perspectiveExtension> - </extension> - - <extension point = "org.eclipse.ui.editors"> - <editor - id = "org.eclipse.emf.cdo.ui.CDOEditor" - name = "CDO Editor" - icon = "icons/full/obj16/cdo_editor.gif" - extensions = "*" - class = "org.eclipse.emf.cdo.internal.ui.editor.CDOEditor" - contributorClass="org.eclipse.emf.cdo.internal.ui.editor.CDOActionBarContributor" > - </editor> - </extension> - - <extension - point="org.eclipse.ui.preferencePages"> - <page - class="org.eclipse.emf.cdo.internal.ui.preferences.CDOPreferencePage" - id="org.eclipse.emf.cdo.ui.CDOPreferencePage" - name="CDO"> - </page> - <page - category="org.eclipse.emf.cdo.ui.CDOPreferencePage" - class="org.eclipse.emf.cdo.internal.ui.preferences.CDOUIPreferencePage" - id="org.eclipse.emf.cdo.ui.CDOUIPreferencePage" - name="User Interface"> - </page> - </extension> - -</plugin> diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/ItemsProcessor.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/ItemsProcessor.java deleted file mode 100644 index b7f81f0cf8..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/ItemsProcessor.java +++ /dev/null @@ -1,111 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.common.id.CDOID; - -import org.eclipse.emf.internal.cdo.InternalCDOObject; -import org.eclipse.emf.internal.cdo.util.FSMUtil; - -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.swt.widgets.TreeItem; - -import java.util.Set; - -/** - * @author Eike Stepper - */ -public abstract class ItemsProcessor -{ - private CDOView view; - - public ItemsProcessor(CDOView view) - { - this.view = view; - } - - public CDOView getView() - { - return view; - } - - public void processCDOObjects(TreeViewer viewer) - { - processCDOObjects(viewer, null); - } - - public void processCDOObjects(final TreeViewer viewer, final Set<CDOID> ids) - { - try - { - viewer.getControl().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - processObject(viewer, ids, viewer.getInput()); - processItems(viewer, ids, viewer.getTree().getItems()); - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - protected InternalCDOObject getCDOObject(Object object) - { - if (object instanceof InternalCDOObject) - { - return (InternalCDOObject)object; - } - - if (object != null && view != null) - { - return FSMUtil.adapt(object, view); - } - - return null; - } - - protected abstract void processCDOObject(TreeViewer viewer, InternalCDOObject cdoObject); - - private void processItems(TreeViewer viewer, Set<CDOID> ids, TreeItem[] items) - { - for (TreeItem item : items) - { - Object object = item.getData(); - processObject(viewer, ids, object); - if (item.getItemCount() != 0) - { - processItems(viewer, ids, item.getItems()); - } - } - } - - private void processObject(TreeViewer viewer, Set<CDOID> ids, Object object) - { - InternalCDOObject cdoObject = getCDOObject(object); - if (cdoObject != null) - { - if (ids == null || ids.contains(cdoObject.cdoID())) - { - processCDOObject(viewer, cdoObject); - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java deleted file mode 100644 index e5ccfa98b9..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/SharedIcons.java +++ /dev/null @@ -1,120 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui; - -import org.eclipse.emf.cdo.internal.ui.bundle.OM; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.resource.ImageRegistry; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.plugin.AbstractUIPlugin; - -/** - * @author Eike Stepper - */ -public class SharedIcons -{ - private static final ImageRegistry REGISTRY = new ImageRegistry(getDisplay()); - - private static final String ETOOL = "etool16/"; - - private static final String OBJ = "obj16/"; - - private static final String VIEW = "view16/"; - - private static final String WIZBAN = "wizban/"; - - public static final String ETOOL_OPEN_SESSION = ETOOL + "open_session"; - - public static final String ETOOL_OPEN_EDITOR = ETOOL + "open_editor"; - - public static final String OBJ_SESSION = OBJ + "cdo_session"; - - public static final String OBJ_EDITOR = OBJ + "cdo_editor"; - - public static final String OBJ_EDITOR_READWRITE = OBJ + "cdo_editor_readwrite"; - - public static final String OBJ_EDITOR_READONLY = OBJ + "cdo_editor_readonly"; - - public static final String OBJ_EDITOR_HISTORICAL = OBJ + "cdo_editor_historical"; - - public static final String OBJ_EPACKAGE = OBJ + "EPackage"; - - public static final String OBJ_EPACKAGE_CONVERTED = OBJ + "EPackageConverted"; - - public static final String OBJ_EPACKAGE_LEGACY = OBJ + "EPackageLegacy"; - - public static final String OBJ_EPACKAGE_NATIVE = OBJ + "EPackageNative"; - - public static final String OBJ_ECLASS = OBJ + "EClass"; - - public static final String VIEW_SESSIONS = VIEW + "cdo_sessions"; - - public static final String WIZBAN_PACKAGE_MANAGER = WIZBAN + "PackageManager"; - - public static Image getImage(String key) - { - key = mangleKey(key); - Image image = REGISTRY.get(key); - if (image == null) - { - createDescriptor(key); - image = REGISTRY.get(key); - } - - return image; - } - - public static ImageDescriptor getDescriptor(String key) - { - key = mangleKey(key); - ImageDescriptor descriptor = REGISTRY.getDescriptor(key); - if (descriptor == null) - { - descriptor = createDescriptor(key); - } - - return descriptor; - } - - private static ImageDescriptor createDescriptor(String key) - { - ImageDescriptor descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(OM.BUNDLE_ID, key); - if (descriptor != null) - { - REGISTRY.put(key, descriptor); - } - - return descriptor; - } - - private static Display getDisplay() - { - Display display = Display.getCurrent(); - if (display == null) - { - display = Display.getDefault(); - } - - if (display == null) - { - throw new IllegalStateException("display == null"); - } - - return display; - } - - private static String mangleKey(String key) - { - return "icons/full/" + key + ".gif"; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/AbstractOpenViewAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/AbstractOpenViewAction.java deleted file mode 100644 index a08c6c709a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/AbstractOpenViewAction.java +++ /dev/null @@ -1,34 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public abstract class AbstractOpenViewAction extends SessionAction -{ - public AbstractOpenViewAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, - CDOSession session) - { - super(page, text, toolTipText, image, session); - } - - @Override - public boolean isEnabled() - { - return !getSession().getPackageRegistry().isEmpty() && super.isEnabled(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseSessionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseSessionAction.java deleted file mode 100644 index cd120f46da..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseSessionAction.java +++ /dev/null @@ -1,36 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class CloseSessionAction extends SessionAction -{ - private static final String TITLE = "Close"; - - private static final String TOOL_TIP = "Close the CDO session"; - - public CloseSessionAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, null, session); - } - - @Override - protected void doRun() throws Exception - { - getSession().close(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseViewAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseViewAction.java deleted file mode 100644 index f4d86dca2e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CloseViewAction.java +++ /dev/null @@ -1,36 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class CloseViewAction extends ViewAction -{ - private static final String TITLE = "Close"; - - private static final String TOOL_TIP = "Close the CDO view"; - - public CloseViewAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE, TOOL_TIP, null, view); - } - - @Override - protected void doRun() throws Exception - { - getView().close(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CommitTransactionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CommitTransactionAction.java deleted file mode 100644 index e960f7da6b..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CommitTransactionAction.java +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class CommitTransactionAction extends ViewAction -{ - private static final String TITLE = "Commit"; - - private static final String TOOL_TIP = "Commit this transaction"; - - public CommitTransactionAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE, TOOL_TIP, null, view); - setEnabled(getTransaction().isDirty()); - } - - @Override - protected void doRun() throws Exception - { - getTransaction().commit(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceAction.java deleted file mode 100644 index e99ae6cd39..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceAction.java +++ /dev/null @@ -1,57 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; - -import org.eclipse.jface.dialogs.InputDialog; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class CreateResourceAction extends ViewAction -{ - private static final String TITLE = "Create Resource"; - - private static final String TOOL_TIP = "Create a CDO resource"; - - private String resourcePath; - - public CreateResourceAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE + INTERACTIVE, TOOL_TIP, null, view); - } - - @Override - protected void preRun() throws Exception - { - InputDialog dialog = new InputDialog(getShell(), TITLE, "Enter resource path:", "/res" - + (ViewAction.lastResourceNumber + 1), null); - if (dialog.open() == InputDialog.OK) - { - ++ViewAction.lastResourceNumber; - resourcePath = dialog.getValue(); - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - getTransaction().createResource(resourcePath); - CDOEditor.open(getPage(), getView(), resourcePath); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EditingDomainAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EditingDomainAction.java deleted file mode 100644 index 052ff16910..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EditingDomainAction.java +++ /dev/null @@ -1,75 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.net4j.util.ui.actions.LongRunningAction; - -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPart; - -/** - * @author Eike Stepper - * @ADDED - */ -public abstract class EditingDomainAction extends LongRunningAction -{ - protected EditingDomain editingDomain; - - public EditingDomainAction(String text, ImageDescriptor image) - { - super(text, image); - } - - public EditingDomainAction(String text, int style) - { - super(text, style); - } - - public EditingDomainAction(String text, String toolTipText, ImageDescriptor image) - { - super(text, toolTipText, image); - } - - public EditingDomainAction(String text, String toolTipText) - { - super(text, toolTipText); - } - - public EditingDomainAction(String text) - { - super(text); - } - - public EditingDomain getEditingDomain() - { - return editingDomain; - } - - public void setEditingDomain(EditingDomain editingDomain) - { - this.editingDomain = editingDomain; - } - - public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) - { - setPage(workbenchPart == null ? null : workbenchPart.getSite().getPage()); - setEditingDomain(workbenchPart instanceof IEditingDomainProvider ? ((IEditingDomainProvider)workbenchPart) - .getEditingDomain() : null); - } - - public void update() - { - setEnabled(editingDomain != null); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EntryAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EntryAction.java deleted file mode 100644 index 60bfbf4cb1..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/EntryAction.java +++ /dev/null @@ -1,38 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.ui.CDOViewHistoryEntry; - -import org.eclipse.net4j.util.ui.actions.LongRunningAction; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public abstract class EntryAction extends LongRunningAction -{ - private CDOViewHistoryEntry entry; - - public EntryAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, - CDOViewHistoryEntry entry) - { - super(page, text, toolTipText, image); - this.entry = entry; - } - - public CDOViewHistoryEntry getEntry() - { - return entry; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ExportResourceAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ExportResourceAction.java deleted file mode 100644 index f8ab70255c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ExportResourceAction.java +++ /dev/null @@ -1,33 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -/** - * @author Eike Stepper - */ -@Deprecated -public class ExportResourceAction extends EditingDomainAction -{ - public static final String ID = "export-resource"; - - private static final String TITLE = "Export Resource"; - - public ExportResourceAction() - { - super(TITLE + INTERACTIVE); - setId(ID); - } - - @Override - protected void doRun() throws Exception - { - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportResourceAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportResourceAction.java deleted file mode 100644 index b14341e54d..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportResourceAction.java +++ /dev/null @@ -1,188 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.CDOView; - -import org.eclipse.emf.common.ui.dialogs.ResourceDialog; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.FormAttachment; -import org.eclipse.swt.layout.FormData; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -/** - * @author Eike Stepper - */ -public class ImportResourceAction extends ViewAction -{ - public static final String ID = "import-resource"; - - private static final String TITLE = "Import Resource"; - - private URI sourceURI; - - private String targetPath; - - public ImportResourceAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE + INTERACTIVE, "Import a CDO resource", null, view); - setId(ID); - } - - @Override - protected void preRun() throws Exception - { - ImportResourceDialog dialog = new ImportResourceDialog(getShell(), TITLE, SWT.OPEN); - if (dialog.open() == ImportResourceDialog.OK) - { - List<URI> uris = dialog.getURIs(); - if (uris.size() == 1) - { - sourceURI = uris.get(0); - targetPath = dialog.getTargetPath(); - } - else - { - MessageDialog.openError(getShell(), TITLE, "A single URI must be entered!"); - cancel(); - } - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - CDOTransaction transaction = getTransaction(); - - // Source ResourceSet - ResourceSet sourceSet = new ResourceSetImpl(); - Map<String, Object> map = sourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap(); - map.put("*", new XMIResourceFactoryImpl()); - sourceSet.setPackageRegistry(transaction.getSession().getPackageRegistry()); - - // Source Resource - Resource source = sourceSet.getResource(sourceURI, true); - List<EObject> sourceContents = new ArrayList<EObject>(source.getContents()); - - // Target Resource - Resource target = transaction.createResource(targetPath); - EList<EObject> targetContents = target.getContents(); - - // Move contents over - for (EObject root : sourceContents) - { - targetContents.add(root); - } - } - - /** - * @author Eike Stepper - */ - public static class ImportResourceDialog extends ResourceDialog - { - private String targetPath = "/"; - - private Text targetText; - - public ImportResourceDialog(Shell parent, String title, int style) - { - super(parent, title, style); - } - - public String getTargetPath() - { - return targetPath; - } - - public void setTargetPath(String targetPath) - { - this.targetPath = targetPath; - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = (Composite)super.createDialogArea(parent); - - Label separatorLabel1 = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL); - { - FormData data = new FormData(); - data.top = new FormAttachment(uriField, (int)(1.5 * CONTROL_OFFSET)); - data.left = new FormAttachment(0, -CONTROL_OFFSET); - data.right = new FormAttachment(100, CONTROL_OFFSET); - separatorLabel1.setLayoutData(data); - } - - Label label = new Label(composite, SWT.NONE); - label.setText("Target path:"); - { - FormData data = new FormData(); - data.top = new FormAttachment(separatorLabel1, CONTROL_OFFSET); - data.left = new FormAttachment(0, CONTROL_OFFSET); - data.right = new FormAttachment(100, -CONTROL_OFFSET); - label.setLayoutData(data); - } - - targetText = new Text(composite, SWT.BORDER); - { - FormData data = new FormData(); - data.top = new FormAttachment(label, CONTROL_OFFSET); - data.left = new FormAttachment(0, CONTROL_OFFSET); - data.right = new FormAttachment(100, -CONTROL_OFFSET); - targetText.setLayoutData(data); - targetText.setText(targetPath); - targetText.addModifyListener(new ModifyListener() - { - public void modifyText(ModifyEvent e) - { - targetPath = targetText.getText(); - } - }); - } - - Label separatorLabel2 = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL); - { - FormData data = new FormData(); - data.top = new FormAttachment(targetText, (int)(1.5 * CONTROL_OFFSET)); - data.left = new FormAttachment(0, -CONTROL_OFFSET); - data.right = new FormAttachment(100, CONTROL_OFFSET); - separatorLabel2.setLayoutData(data); - } - - return composite; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportRootsAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportRootsAction.java deleted file mode 100644 index 2481c21c10..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ImportRootsAction.java +++ /dev/null @@ -1,125 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.util.CDOPackageRegistry; - -import org.eclipse.emf.common.ui.dialogs.ResourceDialog; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.swt.SWT; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class ImportRootsAction extends EditingDomainAction -{ - public static final String ID = "import-roots"; - - private static final String TITLE = "Import Roots"; - - private CDOResource targetResource; - - private transient List<URI> uris; - - public ImportRootsAction() - { - super(TITLE + INTERACTIVE); - setId(ID); - } - - public CDOResource getTargetResource() - { - return targetResource; - } - - public void setTargetResource(CDOResource targetResource) - { - this.targetResource = targetResource; - } - - @Override - public boolean isEnabled() - { - return targetResource != null && super.isEnabled(); - } - - @Override - protected void preRun() throws Exception - { - ResourceDialog dialog = new ResourceDialog(getShell(), TITLE, SWT.OPEN | SWT.MULTI) - { - @Override - protected boolean processResources() - { - return true; - } - }; - - if (dialog.open() == ResourceDialog.OK) - { - uris = dialog.getURIs(); - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - EList<EObject> targetContents = targetResource.getContents(); - List<Resource> resources = getSourceResources(); - for (Resource resource : resources) - { - List<EObject> contents = new ArrayList<EObject>(resource.getContents()); - for (EObject root : contents) - { - targetContents.add(root); - } - } - } - - protected List<Resource> getSourceResources() - { - ResourceSetImpl resourceSet = createSourceResourceSet(); - List<Resource> resources = new ArrayList<Resource>(uris.size()); - for (URI uri : uris) - { - Resource resource = resourceSet.getResource(uri, true); - resources.add(resource); - } - - return resources; - } - - protected ResourceSetImpl createSourceResourceSet() - { - CDOView view = targetResource.cdoView(); - CDOSession session = view.getSession(); - CDOPackageRegistry packageRegistry = session.getPackageRegistry(); - - ResourceSetImpl resourceSet = new ResourceSetImpl(); - resourceSet.setPackageRegistry(packageRegistry); - return resourceSet; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/LoadResourceAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/LoadResourceAction.java deleted file mode 100644 index 95208cbc87..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/LoadResourceAction.java +++ /dev/null @@ -1,53 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; - -import org.eclipse.jface.dialogs.InputDialog; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class LoadResourceAction extends ViewAction -{ - private static final String TITLE = "Load Resource"; - - private String resourcePath; - - public LoadResourceAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE + INTERACTIVE, "Load a CDO resource", null, view); - } - - @Override - protected void preRun() throws Exception - { - String uri = ViewAction.lastResourceNumber == 0 ? "" : "/res" + ViewAction.lastResourceNumber; - InputDialog dialog = new InputDialog(getShell(), TITLE, "Enter resource path:", uri, null); - if (dialog.open() == InputDialog.OK) - { - resourcePath = dialog.getValue(); - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - CDOEditor.open(getPage(), getView(), resourcePath); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java deleted file mode 100644 index c591936c53..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ManagePackagesAction.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.dialogs.PackageManagerDialog; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public class ManagePackagesAction extends SessionAction -{ - private static final String TITLE = "Package Manager"; - - private static final String TOOL_TIP = "Browse and install model packages"; - - public ManagePackagesAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE + INTERACTIVE, TOOL_TIP, null, session); - } - - @Override - protected void preRun() throws Exception - { - PackageManagerDialog dialog = new PackageManagerDialog(getPage(), getSession()); - dialog.open(); - cancel(); - } - - @Override - protected void doRun() throws Exception - { - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenAuditAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenAuditAction.java deleted file mode 100644 index 9b2a6dad99..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenAuditAction.java +++ /dev/null @@ -1,56 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.dialogs.OpenAuditDialog; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenAuditAction extends AbstractOpenViewAction -{ - private static final String TITLE = "Open Audit"; - - private static final String TOOL_TIP = "Open a historical CDO view"; - - private long timeStamp; - - public OpenAuditAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE + INTERACTIVE, TOOL_TIP, SharedIcons.getDescriptor(SharedIcons.ETOOL_OPEN_EDITOR), session); - } - - @Override - protected void preRun() throws Exception - { - OpenAuditDialog dialog = new OpenAuditDialog(getPage()); - if (dialog.open() == OpenAuditDialog.OK) - { - timeStamp = dialog.getTimeStamp(); - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - getSession().openAudit(new ResourceSetImpl(), timeStamp); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenResourceEditorAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenResourceEditorAction.java deleted file mode 100644 index a25ae72179..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenResourceEditorAction.java +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; -import org.eclipse.emf.cdo.ui.CDOViewHistoryEntry; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenResourceEditorAction extends EntryAction -{ - private static final String TITLE = "Open Editor"; - - private static final String TOOL_TIP = "Open a CDO editor for this resource"; - - public OpenResourceEditorAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, - CDOViewHistoryEntry entry) - { - super(page, TITLE, TOOL_TIP, null, entry); - } - - @Override - protected void doRun() throws Exception - { - CDOView view = getEntry().getView(); - String resourcePath = getEntry().getResourcePath(); - CDOEditor.open(getPage(), view, resourcePath); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java deleted file mode 100644 index 6b252eb565..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java +++ /dev/null @@ -1,111 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.common.CDOProtocolConstants; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.internal.ui.dialogs.OpenSessionDialog; -import org.eclipse.emf.cdo.internal.ui.views.CDOSessionsView; - -import org.eclipse.emf.internal.cdo.CDOSessionFactory; - -import org.eclipse.net4j.util.container.IPluginContainer; -import org.eclipse.net4j.util.ui.actions.LongRunningAction; - -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenSessionAction extends LongRunningAction -{ - private static final String TITLE = OpenSessionDialog.TITLE; - - private static final String TOOL_TIP = "Open a new CDO session"; - - private String description; - - public OpenSessionAction(IWorkbenchPage page) - { - super(page, TITLE + INTERACTIVE, TOOL_TIP, CDOSessionsView.getAddImageDescriptor()); - } - - @Override - protected void preRun() throws Exception - { - OpenSessionDialog dialog = new OpenSessionDialog(getPage()); - if (dialog.open() == OpenSessionDialog.OK) - { - StringBuilder builder = new StringBuilder(); - builder.append(dialog.getServerDescription()); - builder.append("?repositoryName="); - builder.append(dialog.getRepositoryName()); - if (dialog.isAutomaticPackageRegistry()) - { - builder.append("&automaticPackageRegistry=true"); - } - - if (dialog.isLegacyModelSupport()) - { - builder.append("&legacySupportEnabled=true"); - } - - description = builder.toString(); - } - else - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - CDOSession session = null; - - try - { - String productGroup = CDOSessionFactory.PRODUCT_GROUP; - String type = CDOProtocolConstants.PROTOCOL_NAME; - session = (CDOSession)IPluginContainer.INSTANCE.getElement(productGroup, type, description); - } - catch (RuntimeException ex) - { - OM.LOG.error(ex); - } - - if (session == null) - { - try - { - getShell().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - MessageDialog.openError(getShell(), getText(), "Unable to open a session on the specified repository.\n" - + description); - } - catch (RuntimeException ignoe) - { - } - } - }); - } - catch (RuntimeException ignoe) - { - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenTransactionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenTransactionAction.java deleted file mode 100644 index ff7729e30c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenTransactionAction.java +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenTransactionAction extends AbstractOpenViewAction -{ - private static final String TITLE = "Open Transaction"; - - private static final String TOOL_TIP = "Open a read-write CDO view"; - - public OpenTransactionAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, SharedIcons.getDescriptor(SharedIcons.ETOOL_OPEN_EDITOR), session); - } - - @Override - protected void doRun() throws Exception - { - getSession().openTransaction(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewAction.java deleted file mode 100644 index 1e77c62159..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewAction.java +++ /dev/null @@ -1,39 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenViewAction extends AbstractOpenViewAction -{ - private static final String TITLE = "Open View"; - - private static final String TOOL_TIP = "Open a read-only CDO view"; - - public OpenViewAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, SharedIcons.getDescriptor(SharedIcons.ETOOL_OPEN_EDITOR), session); - } - - @Override - protected void doRun() throws Exception - { - getSession().openView(new ResourceSetImpl()); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewEditorAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewEditorAction.java deleted file mode 100644 index 03e7be5e00..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenViewEditorAction.java +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class OpenViewEditorAction extends ViewAction -{ - private static final String TITLE = "Open Editor"; - - private static final String TOOL_TIP = "Open a CDO editor for this view"; - - public OpenViewEditorAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE, TOOL_TIP, null, view); - } - - @Override - protected void doRun() throws Exception - { - CDOEditor.open(getPage(), getView(), null); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterFilesystemPackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterFilesystemPackagesAction.java deleted file mode 100644 index 056ba8f6f6..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterFilesystemPackagesAction.java +++ /dev/null @@ -1,80 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.util.EMFUtil; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.FileDialog; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class RegisterFilesystemPackagesAction extends RegisterPackagesAction -{ - private static final String TITLE = "Register Filesystem Packages"; - - private static final String TOOL_TIP = "Register dynamic packages from the filesystem"; - - private static final String[] FILTER_NAMES = { "Ecore models (*.ecore)", "XMI files (*.xmi)", "XML files (*.xml)", - "All files (*.*)" }; - - private static final String[] FILTER_EXTENSIONS = { "ecore", "xmi", "xml", null }; - - public RegisterFilesystemPackagesAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, null, session); - } - - @Override - protected List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session) - { - Shell shell = page.getWorkbenchWindow().getShell(); - FileDialog dialog = new FileDialog(shell, SWT.OPEN | SWT.MULTI); - dialog.setFileName("*.ecore"); - dialog.setFilterNames(FILTER_NAMES); - dialog.setFilterExtensions(FILTER_EXTENSIONS); - if (dialog.open() != null) - { - String filterPath = dialog.getFilterPath(); - String[] fileNames = dialog.getFileNames(); - if (fileNames != null && fileNames.length != 0) - { - ResourceSet resourceSet = EMFUtil.newEcoreResourceSet(); - List<EPackage> ePackages = new ArrayList<EPackage>(fileNames.length); - for (String fileName : fileNames) - { - String path = filterPath + File.separator + fileName; - URI uri = URI.createFileURI(path); - Resource resource = resourceSet.getResource(uri, true); - EPackage ePackage = (EPackage)resource.getContents().get(0); - ePackages.add(ePackage); - } - - return ePackages; - } - } - - return null; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterGeneratedPackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterGeneratedPackagesAction.java deleted file mode 100644 index 9aed0b080a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterGeneratedPackagesAction.java +++ /dev/null @@ -1,89 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.internal.ui.dialogs.SelectPackageDialog; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.jface.dialogs.IInputValidator; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.List; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public class RegisterGeneratedPackagesAction extends RegisterPackagesAction -{ - private static final String TITLE = "Register Generated Packages"; - - private static final String TOOL_TIP = "Register native, legacy or converted packages"; - - private EPackage.Registry registry = EPackage.Registry.INSTANCE; - - public RegisterGeneratedPackagesAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, null, session); - } - - @Override - protected List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session) - { - Shell shell = page.getWorkbenchWindow().getShell(); - SelectPackageDialog dialog = new SelectPackageDialog(shell, "Generated Packages", - "Select one or more packages for registration with the CDO package registry", session.getPackageRegistry() - .keySet()); - - if (dialog.open() == SelectPackageDialog.OK) - { - Set<String> checkedURIs = dialog.getCheckedURIs(); - List<EPackage> ePackages = new ArrayList<EPackage>(checkedURIs.size()); - for (String uri : checkedURIs) - { - try - { - EPackage ePackage = registry.getEPackage(uri); - ePackages.add(ePackage); - } - catch (RuntimeException ex) - { - OM.LOG.error(ex); - } - } - - return ePackages; - } - - return null; - } - - /** - * @author Eike Stepper - */ - public class EPackageFactoryValidator implements IInputValidator - { - public String isValid(String uri) - { - if (uri == null || uri.length() == 0) - { - return ""; - } - - return registry.containsKey(uri) ? null : "Package " + uri + " not found."; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java deleted file mode 100644 index af085733b3..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java +++ /dev/null @@ -1,104 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.util.CDOPackageRegistry; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.util.EcoreUtil; - -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.List; - -/** - * @author Eike Stepper - */ -public abstract class RegisterPackagesAction extends SessionAction -{ - private List<EPackage> ePackages; - - private int errors; - - public RegisterPackagesAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, - CDOSession session) - { - super(page, text, toolTipText, image, session); - } - - @Override - protected void preRun() throws Exception - { - ePackages = getEPackages(getPage(), getSession()); - if (ePackages == null) - { - cancel(); - } - } - - @Override - protected void doRun() throws Exception - { - errors = 0; - CDOPackageRegistry packageRegistry = getSession().getPackageRegistry(); - for (EPackage ePackage : ePackages) - { - EcoreUtil.freeze(ePackage); - Resource resource = ePackage.eResource(); - URI uri = resource == null ? null : resource.getURI(); - - try - { - packageRegistry.putEPackage(ePackage); - } - catch (RuntimeException ex) - { - ++errors; - if (uri == null) - { - OM.LOG.error(ex); - } - else - { - OM.LOG.error("Failed to register package " + uri, ex); - } - } - } - - postRegistration(ePackages); - if (errors != 0) - { - final String label = String.valueOf(errors) + (errors == 1 ? " package has" : " packages have"); - final Shell shell = getShell(); - shell.getDisplay().asyncExec(new Runnable() - { - public void run() - { - MessageDialog.openError(shell, getText(), label - + " not been registered due to errors.\nSee the log for details."); - } - }); - } - } - - protected void postRegistration(List<EPackage> ePackages) - { - } - - protected abstract List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session); -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterSinglePackageAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterSinglePackageAction.java deleted file mode 100644 index fa3d5db48c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterSinglePackageAction.java +++ /dev/null @@ -1,70 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.util.CDOPackageType; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.Collections; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class RegisterSinglePackageAction extends RegisterPackagesAction -{ - private String packageURI; - - private EPackage.Registry registry = EPackage.Registry.INSTANCE; - - public RegisterSinglePackageAction(IWorkbenchPage page, CDOSession session, String packageURI, - CDOPackageType packageType) - { - super(page, packageURI, "Register the package " + packageURI, getDescriptor(packageType), session); - this.packageURI = packageURI; - } - - @Override - protected List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session) - { - EPackage ePackage = registry.getEPackage(packageURI); - if (ePackage != null) - { - return Collections.singletonList(ePackage); - } - - return Collections.emptyList(); - } - - private static ImageDescriptor getDescriptor(CDOPackageType packageType) - { - switch (packageType) - { - case CONVERTED: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EPACKAGE_CONVERTED); - - case LEGACY: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EPACKAGE_LEGACY); - - case NATIVE: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EPACKAGE_NATIVE); - - default: - return null; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterWorkspacePackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterWorkspacePackagesAction.java deleted file mode 100644 index 13b6f7f83c..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterWorkspacePackagesAction.java +++ /dev/null @@ -1,73 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.internal.ui.dialogs.OpenResourcesDialog; -import org.eclipse.emf.cdo.util.EMFUtil; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.core.resources.IFile; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class RegisterWorkspacePackagesAction extends RegisterPackagesAction -{ - private static final String TITLE = "Register Workspace Packages"; - - private static final String TOOL_TIP = "Register dynamic packages from the workspace"; - - public RegisterWorkspacePackagesAction(IWorkbenchPage page, CDOSession session) - { - super(page, TITLE, TOOL_TIP, null, session); - } - - @Override - protected List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session) - { - Shell shell = page.getWorkbenchWindow().getShell(); - OpenResourcesDialog dialog = new OpenResourcesDialog(shell); - if (dialog.open() == OpenResourcesDialog.OK) - { - Object[] result = dialog.getResult(); - if (result != null && result.length != 0) - { - ResourceSet resourceSet = EMFUtil.newEcoreResourceSet(); - List<EPackage> ePackages = new ArrayList<EPackage>(result.length); - for (Object object : result) - { - if (object instanceof IFile) - { - IFile file = (IFile)object; - URI uri = URI.createPlatformResourceURI(file.getFullPath().toString(), true); - Resource resource = resourceSet.getResource(uri, true); - EPackage ePackage = (EPackage)resource.getContents().get(0); - ePackages.add(ePackage); - } - } - - return ePackages; - } - } - - return null; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadObjectsAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadObjectsAction.java deleted file mode 100644 index cbabbc30f7..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadObjectsAction.java +++ /dev/null @@ -1,84 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; - -import org.eclipse.emf.internal.cdo.CDOStateMachine; -import org.eclipse.emf.internal.cdo.InternalCDOObject; - -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class ReloadObjectsAction extends EditingDomainAction -{ - public static final String ID = "reload-objects"; - - private static final String TITLE = "Reload"; - - private List<InternalCDOObject> objects = new ArrayList<InternalCDOObject>(); - - public ReloadObjectsAction() - { - super(TITLE); - setId(ID); - } - - public void selectionChanged(IStructuredSelection selection) - { - objects.clear(); - if (selection != null) - { - for (Iterator<?> it = selection.iterator(); it.hasNext();) - { - Object object = it.next(); - if (object instanceof InternalCDOObject) - { - objects.add((InternalCDOObject)object); - } - } - } - - update(); - } - - @Override - public void update() - { - setEnabled(!objects.isEmpty()); - } - - @Override - protected void doRun() throws Exception - { - if (!objects.isEmpty()) - { - InternalCDOObject[] array = objects.toArray(new InternalCDOObject[objects.size()]); - - CDOStateMachine.INSTANCE.reload(array); - - IWorkbenchPage page = getPage(); - if (page != null) - { - CDOView view = array[0].cdoView(); - CDOEditor.refresh(page, view); - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadViewAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadViewAction.java deleted file mode 100644 index ab9c6dff45..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ReloadViewAction.java +++ /dev/null @@ -1,40 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; - -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class ReloadViewAction extends ViewAction -{ - private static final String TITLE = "Reload"; - - private static final String TOOL_TIP = "Reload this view"; - - public ReloadViewAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE, TOOL_TIP, null, view); - } - - @Override - protected void doRun() throws Exception - { - if (getView().reload() != 0) - { - CDOEditor.refresh(getPage(), getView()); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RollbackTransactionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RollbackTransactionAction.java deleted file mode 100644 index c1c135ea2a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RollbackTransactionAction.java +++ /dev/null @@ -1,62 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.dialogs.RollbackTransactionDialog; - -import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public final class RollbackTransactionAction extends ViewAction -{ - private static final String TITLE = "Rollback"; - - private static final String TOOL_TIP = "Rollback this transaction"; - - private boolean remote; - - public RollbackTransactionAction(IWorkbenchPage page, CDOView view) - { - super(page, TITLE + INTERACTIVE, TOOL_TIP, null, view); - setEnabled(getTransaction().isDirty()); - } - - @Override - protected void preRun() throws Exception - { - CDOTransaction transaction = (CDOTransaction)getView(); - Dialog dialog = new RollbackTransactionDialog(getPage(), TITLE, "Choose how to rollback this transaction.", - transaction); - switch (dialog.open()) - { - case RollbackTransactionDialog.REMOTE: - remote = true; - break; - case RollbackTransactionDialog.LOCAL: - remote = false; - break; - default: - cancel(); - break; - } - } - - @Override - protected void doRun() throws Exception - { - getTransaction().rollback(remote); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/SessionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/SessionAction.java deleted file mode 100644 index 99debcf1cf..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/SessionAction.java +++ /dev/null @@ -1,37 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOSession; - -import org.eclipse.net4j.util.ui.actions.LongRunningAction; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public abstract class SessionAction extends LongRunningAction -{ - private CDOSession session; - - public SessionAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, CDOSession session) - { - super(page, text, toolTipText, image); - this.session = session; - } - - public CDOSession getSession() - { - return session; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ViewAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ViewAction.java deleted file mode 100644 index 926bd4f88e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/ViewAction.java +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.actions; - -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.CDOView; - -import org.eclipse.emf.internal.cdo.CDOViewImpl; - -import org.eclipse.net4j.util.ui.actions.LongRunningAction; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public abstract class ViewAction extends LongRunningAction -{ - protected static int lastResourceNumber = 0; - - private CDOView view; - - public ViewAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image, CDOView view) - { - super(page, text, toolTipText, image); - this.view = view; - } - - public CDOView getView() - { - return view; - } - - public CDOTransaction getTransaction() - { - return ((CDOViewImpl)view).toTransaction(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/bundle/OM.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/bundle/OM.java deleted file mode 100644 index b458fefd1b..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/bundle/OM.java +++ /dev/null @@ -1,97 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.bundle; - -import org.eclipse.emf.cdo.ui.CDOLabelProvider; - -import org.eclipse.net4j.Net4jTransportInjector; -import org.eclipse.net4j.util.internal.ui.security.InteractiveCredentialsProvider; -import org.eclipse.net4j.util.om.OMBundle; -import org.eclipse.net4j.util.om.OMPlatform; -import org.eclipse.net4j.util.om.log.OMLogger; -import org.eclipse.net4j.util.om.pref.OMPreference; -import org.eclipse.net4j.util.om.pref.OMPreferences; -import org.eclipse.net4j.util.om.trace.OMTracer; -import org.eclipse.net4j.util.security.ResponseNegotiator; -import org.eclipse.net4j.util.ui.UIActivator; - -/** - * The <em>Operations & Maintenance</em> class of this bundle. - * - * @author Eike Stepper - */ -public abstract class OM -{ - public static final String BUNDLE_ID = "org.eclipse.emf.cdo.ui"; //$NON-NLS-1$ - - public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class); - - public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$ - - public static final OMTracer TEST = BUNDLE.tracer("test"); //$NON-NLS-1$ - - public static final OMTracer TEST_BULK_ADD = TEST.tracer("bulk_add"); //$NON-NLS-1$ - - public static final OMLogger LOG = BUNDLE.logger(); - - public static final OMPreferences PREFS = BUNDLE.preferences(); - - public static final OMPreference<String> PREF_LABEL_DECORATION = // - PREFS.init("PREF_LABEL_DECORATION", CDOLabelProvider.DEFAULT_DECORATION); //$NON-NLS-1$ - - public static final OMPreference<String[]> PREF_HISTORY_SELECT_PACKAGES = // - PREFS.initArray("PREF_HISTORY_SELECT_PACKAGES"); //$NON-NLS-1$ - - public static final OMPreference<String[]> PREF_HISTORY_CONNECTORS = // - PREFS.initArray("PREF_HISTORY_CONNECTORS"); //$NON-NLS-1$ - - public static final OMPreference<String[]> PREF_HISTORY_REPOSITORIES = // - PREFS.initArray("PREF_HISTORY_REPOSITORIES"); //$NON-NLS-1$ - - public static final OMPreference<Boolean> PREF_AUTOMATIC_PACKAGE_REGISTY = // - PREFS.init("PREF_AUTOMATIC_PACKAGE_REGISTY", true); //$NON-NLS-1$ - - public static final OMPreference<Boolean> PREF_LEGACY_MODEL_SUPPORT = // - PREFS.init("PREF_LEGACY_MODEL_SUPPORT", false); //$NON-NLS-1$ - - static void start() - { - if (false) - { - try - { - ResponseNegotiator responseNegotiator = new ResponseNegotiator(); - responseNegotiator.setCredentialsProvider(new InteractiveCredentialsProvider()); - responseNegotiator.activate(); - - Net4jTransportInjector.clientNegotiator = responseNegotiator; - } - catch (Exception ex) - { - LOG.error(ex); - } - } - } - - /** - * @author Eike Stepper - */ - public static final class Activator extends UIActivator - { - public static Activator INSTANCE; - - public Activator() - { - super(BUNDLE); - INSTANCE = this; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/BulkAddDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/BulkAddDialog.java deleted file mode 100644 index 807f2bf114..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/BulkAddDialog.java +++ /dev/null @@ -1,182 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.net4j.util.ui.StaticContentProvider; -import org.eclipse.net4j.util.ui.UIUtil; - -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.jface.dialogs.IDialogConstants; -import org.eclipse.jface.dialogs.TitleAreaDialog; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Eike Stepper - */ -public class BulkAddDialog extends TitleAreaDialog -{ - public static final String TITLE = "Bulk Add"; - - private IWorkbenchPage page; - - private List<EReference> features = new ArrayList<EReference>(); - - private EReference feature; - - private int instances = 100; - - public BulkAddDialog(IWorkbenchPage page, List<EReference> features) - { - super(new Shell(page.getWorkbenchWindow().getShell())); - setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE); - this.page = page; - this.features = features; - } - - public IWorkbenchPage getPage() - { - return page; - } - - public List<EReference> getFeatures() - { - return features; - } - - public EReference getFeature() - { - return feature; - } - - public int getInstances() - { - return instances; - } - - @Override - protected void configureShell(Shell newShell) - { - super.configureShell(newShell); - newShell.setText(TITLE); - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = new Composite((Composite)super.createDialogArea(parent), SWT.NONE); - composite.setLayoutData(UIUtil.createGridData()); - composite.setLayout(new GridLayout(2, false)); - - setTitle("Select a child type and number of child instances"); - - Label label = new Label(composite, SWT.NONE); - label.setText("Type:"); - label.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false)); - - final TableViewer featureViewer = new TableViewer(composite, SWT.BORDER | SWT.SINGLE); - featureViewer.getTable().setLayoutData(UIUtil.createGridData(true, true)); - featureViewer.setContentProvider(new StaticContentProvider(features)); - featureViewer.setLabelProvider(new LabelProvider() - { - @Override - public String getText(Object element) - { - return ((EReference)element).getName(); - } - }); - - featureViewer.setInput(features); - featureViewer.addSelectionChangedListener(new ISelectionChangedListener() - { - public void selectionChanged(SelectionChangedEvent event) - { - IStructuredSelection selection = (IStructuredSelection)featureViewer.getSelection(); - feature = selection.isEmpty() ? null : (EReference)selection.getFirstElement(); - dialogChanged(); - } - }); - - new Label(composite, SWT.NONE).setText("Instances:"); - final Text instancesText = new Text(composite, SWT.BORDER); - instancesText.setLayoutData(UIUtil.createGridData(true, false)); - instancesText.setText(String.valueOf(instances)); - instancesText.addModifyListener(new ModifyListener() - { - public void modifyText(ModifyEvent e) - { - try - { - String text = instancesText.getText(); - instances = Integer.parseInt(text); - } - catch (NumberFormatException ex) - { - instances = 0; - } - - dialogChanged(); - } - }); - - return composite; - } - - @Override - protected Control createButtonBar(Composite parent) - { - try - { - return super.createButtonBar(parent); - } - finally - { - dialogChanged(); - } - } - - protected void dialogChanged() - { - getButton(IDialogConstants.OK_ID).setEnabled(false); - if (feature == null) - { - setErrorMessage("Select a feature"); - return; - } - - if (instances == 0) - { - setErrorMessage("Enter a valid number of instances (>0)"); - return; - } - - getButton(IDialogConstants.OK_ID).setEnabled(true); - setErrorMessage(null); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/IPackageProvider.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/IPackageProvider.java deleted file mode 100644 index 2003814a8e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/IPackageProvider.java +++ /dev/null @@ -1,29 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.CDOSession; - -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.swt.events.SelectionEvent; - -/** - * TODO Is this used/needed? - * - * @author Eike Stepper - */ -public interface IPackageProvider -{ - public String getTitle(); - - public EPackage getPackage(CDOSession session, SelectionEvent event); -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenAuditDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenAuditDialog.java deleted file mode 100644 index 9f19c208b7..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenAuditDialog.java +++ /dev/null @@ -1,100 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.internal.ui.SharedIcons; - -import org.eclipse.net4j.util.ui.UIUtil; - -import org.eclipse.jface.dialogs.TitleAreaDialog; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.DateTime; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.Calendar; -import java.util.GregorianCalendar; - -/** - * @author Eike Stepper - */ -public class OpenAuditDialog extends TitleAreaDialog -{ - public static final String TITLE = "Open Audit"; - - private IWorkbenchPage page; - - private DateTime dateControl; - - private DateTime timeControl; - - private long timeStamp; - - public OpenAuditDialog(IWorkbenchPage page) - { - super(new Shell(page.getWorkbenchWindow().getShell())); - this.page = page; - setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE); - } - - public IWorkbenchPage getPage() - { - return page; - } - - public long getTimeStamp() - { - return timeStamp; - } - - @Override - protected void configureShell(Shell newShell) - { - super.configureShell(newShell); - newShell.setText(TITLE); - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = new Composite((Composite)super.createDialogArea(parent), SWT.NONE); - composite.setLayoutData(UIUtil.createGridData()); - composite.setLayout(new GridLayout(3, false)); - - setTitle(TITLE); - setTitleImage(SharedIcons.getImage(SharedIcons.WIZBAN_PACKAGE_MANAGER)); - - new Label(composite, SWT.NONE).setText("Target Time:"); - dateControl = new DateTime(composite, SWT.DATE); - timeControl = new DateTime(composite, SWT.TIME); - - return composite; - } - - @Override - protected void okPressed() - { - GregorianCalendar calendar = new GregorianCalendar(); - calendar.set(Calendar.YEAR, dateControl.getYear()); - calendar.set(Calendar.MONTH, dateControl.getMonth()); - calendar.set(Calendar.DATE, dateControl.getDay()); - calendar.set(Calendar.HOUR_OF_DAY, timeControl.getHours()); - calendar.set(Calendar.MINUTE, timeControl.getMinutes()); - calendar.set(Calendar.SECOND, timeControl.getSeconds()); - - timeStamp = calendar.getTimeInMillis(); - super.okPressed(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenResourcesDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenResourcesDialog.java deleted file mode 100644 index fc49e85604..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenResourcesDialog.java +++ /dev/null @@ -1,26 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog; - -public class OpenResourcesDialog extends FilteredResourcesSelectionDialog -{ - public OpenResourcesDialog(Shell parentShell) - { - super(parentShell, true, ResourcesPlugin.getWorkspace().getRoot(), IResource.FILE); - setTitle("Open Resources"); - setInitialPattern("*.ecore"); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java deleted file mode 100644 index a92c1166e4..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java +++ /dev/null @@ -1,181 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; - -import org.eclipse.emf.internal.cdo.util.FSMUtil; - -import org.eclipse.net4j.util.collection.IHistory; -import org.eclipse.net4j.util.collection.PreferenceHistory; -import org.eclipse.net4j.util.ui.UIUtil; -import org.eclipse.net4j.util.ui.widgets.HistoryText; -import org.eclipse.net4j.util.ui.widgets.PreferenceButton; - -import org.eclipse.jface.dialogs.TitleAreaDialog; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.FocusEvent; -import org.eclipse.swt.events.FocusListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public class OpenSessionDialog extends TitleAreaDialog -{ - public static final String TITLE = "Open Session"; - - private IWorkbenchPage page; - - private IHistory<String> connectorHistory = new PreferenceHistory(OM.PREF_HISTORY_CONNECTORS); - - private IHistory<String> repositoryHistory = new PreferenceHistory(OM.PREF_HISTORY_REPOSITORIES); - - private HistoryText connectorText; - - private Label exampleLabel; - - private HistoryText repositoryText; - - private PreferenceButton automaticButton; - - private PreferenceButton legacyButton; - - private String serverDescription; - - private String repositoryName; - - private boolean automaticPackageRegistry; - - private boolean legacyModelSupport; - - static - { - OM.PREF_LEGACY_MODEL_SUPPORT.setValue(FSMUtil.isLegacySystemAvailable()); - } - - public OpenSessionDialog(IWorkbenchPage page) - { - super(new Shell(page.getWorkbenchWindow().getShell())); - this.page = page; - setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE); - } - - public IWorkbenchPage getPage() - { - return page; - } - - public String getServerDescription() - { - return serverDescription; - } - - public String getRepositoryName() - { - return repositoryName; - } - - public boolean isAutomaticPackageRegistry() - { - return automaticPackageRegistry; - } - - public boolean isLegacyModelSupport() - { - return legacyModelSupport; - } - - @Override - protected void configureShell(Shell newShell) - { - super.configureShell(newShell); - newShell.setText(TITLE); - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = new Composite((Composite)super.createDialogArea(parent), SWT.NONE); - composite.setLayoutData(UIUtil.createGridData()); - composite.setLayout(new GridLayout(2, false)); - - setTitle(TITLE); - setTitleImage(SharedIcons.getImage(SharedIcons.WIZBAN_PACKAGE_MANAGER)); - - new Label(composite, SWT.NONE).setText("Server Description:"); - connectorText = new HistoryText(composite, SWT.BORDER | SWT.SINGLE, connectorHistory); - connectorText.getCombo().setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false)); - - if (connectorHistory.isEmpty()) - { - new Label(composite, SWT.NONE); - exampleLabel = new Label(composite, SWT.NONE); - exampleLabel.setText("for example 'tcp://estepper@dev.eclipse.org:2036'"); - exampleLabel.setForeground(getShell().getDisplay().getSystemColor(SWT.COLOR_DARK_GRAY)); - } - - new Label(composite, SWT.NONE).setText("Repository Name:"); - repositoryText = new HistoryText(composite, SWT.BORDER | SWT.SINGLE, repositoryHistory); - repositoryText.getCombo().setLayoutData(new GridData(150, SWT.DEFAULT)); - - new Label(composite, SWT.NONE); - automaticButton = new PreferenceButton(composite, SWT.CHECK, "Automatic Package Registry", - OM.PREF_AUTOMATIC_PACKAGE_REGISTY); - - new Label(composite, SWT.NONE); - legacyButton = new PreferenceButton(composite, SWT.CHECK, "Legacy Model Support", OM.PREF_LEGACY_MODEL_SUPPORT); - legacyButton.getButton().setEnabled(FSMUtil.isLegacySystemAvailable()); - - connectorText.setFocus(); - connectorText.getCombo().addFocusListener(new FocusListener() - { - public void focusGained(FocusEvent e) - { - if (exampleLabel != null) - { - exampleLabel.setVisible(true); - } - } - - public void focusLost(FocusEvent e) - { - if (exampleLabel != null) - { - exampleLabel.setVisible(false); - } - } - }); - - return composite; - } - - @Override - protected void okPressed() - { - serverDescription = connectorText.getText(true); - repositoryName = repositoryText.getText(true); - automaticPackageRegistry = automaticButton.getSelection(true); - legacyModelSupport = legacyButton.getSelection(true); - super.okPressed(); - } - - public void closeWithSuccess() - { - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/PackageManagerDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/PackageManagerDialog.java deleted file mode 100644 index d8824f1228..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/PackageManagerDialog.java +++ /dev/null @@ -1,430 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterFilesystemPackagesAction; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterGeneratedPackagesAction; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterWorkspacePackagesAction; -import org.eclipse.emf.cdo.ui.CDOItemProvider; -import org.eclipse.emf.cdo.util.CDOPackageRegistry; -import org.eclipse.emf.cdo.util.CDOPackageType; -import org.eclipse.emf.cdo.util.CDOPackageTypeRegistry; - -import org.eclipse.net4j.util.ObjectUtil; -import org.eclipse.net4j.util.ui.UIUtil; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.jface.dialogs.IDialogConstants; -import org.eclipse.jface.dialogs.TitleAreaDialog; -import org.eclipse.jface.viewers.BaseLabelProvider; -import org.eclipse.jface.viewers.IStructuredContentProvider; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.ui.IWorkbenchPage; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -/** - * @author Eike Stepper - */ -public class PackageManagerDialog extends TitleAreaDialog -{ - private static final int REGISTER_GENERATED_PACKAGES_ID = IDialogConstants.CLIENT_ID + 1; - - private static final int REGISTER_WORKSPACE_PACKAGES_ID = IDialogConstants.CLIENT_ID + 2; - - private static final int REGISTER_FILESYSTEM_PACKAGES_ID = IDialogConstants.CLIENT_ID + 3; - - private static final String TITLE = "CDO Package Manager"; - - private static final String EMPTY = ""; - - private IWorkbenchPage page; - - private CDOSession session; - - private TableViewer viewer; - - public PackageManagerDialog(IWorkbenchPage page, CDOSession session) - { - super(new Shell(page.getWorkbenchWindow().getShell())); - this.page = page; - this.session = session; - setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE); - } - - @Override - protected void configureShell(Shell newShell) - { - super.configureShell(newShell); - newShell.setText(TITLE); - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = (Composite)super.createDialogArea(parent); - setTitle(CDOItemProvider.getSessionLabel(session)); - setTitleImage(SharedIcons.getImage(SharedIcons.WIZBAN_PACKAGE_MANAGER)); - - viewer = new TableViewer(composite, SWT.NONE); - Table table = viewer.getTable(); - - table.setHeaderVisible(true); - table.setLayoutData(UIUtil.createGridData()); - addColumn(table, "Package", 400, SWT.LEFT); - addColumn(table, "Registry", 80, SWT.CENTER); - addColumn(table, "Repository", 80, SWT.CENTER); - - viewer.setContentProvider(new ContentProvider()); - viewer.setLabelProvider(new LabelProvider()); - viewer.setInput(session); - - return composite; - } - - @Override - protected void createButtonsForButtonBar(Composite parent) - { - createButton(parent, REGISTER_GENERATED_PACKAGES_ID, "Generated...", false); - createButton(parent, REGISTER_WORKSPACE_PACKAGES_ID, "Workspace...", false); - createButton(parent, REGISTER_FILESYSTEM_PACKAGES_ID, "Filesystem...", false); - createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false); - } - - @Override - protected void buttonPressed(int buttonId) - { - switch (buttonId) - { - case REGISTER_GENERATED_PACKAGES_ID: - new RegisterGeneratedPackagesAction(page, session) - { - @Override - protected void postRegistration(List<EPackage> ePackages) - { - refreshViewer(); - } - }.run(); - break; - - case REGISTER_WORKSPACE_PACKAGES_ID: - new RegisterWorkspacePackagesAction(page, session) - { - @Override - protected void postRegistration(List<EPackage> ePackages) - { - refreshViewer(); - } - }.run(); - break; - - case REGISTER_FILESYSTEM_PACKAGES_ID: - new RegisterFilesystemPackagesAction(page, session) - { - @Override - protected void postRegistration(List<EPackage> ePackages) - { - refreshViewer(); - } - }.run(); - break; - - case IDialogConstants.CLOSE_ID: - close(); - break; - } - } - - protected Image getContentIcon(Content content) - { - return null; - } - - protected String getEPackageText(Object ePackage) - { - if (ePackage == EcorePackage.eINSTANCE) - { - return "ECORE"; - } - - if (ePackage.getClass() == EPackageImpl.class) - { - return "DYNAMIC"; - } - - String uri = EMPTY; - if (ePackage instanceof EPackage.Descriptor) - { - CDOPackageRegistry registry = session.getPackageRegistry(); - for (Map.Entry<String, Object> entry : registry.entrySet()) - { - if (entry.getValue() == ePackage) - { - uri = entry.getKey(); - break; - } - } - } - else - { - uri = ((EPackage)ePackage).getNsURI(); - } - - CDOPackageType packageType = CDOPackageTypeRegistry.INSTANCE.get(uri); - if (packageType == null) - { - return "?"; - } - - return packageType.toString(); - } - - protected String getCDOPackageText(CDOPackage cdoPackage) - { - if (cdoPackage.isSystem()) - { - return "SYSTEM"; - } - - if (!cdoPackage.isPersistent()) - { - return EMPTY; - } - - return cdoPackage.isDynamic() ? "DYNAMIC" : "STATIC"; - } - - private void addColumn(Table table, String title, int width, int alignment) - { - TableColumn column = new TableColumn(table, alignment); - column.setText(title); - column.setWidth(width); - } - - protected void refreshViewer() - { - page.getWorkbenchWindow().getShell().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - viewer.refresh(); - } - catch (RuntimeException ignore) - { - } - } - }); - } - - /** - * @author Eike Stepper - */ - public class LabelProvider extends BaseLabelProvider implements ITableLabelProvider - { - public LabelProvider() - { - } - - public String getColumnText(Object element, int columnIndex) - { - if (element instanceof Content) - { - Content content = (Content)element; - switch (columnIndex) - { - case 0: - return content.getPackageURI(); - case 1: - return content.getEPackage() == null ? EMPTY : getEPackageText(content.getEPackage()); - case 2: - return content.getCDOPackage() == null ? EMPTY : getCDOPackageText(content.getCDOPackage()); - } - } - - return element.toString(); - } - - public Image getColumnImage(Object element, int columnIndex) - { - if (element instanceof Content) - { - Content content = (Content)element; - if (columnIndex == 0) - { - return getContentIcon(content); - } - } - - return null; - } - } - - /** - * @author Eike Stepper - */ - public static class ContentProvider implements IStructuredContentProvider - { - private static final Object[] NO_ELEMENTS = {}; - - private CDOSession session; - - public ContentProvider() - { - } - - public void dispose() - { - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) - { - if (newInput instanceof CDOSession) - { - if (!ObjectUtil.equals(session, newInput)) - { - session = (CDOSession)newInput; - } - } - } - - public Object[] getElements(Object inputElement) - { - if (inputElement != session) - { - return NO_ELEMENTS; - } - - Map<String, Content> map = new HashMap<String, Content>(); - for (Entry<String, Object> entry : session.getPackageRegistry().entrySet()) - { - String packageURI = entry.getKey(); - Content content = new Content(packageURI); - map.put(packageURI, content); - content.setEPackage(entry.getValue()); - } - - for (CDOPackage cdoPackage : session.getPackageManager().getPackages()) - { - String packageURI = cdoPackage.getPackageURI(); - Content content = map.get(packageURI); - if (content == null) - { - content = new Content(packageURI); - map.put(packageURI, content); - } - - content.setCDOPackage(cdoPackage); - } - - ArrayList<Content> list = new ArrayList<Content>(map.values()); - Collections.sort(list); - return list.toArray(new Content[list.size()]); - } - } - - /** - * @author Eike Stepper - */ - public static final class Content implements Comparable<Content> - { - private String packageURI; - - private Object ePackage; - - private CDOPackage cdoPackage; - - public Content(String packageURI) - { - this.packageURI = packageURI; - } - - public String getPackageURI() - { - return packageURI; - } - - public Object getEPackage() - { - return ePackage; - } - - public void setEPackage(Object ePackage) - { - this.ePackage = ePackage; - } - - public CDOPackage getCDOPackage() - { - return cdoPackage; - } - - public void setCDOPackage(CDOPackage cdoPackage) - { - this.cdoPackage = cdoPackage; - } - - public int compareTo(Content content) - { - return packageURI.compareTo(content.packageURI); - } - - @Override - public boolean equals(Object obj) - { - if (obj == this) - { - return true; - } - - if (obj instanceof Content) - { - Content that = (Content)obj; - return ObjectUtil.equals(packageURI, that.packageURI); - } - - return false; - } - - @Override - public int hashCode() - { - return ObjectUtil.hashCode(packageURI); - } - - @Override - public String toString() - { - return packageURI; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/RollbackTransactionDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/RollbackTransactionDialog.java deleted file mode 100644 index 7e20f9cadf..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/RollbackTransactionDialog.java +++ /dev/null @@ -1,156 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.CDOTransaction; - -import org.eclipse.net4j.util.ui.UIUtil; - -import org.eclipse.jface.dialogs.IDialogConstants; -import org.eclipse.jface.dialogs.TitleAreaDialog; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.IWorkbenchPage; - -/** - * @author Eike Stepper - */ -public class RollbackTransactionDialog extends TitleAreaDialog -{ - // public static final String TITLE = "Rollback Transaction"; - - public static final int REMOTE = CANCEL + 1; - - public static final int LOCAL = CANCEL + 2; - - private static final int REMOTE_ID = IDialogConstants.CLIENT_ID + REMOTE; - - private static final int LOCAL_ID = IDialogConstants.CLIENT_ID + LOCAL; - - private IWorkbenchPage page; - - private String title; - - private String description; - - private CDOTransaction transaction; - - public RollbackTransactionDialog(IWorkbenchPage page, String title, String description, CDOTransaction transaction) - { - super(new Shell(page.getWorkbenchWindow().getShell())); - this.page = page; - this.title = title; - this.description = description; - this.transaction = transaction; - setShellStyle(getShellStyle() | SWT.APPLICATION_MODAL | SWT.MAX | SWT.TITLE | SWT.RESIZE); - } - - public IWorkbenchPage getPage() - { - return page; - } - - @Override - protected void configureShell(Shell newShell) - { - super.configureShell(newShell); - newShell.setText(title); - } - - @Override - protected Control createDialogArea(Composite parent) - { - Composite composite = new Composite((Composite)super.createDialogArea(parent), SWT.NONE); - composite.setLayoutData(UIUtil.createGridData()); - composite.setLayout(new GridLayout(1, false)); - - setTitle(description); - setTitleImage(getShell().getDisplay().getSystemImage(SWT.ICON_QUESTION)); - - Label label = new Label(composite, SWT.NONE); - label.setText(formatMessage()); - label.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true)); - - return composite; - } - - @Override - protected void createButtonsForButtonBar(Composite parent) - { - createButton(parent, REMOTE_ID, "Remote Rollback", true); - createButton(parent, LOCAL_ID, "Local Rollback", false); - createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); - } - - @Override - protected void buttonPressed(int buttonId) - { - if (buttonId == REMOTE_ID) - { - setReturnCode(REMOTE); - close(); - } - else if (buttonId == LOCAL_ID) - { - setReturnCode(LOCAL); - close(); - } - else - { - super.buttonPressed(buttonId); - } - } - - protected String formatMessage() - { - int newObjects = transaction.getNewObjects().size(); - int dirtyObjects = transaction.getDirtyObjects().size(); - int count = (newObjects > 0 ? 1 : 0) + (dirtyObjects > 0 ? 1 : 0); - - StringBuilder builder = new StringBuilder(); - builder.append("This transaction contains "); - - if (newObjects > 0) - { - builder.append(newObjects); - builder.append(" new object"); - if (newObjects > 1) - { - builder.append("s"); - } - } - - if (dirtyObjects > 0) - { - if (count > 0) - { - builder.append(" and "); - } - - builder.append(dirtyObjects); - builder.append(" dirty object"); - if (dirtyObjects > 1) - { - builder.append("s"); - } - } - - builder.append(".\n\nBe careful, rolling back to local state can result\n" - + "in visible state that is different from the remote state!"); - builder.append("\n\nAre you sure to rollback this transaction?"); - return builder.toString(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/SelectPackageDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/SelectPackageDialog.java deleted file mode 100644 index a79be83ee0..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/SelectPackageDialog.java +++ /dev/null @@ -1,192 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.dialogs; - -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.util.CDOPackageType; -import org.eclipse.emf.cdo.util.CDOPackageTypeRegistry; - -import org.eclipse.net4j.util.ui.UIUtil; -import org.eclipse.net4j.util.ui.widgets.BaseDialog; - -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.jface.viewers.CheckboxTableViewer; -import org.eclipse.jface.viewers.IStructuredContentProvider; -import org.eclipse.jface.viewers.ITableColorProvider; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public class SelectPackageDialog extends BaseDialog<CheckboxTableViewer> -{ - private static final Set<String> NO_URIS = Collections.emptySet(); - - private Set<String> excludedURIs = new HashSet<String>(); - - private Set<String> checkedURIs = new HashSet<String>(); - - public SelectPackageDialog(Shell shell, String title, String message, Set<String> excludedURIs) - { - super(shell, DEFAULT_SHELL_STYLE | SWT.APPLICATION_MODAL, title, message, OM.Activator.INSTANCE.getDialogSettings()); - this.excludedURIs = excludedURIs; - } - - public SelectPackageDialog(Shell shell, String title, String message) - { - this(shell, title, message, NO_URIS); - } - - public Set<String> getCheckedURIs() - { - return checkedURIs; - } - - @Override - protected void createUI(Composite parent) - { - CheckboxTableViewer viewer = CheckboxTableViewer.newCheckList(parent, SWT.SINGLE | SWT.BORDER); - viewer.getTable().setLayoutData(UIUtil.createGridData()); - viewer.setContentProvider(new PackageContentProvider()); - viewer.setLabelProvider(new PackageLabelProvider()); - viewer.setInput(CDOPackageTypeRegistry.INSTANCE); - - String[] uris = OM.PREF_HISTORY_SELECT_PACKAGES.getValue(); - if (uris != null) - { - viewer.setCheckedElements(uris); - } - - setCurrentViewer(viewer); - } - - @Override - protected void okPressed() - { - Object[] checkedElements = getCurrentViewer().getCheckedElements(); - for (Object checkedElement : checkedElements) - { - checkedURIs.add((String)checkedElement); - } - - OM.PREF_HISTORY_SELECT_PACKAGES.setValue(checkedURIs.toArray(new String[checkedURIs.size()])); - super.okPressed(); - } - - /** - * @author Eike Stepper - */ - private class PackageContentProvider implements IStructuredContentProvider - { - public PackageContentProvider() - { - } - - public void dispose() - { - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) - { - } - - public Object[] getElements(Object inputElement) - { - Set<String> uris = new HashSet<String>(CDOPackageTypeRegistry.INSTANCE.keySet()); - uris.removeAll(excludedURIs); - - List<String> elements = new ArrayList<String>(uris); - Collections.sort(elements); - return elements.toArray(); - } - } - - /** - * @author Eike Stepper - */ - private class PackageLabelProvider extends LabelProvider implements ITableLabelProvider, ITableColorProvider - { - private final Color red = Display.getCurrent().getSystemColor(SWT.COLOR_DARK_MAGENTA); - - public PackageLabelProvider() - { - } - - @Override - public String getText(Object element) - { - return element.toString(); - } - - @Override - public Image getImage(Object element) - { - if (element instanceof String) - { - CDOPackageType packageType = CDOPackageTypeRegistry.INSTANCE.get(element); - switch (packageType) - { - case CONVERTED: - return SharedIcons.getImage(SharedIcons.OBJ_EPACKAGE_CONVERTED); - - case LEGACY: - return SharedIcons.getImage(SharedIcons.OBJ_EPACKAGE_LEGACY); - - case NATIVE: - return SharedIcons.getImage(SharedIcons.OBJ_EPACKAGE_NATIVE); - } - } - - return null; - } - - public String getColumnText(Object element, int columnIndex) - { - return getText(element); - } - - public Image getColumnImage(Object element, int columnIndex) - { - return getImage(element); - } - - public Color getBackground(Object element, int columnIndex) - { - return null; - } - - public Color getForeground(Object element, int columnIndex) - { - if (EcorePackage.eINSTANCE.getNsURI().equals(element)) - { - return red; - } - - return null; - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOActionBarContributor.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOActionBarContributor.java deleted file mode 100644 index c42e1cb17f..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOActionBarContributor.java +++ /dev/null @@ -1,653 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.editor; - -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.internal.ui.actions.ImportRootsAction; -import org.eclipse.emf.cdo.internal.ui.actions.ReloadObjectsAction; - -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.ui.action.ControlAction; -import org.eclipse.emf.edit.ui.action.CreateChildAction; -import org.eclipse.emf.edit.ui.action.CreateSiblingAction; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.action.LoadResourceAction; -import org.eclipse.emf.edit.ui.action.ValidateAction; - -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IContributionItem; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.action.SubContributionItem; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PartInitException; - -import java.util.ArrayList; -import java.util.Collection; - -/** - * @author Eike Stepper - * @generated - */ -public class CDOActionBarContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener -{ - /** - * @ADDED - */ - public static final String LOAD_RESOURCE_ID = "load-resource"; - - /** - * @ADDED - */ - public static final String REFRESH_VIEWER_ID = "refresh-viewer"; - - /** - * @ADDED - */ - protected ImportRootsAction importRootsAction; - - /** - * @ADDED - */ - protected ReloadObjectsAction reloadObjectsAction; - - /** - * This keeps track of the active editor. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IEditorPart activeEditorPart; - - /** - * This keeps track of the current selection provider. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ISelectionProvider selectionProvider; - - /** - * This action opens the Properties view. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IAction showPropertiesViewAction = new Action(PluginDelegator.INSTANCE - .getString("_UI_ShowPropertiesView_menu_item")) - { - @Override - public void run() - { - try - { - getPage().showView("org.eclipse.ui.views.PropertySheet"); - } - catch (PartInitException exception) - { - PluginDelegator.INSTANCE.log(exception); - } - } - }; - - /** - * This action refreshes the viewer of the current editor if the editor implements - * {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IAction refreshViewerAction = new Action(PluginDelegator.INSTANCE.getString("_UI_RefreshViewer_menu_item")) - { - @Override - public boolean isEnabled() - { - return activeEditorPart instanceof IViewerProvider; - } - - @Override - public void run() - { - if (activeEditorPart instanceof IViewerProvider) - { - Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer(); - if (viewer != null) - { - viewer.refresh(); - } - } - } - }; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor - * generated for the current selection by the item provider. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<IAction> createChildActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateChild actions. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IMenuManager createChildMenuManager; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor - * generated for the current selection by the item provider. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<IAction> createSiblingActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateSibling actions. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IMenuManager createSiblingMenuManager; - - /** - * This creates an instance of the contributor. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - public CDOActionBarContributor() - { - super(ADDITIONS_LAST_STYLE); - loadResourceAction = new LoadResourceAction(); - loadResourceAction.setId(LOAD_RESOURCE_ID); - - importRootsAction = new ImportRootsAction(); - importRootsAction.setId(ImportRootsAction.ID); - - reloadObjectsAction = new ReloadObjectsAction(); - - validateAction = new ValidateAction(); - controlAction = new ControlAction(); - } - - /** - * This adds Separators for editor additions to the tool bar. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void contributeToToolBar(IToolBarManager toolBarManager) - { - toolBarManager.add(new Separator("cdo-settings")); - toolBarManager.add(new Separator("cdo-additions")); - } - - /** - * This adds to the menu bar a menu and some separators for editor additions, as well as the sub-menus for object - * creation items. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void contributeToMenu(IMenuManager menuManager) - { - super.contributeToMenu(menuManager); - - IMenuManager submenuManager = new MenuManager(PluginDelegator.INSTANCE.getString("_UI_CDOEditor_menu"), - "org.eclipse.emf.cdo.internal.ui.editorMenuID"); - menuManager.insertAfter("additions", submenuManager); - submenuManager.add(new Separator("settings")); - submenuManager.add(new Separator("actions")); - submenuManager.add(new Separator("additions")); - submenuManager.add(new Separator("additions-end")); - - // Prepare for CreateChild item addition or removal. - // - createChildMenuManager = new MenuManager(PluginDelegator.INSTANCE.getString("_UI_CreateChild_menu_item")); - submenuManager.insertBefore("additions", createChildMenuManager); - - // Prepare for CreateSibling item addition or removal. - // - createSiblingMenuManager = new MenuManager(PluginDelegator.INSTANCE.getString("_UI_CreateSibling_menu_item")); - submenuManager.insertBefore("additions", createSiblingMenuManager); - - // Force an update because Eclipse hides empty menus now. - // - submenuManager.addMenuListener(new IMenuListener() - { - public void menuAboutToShow(IMenuManager menuManager) - { - menuManager.updateAll(true); - } - }); - - addGlobalActions(submenuManager); - } - - /** - * When the active editor changes, this remembers the change and registers with it as a selection provider. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void setActiveEditor(IEditorPart part) - { - super.setActiveEditor(part); - activeEditorPart = part; - - // Switch to the new selection provider. - // - if (selectionProvider != null) - { - selectionProvider.removeSelectionChangedListener(this); - } - if (part == null) - { - selectionProvider = null; - } - else - { - selectionProvider = part.getSite().getSelectionProvider(); - selectionProvider.addSelectionChangedListener(this); - - // Fake a selection changed event to update the menus. - // - if (selectionProvider.getSelection() != null) - { - selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider.getSelection())); - } - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, handling - * {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings that can be - * added to the selected object and updating the menus accordingly. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void selectionChangedGen(SelectionChangedEvent event) - { - // Remove any menu items for old selection. - // - if (createChildMenuManager != null) - { - depopulateManager(createChildMenuManager, createChildActions); - } - if (createSiblingMenuManager != null) - { - depopulateManager(createSiblingMenuManager, createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection<?> newChildDescriptors = null; - Collection<?> newSiblingDescriptors = null; - - ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) - { - Object object = ((IStructuredSelection)selection).getFirstElement(); - - EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - } - - // Generate actions for selection; populate and redraw the menus. - // - createChildActions = generateCreateChildActions(newChildDescriptors, selection); - createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (createChildMenuManager != null) - { - populateManager(createChildMenuManager, createChildActions, null); - createChildMenuManager.update(true); - } - if (createSiblingMenuManager != null) - { - populateManager(createSiblingMenuManager, createSiblingActions, null); - createSiblingMenuManager.update(true); - } - } - - /** - * @ADDED - */ - public void selectionChanged(SelectionChangedEvent event) - { - // Remove any menu items for old selection. - // - if (createChildMenuManager != null) - { - depopulateManager(createChildMenuManager, createChildActions); - } - if (createSiblingMenuManager != null) - { - depopulateManager(createSiblingMenuManager, createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection<?> newChildDescriptors = null; - Collection<?> newSiblingDescriptors = null; - - ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection) - { - if (reloadObjectsAction != null) - { - reloadObjectsAction.selectionChanged((IStructuredSelection)selection); - } - - if (((IStructuredSelection)selection).size() == 1) - { - Object object = ((IStructuredSelection)selection).getFirstElement(); - - EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - - if (importRootsAction != null) - { - if (object instanceof CDOResource) - { - importRootsAction.setTargetResource((CDOResource)object); - } - else - { - importRootsAction.setTargetResource(null); - } - } - } - } - - // Generate actions for selection; populate and redraw the menus. - // - createChildActions = generateCreateChildActions(newChildDescriptors, selection); - createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (createChildMenuManager != null) - { - populateManager(createChildMenuManager, createChildActions, null); - createChildMenuManager.update(true); - } - if (createSiblingMenuManager != null) - { - populateManager(createSiblingMenuManager, createSiblingActions, null); - createSiblingMenuManager.update(true); - } - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in - * <code>descriptors</code>, and returns the collection of these actions. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) - { - Collection<IAction> actions = new ArrayList<IAction>(); - if (descriptors != null) - { - for (Object descriptor : descriptors) - { - actions.add(new CreateChildAction(activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in - * <code>descriptors</code>, and returns the collection of these actions. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) - { - Collection<IAction> actions = new ArrayList<IAction>(); - if (descriptors != null) - { - for (Object descriptor : descriptors) - { - actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.ActionContributionItem}s - * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection, by - * inserting them before the specified contribution item <code>contributionID</code>. If <code>contributionID</code> - * is <code>null</code>, they are simply added. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, - String contributionID) - { - if (actions != null) - { - for (IAction action : actions) - { - if (contributionID != null) - { - manager.insertBefore(contributionID, action); - } - else - { - manager.add(action); - } - } - } - } - - /** - * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s - * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void depopulateManager(IContributionManager manager, Collection<? extends IAction> actions) - { - if (actions != null) - { - IContributionItem[] items = manager.getItems(); - for (int i = 0; i < items.length; i++) - { - // Look into SubContributionItems - // - IContributionItem contributionItem = items[i]; - while (contributionItem instanceof SubContributionItem) - { - contributionItem = ((SubContributionItem)contributionItem).getInnerItem(); - } - - // Delete the ActionContributionItems with matching action. - // - if (contributionItem instanceof ActionContributionItem) - { - IAction action = ((ActionContributionItem)contributionItem).getAction(); - if (actions.contains(action)) - { - manager.remove(contributionItem); - } - } - } - } - } - - /** - * This populates the pop-up menu before it appears. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void menuAboutToShow(IMenuManager menuManager) - { - super.menuAboutToShow(menuManager); - MenuManager submenuManager = null; - - submenuManager = new MenuManager(PluginDelegator.INSTANCE.getString("_UI_CreateChild_menu_item")); - populateManager(submenuManager, createChildActions, null); - menuManager.insertBefore("edit", submenuManager); - - submenuManager = new MenuManager(PluginDelegator.INSTANCE.getString("_UI_CreateSibling_menu_item")); - populateManager(submenuManager, createSiblingActions, null); - menuManager.insertBefore("edit", submenuManager); - } - - /** - * This inserts global actions before the "additions-end" separator. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addGlobalActionsGen(IMenuManager menuManager) - { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", showPropertiesViewAction); - - refreshViewerAction.setEnabled(refreshViewerAction.isEnabled()); - menuManager.insertAfter("ui-actions", refreshViewerAction); - - super.addGlobalActions(menuManager); - } - - /** - * @ADDED - */ - @Override - protected void addGlobalActions(IMenuManager menuManager) - { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", showPropertiesViewAction); - - refreshViewerAction.setEnabled(refreshViewerAction.isEnabled()); - refreshViewerAction.setId(REFRESH_VIEWER_ID); - menuManager.insertAfter("ui-actions", refreshViewerAction); - menuManager.insertBefore(refreshViewerAction.getId(), reloadObjectsAction); - super.addGlobalActions(menuManager); - - if (loadResourceAction != null) - { - if (importRootsAction != null) - { - menuManager.insertAfter(loadResourceAction.getId(), importRootsAction); - } - } - else - { - if (importRootsAction != null) - { - menuManager.insertBefore("additions-end", importRootsAction); - } - - menuManager.insertBefore("additions-end", new Separator()); - } - } - - /** - * This ensures that a delete action will clean up all references to deleted objects. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - @Override - protected boolean removeAllReferencesOnDelete() - { - return true; - } - - /** - * @ADDED - */ - @Override - public void activate() - { - if (importRootsAction != null) - { - importRootsAction.setActiveWorkbenchPart(activeEditor); - Object input = ((CDOEditor)getActiveEditor()).getViewer().getInput(); - if (input instanceof CDOResource) - { - importRootsAction.setTargetResource((CDOResource)input); - } - else - { - importRootsAction.setTargetResource(null); - } - } - - if (reloadObjectsAction != null) - { - reloadObjectsAction.setActiveWorkbenchPart(activeEditor); - } - - super.activate(); - } - - /** - * @ADDED - */ - @Override - public void deactivate() - { - if (importRootsAction != null) - { - importRootsAction.setActiveWorkbenchPart(null); - importRootsAction.setTargetResource(null); - } - - if (reloadObjectsAction != null) - { - reloadObjectsAction.setActiveWorkbenchPart(null); - } - - super.deactivate(); - } - - /** - * @ADDED - */ - @Override - public void update() - { - super.update(); - if (importRootsAction != null) - { - importRootsAction.update(); - } - - if (reloadObjectsAction != null) - { - reloadObjectsAction.update(); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java deleted file mode 100644 index 0fc8889282..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditor.java +++ /dev/null @@ -1,2339 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.editor; - -import org.eclipse.emf.cdo.CDOObject; -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.common.model.CDOClass; -import org.eclipse.emf.cdo.common.model.CDOPackage; -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.internal.ui.dialogs.BulkAddDialog; -import org.eclipse.emf.cdo.internal.ui.dialogs.RollbackTransactionDialog; -import org.eclipse.emf.cdo.ui.CDOEventHandler; -import org.eclipse.emf.cdo.ui.CDOLabelProvider; -import org.eclipse.emf.cdo.util.CDOUtil; - -import org.eclipse.emf.internal.cdo.CDOLegacyImpl; -import org.eclipse.emf.internal.cdo.CDOStateMachine; -import org.eclipse.emf.internal.cdo.CDOTransactionImpl; -import org.eclipse.emf.internal.cdo.InternalCDOObject; - -import org.eclipse.net4j.util.ObjectUtil; -import org.eclipse.net4j.util.transaction.TransactionException; -import org.eclipse.net4j.util.ui.actions.LongRunningAction; -import org.eclipse.net4j.util.ui.actions.SafeAction; - -import org.eclipse.emf.common.command.BasicCommandStack; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.CommandStack; -import org.eclipse.emf.common.command.CommandStackListener; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.ui.MarkerHelper; -import org.eclipse.emf.common.ui.editor.ProblemEditorPart; -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EValidator; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EContentAdapter; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.edit.EMFEditPlugin; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory; -import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; -import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; -import org.eclipse.emf.edit.ui.dnd.LocalTransfer; -import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; -import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; -import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; -import org.eclipse.emf.edit.ui.util.EditUIUtil; -import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.jface.action.IMenuListener; -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.Separator; -import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.ControlAdapter; -import org.eclipse.swt.events.ControlEvent; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorReference; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IPartListener; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.SaveAsDialog; -import org.eclipse.ui.ide.IGotoMarker; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.MultiPageEditorPart; -import org.eclipse.ui.views.contentoutline.ContentOutline; -import org.eclipse.ui.views.contentoutline.ContentOutlinePage; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.ui.views.properties.IPropertySheetPage; -import org.eclipse.ui.views.properties.PropertySheet; -import org.eclipse.ui.views.properties.PropertySheetPage; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.EventObject; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -/** - * @author Eike Stepper - * @generated - */ -public class CDOEditor extends MultiPageEditorPart implements IEditingDomainProvider, ISelectionProvider, - IMenuListener, IViewerProvider, IGotoMarker -{ - /** - * @ADDED - */ - public static final String EDITOR_ID = "org.eclipse.emf.cdo.ui.CDOEditor"; - - /** - * @ADDED - */ - private CDOView view; - - /** - * @ADDED - */ - private Object viewerInput; - - /** - * @ADDED - */ - private CDOEventHandler eventHandler; - - /** - * This keeps track of the editing domain that is used to track all changes to the model. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - protected AdapterFactoryEditingDomain editingDomain; - - /** - * This is the one adapter factory used for providing views of the model. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - protected ComposedAdapterFactory adapterFactory; - - /** - * This is the content outline page. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IContentOutlinePage contentOutlinePage; - - /** - * This is a kludge... <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IStatusLineManager contentOutlineStatusLineManager; - - /** - * This is the content outline page's viewer. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected TreeViewer contentOutlineViewer; - - /** - * This is the property sheet page. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected PropertySheetPage propertySheetPage; - - /** - * This is the viewer that shadows the selection in the content outline. The parent relation must be correctly defined - * for this to work. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected TreeViewer selectionViewer; - - /** - * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content - * outline viewer. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Viewer currentViewer; - - /** - * This listens to which ever viewer is active. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ISelectionChangedListener selectionChangedListener; - - /** - * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this - * editor. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<ISelectionChangedListener> selectionChangedListeners = new ArrayList<ISelectionChangedListener>(); - - /** - * This keeps track of the selection of the editor as a whole. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ISelection editorSelection = StructuredSelection.EMPTY; - - /** - * The MarkerHelper is responsible for creating workspace resource markers presented in Eclipse's Problems View. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MarkerHelper markerHelper = new EditUIMarkerHelper(); - - /** - * This listens for when the outline becomes active <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IPartListener partListener = new IPartListener() - { - public void partActivated(IWorkbenchPart p) - { - if (p instanceof ContentOutline) - { - if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) - { - getActionBarContributor().setActiveEditor(CDOEditor.this); - - setCurrentViewer(contentOutlineViewer); - } - } - else if (p instanceof PropertySheet) - { - if (((PropertySheet)p).getCurrentPage() == propertySheetPage) - { - getActionBarContributor().setActiveEditor(CDOEditor.this); - handleActivate(); - } - } - else if (p == CDOEditor.this) - { - handleActivate(); - } - } - - public void partBroughtToTop(IWorkbenchPart p) - { - // Ignore. - } - - public void partClosed(IWorkbenchPart p) - { - // Ignore. - } - - public void partDeactivated(IWorkbenchPart p) - { - // Ignore. - } - - public void partOpened(IWorkbenchPart p) - { - // Ignore. - } - }; - - /** - * Resources that have been removed since last activation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<Resource> removedResources = new ArrayList<Resource>(); - - /** - * Resources that have been changed since last activation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<Resource> changedResources = new ArrayList<Resource>(); - - /** - * Resources that have been saved. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Collection<Resource> savedResources = new ArrayList<Resource>(); - - /** - * Map to store the diagnostic associated with a resource. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected Map<Resource, Diagnostic> resourceToDiagnosticMap = new LinkedHashMap<Resource, Diagnostic>(); - - /** - * Controls whether the problem indication should be updated. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected boolean updateProblemIndication = true; - - /** - * Adapter used to update the problem indication when resources are demanded loaded. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - protected EContentAdapter problemIndicationAdapter = new EContentAdapter() - { - @Override - public void notifyChanged(Notification notification) - { - if (notification.getNotifier() instanceof Resource) - { - switch (notification.getFeatureID(Resource.class)) - { - case Resource.RESOURCE__IS_LOADED: - case Resource.RESOURCE__ERRORS: - case Resource.RESOURCE__WARNINGS: - { - Resource resource = (Resource)notification.getNotifier(); - Diagnostic diagnostic = analyzeResourceProblems(resource, null); - if (diagnostic.getSeverity() != Diagnostic.OK) - { - resourceToDiagnosticMap.put(resource, diagnostic); - } - else - { - resourceToDiagnosticMap.remove(resource); - } - - if (updateProblemIndication) - { - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - updateProblemIndication(); - } - }); - } - break; - } - } - } - else - { - super.notifyChanged(notification); - } - } - - @Override - protected void setTarget(Resource target) - { - basicSetTarget(target); - } - - @Override - protected void unsetTarget(Resource target) - { - basicUnsetTarget(target); - } - }; - - /** - * This listens for workspace changes. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() - { - public void resourceChanged(IResourceChangeEvent event) - { - IResourceDelta delta = event.getDelta(); - try - { - class ResourceDeltaVisitor implements IResourceDeltaVisitor - { - protected ResourceSet resourceSet = editingDomain.getResourceSet(); - - protected Collection<Resource> changedResources = new ArrayList<Resource>(); - - protected Collection<Resource> removedResources = new ArrayList<Resource>(); - - public boolean visit(IResourceDelta delta) - { - if (delta.getResource().getType() == IResource.FILE) - { - if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED - && delta.getFlags() != IResourceDelta.MARKERS) - { - Resource resource = resourceSet.getResource(URI.createURI(delta.getFullPath().toString()), false); - if (resource != null) - { - if (delta.getKind() == IResourceDelta.REMOVED) - { - removedResources.add(resource); - } - else if (!savedResources.remove(resource)) - { - changedResources.add(resource); - } - } - } - } - - return true; - } - - public Collection<Resource> getChangedResources() - { - return changedResources; - } - - public Collection<Resource> getRemovedResources() - { - return removedResources; - } - } - - ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - delta.accept(visitor); - - if (!visitor.getRemovedResources().isEmpty()) - { - removedResources.addAll(visitor.getRemovedResources()); - if (!isDirty()) - { - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - getSite().getPage().closeEditor(CDOEditor.this, false); - CDOEditor.this.dispose(); - } - }); - } - } - - if (!visitor.getChangedResources().isEmpty()) - { - changedResources.addAll(visitor.getChangedResources()); - if (getSite().getPage().getActiveEditor() == CDOEditor.this) - { - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - handleActivate(); - } - }); - } - } - } - catch (CoreException exception) - { - PluginDelegator.INSTANCE.log(exception); - } - } - }; - - /** - * Handles activation of the editor or it's associated views. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void handleActivate() - { - // Recompute the read only state. - // - if (editingDomain.getResourceToReadOnlyMap() != null) - { - editingDomain.getResourceToReadOnlyMap().clear(); - - // Refresh any actions that may become enabled or disabled. - // - setSelection(getSelection()); - } - - if (!removedResources.isEmpty()) - { - if (handleDirtyConflict()) - { - getSite().getPage().closeEditor(CDOEditor.this, false); - CDOEditor.this.dispose(); - } - else - { - removedResources.clear(); - changedResources.clear(); - savedResources.clear(); - } - } - else if (!changedResources.isEmpty()) - { - changedResources.removeAll(savedResources); - handleChangedResources(); - changedResources.clear(); - savedResources.clear(); - } - } - - /** - * Handles what to do with changed resources on activation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void handleChangedResources() - { - if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) - { - if (isDirty()) - { - changedResources.addAll(editingDomain.getResourceSet().getResources()); - } - editingDomain.getCommandStack().flush(); - - updateProblemIndication = false; - for (Resource resource : changedResources) - { - if (resource.isLoaded()) - { - resource.unload(); - try - { - resource.load(Collections.EMPTY_MAP); - } - catch (IOException exception) - { - if (!resourceToDiagnosticMap.containsKey(resource)) - { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - } - } - } - - if (AdapterFactoryEditingDomain.isStale(editorSelection)) - { - setSelection(StructuredSelection.EMPTY); - } - - updateProblemIndication = true; - updateProblemIndication(); - } - } - - /** - * Updates the problems indication with the information described in the specified diagnostic. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - protected void updateProblemIndication() - { - if (updateProblemIndication) - { - BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, "org.eclipse.emf.cdo.ui.editor", 0, null, - new Object[] { editingDomain.getResourceSet() }); - for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) - { - if (childDiagnostic.getSeverity() != Diagnostic.OK) - { - diagnostic.add(childDiagnostic); - } - } - - int lastEditorPage = getPageCount() - 1; - if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) - { - ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic); - if (diagnostic.getSeverity() != Diagnostic.OK) - { - setActivePage(lastEditorPage); - } - } - else if (diagnostic.getSeverity() != Diagnostic.OK) - { - ProblemEditorPart problemEditorPart = new ProblemEditorPart(); - problemEditorPart.setDiagnostic(diagnostic); - problemEditorPart.setMarkerHelper(markerHelper); - try - { - addPage(++lastEditorPage, problemEditorPart, getEditorInput()); - setPageText(lastEditorPage, problemEditorPart.getPartName()); - setActivePage(lastEditorPage); - showTabs(); - } - catch (PartInitException exception) - { - PluginDelegator.INSTANCE.log(exception); - } - } - - if (markerHelper.hasMarkers(editingDomain.getResourceSet())) - { - markerHelper.deleteMarkers(editingDomain.getResourceSet()); - if (diagnostic.getSeverity() != Diagnostic.OK) - { - try - { - markerHelper.createMarkers(diagnostic); - } - catch (CoreException exception) - { - PluginDelegator.INSTANCE.log(exception); - } - } - } - } - } - - /** - * Shows a dialog that asks if conflicting changes should be discarded. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected boolean handleDirtyConflict() - { - return MessageDialog.openQuestion(getSite().getShell(), getString("_UI_FileConflict_label"), - getString("_WARN_FileConflict")); - } - - /** - * This creates a model editor. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public CDOEditor() - { - super(); - initializeEditingDomain(); - } - - /** - * This sets up the editing domain for the model editor. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void initializeEditingDomainGen() - { - // Create an adapter factory that yields item providers. - // - adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - - adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - - // Create the command stack that will notify this editor as commands are executed. - // - BasicCommandStack commandStack = new BasicCommandStack(); - - // Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus. - // - commandStack.addCommandStackListener(new CommandStackListener() - { - public void commandStackChanged(final EventObject event) - { - getContainer().getDisplay().asyncExec(new Runnable() - { - public void run() - { - firePropertyChange(IEditorPart.PROP_DIRTY); - - // Try to select the affected objects. - // - Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand(); - if (mostRecentCommand != null) - { - setSelectionToViewer(mostRecentCommand.getAffectedObjects()); - } - if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) - { - propertySheetPage.refresh(); - } - } - }); - } - }); - - // Create the editing domain with a special command stack. - // - editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new HashMap<Resource, Boolean>()); - } - - /** - * @ADDED - */ - protected void initializeEditingDomain() - { - ComposedAdapterFactory.Descriptor.Registry registry = EMFEditPlugin.getComposedAdapterFactoryDescriptorRegistry(); - adapterFactory = new ComposedAdapterFactory(registry); - adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - } - - /** - * This is here for the listener to be able to call it. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected void firePropertyChange(int action) - { - super.firePropertyChange(action); - } - - /** - * This sets the selection into whichever viewer is active. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setSelectionToViewer(Collection<?> collection) - { - final Collection<?> theSelection = collection; - // Make sure it's okay. - // - if (theSelection != null && !theSelection.isEmpty()) - { - // I don't know if this should be run this deferred - // because we might have to give the editor a chance to process the viewer update events - // and hence to update the views first. - // - // - Runnable runnable = new Runnable() - { - public void run() - { - // Try to select the items in the current content viewer of the editor. - // - if (currentViewer != null) - { - currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true); - } - } - }; - runnable.run(); - } - } - - /** - * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. This is important for - * implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting - * {@link org.eclipse.emf.edit.ui.action.CommandAction}. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EditingDomain getEditingDomain() - { - return editingDomain; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider - { - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object[] getElements(Object object) - { - Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object[] getChildren(Object object) - { - Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean hasChildren(Object object) - { - Object parent = super.getParent(object); - return parent != null; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object getParent(Object object) - { - return null; - } - } - - /** - * This makes sure that one content viewer, either for the current page or the outline view, if it has focus, is the - * current one. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setCurrentViewer(Viewer viewer) - { - // If it is changing... - // - if (currentViewer != viewer) - { - if (selectionChangedListener == null) - { - // Create the listener on demand. - // - selectionChangedListener = new ISelectionChangedListener() - { - // This just notifies those things that are affected by the section. - // - public void selectionChanged(SelectionChangedEvent selectionChangedEvent) - { - setSelection(selectionChangedEvent.getSelection()); - } - }; - } - - // Stop listening to the old one. - // - if (currentViewer != null) - { - currentViewer.removeSelectionChangedListener(selectionChangedListener); - } - - // Start listening to the new one. - // - if (viewer != null) - { - viewer.addSelectionChangedListener(selectionChangedListener); - } - - // Remember it. - // - currentViewer = viewer; - - // Set the editors selection based on the current viewer's selection. - // - setSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection()); - } - } - - /** - * This returns the viewer as required by the {@link IViewerProvider} interface. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - public Viewer getViewer() - { - return currentViewer; - } - - /** - * This creates a context menu for the viewer and adds a listener as well registering the menu for extension. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void createContextMenuFor(StructuredViewer viewer) - { - MenuManager contextMenu = new MenuManager("#PopUp"); - contextMenu.add(new Separator("additions")); - contextMenu.setRemoveAllWhenShown(true); - contextMenu.addMenuListener(this); - Menu menu = contextMenu.createContextMenu(viewer.getControl()); - viewer.getControl().setMenu(menu); - getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); - - int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; - Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance() }; - viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); - viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer)); - } - - /** - * @ADDED - */ - public CDOView getView() - { - return view; - } - - /** - * This is the method called to load a resource into the editing domain's resource set based on the editor's input. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void createModelGen() - { - URI resourceURI = EditUIUtil.getURI(getEditorInput()); - Exception exception = null; - Resource resource = null; - try - { - // Load the resource through the editing domain. - // - resource = editingDomain.getResourceSet().getResource(resourceURI, true); - } - catch (Exception e) - { - exception = e; - resource = editingDomain.getResourceSet().getResource(resourceURI, false); - } - - Diagnostic diagnostic = analyzeResourceProblems(resource, exception); - if (diagnostic.getSeverity() != Diagnostic.OK) - { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter); - } - - /** - * @ADDED - */ - public void createModel() - { - try - { - CDOEditorInput editorInput = (CDOEditorInput)getEditorInput(); - view = editorInput.getView(); - - // TODO Check if a CommandStack is needed - BasicCommandStack commandStack = new BasicCommandStack(); - commandStack.addCommandStackListener(new CommandStackListener() - { - public void commandStackChanged(final EventObject event) - { - getContainer().getDisplay().asyncExec(new Runnable() - { - public void run() - { - Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand(); - if (mostRecentCommand != null) - { - setSelectionToViewer(mostRecentCommand.getAffectedObjects()); - } - if (propertySheetPage != null && !propertySheetPage.getControl().isDisposed()) - { - propertySheetPage.refresh(); - } - } - }); - } - }); - - ResourceSet resourceSet = view.getResourceSet(); - editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, resourceSet); - - String resourcePath = editorInput.getResourcePath(); - if (resourcePath == null) - { - viewerInput = resourceSet; - } - else - { - URI resourceURI = CDOUtil.createResourceURI(resourcePath); - viewerInput = resourceSet.getResource(resourceURI, true); - } - - // resourceSet.eAdapters().add(problemIndicationAdapter); - } - catch (RuntimeException ex) - { - ex.printStackTrace(); - throw ex; - } - } - - /** - * Returns a diagnostic describing the errors and warnings listed in the resource and the specified exception (if - * any). <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) - { - if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) - { - BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.cdo.ui.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object)resource : exception }); - basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); - return basicDiagnostic; - } - else if (exception != null) - { - return new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.cdo.ui.editor", 0, getString( - "_UI_CreateModelError_message", resource.getURI()), new Object[] { exception }); - } - else - { - return Diagnostic.OK_INSTANCE; - } - } - - /** - * This is the method used by the framework to install your own controls. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - public void createPagesGen() - { - // Creates the model from the editor input - // - createModel(); - - // Only creates the other pages if there is something that can be edited - // - if (!getEditingDomain().getResourceSet().getResources().isEmpty()) - { - // Create a page for the selection tree view. - // - Tree tree = new Tree(getContainer(), SWT.MULTI); - selectionViewer = new TreeViewer(tree); - setCurrentViewer(selectionViewer); - - selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - selectionViewer.setInput(editingDomain.getResourceSet()); - selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); - - new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory); - - createContextMenuFor(selectionViewer); - int pageIndex = addPage(tree); - setPageText(pageIndex, getString("_UI_SelectionPage_label")); - - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - setActivePage(0); - } - }); - } - - // Ensures that this editor will only display the page's tab - // area if there are more than one page - // - getContainer().addControlListener(new ControlAdapter() - { - boolean guard = false; - - @Override - public void controlResized(ControlEvent event) - { - if (!guard) - { - guard = true; - hideTabs(); - guard = false; - } - } - }); - - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - updateProblemIndication(); - } - }); - } - - /** - * @ADDED - */ - @Override - public void createPages() - { - try - { - // Creates the model from the editor input - // - createModel(); - - // Create a page for the selection tree view. - // - Tree tree = new Tree(getContainer(), SWT.MULTI); - selectionViewer = new TreeViewer(tree); - setCurrentViewer(selectionViewer); - - selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - selectionViewer.setLabelProvider(new CDOLabelProvider(adapterFactory, view, selectionViewer)); - selectionViewer.setInput(viewerInput); - // selectionViewer.setSelection(new StructuredSelection(viewerInput), - // true); - - new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory); - - createContextMenuFor(selectionViewer); - int pageIndex = addPage(tree); - setPageText(pageIndex, getString("_UI_SelectionPage_label")); - - setActivePage(0); - - // Ensures that this editor will only display the page's tab - // area if there are more than one page - // - getContainer().addControlListener(new ControlAdapter() - { - boolean guard = false; - - @Override - public void controlResized(ControlEvent event) - { - if (!guard) - { - guard = true; - hideTabs(); - guard = false; - } - } - }); - - updateProblemIndication(); - eventHandler = new CDOEventHandler(view, selectionViewer) - { - @Override - protected void objectInvalidated(InternalCDOObject cdoObject) - { - if (cdoObject instanceof CDOLegacyImpl) - { - CDOStateMachine.INSTANCE.read(cdoObject); - } - } - - @Override - protected void viewConflict(final CDOObject conflictingObject, boolean firstConflict) - { - refreshViewer(conflictingObject); - } - - @Override - protected void viewClosed() - { - closeEditor(); - } - - @Override - protected void viewDirtyStateChanged() - { - if (viewerInput instanceof CDOResource) - { - CDOResource resource = (CDOResource)viewerInput; - if (!view.isObjectRegistered(resource.cdoID())) - { - closeEditor(); - return; - } - } - - fireDirtyPropertyChange(); - } - }; - } - catch (RuntimeException ex) - { - OM.LOG.error(ex); - throw ex; - } - } - - /** - * If there is just one page in the multi-page editor part, this hides the single tab at the bottom. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void hideTabs() - { - if (getPageCount() <= 1) - { - setPageText(0, ""); - if (getContainer() instanceof CTabFolder) - { - ((CTabFolder)getContainer()).setTabHeight(1); - Point point = getContainer().getSize(); - getContainer().setSize(point.x, point.y + 6); - } - } - } - - /** - * If there is more than one page in the multi-page editor part, this shows the tabs at the bottom. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void showTabs() - { - if (getPageCount() > 1) - { - setPageText(0, getString("_UI_SelectionPage_label")); - if (getContainer() instanceof CTabFolder) - { - ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT); - Point point = getContainer().getSize(); - getContainer().setSize(point.x, point.y - 6); - } - } - } - - /** - * This is used to track the active viewer. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected void pageChange(int pageIndex) - { - super.pageChange(pageIndex); - - if (contentOutlinePage != null) - { - handleContentOutlineSelection(contentOutlinePage.getSelection()); - } - } - - /** - * This is how the framework determines which interfaces we implement. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public Object getAdapter(Class key) - { - if (key.equals(IContentOutlinePage.class)) - { - return showOutlineView() ? getContentOutlinePage() : null; - } - else if (key.equals(IPropertySheetPage.class)) - { - return getPropertySheetPage(); - } - else if (key.equals(IGotoMarker.class)) - { - return this; - } - else - { - return super.getAdapter(key); - } - } - - /** - * This accesses a cached version of the content outliner. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContentOutlinePage getContentOutlinePage() - { - if (contentOutlinePage == null) - { - // The content outline is just a tree. - // - class MyContentOutlinePage extends ContentOutlinePage - { - @Override - public void createControl(Composite parent) - { - super.createControl(parent); - contentOutlineViewer = getTreeViewer(); - contentOutlineViewer.addSelectionChangedListener(this); - - // Set up the tree viewer. - // - contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); - contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); - contentOutlineViewer.setInput(editingDomain.getResourceSet()); - - // Make sure our popups work. - // - createContextMenuFor(contentOutlineViewer); - - if (!editingDomain.getResourceSet().getResources().isEmpty()) - { - // Select the root object in the view. - // - contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources() - .get(0)), true); - } - } - - @Override - public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, - IStatusLineManager statusLineManager) - { - super.makeContributions(menuManager, toolBarManager, statusLineManager); - contentOutlineStatusLineManager = statusLineManager; - } - - @Override - public void setActionBars(IActionBars actionBars) - { - super.setActionBars(actionBars); - getActionBarContributor().shareGlobalActions(this, actionBars); - } - } - - contentOutlinePage = new MyContentOutlinePage(); - - // Listen to selection so that we can handle it is a special way. - // - contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() - { - // This ensures that we handle selections correctly. - // - public void selectionChanged(SelectionChangedEvent event) - { - handleContentOutlineSelection(event.getSelection()); - } - }); - } - - return contentOutlinePage; - } - - /** - * This accesses a cached version of the property sheet. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IPropertySheetPage getPropertySheetPage() - { - if (propertySheetPage == null) - { - propertySheetPage = new ExtendedPropertySheetPage(editingDomain) - { - @Override - public void setSelectionToViewer(List<?> selection) - { - CDOEditor.this.setSelectionToViewer(selection); - CDOEditor.this.setFocus(); - } - - @Override - public void setActionBars(IActionBars actionBars) - { - super.setActionBars(actionBars); - getActionBarContributor().shareGlobalActions(this, actionBars); - } - }; - propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory)); - } - - return propertySheetPage; - } - - /** - * This deals with how we want selection in the outliner to affect the other views. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - public void handleContentOutlineSelection(ISelection selection) - { - if (selectionViewer != null && !selection.isEmpty() && selection instanceof IStructuredSelection) - { - Iterator<?> selectedElements = ((IStructuredSelection)selection).iterator(); - if (selectedElements.hasNext()) - { - // Get the first selected element. - // - Object selectedElement = selectedElements.next(); - - ArrayList<Object> selectionList = new ArrayList<Object>(); - selectionList.add(selectedElement); - while (selectedElements.hasNext()) - { - selectionList.add(selectedElements.next()); - } - - // Set the selection to the widget. - // - selectionViewer.setSelection(new StructuredSelection(selectionList)); - } - } - } - - /** - * This is for implementing {@link IEditorPart} and simply tests the command stack. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated NOT - */ - @Override - public boolean isDirty() - { - return view.isDirty(); - } - - /** - * This is for implementing {@link IEditorPart} and simply saves the model file. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - public void doSaveGen(IProgressMonitor progressMonitor) - { - // Save only resources that have actually changed. - // - final Map<Object, Object> saveOptions = new HashMap<Object, Object>(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - - // Do the work within an operation because this is a long running activity that modifies the workbench. - // - WorkspaceModifyOperation operation = new WorkspaceModifyOperation() - { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(IProgressMonitor monitor) - { - // Save the resources to the file system. - // - boolean first = true; - for (Resource resource : editingDomain.getResourceSet().getResources()) - { - if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) - && !editingDomain.isReadOnly(resource)) - { - try - { - long timeStamp = resource.getTimeStamp(); - resource.save(saveOptions); - if (resource.getTimeStamp() != timeStamp) - { - savedResources.add(resource); - } - } - catch (Exception exception) - { - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - first = false; - } - } - } - }; - - updateProblemIndication = false; - try - { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone(); - firePropertyChange(IEditorPart.PROP_DIRTY); - } - catch (Exception exception) - { - // Something went wrong that shouldn't. - // - PluginDelegator.INSTANCE.log(exception); - } - updateProblemIndication = true; - updateProblemIndication(); - } - - /** - * @ADDED - */ - @Override - public void doSave(IProgressMonitor progressMonitor) - { - // Save only resources that have actually changed. - // - final Map<Object, Object> saveOptions = new HashMap<Object, Object>(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - - // Do the work within an operation because this is a long running activity - // that modifies the workbench. - // - WorkspaceModifyOperation operation = new WorkspaceModifyOperation() - { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(IProgressMonitor monitor) - { - // Save the resources to the file system. - // - boolean first = true; - for (Resource resource : editingDomain.getResourceSet().getResources()) - { - if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) - && !editingDomain.isReadOnly(resource)) - { - try - { - savedResources.add(resource); - resource.save(saveOptions); - } - catch (final TransactionException exception) - { - final Shell shell = getSite().getShell(); - shell.getDisplay().syncExec(new Runnable() - { - public void run() - { - CDOTransaction transaction = (CDOTransaction)view; - Dialog dialog = new RollbackTransactionDialog(getEditorSite().getPage(), "Transaction Error", - exception.getMessage(), transaction); - switch (dialog.open()) - { - case RollbackTransactionDialog.REMOTE: - transaction.rollback(true); - break; - case RollbackTransactionDialog.LOCAL: - transaction.rollback(false); - break; - } - } - }); - } - catch (Exception exception) - { - OM.LOG.error(exception); - resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); - } - - first = false; - } - } - } - }; - - updateProblemIndication = false; - try - { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone(); - } - catch (Exception exception) - { - // Something went wrong that shouldn't. - // - PluginDelegator.INSTANCE.log(exception); - } - updateProblemIndication = true; - updateProblemIndication(); - } - - /** - * This returns whether something has been persisted to the URI of the specified resource. The implementation uses the - * URI converter from the editor's resource set to try to open an input stream. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - */ - protected boolean isPersisted(Resource resource) - { - boolean result = false; - try - { - InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI()); - if (stream != null) - { - result = true; - stream.close(); - } - } - catch (IOException e) - { - // Ignore - } - return result; - } - - /** - * This always returns true because it is not currently supported. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public boolean isSaveAsAllowedGen() - { - return true; - } - - /** - * @ADDED - */ - @Override - public boolean isSaveAsAllowed() - { - return false; - } - - /** - * This also changes the editor's input. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void doSaveAs() - { - SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell()); - saveAsDialog.open(); - IPath path = saveAsDialog.getResult(); - if (path != null) - { - IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); - if (file != null) - { - doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file)); - } - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void doSaveAs(URI uri, IEditorInput editorInput) - { - editingDomain.getResourceSet().getResources().get(0).setURI(uri); - setInputWithNotify(editorInput); - setPartName(editorInput.getName()); - IProgressMonitor progressMonitor = getActionBars().getStatusLineManager() != null ? getActionBars() - .getStatusLineManager().getProgressMonitor() : new NullProgressMonitor(); - doSave(progressMonitor); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void gotoMarker(IMarker marker) - { - try - { - if (marker.getType().equals(EValidator.MARKER)) - { - String uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null); - if (uriAttribute != null) - { - URI uri = URI.createURI(uriAttribute); - EObject eObject = editingDomain.getResourceSet().getEObject(uri, true); - if (eObject != null) - { - setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject))); - } - } - } - } - catch (CoreException exception) - { - PluginDelegator.INSTANCE.log(exception); - } - } - - /** - * This is called during startup. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void initGen(IEditorSite site, IEditorInput editorInput) - { - setSite(site); - setInputWithNotify(editorInput); - setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage().addPartListener(partListener); - ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE); - } - - /** - * @ADDED - */ - @Override - public void init(IEditorSite site, IEditorInput editorInput) - { - setSite(site); - setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage().addPartListener(partListener); - setInputWithNotify(editorInput); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void setFocus() - { - getControl(getActivePage()).setFocus(); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void addSelectionChangedListener(ISelectionChangedListener listener) - { - selectionChangedListeners.add(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void removeSelectionChangedListener(ISelectionChangedListener listener) - { - selectionChangedListeners.remove(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISelection getSelection() - { - return editorSelection; - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection. - * Calling this result will notify the listeners. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setSelection(ISelection selection) - { - editorSelection = selection; - - for (ISelectionChangedListener listener : selectionChangedListeners) - { - listener.selectionChanged(new SelectionChangedEvent(this, selection)); - } - setStatusLineManager(selection); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setStatusLineManager(ISelection selection) - { - IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? contentOutlineStatusLineManager - : getActionBars().getStatusLineManager(); - - if (statusLineManager != null) - { - if (selection instanceof IStructuredSelection) - { - Collection<?> collection = ((IStructuredSelection)selection).toList(); - switch (collection.size()) - { - case 0: - { - statusLineManager.setMessage(getString("_UI_NoObjectSelected")); - break; - } - case 1: - { - String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next()); - statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); - break; - } - default: - { - statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); - break; - } - } - } - else - { - statusLineManager.setMessage(""); - } - } - } - - /** - * This looks up a string in the plugin's plugin.properties file. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static String getString(String key) - { - return PluginDelegator.INSTANCE.getString(key); - } - - /** - * This looks up a string in plugin.properties, making a substitution. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static String getString(String key, Object s1) - { - return PluginDelegator.INSTANCE.getString(key, new Object[] { s1 }); - } - - /** - * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions - * from the Edit menu. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void menuAboutToShowGen(IMenuManager menuManager) - { - ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager); - } - - /** - * @ADDED - */ - public void menuAboutToShow(IMenuManager menuManager) - { - menuAboutToShowGen(menuManager); - MenuManager submenuManager = new MenuManager("New Root"); - if (populateNewRoot(submenuManager)) - { - menuManager.insertBefore("edit", submenuManager); - } - - if (OM.TEST_BULK_ADD.isEnabled()) - { - IStructuredSelection sel = (IStructuredSelection)editorSelection; - if (sel.size() == 1) - { - Object element = sel.getFirstElement(); - if (element instanceof EObject) - { - final EObject object = (EObject)element; - final List<EReference> features = new ArrayList<EReference>(); - for (EReference containment : object.eClass().getEAllContainments()) - { - if (containment.isMany()) - { - features.add(containment); - } - } - - if (!features.isEmpty()) - { - final IWorkbenchPage page = getSite().getPage(); - menuManager.insertBefore("edit", new LongRunningAction(page, "Bulk Add" + SafeAction.INTERACTIVE) - { - private EReference feature; - - private int instances; - - @Override - protected void preRun() throws Exception - { - BulkAddDialog dialog = new BulkAddDialog(page, features); - if (dialog.open() == BulkAddDialog.OK) - { - feature = dialog.getFeature(); - instances = dialog.getInstances(); - } - else - { - cancel(); - } - } - - @SuppressWarnings("unchecked") - @Override - protected void doRun() throws Exception - { - List<EObject> children = new ArrayList<EObject>(); - for (int i = 0; i < instances; i++) - { - EObject child = EcoreUtil.create(feature.getEReferenceType()); - children.add(child); - } - - List<EObject> list = (EList<EObject>)object.eGet(feature); - list.addAll(children); - } - }); - } - } - } - } - } - - /** - * @ADDED - */ - protected boolean populateNewRoot(MenuManager menuManager) - { - boolean populated = false; - List<CDOPackage> cdoPackages = Arrays.asList(view.getSession().getPackageManager().getPackages()); - Collections.sort(cdoPackages); - - for (CDOPackage cdoPackage : cdoPackages) - { - List<CDOClass> cdoClasses = Arrays.asList(cdoPackage.getConcreteClasses()); - Collections.sort(cdoClasses); - // TODO Sorting by class name may not have the desired effect if the labels are computed by an ItemProvider! - - if (!cdoClasses.isEmpty()) - { - MenuManager submenuManager = new MenuManager(cdoPackage.getPackageURI()); - for (CDOClass cdoClass : cdoClasses) - { - if (!cdoClass.isResource()) - { - // TODO Optimize/cache this? - CreateRootAction action = new CreateRootAction(cdoClass); - submenuManager.add(action); - populated = true; - } - } - - menuManager.add(submenuManager); - } - } - - return populated; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EditingDomainActionBarContributor getActionBarContributor() - { - return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IActionBars getActionBars() - { - return getActionBarContributor().getActionBars(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public AdapterFactory getAdapterFactory() - { - return adapterFactory; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void disposeGen() - { - updateProblemIndication = false; - - ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); - - getSite().getPage().removePartListener(partListener); - - adapterFactory.dispose(); - - if (getActionBarContributor().getActiveEditor() == this) - { - getActionBarContributor().setActiveEditor(null); - } - - if (propertySheetPage != null) - { - propertySheetPage.dispose(); - } - - if (contentOutlinePage != null) - { - contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * @ADDED - */ - @Override - public void dispose() - { - updateProblemIndication = false; - eventHandler.dispose(); - getSite().getPage().removePartListener(partListener); - adapterFactory.dispose(); - - if (getActionBarContributor().getActiveEditor() == this) - { - getActionBarContributor().setActiveEditor(null); - } - - if (propertySheetPage != null) - { - propertySheetPage.dispose(); - } - - if (contentOutlinePage != null) - { - contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * Returns whether the outline view should be presented to the user. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected boolean showOutlineView() - { - return false; - } - - /** - * @ADDED - */ - protected void fireDirtyPropertyChange() - { - try - { - getSite().getShell().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - firePropertyChange(IEditorPart.PROP_DIRTY); - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - /** - * @ADDED - */ - protected void closeEditor() - { - try - { - getSite().getShell().getDisplay().asyncExec(new Runnable() - { - public void run() - { - try - { - getSite().getPage().closeEditor(CDOEditor.this, false); - CDOEditor.this.dispose(); - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - /** - * @ADDED - */ - public void refreshViewer(final Object element) - { - try - { - selectionViewer.getControl().getDisplay().asyncExec(new Runnable() - { - public void run() - { - try - { - if (element == null) - { - selectionViewer.refresh(true); - } - else - { - selectionViewer.refresh(element, true); - } - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - /** - * @ADDED - */ - public static void open(final IWorkbenchPage page, final CDOView view, final String resourcePath) - { - Display display = page.getWorkbenchWindow().getShell().getDisplay(); - display.asyncExec(new Runnable() - { - public void run() - { - try - { - IEditorReference[] references = find(page, view, resourcePath); - if (references.length != 0) - { - IEditorPart editor = references[0].getEditor(true); - page.activate(editor); - } - else - { - IEditorInput input = new CDOEditorInput(view, resourcePath); - page.openEditor(input, EDITOR_ID); - } - } - catch (Exception ex) - { - OM.LOG.error(ex); - } - } - }); - } - - /** - * @ADDED - */ - public static IEditorReference[] find(IWorkbenchPage page, CDOView view, String resourcePath) - { - List<IEditorReference> result = new ArrayList<IEditorReference>(); - IEditorReference[] editorReferences = page.getEditorReferences(); - for (IEditorReference editorReference : editorReferences) - { - try - { - if (ObjectUtil.equals(editorReference.getId(), EDITOR_ID)) - { - IEditorInput editorInput = editorReference.getEditorInput(); - if (editorInput instanceof CDOEditorInput) - { - CDOEditorInput cdoInput = (CDOEditorInput)editorInput; - if (cdoInput.getView() == view) - { - if (resourcePath == null || ObjectUtil.equals(cdoInput.getResourcePath(), resourcePath)) - { - result.add(editorReference); - } - } - } - } - } - catch (PartInitException ex) - { - OM.LOG.error(ex); - } - } - - return result.toArray(new IEditorReference[result.size()]); - } - - /** - * @ADDED - */ - public static void refresh(IWorkbenchPage page, CDOView view) - { - IEditorReference[] references = find(page, view, null); - for (IEditorReference reference : references) - { - CDOEditor editor = (CDOEditor)reference.getEditor(false); - if (editor != null) - { - editor.refreshViewer(null); - } - } - } - - /** - * @author Eike Stepper - * @ADDED - */ - private final class CreateRootAction extends LongRunningAction - { - private CDOClass cdoClass; - - private CreateRootAction(CDOClass cdoClass) - { - super(getEditorSite().getPage(), cdoClass.getName(), SharedIcons.getDescriptor(SharedIcons.OBJ_ECLASS)); - this.cdoClass = cdoClass; - } - - @Override - protected void doRun() throws Exception - { - Resource resource = null; - IStructuredSelection ssel = (IStructuredSelection)editorSelection; - if (ssel.isEmpty()) - { - if (viewerInput instanceof Resource) - { - resource = (Resource)viewerInput; - } - } - else if (ssel.size() == 1) - { - Object element = ssel.getFirstElement(); - if (element instanceof Resource) - { - resource = (Resource)element; - } - else if (element instanceof EObject) - { - resource = ((EObject)element).eResource(); - } - } - - if (resource != null) - { - InternalCDOObject object = ((CDOTransactionImpl)view).newInstance(cdoClass); - resource.getContents().add(object.cdoInternalInstance()); - } - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditorInput.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditorInput.java deleted file mode 100644 index bc48e747f2..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/CDOEditorInput.java +++ /dev/null @@ -1,121 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.editor; - -import org.eclipse.emf.cdo.CDOAudit; -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; - -import org.eclipse.net4j.connector.IConnector; - -import org.eclipse.core.runtime.Path; -import org.eclipse.core.runtime.PlatformObject; -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IPersistableElement; - -import java.text.MessageFormat; - -/** - * @author Eike Stepper - */ -public class CDOEditorInput extends PlatformObject implements IEditorInput -{ - private CDOView view; - - private String resourcePath; - - public CDOEditorInput(CDOView view, String resourcePath) - { - this.view = view; - this.resourcePath = resourcePath; - } - - public CDOView getView() - { - return view; - } - - public String getResourcePath() - { - return resourcePath; - } - - public boolean exists() - { - return true; - } - - public ImageDescriptor getImageDescriptor() - { - switch (view.getViewType()) - { - case TRANSACTION: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EDITOR); - case READONLY: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EDITOR_READONLY); - case AUDIT: - return SharedIcons.getDescriptor(SharedIcons.OBJ_EDITOR_HISTORICAL); - } - - return null; - } - - public String getName() - { - if (resourcePath != null) - { - return new Path(resourcePath).lastSegment(); - } - - return view.getSession().getRepositoryName(); - } - - public IPersistableElement getPersistable() - { - return null; - } - - public String getToolTipText() - { - CDOSession session = view.getSession(); - IConnector connector = session.getConnector(); - String repositoryName = session.getRepositoryName(); - - StringBuilder builder = new StringBuilder(); - builder.append(connector.getURL()); - builder.append("/"); - builder.append(repositoryName); - if (resourcePath != null) - { - builder.append(resourcePath); - } - - builder.append(" ["); - builder.append(session.getSessionID()); - builder.append(":"); - builder.append(view.getViewID()); - builder.append("]"); - - if (view.getViewType() != CDOView.Type.TRANSACTION) - { - builder.append(" readonly"); - } - - if (view instanceof CDOAudit) - { - builder.append(MessageFormat.format(" {0,date} {0,time}", ((CDOAudit)view).getTimeStamp())); - } - - return builder.toString(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/PluginDelegator.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/PluginDelegator.java deleted file mode 100644 index 985d076563..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/editor/PluginDelegator.java +++ /dev/null @@ -1,110 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.editor; - -import org.eclipse.emf.cdo.internal.ui.bundle.OM; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.ui.EclipseUIPlugin; -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * @author Eike Stepper - * @generated - */ -public final class PluginDelegator extends EMFPlugin -{ - /** - * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static final PluginDelegator INSTANCE = new PluginDelegator(); - - /** - * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public PluginDelegator() - { - super(new ResourceLocator[] {}); - } - - /** - * @ADDED - */ - @Override - public void log(Object logEntry) - { - if (logEntry instanceof Throwable) - { - OM.LOG.error((Throwable)logEntry); - } - else - { - OM.LOG.info(logEntry.toString()); - } - } - - /** - * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() - { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() - { - return plugin; - } - - /** - * The actual implementation of the Eclipse <b>Plugin</b>. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static class Implementation extends EclipseUIPlugin - { - /** - * Creates an instance. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Implementation() - { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java deleted file mode 100644 index e5f41a0a91..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java +++ /dev/null @@ -1,148 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.preferences; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.common.revision.CDORevision; - -import org.eclipse.net4j.buffer.BufferInputStream; -import org.eclipse.net4j.util.ui.UIUtil; -import org.eclipse.net4j.util.ui.prefs.OMPreferencePage; -import org.eclipse.net4j.util.ui.widgets.TextAndDisable; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Text; - -/** - * @author Eike Stepper - */ -public class CDOPreferencePage extends OMPreferencePage -{ - private Text repositoryName; - - private Text userName; - - private Text connectorDescription; - - private TextAndDisable referenceChunkSize; - - private TextAndDisable preloadChunkSize; - - private Button invalidationNotifications; - - private TextAndDisable commitTimeout; - - public CDOPreferencePage() - { - super(org.eclipse.emf.internal.cdo.bundle.OM.PREFS); - } - - @Override - protected Control createUI(Composite parent) - { - Composite composite = UIUtil.createGridComposite(parent, 1); - ((GridLayout)composite.getLayout()).verticalSpacing = 5; - composite.setLayoutData(UIUtil.createGridData()); - - Group sessionGroup = new Group(composite, SWT.NONE); - sessionGroup.setLayout(new GridLayout(2, false)); - sessionGroup.setText("Session Defaults"); - sessionGroup.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(sessionGroup, SWT.NONE).setText("Repository name:"); - repositoryName = new Text(sessionGroup, SWT.BORDER); - repositoryName.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(sessionGroup, SWT.NONE).setText("User name:"); - userName = new Text(sessionGroup, SWT.BORDER); - userName.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(sessionGroup, SWT.NONE).setText("Connector description:"); - connectorDescription = new Text(sessionGroup, SWT.BORDER); - connectorDescription.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(sessionGroup, SWT.NONE).setText("Reference chunk size:"); - referenceChunkSize = new TextAndDisable(sessionGroup, SWT.BORDER, String.valueOf(CDORevision.UNCHUNKED)); - referenceChunkSize.setLayoutData(UIUtil.createGridData(true, false)); - - Group viewGroup = new Group(composite, SWT.NONE); - viewGroup.setLayout(new GridLayout(2, false)); - viewGroup.setText("View Defaults"); - viewGroup.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(viewGroup, SWT.NONE).setText("Preload chunk size:"); - preloadChunkSize = new TextAndDisable(viewGroup, SWT.BORDER, String.valueOf(CDOView.NO_PRELOAD)); - preloadChunkSize.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(viewGroup, SWT.NONE).setText("EMF invalidation notifications:"); - invalidationNotifications = new Button(viewGroup, SWT.CHECK); - - Group transactionGroup = new Group(composite, SWT.NONE); - transactionGroup.setLayout(new GridLayout(2, false)); - transactionGroup.setText("Transaction Defaults"); - transactionGroup.setLayoutData(UIUtil.createGridData(true, false)); - - new Label(transactionGroup, SWT.NONE).setText("Commit timeout (millis):"); - commitTimeout = new TextAndDisable(transactionGroup, SWT.BORDER, String.valueOf(BufferInputStream.NO_TIMEOUT)) - { - @Override - protected GridData createTextLayoutData() - { - GridData gd = super.createTextLayoutData(); - gd.widthHint = 64; - return gd; - } - }; - commitTimeout.setLayoutData(UIUtil.createGridData(true, false)); - - initValues(); - return composite; - } - - protected void initValues() - { - repositoryName.setText(org.eclipse.emf.internal.cdo.bundle.OM.PREF_REPOSITORY_NAME.getValue()); - userName.setText(org.eclipse.emf.internal.cdo.bundle.OM.PREF_USER_NAME.getValue()); - connectorDescription.setText(org.eclipse.emf.internal.cdo.bundle.OM.PREF_CONNECTOR_DESCRIPTION.getValue()); - referenceChunkSize.setValue(String.valueOf(org.eclipse.emf.internal.cdo.bundle.OM.PREF_REFERENCE_CHUNK_SIZE - .getValue())); - preloadChunkSize.setValue(String - .valueOf(org.eclipse.emf.internal.cdo.bundle.OM.PREF_LOAD_REVISION_COLLECTION_CHUNK_SIZE.getValue())); - invalidationNotifications - .setSelection(org.eclipse.emf.internal.cdo.bundle.OM.PREF_ENABLE_INVALIDATION_NOTIFICATIONS.getValue()); - commitTimeout.setValue(String - .valueOf(org.eclipse.emf.internal.cdo.bundle.OM.PREF_DEFAULT_COMMIT_TIMEOUT.getValue())); - } - - @Override - public boolean performOk() - { - org.eclipse.emf.internal.cdo.bundle.OM.PREF_REPOSITORY_NAME.setValue(repositoryName.getText()); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_USER_NAME.setValue(userName.getText()); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_CONNECTOR_DESCRIPTION.setValue(connectorDescription.getText()); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_REFERENCE_CHUNK_SIZE.setValue(Integer.parseInt(referenceChunkSize - .getValue())); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_LOAD_REVISION_COLLECTION_CHUNK_SIZE.setValue(Integer - .parseInt(preloadChunkSize.getValue())); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_ENABLE_INVALIDATION_NOTIFICATIONS.setValue(invalidationNotifications - .getSelection()); - org.eclipse.emf.internal.cdo.bundle.OM.PREF_DEFAULT_COMMIT_TIMEOUT.setValue(Long - .parseLong(commitTimeout.getValue())); - return super.performOk(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOUIPreferencePage.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOUIPreferencePage.java deleted file mode 100644 index ea55fbfe88..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOUIPreferencePage.java +++ /dev/null @@ -1,82 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.preferences; - -import org.eclipse.emf.cdo.internal.ui.bundle.OM; -import org.eclipse.emf.cdo.ui.CDOLabelProvider; - -import org.eclipse.net4j.util.ui.UIUtil; -import org.eclipse.net4j.util.ui.prefs.OMPreferencePage; -import org.eclipse.net4j.util.ui.widgets.TextAndDisable; - -import org.eclipse.jface.fieldassist.IContentProposalProvider; -import org.eclipse.jface.fieldassist.IControlContentAdapter; -import org.eclipse.jface.fieldassist.SimpleContentProposalProvider; -import org.eclipse.jface.fieldassist.TextContentAdapter; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter; - -/** - * @author Eike Stepper - */ -public class CDOUIPreferencePage extends OMPreferencePage -{ - private TextAndDisable decoration; - - public CDOUIPreferencePage() - { - super(OM.PREFS); - } - - @Override - protected Control createUI(Composite parent) - { - Composite composite = UIUtil.createGridComposite(parent, 2); - composite.setLayoutData(UIUtil.createGridData()); - - new Label(composite, SWT.NONE).setText("Label decoration:"); - decoration = new TextAndDisable(composite, SWT.BORDER, CDOLabelProvider.NO_DECORATION) - { - @Override - protected GridData createTextLayoutData() - { - return UIUtil.createGridData(true, false); - } - }; - decoration.setLayoutData(UIUtil.createGridData(true, false)); - - Text text = decoration.getText(); - IControlContentAdapter contentAdapter = new TextContentAdapter(); - IContentProposalProvider provider = new SimpleContentProposalProvider(CDOLabelProvider.DECORATION_PROPOSALS); - new ContentAssistCommandAdapter(text, contentAdapter, provider, null, new char[] { '$' }, true); - UIUtil.addDecorationMargin(text); - - initValues(); - return composite; - } - - protected void initValues() - { - decoration.setValue(OM.PREF_LABEL_DECORATION.getValue()); - } - - @Override - public boolean performOk() - { - OM.PREF_LABEL_DECORATION.setValue(decoration.getValue()); - return super.performOk(); - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/views/CDOSessionsView.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/views/CDOSessionsView.java deleted file mode 100644 index ed4a3a919a..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/views/CDOSessionsView.java +++ /dev/null @@ -1,88 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.internal.ui.views; - -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.internal.ui.actions.OpenSessionAction; -import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; -import org.eclipse.emf.cdo.ui.CDOItemProvider; -import org.eclipse.emf.cdo.ui.CDOViewHistoryEntry; - -import org.eclipse.net4j.util.container.IContainer; -import org.eclipse.net4j.util.container.IManagedContainer; -import org.eclipse.net4j.util.container.IPluginContainer; -import org.eclipse.net4j.util.ui.views.ContainerItemProvider; -import org.eclipse.net4j.util.ui.views.ContainerView; -import org.eclipse.net4j.util.ui.views.IElementFilter; - -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.ui.IWorkbenchPage; - -public class CDOSessionsView extends ContainerView -{ - private OpenSessionAction openSessionAction; - - public CDOSessionsView() - { - } - - @Override - protected Control createUI(Composite parent) - { - openSessionAction = new OpenSessionAction(getViewSite().getPage()); - return super.createUI(parent); - } - - @Override - protected IManagedContainer getContainer() - { - return IPluginContainer.INSTANCE; - } - - @Override - protected ContainerItemProvider<IContainer<Object>> createContainerItemProvider() - { - return new CDOItemProvider(getSite().getPage(), new IElementFilter() - { - public boolean filter(Object element) - { - return element instanceof CDOSession; - } - }); - } - - @Override - protected void fillLocalToolBar(IToolBarManager manager) - { - manager.add(openSessionAction); - super.fillLocalToolBar(manager); - } - - @Override - protected void doubleClicked(Object object) - { - if (object instanceof CDOViewHistoryEntry) - { - CDOViewHistoryEntry entry = (CDOViewHistoryEntry)object; - IWorkbenchPage page = getViewSite().getPage(); - CDOView view = entry.getView(); - String resourcePath = entry.getResourcePath(); - CDOEditor.open(page, view, resourcePath); - } - else - { - super.doubleClicked(object); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOEventHandler.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOEventHandler.java deleted file mode 100644 index d2f37e7b09..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOEventHandler.java +++ /dev/null @@ -1,198 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.emf.cdo.CDOObject; -import org.eclipse.emf.cdo.CDOSessionInvalidationEvent; -import org.eclipse.emf.cdo.CDOTransactionConflictEvent; -import org.eclipse.emf.cdo.CDOTransactionFinishedEvent; -import org.eclipse.emf.cdo.CDOTransactionStartedEvent; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.common.id.CDOID; -import org.eclipse.emf.cdo.common.id.CDOIDAndVersion; -import org.eclipse.emf.cdo.internal.ui.ItemsProcessor; - -import org.eclipse.emf.internal.cdo.InternalCDOObject; - -import org.eclipse.net4j.util.container.IContainerDelta; -import org.eclipse.net4j.util.container.IContainerEvent; -import org.eclipse.net4j.util.event.IEvent; -import org.eclipse.net4j.util.event.IListener; -import org.eclipse.net4j.util.lifecycle.ILifecycleEvent; - -import org.eclipse.jface.viewers.TreeViewer; - -import java.util.HashSet; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public class CDOEventHandler -{ - private CDOView view; - - private TreeViewer treeViewer; - - private IListener sessionListener = new IListener() - { - public void notifyEvent(IEvent event) - { - if (event instanceof CDOSessionInvalidationEvent) - { - CDOSessionInvalidationEvent e = (CDOSessionInvalidationEvent)event; - if (e.getView() != view) - { - sessionInvalidated(e.getDirtyOIDs()); - } - } - else if (event instanceof IContainerEvent) - { - IContainerEvent<?> e = (IContainerEvent<?>)event; - if (e.getDeltaElement() == view && e.getDeltaKind() == IContainerDelta.Kind.REMOVED) - { - viewClosed(); - } - } - else if (event instanceof ILifecycleEvent) - { - ILifecycleEvent e = (ILifecycleEvent)event; - if (e.getKind() == ILifecycleEvent.Kind.DEACTIVATED) - { - viewClosed(); - } - } - } - }; - - private IListener viewListener = new IListener() - { - public void notifyEvent(IEvent event) - { - if (event instanceof CDOTransactionFinishedEvent) - { - // CDOTransactionFinishedEvent e = (CDOTransactionFinishedEvent)event; - // if (e.getType() == CDOTransactionFinishedEvent.Type.COMMITTED) - // { - // Map<CDOID, CDOID> idMappings = e.getIDMappings(); - // HashSet<CDOID> newOIDs = new HashSet<CDOID>(idMappings.values()); - // new ItemsProcessor(view) - // { - // @Override - // protected void processCDOObject(TreeViewer viewer, InternalCDOObject cdoObject) - // { - // viewer.update(cdoObject.cdoInternalInstance(), null); - // } - // }.processCDOObjects(treeViewer, newOIDs); - // } - // else - { - try - { - treeViewer.getControl().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - treeViewer.refresh(true); - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - viewDirtyStateChanged(); - } - else if (event instanceof CDOTransactionStartedEvent) - { - viewDirtyStateChanged(); - } - else if (event instanceof CDOTransactionConflictEvent) - { - CDOTransactionConflictEvent e = (CDOTransactionConflictEvent)event; - viewConflict(e.getConflictingObject(), e.isFirstConflict()); - } - } - }; - - public CDOEventHandler(CDOView view, TreeViewer treeViewer) - { - this.view = view; - this.treeViewer = treeViewer; - view.getSession().addListener(sessionListener); - view.addListener(viewListener); - } - - public void dispose() - { - view.removeListener(viewListener); - view.getSession().removeListener(sessionListener); - treeViewer = null; - view = null; - } - - public CDOView getView() - { - return view; - } - - public TreeViewer getTreeViewer() - { - return treeViewer; - } - - public void setViewer(TreeViewer viewer) - { - treeViewer = viewer; - } - - protected void sessionInvalidated(Set<CDOIDAndVersion> dirtyOIDs) - { - Set<CDOID> idsWithoutVersion = new HashSet<CDOID>(); - for (CDOIDAndVersion idAandVersion : dirtyOIDs) - { - idsWithoutVersion.add(idAandVersion.getID()); - } - - new ItemsProcessor(view) - { - @Override - protected void processCDOObject(TreeViewer viewer, InternalCDOObject cdoObject) - { - objectInvalidated(cdoObject); - viewer.refresh(cdoObject.cdoInternalInstance(), true); - } - }.processCDOObjects(treeViewer, idsWithoutVersion); - } - - protected void objectInvalidated(InternalCDOObject cdoObject) - { - } - - protected void viewDirtyStateChanged() - { - } - - protected void viewConflict(CDOObject conflictingObject, boolean firstConflict) - { - } - - protected void viewClosed() - { - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java deleted file mode 100644 index 6bc1cc9808..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java +++ /dev/null @@ -1,399 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.emf.cdo.CDOAudit; -import org.eclipse.emf.cdo.CDOSession; -import org.eclipse.emf.cdo.CDOTransaction; -import org.eclipse.emf.cdo.CDOTransactionFinishedEvent; -import org.eclipse.emf.cdo.CDOTransactionStartedEvent; -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.CDOViewEvent; -import org.eclipse.emf.cdo.internal.ui.SharedIcons; -import org.eclipse.emf.cdo.internal.ui.actions.CloseSessionAction; -import org.eclipse.emf.cdo.internal.ui.actions.CloseViewAction; -import org.eclipse.emf.cdo.internal.ui.actions.CommitTransactionAction; -import org.eclipse.emf.cdo.internal.ui.actions.CreateResourceAction; -import org.eclipse.emf.cdo.internal.ui.actions.ImportResourceAction; -import org.eclipse.emf.cdo.internal.ui.actions.LoadResourceAction; -import org.eclipse.emf.cdo.internal.ui.actions.ManagePackagesAction; -import org.eclipse.emf.cdo.internal.ui.actions.OpenAuditAction; -import org.eclipse.emf.cdo.internal.ui.actions.OpenTransactionAction; -import org.eclipse.emf.cdo.internal.ui.actions.OpenViewAction; -import org.eclipse.emf.cdo.internal.ui.actions.OpenViewEditorAction; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterFilesystemPackagesAction; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterSinglePackageAction; -import org.eclipse.emf.cdo.internal.ui.actions.RegisterWorkspacePackagesAction; -import org.eclipse.emf.cdo.internal.ui.actions.ReloadViewAction; -import org.eclipse.emf.cdo.internal.ui.actions.RollbackTransactionAction; -import org.eclipse.emf.cdo.util.CDOPackageType; -import org.eclipse.emf.cdo.util.CDOPackageTypeRegistry; - -import org.eclipse.net4j.connector.IConnector; -import org.eclipse.net4j.util.container.IContainer; -import org.eclipse.net4j.util.event.IEvent; -import org.eclipse.net4j.util.event.IListener; -import org.eclipse.net4j.util.ui.actions.SafeAction; -import org.eclipse.net4j.util.ui.views.ContainerItemProvider; -import org.eclipse.net4j.util.ui.views.IElementFilter; - -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.viewers.ITreeSelection; -import org.eclipse.swt.graphics.Image; -import org.eclipse.ui.IWorkbenchPage; - -import java.text.MessageFormat; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * @author Eike Stepper - */ -public class CDOItemProvider extends ContainerItemProvider<IContainer<Object>> -{ - private IWorkbenchPage page; - - private Map<CDOView, CDOViewHistory> viewHistories = new HashMap<CDOView, CDOViewHistory>(); - - private IListener viewListener = new IListener() - { - public void notifyEvent(IEvent event) - { - if (event instanceof CDOTransactionStartedEvent || event instanceof CDOTransactionFinishedEvent) - { - try - { - final CDOView view = ((CDOViewEvent)event).getView(); - getViewer().getControl().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - fireLabelProviderChanged(view); - CDOViewHistory history = viewHistories.get(view); - if (history != null) - { - CDOViewHistoryEntry[] entries = history.getEntries(); - if (entries != null && entries.length != 0) - { - fireLabelProviderChanged(entries); - } - } - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - } - }; - - private IListener historyListener = new IListener() - { - public void notifyEvent(IEvent event) - { - if (event instanceof CDOViewHistoryEvent) - { - CDOViewHistoryEvent e = (CDOViewHistoryEvent)event; - CDOView view = e.getViewHistory().getView(); - refreshElement(view, false); - - CDOViewHistoryEntry addedEntry = e.getAddedEntry(); - if (addedEntry != null) - { - revealElement(addedEntry); - } - } - } - }; - - public CDOItemProvider(IWorkbenchPage page, IElementFilter rootElementFilter) - { - super(rootElementFilter); - this.page = page; - } - - public CDOItemProvider(IWorkbenchPage page) - { - this(page, null); - } - - @Override - public Object[] getChildren(Object element) - { - if (element instanceof CDOView) - { - CDOView view = (CDOView)element; - CDOViewHistory history = viewHistories.get(view); - if (history != null) - { - return history.getEntries(); - } - - return NO_ELEMENTS; - } - - return super.getChildren(element); - } - - @Override - public boolean hasChildren(Object element) - { - if (element instanceof CDOView) - { - CDOView view = (CDOView)element; - CDOViewHistory history = viewHistories.get(view); - if (history != null) - { - return history.hasEntries(); - } - - return false; - } - - return super.hasChildren(element); - } - - @Override - public Object getParent(Object element) - { - if (element instanceof CDOViewHistoryEntry) - { - return ((CDOViewHistoryEntry)element).getView(); - } - - return super.getParent(element); - } - - @Override - public String getText(Object obj) - { - if (obj instanceof CDOSession) - { - return getSessionLabel((CDOSession)obj); - } - - if (obj instanceof CDOView) - { - return getViewLabel((CDOView)obj); - } - - if (obj instanceof CDOViewHistoryEntry) - { - return getHistroyEntryLabel((CDOViewHistoryEntry)obj); - } - - return super.getText(obj); - } - - @Override - public Image getImage(Object obj) - { - if (obj instanceof CDOSession) - { - return SharedIcons.getImage(SharedIcons.OBJ_SESSION); - } - - if (obj instanceof CDOView) - { - CDOView view = (CDOView)obj; - switch (view.getViewType()) - { - case TRANSACTION: - return SharedIcons.getImage(SharedIcons.OBJ_EDITOR); - case READONLY: - return SharedIcons.getImage(SharedIcons.OBJ_EDITOR_READONLY); - case AUDIT: - return SharedIcons.getImage(SharedIcons.OBJ_EDITOR_HISTORICAL); - } - } - - return super.getImage(obj); - } - - public static String getSessionLabel(CDOSession session) - { - IConnector connector = session.getConnector(); - String repositoryName = session.getRepositoryName(); - return "Session " + connector.getURL() + "/" + repositoryName + " [" + session.getSessionID() + "]"; - } - - public static String getViewLabel(CDOView view) - { - if (view instanceof CDOTransaction) - { - CDOTransaction transaction = (CDOTransaction)view; - return MessageFormat.format("{0}Transaction [{1}]", transaction.isDirty() ? "*" : "", transaction.getViewID()); - } - - if (view instanceof CDOAudit) - { - CDOAudit audit = (CDOAudit)view; - return MessageFormat.format("Audit [{0,date} {0,time}]", audit.getTimeStamp()); - } - - return MessageFormat.format("View [{0}]", view.getViewID()); - } - - /** - * @since 2.0 - */ - public static String getHistroyEntryLabel(CDOViewHistoryEntry entry) - { - return (entry.getView().isDirty() ? "*" : "") + entry.getResourcePath(); - } - - @Override - protected void fillContextMenu(IMenuManager manager, ITreeSelection selection) - { - super.fillContextMenu(manager, selection); - if (selection.size() == 1) - { - Object object = selection.getFirstElement(); - if (object instanceof CDOSession) - { - fillSession(manager, (CDOSession)object); - } - else if (object instanceof CDOView) - { - fillView(manager, (CDOView)object); - } - else if (object instanceof CDOViewHistoryEntry) - { - fillHistoryEntry(manager, (CDOViewHistoryEntry)object); - } - } - } - - protected void fillSession(IMenuManager manager, CDOSession session) - { - manager.add(new OpenTransactionAction(page, session)); - manager.add(new OpenViewAction(page, session)); - manager.add(new OpenAuditAction(page, session)); - manager.add(new Separator()); - manager.add(new ManagePackagesAction(page, session)); - - MenuManager generatedManager = new MenuManager("Register Generated Package"); - if (fillGenerated(generatedManager, session)) - { - manager.add(generatedManager); - } - - IAction a1 = new RegisterWorkspacePackagesAction(page, session); - a1.setText(a1.getText() + SafeAction.INTERACTIVE); - manager.add(a1); - - RegisterFilesystemPackagesAction a2 = new RegisterFilesystemPackagesAction(page, session); - a2.setText(a2.getText() + SafeAction.INTERACTIVE); - manager.add(a2); - - manager.add(new Separator()); - manager.add(new CloseSessionAction(page, session)); - } - - protected boolean fillGenerated(MenuManager manager, CDOSession session) - { - Set<Map.Entry<String, CDOPackageType>> entrySet = CDOPackageTypeRegistry.INSTANCE.entrySet(); - List<Map.Entry<String, CDOPackageType>> entryList = new ArrayList<Map.Entry<String, CDOPackageType>>(entrySet); - Collections.sort(entryList, new Comparator<Map.Entry<String, CDOPackageType>>() - { - public int compare(Map.Entry<String, CDOPackageType> e1, Map.Entry<String, CDOPackageType> e2) - { - return e1.getKey().compareTo(e2.getKey()); - } - }); - - Set<String> registeredURIs = new HashSet<String>(session.getPackageRegistry().keySet()); - boolean added = false; - for (Map.Entry<String, CDOPackageType> entry : entryList) - { - String packageURI = entry.getKey(); - if (!registeredURIs.contains(packageURI)) - { - manager.add(new RegisterSinglePackageAction(page, session, packageURI, entry.getValue())); - added = true; - } - } - - return added; - } - - protected void fillView(IMenuManager manager, CDOView view) - { - manager.add(new OpenViewEditorAction(page, view)); - manager.add(new LoadResourceAction(page, view)); - manager.add(new Separator()); - if (view.getViewType() == CDOView.Type.TRANSACTION) - { - manager.add(new CreateResourceAction(page, view)); - manager.add(new ImportResourceAction(page, view)); - manager.add(new CommitTransactionAction(page, view)); - manager.add(new RollbackTransactionAction(page, view)); - } - - manager.add(new Separator()); - manager.add(new ReloadViewAction(page, view)); - manager.add(new Separator()); - manager.add(new CloseViewAction(page, view)); - } - - /** - * @since 2.0 - */ - protected void fillHistoryEntry(IMenuManager manager, CDOViewHistoryEntry entry) - { - } - - @Override - protected void elementAdded(Object element, Object parent) - { - super.elementAdded(element, parent); - if (element instanceof CDOView) - { - CDOView view = (CDOView)element; - view.addListener(viewListener); - - CDOViewHistory history = new CDOViewHistory(view); - history.addListener(historyListener); - viewHistories.put(view, history); - } - } - - @Override - protected void elementRemoved(Object element, Object parent) - { - super.elementRemoved(element, parent); - if (element instanceof CDOView) - { - CDOView view = (CDOView)element; - view.removeListener(viewListener); - - CDOViewHistory history = viewHistories.remove(view); - history.removeListener(historyListener); - history.dispose(); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOLabelProvider.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOLabelProvider.java deleted file mode 100644 index 3cabe65ed6..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOLabelProvider.java +++ /dev/null @@ -1,200 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.common.revision.CDORevision; -import org.eclipse.emf.cdo.internal.ui.bundle.OM; - -import org.eclipse.emf.internal.cdo.InternalCDOObject; -import org.eclipse.emf.internal.cdo.util.FSMUtil; - -import org.eclipse.net4j.util.ObjectUtil; -import org.eclipse.net4j.util.StringUtil; -import org.eclipse.net4j.util.ui.UIUtil; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; - -import org.eclipse.jface.viewers.IColorProvider; -import org.eclipse.jface.viewers.IFontProvider; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Font; - -import java.text.MessageFormat; - -/** - * @author Eike Stepper - */ -public class CDOLabelProvider extends AdapterFactoryLabelProvider implements IColorProvider, IFontProvider -{ - public static final String[] DECORATION_PROPOSALS = { "${element}", "${id}", "${state}", "${created}", "${revised}" }; - - public static final String DEFAULT_DECORATION = DECORATION_PROPOSALS[0] + " [" + DECORATION_PROPOSALS[1] + "]"; - - public static final String NO_DECORATION = DECORATION_PROPOSALS[0]; - - private static final String[] DECORATION_ARGS = { "{0}", "{1}", "{2}", "{3,date} {3,time}", "{4,date} {4,time}" }; - - private static final Color GRAY = UIUtil.getDisplay().getSystemColor(SWT.COLOR_GRAY); - - private static final Color RED = UIUtil.getDisplay().getSystemColor(SWT.COLOR_RED); - - private Font bold; - - private CDOView view; - - private TreeViewer viewer; - - private String pattern; - - public CDOLabelProvider(AdapterFactory adapterFactory, CDOView view, TreeViewer viewer) - { - super(adapterFactory); - this.view = view; - this.viewer = viewer; - bold = UIUtil.getBoldFont(viewer.getControl()); - - pattern = OM.PREF_LABEL_DECORATION.getValue(); - if (ObjectUtil.equals(pattern, NO_DECORATION)) - { - pattern = null; - } - else - { - pattern = StringUtil.replace(pattern, DECORATION_PROPOSALS, DECORATION_ARGS); - } - } - - public CDOView getView() - { - return view; - } - - public TreeViewer getViewer() - { - return viewer; - } - - @Override - public void dispose() - { - bold.dispose(); - super.dispose(); - } - - @Override - public void notifyChanged(final Notification notification) - { - super.notifyChanged(notification); - - try - { - viewer.getControl().getDisplay().syncExec(new Runnable() - { - public void run() - { - try - { - viewer.refresh(notification.getNotifier(), true); - } - catch (Exception ignore) - { - } - } - }); - } - catch (Exception ignore) - { - } - } - - @Override - public String getText(Object object) - { - return decorateText(super.getText(object), object); - } - - @Override - public String getColumnText(Object object, int columnIndex) - { - return decorateText(super.getColumnText(object, columnIndex), object); - } - - public Color getBackground(Object object) - { - return null; - } - - public Color getForeground(Object object) - { - try - { - InternalCDOObject cdoObject = FSMUtil.adapt(object, view); - switch (cdoObject.cdoState()) - { - case PROXY: - return GRAY; - - case CONFLICT: - return RED; - } - } - catch (RuntimeException ignore) - { - } - - return null; - } - - public Font getFont(Object object) - { - try - { - InternalCDOObject cdoObject = FSMUtil.adapt(object, view); - switch (cdoObject.cdoState()) - { - case NEW: - case DIRTY: - case CONFLICT: - return bold; - } - } - catch (RuntimeException ignore) - { - } - - return null; - } - - protected String decorateText(String text, Object object) - { - try - { - if (pattern != null) - { - InternalCDOObject obj = FSMUtil.adapt(object, view); - CDORevision rev = obj.cdoRevision(); - long created = rev == null ? CDORevision.UNSPECIFIED_DATE : rev.getCreated(); - long revised = rev == null ? CDORevision.UNSPECIFIED_DATE : rev.getRevised(); - text = MessageFormat.format(pattern, text, obj.cdoID(), obj.cdoState(), created, revised); - } - } - catch (RuntimeException ignore) - { - } - - return text; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistory.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistory.java deleted file mode 100644 index 4e8f08307e..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistory.java +++ /dev/null @@ -1,156 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.emf.cdo.CDOView; -import org.eclipse.emf.cdo.CDOViewResourcesEvent; -import org.eclipse.emf.cdo.eresource.CDOResource; - -import org.eclipse.net4j.util.event.Event; -import org.eclipse.net4j.util.event.IEvent; -import org.eclipse.net4j.util.event.IListener; -import org.eclipse.net4j.util.event.Notifier; - -import org.eclipse.emf.ecore.resource.Resource; - -import java.text.MessageFormat; -import java.util.HashSet; -import java.util.Set; - -/** - * @author Eike Stepper - * @since 2.0 - */ -public final class CDOViewHistory extends Notifier -{ - private CDOView view; - - private Set<CDOViewHistoryEntry> entries = new HashSet<CDOViewHistoryEntry>(); - - private IListener viewListener = new IListener() - { - public void notifyEvent(IEvent event) - { - if (event instanceof CDOViewResourcesEvent) - { - CDOViewResourcesEvent e = (CDOViewResourcesEvent)event; - if (e.getView() == view && e.getKind() == CDOViewResourcesEvent.Kind.ADDED) - { - addResource(e.getResourcePath()); - } - } - } - }; - - public CDOViewHistory(CDOView view) - { - this.view = view; - view.addListener(viewListener); - } - - public void dispose() - { - view.removeListener(viewListener); - entries.clear(); - } - - public CDOView getView() - { - return view; - } - - public CDOViewHistoryEntry[] getEntries() - { - synchronized (entries) - { - return entries.toArray(new CDOViewHistoryEntry[entries.size()]); - } - } - - public boolean hasEntries() - { - synchronized (entries) - { - return !entries.isEmpty(); - } - } - - public void reset() - { - Set<CDOViewHistoryEntry> openResources = new HashSet<CDOViewHistoryEntry>(); - for (Resource resource : view.getResourceSet().getResources()) - { - if (resource instanceof CDOResource) - { - CDOResource cdoResource = (CDOResource)resource; - openResources.add(new CDOViewHistoryEntry(view, cdoResource.getPath())); - } - } - - boolean changed; - synchronized (entries) - { - changed = entries.retainAll(openResources); - } - - if (changed) - { - fireEvent(new ViewHistoryEvent(null)); - } - } - - protected void addResource(String resourcePath) - { - CDOViewHistoryEntry entry = new CDOViewHistoryEntry(view, resourcePath); - boolean changed; - synchronized (entries) - { - changed = entries.add(entry); - } - - if (changed) - { - fireEvent(new ViewHistoryEvent(entry)); - } - } - - /** - * @author Eike Stepper - */ - private final class ViewHistoryEvent extends Event implements CDOViewHistoryEvent - { - private static final long serialVersionUID = 1L; - - CDOViewHistoryEntry addedEntry; - - public ViewHistoryEvent(CDOViewHistoryEntry addedEntry) - { - super(CDOViewHistory.this); - this.addedEntry = addedEntry; - } - - public CDOViewHistory getViewHistory() - { - return CDOViewHistory.this; - } - - public CDOViewHistoryEntry getAddedEntry() - { - return addedEntry; - } - - @Override - public String toString() - { - return MessageFormat.format("CDOViewHistoryEvent[source={0}, addedEntry={1}]", getSource(), getAddedEntry()); - } - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEntry.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEntry.java deleted file mode 100644 index 2490c1a0c7..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEntry.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.emf.cdo.CDOView; - -/** - * @author Eike Stepper - * @since 2.0 - */ -public final class CDOViewHistoryEntry implements Comparable<CDOViewHistoryEntry> -{ - private CDOView view; - - private String resourcePath; - - public CDOViewHistoryEntry(CDOView view, String resourcePath) - { - if (view == null) - { - throw new IllegalArgumentException("view == null"); - } - - if (resourcePath == null) - { - throw new IllegalArgumentException("resourcePath == null"); - } - - this.view = view; - this.resourcePath = resourcePath; - } - - public CDOView getView() - { - return view; - } - - public String getResourcePath() - { - return resourcePath; - } - - public int compareTo(CDOViewHistoryEntry entry) - { - return resourcePath.compareTo(entry.resourcePath); - } - - @Override - public boolean equals(Object obj) - { - if (obj == this) - { - return true; - } - - if (obj instanceof CDOViewHistoryEntry) - { - CDOViewHistoryEntry that = (CDOViewHistoryEntry)obj; - return view == that.getView() && resourcePath.equals(that.resourcePath); - } - - return false; - } - - @Override - public int hashCode() - { - return resourcePath.hashCode(); - } - - @Override - public String toString() - { - return resourcePath; - } -} diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEvent.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEvent.java deleted file mode 100644 index 2175705c65..0000000000 --- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOViewHistoryEvent.java +++ /dev/null @@ -1,30 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2004 - 2008 Eike Stepper, Germany. - * 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: - * Eike Stepper - initial API and implementation - **************************************************************************/ -package org.eclipse.emf.cdo.ui; - -import org.eclipse.net4j.util.event.IEvent; - -/** - * @author Eike Stepper - * @noimplement This interface is not intended to be implemented by clients. - */ -public interface CDOViewHistoryEvent extends IEvent -{ - /** - * @since 2.0 - */ - public CDOViewHistory getViewHistory(); - - /** - * @since 2.0 - */ - public CDOViewHistoryEntry getAddedEntry(); -} |