diff options
Diffstat (limited to 'plugins')
223 files changed, 29044 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.defs/.classpath b/plugins/org.eclipse.emf.cdo.defs/.classpath new file mode 100644 index 0000000000..304e86186a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.classpath @@ -0,0 +1,7 @@ +<?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.defs/.cvsignore b/plugins/org.eclipse.emf.cdo.defs/.cvsignore new file mode 100644 index 0000000000..ba077a4031 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/plugins/org.eclipse.emf.cdo.defs/.project b/plugins/org.eclipse.emf.cdo.defs/.project new file mode 100644 index 0000000000..494378ebc7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.defs</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> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..a1cef9a448 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Thu Dec 18 13:30:26 CET 2008 +eclipse.preferences.version=1 +encoding//model/org.eclipse.emf.cdo.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..43c49c0ea4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,258 @@ +#Mon Dec 15 16:13:11 CET 2008 +eclipse.preferences.version=1 +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=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=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=false +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.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..4420bb92c8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,5 @@ +#Wed Dec 17 14:17:04 CET 2008 +eclipse.preferences.version=1 +formatter_profile=_Unmanaged profile 'EMFT' mine +formatter_settings_version=11 +org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/> diff --git a/plugins/org.eclipse.emf.cdo.defs/.settings/org.moreunit.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.moreunit.prefs new file mode 100644 index 0000000000..9a2bb4e32f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.moreunit.prefs @@ -0,0 +1,6 @@ +#Wed Dec 03 16:37:15 CET 2008 +eclipse.preferences.version=1 +org.moreunit.flexiblenaming=true +org.moreunit.prefixes= +org.moreunit.unitsourcefolder=org.eclipse.emf.cdo.defs\:src\:org.eclipse.emf.cdo.defs.tests\:src +org.moreunit.useprojectsettings=true diff --git a/plugins/org.eclipse.emf.cdo.defs/META-INF/CDO.MF b/plugins/org.eclipse.emf.cdo.defs/META-INF/CDO.MF new file mode 100644 index 0000000000..bbfa1b0550 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/META-INF/CDO.MF @@ -0,0 +1 @@ +This is a marker file for bundles with CDO native models. diff --git a/plugins/org.eclipse.emf.cdo.defs/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.defs/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7fd028e57c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/META-INF/MANIFEST.MF @@ -0,0 +1,19 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.emf.cdo.defs;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.cdo;visibility:=reexport, + org.eclipse.net4j.defs;bundle-version="1.0.0", + org.eclipse.net4j.util.defs;bundle-version="1.0.0", + org.eclipse.emf.cdo.server;bundle-version="2.0.0" +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.emf.cdo.cdodefs, + org.eclipse.emf.cdo.cdodefs.impl, + org.eclipse.emf.cdo.cdodefs.util diff --git a/plugins/org.eclipse.emf.cdo.defs/about.html b/plugins/org.eclipse.emf.cdo.defs/about.html new file mode 100644 index 0000000000..d35d5aed64 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("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.defs/build.properties b/plugins/org.eclipse.emf.cdo.defs/build.properties new file mode 100644 index 0000000000..8de8fa2c13 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/build.properties @@ -0,0 +1,23 @@ +# 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,\ + model/ +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.defs/copyright.txt b/plugins/org.eclipse.emf.cdo.defs/copyright.txt new file mode 100644 index 0000000000..529118d99e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/copyright.txt @@ -0,0 +1,8 @@ +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.defs/epl-v10.html b/plugins/org.eclipse.emf.cdo.defs/epl-v10.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/epl-v10.html @@ -0,0 +1,319 @@ +<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.defs/license.html b/plugins/org.eclipse.emf.cdo.defs/license.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/license.html @@ -0,0 +1,319 @@ +<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.defs/model/org.eclipse.emf.cdo.defs.ecore b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecore new file mode 100644 index 0000000000..657a00529c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecore @@ -0,0 +1,71 @@ +<?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="cdodefs" + nsURI="http://www.eclipse.org/emf/CDO/defs/1.0.0" nsPrefix="cdodefs"> + <eClassifiers xsi:type="ecore:EClass" name="CDOViewDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="cdoSessionDef" lowerBound="1" + eType="#//CDOSessionDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="CDOTransactionDef" eSuperTypes="#//CDOViewDef"/> + <eClassifiers xsi:type="ecore:EClass" name="CDOAuditDef" eSuperTypes="#//CDOViewDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="timeStamp" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="CDOSessionDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="connectorDef" lowerBound="1" + eType="ecore:EClass ../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore#//ConnectorDef" + unsettable="true"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="repositoryName" ordered="false" + unique="false" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="cdoPackageRegistryDef" + lowerBound="1" eType="#//CDOPackageRegistryDef"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="legacySupportEnabled" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="failOverStrategyDef" eType="#//FailOverStrategyDef" + unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="FailOverStrategyDef" abstract="true" + eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="connectorDef" lowerBound="1" + eType="ecore:EClass ../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore#//ConnectorDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="RetryFailOverStrategyDef" eSuperTypes="#//FailOverStrategyDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="retries" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" + unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="CDOPackageRegistryDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="packages" upperBound="-1" + eType="#//EPackageDef" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="CDOEagerPackageRegistryDef" eSuperTypes="#//CDOPackageRegistryDef"/> + <eClassifiers xsi:type="ecore:EClass" name="CDOLazyPackageRegistryDef" eSuperTypes="#//CDOPackageRegistryDef"/> + <eClassifiers xsi:type="ecore:EClass" name="EPackageDef" abstract="true" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="nsURI" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="EDynamicPackageDef" eSuperTypes="#//EPackageDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourceURI" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="EGlobalPackageDef" eSuperTypes="#//EPackageDef"/> + <eClassifiers xsi:type="ecore:EClass" name="CDOClientProtocolFactoryDef" eSuperTypes="../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore#//ClientProtocolFactoryDef"/> + <eClassifiers xsi:type="ecore:EClass" name="CDOServerProtocolFactoryDef" eSuperTypes="../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore#//ServerProtocolFactoryDef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="repositoryProviderDef" + lowerBound="1" eType="#//RepositoryProviderDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="RepositoryProviderDef" abstract="true" + eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="PluginRepositoryProviderDef" eSuperTypes="#//RepositoryProviderDef"/> + <eClassifiers xsi:type="ecore:EClass" name="CDOResourceDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="cdoTransaction" lowerBound="1" + eType="#//CDOTransactionDef"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourceMode" lowerBound="1" + eType="#//ResourceMode" defaultValueLiteral="null"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="path" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EEnum" name="ResourceMode"> + <eLiterals name="GET"/> + <eLiterals name="CREATE"/> + <eLiterals name="GET_OR_CREATE"/> + </eClassifiers> +</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecorediag b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecorediag new file mode 100644 index 0000000000..32f1d99940 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecorediag @@ -0,0 +1,480 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram 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" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_pgl_cMz_Ed2cpYYbBdM6vg" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_ptM4EMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptNfIMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptNfIcz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptNfIsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptNfI8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptNfJMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptNfJcz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptNfJsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptNfJ8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptNfKMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptM4Ecz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOViewDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptM4Esz_Ed2cpYYbBdM6vg" x="317" y="383"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptPUUMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptP7YMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptP7Ycz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptP7Ysz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptP7Y8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptP7ZMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptP7Zcz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptP7Zsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptP7Z8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptP7aMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptPUUcz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOTransactionDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptPUUsz_Ed2cpYYbBdM6vg" x="191" y="484"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptP7acz_Ed2cpYYbBdM6vg" type="1005"> + <children xmi:type="notation:Node" xmi:id="_ptQicMz_Ed2cpYYbBdM6vg" type="4010"/> + <children xmi:type="notation:Node" xmi:id="_ptQiccz_Ed2cpYYbBdM6vg" type="5008"> + <children xmi:type="notation:Node" xmi:id="_ptQidcz_Ed2cpYYbBdM6vg" type="2006"> + <element xmi:type="ecore:EEnumLiteral" href="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/GET"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptQidsz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptQid8z_Ed2cpYYbBdM6vg" type="2006"> + <element xmi:type="ecore:EEnumLiteral" href="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/CREATE"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptQieMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptRJgMz_Ed2cpYYbBdM6vg" type="2006"> + <element xmi:type="ecore:EEnumLiteral" href="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/GET_OR_CREATE"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptRJgcz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptQicsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptQic8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptQidMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptP7asz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EEnum" href="org.eclipse.emf.cdo.defs.ecore#//ResourceMode"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptP7a8z_Ed2cpYYbBdM6vg" x="200"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptRJgsz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptRJhcz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptRJhsz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_ptRwkMz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//CDOAuditDef/timeStamp"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptRwkcz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptRJh8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptRJiMz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptRJicz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptRJisz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptRJi8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptRJjMz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptRJjcz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptRJg8z_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOAuditDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptRJhMz_Ed2cpYYbBdM6vg" x="396" y="484"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptRwksz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptSXoMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pthoMMz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_ptvDkMz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/repositoryName"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptvDkcz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptvDksz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/legacySupportEnabled"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptvDk8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pthoMcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pthoMsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pthoM8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pthoNMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pthoNcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pthoNsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptiPQMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptRwk8z_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptRwlMz_Ed2cpYYbBdM6vg" x="245" y="257"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptvDlMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptvqoMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptvqocz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptvqosz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptvqo8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptvqpMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptvqpcz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptvqpsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptvqp8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptvqqMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptvDlcz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//FailOverStrategyDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptvDlsz_Ed2cpYYbBdM6vg" x="130" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptvqqcz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptvqrMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptwRsMz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_ptwRuMz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//RetryFailOverStrategyDef/retries"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptwRucz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptwRscz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptwRssz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptwRs8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptwRtMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptwRtcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptwRtsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptwRt8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptvqqsz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//RetryFailOverStrategyDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptvqq8z_Ed2cpYYbBdM6vg" y="257"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptwRusz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptw4wMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptw4wcz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptw4wsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptw4w8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptw4xMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptw4xcz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptw4xsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptw4x8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptw4yMz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptwRu8z_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOPackageRegistryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptwRvMz_Ed2cpYYbBdM6vg" x="570" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptw4ycz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptw4zMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptxf0Mz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptxf0cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptxf0sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptxf08z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptxf1Mz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptxf1cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptxf1sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptxf18z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptw4ysz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOEagerPackageRegistryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptw4y8z_Ed2cpYYbBdM6vg" x="552" y="257"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptxf2Mz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptxf28z_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptxf3Mz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptxf3cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptxf3sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptxf38z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptyG4Mz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptyG4cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptyG4sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptyG48z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptxf2cz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOLazyPackageRegistryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptxf2sz_Ed2cpYYbBdM6vg" x="827" y="257"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptyG5Mz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptyG58z_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptyG6Mz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_ptyt8Mz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//EPackageDef/nsURI"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptyt8cz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptyG6cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptyG6sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptyG68z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptyG7Mz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptyG7cz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptyG7sz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptyG78z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptyG5cz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//EPackageDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptyG5sz_Ed2cpYYbBdM6vg" x="597"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptyt8sz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptyt9cz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptyt9sz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_ptzVAMz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//EDynamicPackageDef/resourceURI"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ptzVAcz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptyt98z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptyt-Mz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptyt-cz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptyt-sz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptyt-8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptyt_Mz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptyt_cz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptyt88z_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//EDynamicPackageDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptyt9Mz_Ed2cpYYbBdM6vg" x="344" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptzVAsz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_ptzVBcz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ptzVBsz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptzVB8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptzVCMz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptzVCcz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptzVCsz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ptzVC8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ptzVDMz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ptzVDcz_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptzVA8z_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//EGlobalPackageDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptzVBMz_Ed2cpYYbBdM6vg" x="808" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ptz8EMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_pt1xQMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pt1xQcz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt1xQsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt1xQ8z_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt1xRMz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt2YUMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt2YUcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt2YUsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt2YU8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ptz8Ecz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOClientProtocolFactoryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ptz8Esz_Ed2cpYYbBdM6vg" x="841"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt2YVMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_pt2YV8z_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pt2YWMz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt2YWcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt2YWsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt2YW8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt2_YMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt2_Ycz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt2_Ysz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt2_Y8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_pt2YVcz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOServerProtocolFactoryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_pt2YVsz_Ed2cpYYbBdM6vg" x="1014" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt2_ZMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_pt2_Z8z_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pt2_aMz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt2_acz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt2_asz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt2_a8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt3mcMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt3mccz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt3mcsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt3mc8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_pt2_Zcz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//RepositoryProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_pt2_Zsz_Ed2cpYYbBdM6vg" x="1171"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt3mdMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_pt4NgMz_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pt40kMz_Ed2cpYYbBdM6vg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt40kcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt40ksz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt40k8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt40lMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt40lcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt40lsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt40l8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_pt3mdcz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//PluginRepositoryProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_pt3mdsz_Ed2cpYYbBdM6vg" x="1288" y="148"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt5boMz_Ed2cpYYbBdM6vg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_pt5bo8z_Ed2cpYYbBdM6vg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_pt5bpMz_Ed2cpYYbBdM6vg" type="5001"> + <children xmi:type="notation:Node" xmi:id="_pt6CsMz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//CDOResourceDef/resourceMode"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt6Cscz_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt6Cssz_Ed2cpYYbBdM6vg" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.defs.ecore#//CDOResourceDef/path"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt6Cs8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt5bpcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt5bpsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt5bp8z_Ed2cpYYbBdM6vg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt5bqMz_Ed2cpYYbBdM6vg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_pt5bqcz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_pt5bqsz_Ed2cpYYbBdM6vg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_pt5bq8z_Ed2cpYYbBdM6vg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_pt5bocz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.defs.ecore#//CDOResourceDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_pt5bosz_Ed2cpYYbBdM6vg" x="149" y="593"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_pgl_ccz_Ed2cpYYbBdM6vg"/> + <element xmi:type="ecore:EPackage" href="org.eclipse.emf.cdo.defs.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_pt6CtMz_Ed2cpYYbBdM6vg" type="3002" source="_ptM4EMz_Ed2cpYYbBdM6vg" target="_ptRwksz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt6pwMz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt6pwcz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt6pwsz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt6pw8z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt6Ctcz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt6Ctsz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOViewDef/cdoSessionDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt6Ct8z_Ed2cpYYbBdM6vg" points="[1, 0, 1, 60]$[1, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3Kgsz_Ed2cpYYbBdM6vg" id="(0.49514562,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3Kg8z_Ed2cpYYbBdM6vg" id="(0.4979757,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt6pxMz_Ed2cpYYbBdM6vg" type="3003" source="_ptPUUMz_Ed2cpYYbBdM6vg" target="_ptM4EMz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt6pxcz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt6pxsz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt6px8z_Ed2cpYYbBdM6vg" points="[1, 0, -87, 60]$[1, -30, -87, 30]$[89, -30, 1, 30]$[89, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3xkcz_Ed2cpYYbBdM6vg" id="(0.49655172,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3xksz_Ed2cpYYbBdM6vg" id="(0.33009708,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt6pyMz_Ed2cpYYbBdM6vg" type="3003" source="_ptRJgsz_Ed2cpYYbBdM6vg" target="_ptM4EMz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt6pycz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt6pysz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt6py8z_Ed2cpYYbBdM6vg" points="[0, 0, 88, 60]$[0, -30, 88, 30]$[-87, -30, 1, 30]$[-87, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4YoMz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4Yocz_Ed2cpYYbBdM6vg" id="(0.66019416,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt7Q0Mz_Ed2cpYYbBdM6vg" type="3002" source="_ptRwksz_Ed2cpYYbBdM6vg" target="_ptwRusz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt7Q1Mz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt7Q1cz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt7Q1sz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt7Q18z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt7Q0cz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt7Q0sz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/cdoPackageRegistryDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7Q08z_Ed2cpYYbBdM6vg" points="[1, 0, -205, 68]$[206, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv6N0Mz_Ed2cpYYbBdM6vg" id="(0.6639676,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv6N0cz_Ed2cpYYbBdM6vg" id="(0.24719101,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt7Q2Mz_Ed2cpYYbBdM6vg" type="3002" source="_ptRwksz_Ed2cpYYbBdM6vg" target="_ptvDlMz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt7Q3Mz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt7Q3cz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt7Q3sz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt7Q38z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt7Q2cz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt7Q2sz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/failOverStrategyDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7Q28z_Ed2cpYYbBdM6vg" points="[1, 0, 96, 68]$[-94, -68, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv6N0sz_Ed2cpYYbBdM6vg" id="(0.3319838,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv6N08z_Ed2cpYYbBdM6vg" id="(0.66233766,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt7Q4Mz_Ed2cpYYbBdM6vg" type="3003" source="_ptvqqcz_Ed2cpYYbBdM6vg" target="_ptvDlMz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt7Q4cz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt7Q4sz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7Q48z_Ed2cpYYbBdM6vg" points="[1, 0, -88, 68]$[1, -30, -88, 38]$[90, -30, 1, 38]$[90, -68, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_ssz_Ed2cpYYbBdM6vg" id="(0.4972973,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_s8z_Ed2cpYYbBdM6vg" id="(0.33116883,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt734Mz_Ed2cpYYbBdM6vg" type="3002" source="_ptwRusz_Ed2cpYYbBdM6vg" target="_ptyG5Mz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt735Mz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt735cz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt735sz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt7358z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt734cz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt734sz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOPackageRegistryDef/packages"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7348z_Ed2cpYYbBdM6vg" points="[0, 0, 1, 99]$[0, -99, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3xk8z_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3xlMz_Ed2cpYYbBdM6vg" id="(0.496,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt736Mz_Ed2cpYYbBdM6vg" type="3003" source="_ptw4ycz_Ed2cpYYbBdM6vg" target="_ptwRusz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt736cz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt736sz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7368z_Ed2cpYYbBdM6vg" points="[1, 0, 0, 68]$[1, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_tMz_Ed2cpYYbBdM6vg" id="(0.4976744,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_tcz_Ed2cpYYbBdM6vg" id="(0.5,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt737Mz_Ed2cpYYbBdM6vg" type="3003" source="_ptxf2Mz_Ed2cpYYbBdM6vg" target="_ptwRusz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt737cz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt737sz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt7378z_Ed2cpYYbBdM6vg" points="[0, 0, 228, 68]$[0, -30, 228, 38]$[-228, -30, 0, 38]$[-228, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_sMz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4_scz_Ed2cpYYbBdM6vg" id="(0.747191,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt8e-Mz_Ed2cpYYbBdM6vg" type="3003" source="_ptyt8sz_Ed2cpYYbBdM6vg" target="_ptyG5Mz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt8e-cz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt8e-sz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt8e-8z_Ed2cpYYbBdM6vg" points="[0, 0, -200, 99]$[0, -30, -200, 69]$[201, -30, 1, 69]$[201, -99, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4Yosz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv4Yo8z_Ed2cpYYbBdM6vg" id="(0.248,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt8e_Mz_Ed2cpYYbBdM6vg" type="3003" source="_ptzVAsz_Ed2cpYYbBdM6vg" target="_ptyG5Mz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt8e_cz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt8e_sz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt8e_8z_Ed2cpYYbBdM6vg" points="[0, 0, 191, 99]$[0, -30, 191, 69]$[-191, -30, 0, 69]$[-191, -99, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3KgMz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv3Kgcz_Ed2cpYYbBdM6vg" id="(0.744,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt8fAMz_Ed2cpYYbBdM6vg" type="3002" source="_pt2YVMz_Ed2cpYYbBdM6vg" target="_pt2_ZMz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt9GAMz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt9GAcz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt9GAsz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt9GA8z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt8fAcz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt8fAsz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOServerProtocolFactoryDef/repositoryProviderDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt8fA8z_Ed2cpYYbBdM6vg" points="[0, 0, -106, 107]$[106, -107, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv5mwsz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv5mw8z_Ed2cpYYbBdM6vg" id="(0.33333334,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt9GBMz_Ed2cpYYbBdM6vg" type="3003" source="_pt3mdMz_Ed2cpYYbBdM6vg" target="_pt2_ZMz_Ed2cpYYbBdM6vg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt9GBcz_Ed2cpYYbBdM6vg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt9GBsz_Ed2cpYYbBdM6vg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt9GB8z_Ed2cpYYbBdM6vg" points="[0, 0, 107, 107]$[0, -30, 107, 77]$[-107, -30, 0, 77]$[-107, -107, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv2jcMz_Ed2cpYYbBdM6vg" id="(0.49756098,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv2jccz_Ed2cpYYbBdM6vg" id="(0.6666667,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pt9GCMz_Ed2cpYYbBdM6vg" type="3002" source="_pt5boMz_Ed2cpYYbBdM6vg" target="_ptPUUMz_Ed2cpYYbBdM6vg"> + <children xmi:type="notation:Node" xmi:id="_pt9GDMz_Ed2cpYYbBdM6vg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt9GDcz_Ed2cpYYbBdM6vg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_pt9GDsz_Ed2cpYYbBdM6vg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_pt9GD8z_Ed2cpYYbBdM6vg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pt9GCcz_Ed2cpYYbBdM6vg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pt9GCsz_Ed2cpYYbBdM6vg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.emf.cdo.defs.ecore#//CDOResourceDef/cdoTransaction"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pt9GC8z_Ed2cpYYbBdM6vg" points="[0, 0, 1, 68]$[0, -68, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv5mwMz_Ed2cpYYbBdM6vg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pv5mwcz_Ed2cpYYbBdM6vg" id="(0.49655172,1.0)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel new file mode 100644 index 0000000000..5fa08c68a6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.cdo.defs/src" + modelPluginID="org.eclipse.emf.cdo.defs" modelName="Org.eclipse.emf.cdo" importerID="org.eclipse.emf.importer.ecore" + complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel#//net4jutildefs ../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel#//net4jdefs"> + <foreignModel>org.eclipse.emf.cdo.defs.ecore</foreignModel> + <genPackages prefix="CDODefs" basePackage="org.eclipse.emf.cdo" disposableProviderFactory="true" + ecorePackage="org.eclipse.emf.cdo.defs.ecore#/"> + <genEnums typeSafeEnumCompatible="false" ecoreEnum="org.eclipse.emf.cdo.defs.ecore#//ResourceMode"> + <genEnumLiterals ecoreEnumLiteral="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/GET"/> + <genEnumLiterals ecoreEnumLiteral="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/CREATE"/> + <genEnumLiterals ecoreEnumLiteral="org.eclipse.emf.cdo.defs.ecore#//ResourceMode/GET_OR_CREATE"/> + </genEnums> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOViewDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOViewDef/cdoSessionDef"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOTransactionDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//CDOTransactionDef/resourceMode"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOAuditDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//CDOAuditDef/timeStamp"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/connectorDef"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/repositoryName"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/cdoPackageRegistryDef"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/legacySupportEnabled"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOSessionDef/failOverStrategyDef"/> + </genClasses> + <genClasses image="false" ecoreClass="org.eclipse.emf.cdo.defs.ecore#//FailOverStrategyDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//FailOverStrategyDef/connectorDef"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//RetryFailOverStrategyDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//RetryFailOverStrategyDef/retries"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOPackageRegistryDef"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOPackageRegistryDef/packages"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOEagerPackageRegistryDef"/> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOLazyPackageRegistryDef"/> + <genClasses image="false" ecoreClass="org.eclipse.emf.cdo.defs.ecore#//EPackageDef"> + <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//EPackageDef/packageRegistryDef"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//EPackageDef/nsURI"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//EDynamicPackageDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.defs.ecore#//EDynamicPackageDef/resourceURI"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//EGlobalPackageDef"/> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOClientProtocolFactoryDef"/> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//CDOServerProtocolFactoryDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.defs.ecore#//CDOServerProtocolFactoryDef/repositoryProviderDef"/> + </genClasses> + <genClasses image="false" ecoreClass="org.eclipse.emf.cdo.defs.ecore#//RepositoryProviderDef"/> + <genClasses ecoreClass="org.eclipse.emf.cdo.defs.ecore#//PluginRepositoryProviderDef"/> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.emf.cdo.defs/plugin.properties b/plugins/org.eclipse.emf.cdo.defs/plugin.properties new file mode 100644 index 0000000000..56979e2814 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/plugin.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +# 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: +# André Dietisheim - 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 Definitions +providerName = Eclipse.org + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.defs/plugin.xml b/plugins/org.eclipse.emf.cdo.defs/plugin.xml new file mode 100644 index 0000000000..959167cee5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/plugin.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id: plugin.xml,v 1.1 2008-12-28 18:05:25 estepper Exp $ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.eclipse.org/emf/CDO/defs/1.0.0" + class="org.eclipse.emf.cdo.cdodefs.CDODefsPackage" + genModel="model/org.eclipse.net4j.defs.genmodel"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOAuditDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOAuditDef.java new file mode 100644 index 0000000000..9211c8b5a4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOAuditDef.java @@ -0,0 +1,54 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOAuditDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import java.util.Date; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Audit Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOAuditDef() + * @model + * @generated + */ +public interface CDOAuditDef extends CDOViewDef { + /** + * Returns the value of the '<em><b>Time Stamp</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Time Stamp</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Time Stamp</em>' attribute. + * @see #setTimeStamp(Date) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOAuditDef_TimeStamp() + * @model required="true" + * @generated + */ + Date getTimeStamp(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Time Stamp</em>' attribute. + * @see #getTimeStamp() + * @generated + */ + void setTimeStamp(Date value); + +} // CDOAuditDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolFactoryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolFactoryDef.java new file mode 100644 index 0000000000..f18af73d92 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolFactoryDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOClientProtocolFactoryDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOClientProtocolFactoryDef() + * @model + * @generated + */ +public interface CDOClientProtocolFactoryDef extends ClientProtocolFactoryDef { +} // CDOClientProtocolFactoryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolProviderDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolProviderDef.java new file mode 100644 index 0000000000..07d33be094 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOClientProtocolProviderDef.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOClientProtocolProviderDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Client Protocol Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CdodefsPackage#getCDOClientProtocolProviderDef() + * @model + * @generated + */ +public interface CDOClientProtocolProviderDef extends ProtocolProviderDef { +} // CDOClientProtocolProviderDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsFactory.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsFactory.java new file mode 100644 index 0000000000..095d9fce9d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsFactory.java @@ -0,0 +1,163 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsFactory.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage + * @generated + */ +public interface CDODefsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CDODefsFactory eINSTANCE = org.eclipse.emf.cdo.cdodefs.impl.CDODefsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>CDO View Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO View Def</em>'. + * @generated + */ + CDOViewDef createCDOViewDef(); + + /** + * Returns a new object of class '<em>CDO Transaction Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Transaction Def</em>'. + * @generated + */ + CDOTransactionDef createCDOTransactionDef(); + + /** + * Returns a new object of class '<em>CDO Audit Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Audit Def</em>'. + * @generated + */ + CDOAuditDef createCDOAuditDef(); + + /** + * Returns a new object of class '<em>CDO Session Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Session Def</em>'. + * @generated + */ + CDOSessionDef createCDOSessionDef(); + + /** + * Returns a new object of class '<em>Retry Fail Over Strategy Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Retry Fail Over Strategy Def</em>'. + * @generated + */ + RetryFailOverStrategyDef createRetryFailOverStrategyDef(); + + /** + * Returns a new object of class '<em>CDO Package Registry Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Package Registry Def</em>'. + * @generated + */ + CDOPackageRegistryDef createCDOPackageRegistryDef(); + + /** + * Returns a new object of class '<em>CDO Eager Package Registry Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Eager Package Registry Def</em>'. + * @generated + */ + CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef(); + + /** + * Returns a new object of class '<em>CDO Lazy Package Registry Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Lazy Package Registry Def</em>'. + * @generated + */ + CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef(); + + /** + * Returns a new object of class '<em>EDynamic Package Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>EDynamic Package Def</em>'. + * @generated + */ + EDynamicPackageDef createEDynamicPackageDef(); + + /** + * Returns a new object of class '<em>EGlobal Package Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>EGlobal Package Def</em>'. + * @generated + */ + EGlobalPackageDef createEGlobalPackageDef(); + + /** + * Returns a new object of class '<em>CDO Client Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Client Protocol Factory Def</em>'. + * @generated + */ + CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef(); + + /** + * Returns a new object of class '<em>CDO Server Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Server Protocol Factory Def</em>'. + * @generated + */ + CDOServerProtocolFactoryDef createCDOServerProtocolFactoryDef(); + + /** + * Returns a new object of class '<em>Plugin Repository Provider Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Plugin Repository Provider Def</em>'. + * @generated + */ + PluginRepositoryProviderDef createPluginRepositoryProviderDef(); + + /** + * Returns a new object of class '<em>CDO Resource Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Resource Def</em>'. + * @generated + */ + CDOResourceDef createCDOResourceDef(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + CDODefsPackage getCDODefsPackage(); + +} //CDODefsFactory diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsPackage.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsPackage.java new file mode 100644 index 0000000000..fcd386dc8a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDODefsPackage.java @@ -0,0 +1,1295 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsPackage.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.CDODefsFactory + * @model kind="package" + * @generated + */ +public interface CDODefsPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "cdodefs"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/defs/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "cdodefs"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CDODefsPackage eINSTANCE = org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOViewDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOViewDef() + * @generated + */ + int CDO_VIEW_DEF = 0; + + /** + * The feature id for the '<em><b>Cdo Session Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_VIEW_DEF__CDO_SESSION_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>CDO View Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_VIEW_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOTransactionDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOTransactionDef() + * @generated + */ + int CDO_TRANSACTION_DEF = 1; + + /** + * The feature id for the '<em><b>Cdo Session Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_TRANSACTION_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF; + + /** + * The number of structural features of the '<em>CDO Transaction Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_TRANSACTION_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOAuditDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOAuditDef() + * @generated + */ + int CDO_AUDIT_DEF = 2; + + /** + * The feature id for the '<em><b>Cdo Session Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_AUDIT_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF; + + /** + * The feature id for the '<em><b>Time Stamp</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_AUDIT_DEF__TIME_STAMP = CDO_VIEW_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>CDO Audit Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_AUDIT_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOSessionDef() + * @generated + */ + int CDO_SESSION_DEF = 3; + + /** + * The feature id for the '<em><b>Connector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF__CONNECTOR_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Repository Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF__REPOSITORY_NAME = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Cdo Package Registry Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Legacy Support Enabled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Fail Over Strategy Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>CDO Session Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SESSION_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.FailOverStrategyDefImpl <em>Fail Over Strategy Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.FailOverStrategyDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getFailOverStrategyDef() + * @generated + */ + int FAIL_OVER_STRATEGY_DEF = 4; + + /** + * The feature id for the '<em><b>Connector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Fail Over Strategy Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FAIL_OVER_STRATEGY_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.RetryFailOverStrategyDefImpl <em>Retry Fail Over Strategy Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.RetryFailOverStrategyDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getRetryFailOverStrategyDef() + * @generated + */ + int RETRY_FAIL_OVER_STRATEGY_DEF = 5; + + /** + * The feature id for the '<em><b>Connector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RETRY_FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF = FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF; + + /** + * The feature id for the '<em><b>Retries</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES = FAIL_OVER_STRATEGY_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Retry Fail Over Strategy Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RETRY_FAIL_OVER_STRATEGY_DEF_FEATURE_COUNT = FAIL_OVER_STRATEGY_DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef() + * @generated + */ + int CDO_PACKAGE_REGISTRY_DEF = 6; + + /** + * The feature id for the '<em><b>Packages</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_PACKAGE_REGISTRY_DEF__PACKAGES = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>CDO Package Registry Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOEagerPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef() + * @generated + */ + int CDO_EAGER_PACKAGE_REGISTRY_DEF = 7; + + /** + * The feature id for the '<em><b>Packages</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EAGER_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES; + + /** + * The number of structural features of the '<em>CDO Eager Package Registry Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EAGER_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOLazyPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef() + * @generated + */ + int CDO_LAZY_PACKAGE_REGISTRY_DEF = 8; + + /** + * The feature id for the '<em><b>Packages</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_LAZY_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES; + + /** + * The number of structural features of the '<em>CDO Lazy Package Registry Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_LAZY_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EPackageDefImpl <em>EPackage Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEPackageDef() + * @generated + */ + int EPACKAGE_DEF = 9; + + /** + * The feature id for the '<em><b>Ns URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EPACKAGE_DEF__NS_URI = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>EPackage Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EPACKAGE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EDynamicPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEDynamicPackageDef() + * @generated + */ + int EDYNAMIC_PACKAGE_DEF = 10; + + /** + * The feature id for the '<em><b>Ns URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EDYNAMIC_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI; + + /** + * The feature id for the '<em><b>Resource URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = EPACKAGE_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>EDynamic Package Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EDYNAMIC_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EGlobalPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEGlobalPackageDef() + * @generated + */ + int EGLOBAL_PACKAGE_DEF = 11; + + /** + * The feature id for the '<em><b>Ns URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EGLOBAL_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI; + + /** + * The number of structural features of the '<em>EGlobal Package Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EGLOBAL_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOClientProtocolFactoryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef() + * @generated + */ + int CDO_CLIENT_PROTOCOL_FACTORY_DEF = 12; + + /** + * The number of structural features of the '<em>CDO Client Protocol Factory Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = Net4jDefsPackage.CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOServerProtocolFactoryDefImpl <em>CDO Server Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOServerProtocolFactoryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOServerProtocolFactoryDef() + * @generated + */ + int CDO_SERVER_PROTOCOL_FACTORY_DEF = 13; + + /** + * The feature id for the '<em><b>Repository Provider Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF = Net4jDefsPackage.SERVER_PROTOCOL_FACTORY_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>CDO Server Protocol Factory Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_SERVER_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = Net4jDefsPackage.SERVER_PROTOCOL_FACTORY_DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.RepositoryProviderDefImpl <em>Repository Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.RepositoryProviderDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getRepositoryProviderDef() + * @generated + */ + int REPOSITORY_PROVIDER_DEF = 14; + + /** + * The number of structural features of the '<em>Repository Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int REPOSITORY_PROVIDER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.PluginRepositoryProviderDefImpl <em>Plugin Repository Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.PluginRepositoryProviderDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getPluginRepositoryProviderDef() + * @generated + */ + int PLUGIN_REPOSITORY_PROVIDER_DEF = 15; + + /** + * The number of structural features of the '<em>Plugin Repository Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PLUGIN_REPOSITORY_PROVIDER_DEF_FEATURE_COUNT = REPOSITORY_PROVIDER_DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOResourceDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOResourceDef() + * @generated + */ + int CDO_RESOURCE_DEF = 16; + + /** + * The feature id for the '<em><b>Cdo Transaction</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_RESOURCE_DEF__CDO_TRANSACTION = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Resource Mode</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_RESOURCE_DEF__RESOURCE_MODE = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_RESOURCE_DEF__PATH = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>CDO Resource Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_RESOURCE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.cdodefs.ResourceMode <em>Resource Mode</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.ResourceMode + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getResourceMode() + * @generated + */ + int RESOURCE_MODE = 17; + + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOViewDef <em>CDO View Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO View Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOViewDef + * @generated + */ + EClass getCDOViewDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Cdo Session Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOViewDef#getCdoSessionDef() + * @see #getCDOViewDef() + * @generated + */ + EReference getCDOViewDef_CdoSessionDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOTransactionDef <em>CDO Transaction Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Transaction Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOTransactionDef + * @generated + */ + EClass getCDOTransactionDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOAuditDef <em>CDO Audit Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Audit Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOAuditDef + * @generated + */ + EClass getCDOAuditDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Time Stamp</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOAuditDef#getTimeStamp() + * @see #getCDOAuditDef() + * @generated + */ + EAttribute getCDOAuditDef_TimeStamp(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef <em>CDO Session Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Session Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef + * @generated + */ + EClass getCDOSessionDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Connector Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef() + * @see #getCDOSessionDef() + * @generated + */ + EReference getCDOSessionDef_ConnectorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Repository Name</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getRepositoryName() + * @see #getCDOSessionDef() + * @generated + */ + EAttribute getCDOSessionDef_RepositoryName(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Cdo Package Registry Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getCdoPackageRegistryDef() + * @see #getCDOSessionDef() + * @generated + */ + EReference getCDOSessionDef_CdoPackageRegistryDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Legacy Support Enabled</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef#isLegacySupportEnabled() + * @see #getCDOSessionDef() + * @generated + */ + EAttribute getCDOSessionDef_LegacySupportEnabled(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Fail Over Strategy Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef() + * @see #getCDOSessionDef() + * @generated + */ + EReference getCDOSessionDef_FailOverStrategyDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef <em>Fail Over Strategy Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Fail Over Strategy Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef + * @generated + */ + EClass getFailOverStrategyDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef#getConnectorDef <em>Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Connector Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef#getConnectorDef() + * @see #getFailOverStrategyDef() + * @generated + */ + EReference getFailOverStrategyDef_ConnectorDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef <em>Retry Fail Over Strategy Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Retry Fail Over Strategy Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef + * @generated + */ + EClass getRetryFailOverStrategyDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries <em>Retries</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Retries</em>'. + * @see org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries() + * @see #getRetryFailOverStrategyDef() + * @generated + */ + EAttribute getRetryFailOverStrategyDef_Retries(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef <em>CDO Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Package Registry Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef + * @generated + */ + EClass getCDOPackageRegistryDef(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef#getPackages <em>Packages</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Packages</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef#getPackages() + * @see #getCDOPackageRegistryDef() + * @generated + */ + EReference getCDOPackageRegistryDef_Packages(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef <em>CDO Eager Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Eager Package Registry Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef + * @generated + */ + EClass getCDOEagerPackageRegistryDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef <em>CDO Lazy Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Lazy Package Registry Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef + * @generated + */ + EClass getCDOLazyPackageRegistryDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.EPackageDef <em>EPackage Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>EPackage Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.EPackageDef + * @generated + */ + EClass getEPackageDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.EPackageDef#getNsURI <em>Ns URI</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ns URI</em>'. + * @see org.eclipse.emf.cdo.cdodefs.EPackageDef#getNsURI() + * @see #getEPackageDef() + * @generated + */ + EAttribute getEPackageDef_NsURI(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef <em>EDynamic Package Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>EDynamic Package Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef + * @generated + */ + EClass getEDynamicPackageDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Resource URI</em>'. + * @see org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef#getResourceURI() + * @see #getEDynamicPackageDef() + * @generated + */ + EAttribute getEDynamicPackageDef_ResourceURI(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef <em>EGlobal Package Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>EGlobal Package Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef + * @generated + */ + EClass getEGlobalPackageDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef <em>CDO Client Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Client Protocol Factory Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef + * @generated + */ + EClass getCDOClientProtocolFactoryDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef <em>CDO Server Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Server Protocol Factory Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef + * @generated + */ + EClass getCDOServerProtocolFactoryDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef#getRepositoryProviderDef <em>Repository Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Repository Provider Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef#getRepositoryProviderDef() + * @see #getCDOServerProtocolFactoryDef() + * @generated + */ + EReference getCDOServerProtocolFactoryDef_RepositoryProviderDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef <em>Repository Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Repository Provider Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef + * @generated + */ + EClass getRepositoryProviderDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef <em>Plugin Repository Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Plugin Repository Provider Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef + * @generated + */ + EClass getPluginRepositoryProviderDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef <em>CDO Resource Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Resource Def</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOResourceDef + * @generated + */ + EClass getCDOResourceDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Cdo Transaction</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getCdoTransaction() + * @see #getCDOResourceDef() + * @generated + */ + EReference getCDOResourceDef_CdoTransaction(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Resource Mode</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getResourceMode() + * @see #getCDOResourceDef() + * @generated + */ + EAttribute getCDOResourceDef_ResourceMode(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Path</em>'. + * @see org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getPath() + * @see #getCDOResourceDef() + * @generated + */ + EAttribute getCDOResourceDef_Path(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.cdo.cdodefs.ResourceMode <em>Resource Mode</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Resource Mode</em>'. + * @see org.eclipse.emf.cdo.cdodefs.ResourceMode + * @generated + */ + EEnum getResourceMode(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + CDODefsFactory getCDODefsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOViewDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOViewDef() + * @generated + */ + EClass CDO_VIEW_DEF = eINSTANCE.getCDOViewDef(); + + /** + * The meta object literal for the '<em><b>Cdo Session Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_VIEW_DEF__CDO_SESSION_DEF = eINSTANCE.getCDOViewDef_CdoSessionDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOTransactionDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOTransactionDef() + * @generated + */ + EClass CDO_TRANSACTION_DEF = eINSTANCE.getCDOTransactionDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOAuditDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOAuditDef() + * @generated + */ + EClass CDO_AUDIT_DEF = eINSTANCE.getCDOAuditDef(); + + /** + * The meta object literal for the '<em><b>Time Stamp</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_AUDIT_DEF__TIME_STAMP = eINSTANCE.getCDOAuditDef_TimeStamp(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOSessionDef() + * @generated + */ + EClass CDO_SESSION_DEF = eINSTANCE.getCDOSessionDef(); + + /** + * The meta object literal for the '<em><b>Connector Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_SESSION_DEF__CONNECTOR_DEF = eINSTANCE.getCDOSessionDef_ConnectorDef(); + + /** + * The meta object literal for the '<em><b>Repository Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_SESSION_DEF__REPOSITORY_NAME = eINSTANCE.getCDOSessionDef_RepositoryName(); + + /** + * The meta object literal for the '<em><b>Cdo Package Registry Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOSessionDef_CdoPackageRegistryDef(); + + /** + * The meta object literal for the '<em><b>Legacy Support Enabled</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = eINSTANCE.getCDOSessionDef_LegacySupportEnabled(); + + /** + * The meta object literal for the '<em><b>Fail Over Strategy Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF = eINSTANCE.getCDOSessionDef_FailOverStrategyDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.FailOverStrategyDefImpl <em>Fail Over Strategy Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.FailOverStrategyDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getFailOverStrategyDef() + * @generated + */ + EClass FAIL_OVER_STRATEGY_DEF = eINSTANCE.getFailOverStrategyDef(); + + /** + * The meta object literal for the '<em><b>Connector Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF = eINSTANCE.getFailOverStrategyDef_ConnectorDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.RetryFailOverStrategyDefImpl <em>Retry Fail Over Strategy Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.RetryFailOverStrategyDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getRetryFailOverStrategyDef() + * @generated + */ + EClass RETRY_FAIL_OVER_STRATEGY_DEF = eINSTANCE.getRetryFailOverStrategyDef(); + + /** + * The meta object literal for the '<em><b>Retries</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES = eINSTANCE.getRetryFailOverStrategyDef_Retries(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef() + * @generated + */ + EClass CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOPackageRegistryDef(); + + /** + * The meta object literal for the '<em><b>Packages</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_PACKAGE_REGISTRY_DEF__PACKAGES = eINSTANCE.getCDOPackageRegistryDef_Packages(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOEagerPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef() + * @generated + */ + EClass CDO_EAGER_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOEagerPackageRegistryDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOLazyPackageRegistryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef() + * @generated + */ + EClass CDO_LAZY_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOLazyPackageRegistryDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EPackageDefImpl <em>EPackage Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEPackageDef() + * @generated + */ + EClass EPACKAGE_DEF = eINSTANCE.getEPackageDef(); + + /** + * The meta object literal for the '<em><b>Ns URI</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EPACKAGE_DEF__NS_URI = eINSTANCE.getEPackageDef_NsURI(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EDynamicPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEDynamicPackageDef() + * @generated + */ + EClass EDYNAMIC_PACKAGE_DEF = eINSTANCE.getEDynamicPackageDef(); + + /** + * The meta object literal for the '<em><b>Resource URI</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = eINSTANCE.getEDynamicPackageDef_ResourceURI(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.EGlobalPackageDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getEGlobalPackageDef() + * @generated + */ + EClass EGLOBAL_PACKAGE_DEF = eINSTANCE.getEGlobalPackageDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOClientProtocolFactoryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef() + * @generated + */ + EClass CDO_CLIENT_PROTOCOL_FACTORY_DEF = eINSTANCE.getCDOClientProtocolFactoryDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOServerProtocolFactoryDefImpl <em>CDO Server Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOServerProtocolFactoryDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOServerProtocolFactoryDef() + * @generated + */ + EClass CDO_SERVER_PROTOCOL_FACTORY_DEF = eINSTANCE.getCDOServerProtocolFactoryDef(); + + /** + * The meta object literal for the '<em><b>Repository Provider Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF = eINSTANCE.getCDOServerProtocolFactoryDef_RepositoryProviderDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.RepositoryProviderDefImpl <em>Repository Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.RepositoryProviderDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getRepositoryProviderDef() + * @generated + */ + EClass REPOSITORY_PROVIDER_DEF = eINSTANCE.getRepositoryProviderDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.PluginRepositoryProviderDefImpl <em>Plugin Repository Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.PluginRepositoryProviderDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getPluginRepositoryProviderDef() + * @generated + */ + EClass PLUGIN_REPOSITORY_PROVIDER_DEF = eINSTANCE.getPluginRepositoryProviderDef(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.impl.CDOResourceDefImpl + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getCDOResourceDef() + * @generated + */ + EClass CDO_RESOURCE_DEF = eINSTANCE.getCDOResourceDef(); + + /** + * The meta object literal for the '<em><b>Cdo Transaction</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_RESOURCE_DEF__CDO_TRANSACTION = eINSTANCE.getCDOResourceDef_CdoTransaction(); + + /** + * The meta object literal for the '<em><b>Resource Mode</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_RESOURCE_DEF__RESOURCE_MODE = eINSTANCE.getCDOResourceDef_ResourceMode(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_RESOURCE_DEF__PATH = eINSTANCE.getCDOResourceDef_Path(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.cdodefs.ResourceMode <em>Resource Mode</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.ResourceMode + * @see org.eclipse.emf.cdo.cdodefs.impl.CDODefsPackageImpl#getResourceMode() + * @generated + */ + EEnum RESOURCE_MODE = eINSTANCE.getResourceMode(); + + } + +} //CDODefsPackage diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOEagerPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOEagerPackageRegistryDef.java new file mode 100644 index 0000000000..d6dfc282ac --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOEagerPackageRegistryDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOEagerPackageRegistryDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Eager Package Registry Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOEagerPackageRegistryDef() + * @model + * @generated + */ +public interface CDOEagerPackageRegistryDef extends CDOPackageRegistryDef { +} // EagerPackageRegistryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOLazyPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOLazyPackageRegistryDef.java new file mode 100644 index 0000000000..6a9ee629cd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOLazyPackageRegistryDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOLazyPackageRegistryDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Lazy Package Registry Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOLazyPackageRegistryDef() + * @model + * @generated + */ +public interface CDOLazyPackageRegistryDef extends CDOPackageRegistryDef { +} // LazyPackageRegistryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOPackageRegistryDef.java new file mode 100644 index 0000000000..c33dfb9176 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOPackageRegistryDef.java @@ -0,0 +1,46 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOPackageRegistryDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Package Registry Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef#getPackages <em>Packages</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOPackageRegistryDef() + * @model + * @generated + */ +public interface CDOPackageRegistryDef extends Def { + /** + * Returns the value of the '<em><b>Packages</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.cdodefs.EPackageDef}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Packages</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Packages</em>' containment reference list. + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOPackageRegistryDef_Packages() + * @model containment="true" + * @generated + */ + EList<EPackageDef> getPackages(); + +} // CDOPackageRegistryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOResourceDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOResourceDef.java new file mode 100644 index 0000000000..8854da1877 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOResourceDef.java @@ -0,0 +1,112 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOResourceDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Resource Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getPath <em>Path</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOResourceDef() + * @model + * @generated + */ +public interface CDOResourceDef extends Def { + /** + * Returns the value of the '<em><b>Cdo Transaction</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cdo Transaction</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cdo Transaction</em>' reference. + * @see #setCdoTransaction(CDOTransactionDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOResourceDef_CdoTransaction() + * @model required="true" + * @generated + */ + CDOTransactionDef getCdoTransaction(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cdo Transaction</em>' reference. + * @see #getCdoTransaction() + * @generated + */ + void setCdoTransaction(CDOTransactionDef value); + + /** + * Returns the value of the '<em><b>Resource Mode</b></em>' attribute. + * The default value is <code>"NULL"</code>. + * The literals are from the enumeration {@link org.eclipse.emf.cdo.cdodefs.ResourceMode}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Resource Mode</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Resource Mode</em>' attribute. + * @see org.eclipse.emf.cdo.cdodefs.ResourceMode + * @see #setResourceMode(ResourceMode) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOResourceDef_ResourceMode() + * @model default="NULL" required="true" + * @generated + */ + ResourceMode getResourceMode(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Resource Mode</em>' attribute. + * @see org.eclipse.emf.cdo.cdodefs.ResourceMode + * @see #getResourceMode() + * @generated + */ + void setResourceMode(ResourceMode value); + + /** + * Returns the value of the '<em><b>Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Path</em>' attribute. + * @see #setPath(String) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOResourceDef_Path() + * @model required="true" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef#getPath <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Path</em>' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // CDOResourceDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOServerProtocolFactoryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOServerProtocolFactoryDef.java new file mode 100644 index 0000000000..6bd968536c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOServerProtocolFactoryDef.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOServerProtocolFactoryDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Server Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef#getRepositoryProviderDef <em>Repository Provider Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOServerProtocolFactoryDef() + * @model + * @generated + */ +public interface CDOServerProtocolFactoryDef extends ServerProtocolFactoryDef { + + /** + * Returns the value of the '<em><b>Repository Provider Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Repository Provider Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Repository Provider Def</em>' reference. + * @see #setRepositoryProviderDef(RepositoryProviderDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOServerProtocolFactoryDef_RepositoryProviderDef() + * @model required="true" + * @generated + */ + RepositoryProviderDef getRepositoryProviderDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef#getRepositoryProviderDef <em>Repository Provider Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Repository Provider Def</em>' reference. + * @see #getRepositoryProviderDef() + * @generated + */ + void setRepositoryProviderDef(RepositoryProviderDef value); +} // CDOServerProtocolFactoryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOSessionDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOSessionDef.java new file mode 100644 index 0000000000..d10b1c5c4d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOSessionDef.java @@ -0,0 +1,218 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOSessionDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Session Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef() + * @model + * @generated + */ +public interface CDOSessionDef extends Def { + /** + * Returns the value of the '<em><b>Connector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Connector Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Connector Def</em>' reference. + * @see #isSetConnectorDef() + * @see #unsetConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef_ConnectorDef() + * @model unsettable="true" required="true" + * @generated + */ + ConnectorDef getConnectorDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Connector Def</em>' reference. + * @see #isSetConnectorDef() + * @see #unsetConnectorDef() + * @see #getConnectorDef() + * @generated + */ + void setConnectorDef(ConnectorDef value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetConnectorDef() + * @see #getConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @generated + */ + void unsetConnectorDef(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}' reference is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Connector Def</em>' reference is set. + * @see #unsetConnectorDef() + * @see #getConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @generated + */ + boolean isSetConnectorDef(); + + /** + * Returns the value of the '<em><b>Repository Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Repository Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Repository Name</em>' attribute. + * @see #setRepositoryName(String) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef_RepositoryName() + * @model unique="false" required="true" ordered="false" + * @generated + */ + String getRepositoryName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Repository Name</em>' attribute. + * @see #getRepositoryName() + * @generated + */ + void setRepositoryName(String value); + + /** + * Returns the value of the '<em><b>Cdo Package Registry Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cdo Package Registry Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cdo Package Registry Def</em>' reference. + * @see #setCdoPackageRegistryDef(CDOPackageRegistryDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef_CdoPackageRegistryDef() + * @model required="true" + * @generated + */ + CDOPackageRegistryDef getCdoPackageRegistryDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cdo Package Registry Def</em>' reference. + * @see #getCdoPackageRegistryDef() + * @generated + */ + void setCdoPackageRegistryDef(CDOPackageRegistryDef value); + + /** + * Returns the value of the '<em><b>Legacy Support Enabled</b></em>' attribute. + * The default value is <code>"false"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Legacy Support Enabled</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Legacy Support Enabled</em>' attribute. + * @see #setLegacySupportEnabled(boolean) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef_LegacySupportEnabled() + * @model default="false" required="true" + * @generated + */ + boolean isLegacySupportEnabled(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Legacy Support Enabled</em>' attribute. + * @see #isLegacySupportEnabled() + * @generated + */ + void setLegacySupportEnabled(boolean value); + + /** + * Returns the value of the '<em><b>Fail Over Strategy Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fail Over Strategy Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fail Over Strategy Def</em>' reference. + * @see #isSetFailOverStrategyDef() + * @see #unsetFailOverStrategyDef() + * @see #setFailOverStrategyDef(FailOverStrategyDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOSessionDef_FailOverStrategyDef() + * @model unsettable="true" + * @generated + */ + FailOverStrategyDef getFailOverStrategyDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fail Over Strategy Def</em>' reference. + * @see #isSetFailOverStrategyDef() + * @see #unsetFailOverStrategyDef() + * @see #getFailOverStrategyDef() + * @generated + */ + void setFailOverStrategyDef(FailOverStrategyDef value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFailOverStrategyDef() + * @see #getFailOverStrategyDef() + * @see #setFailOverStrategyDef(FailOverStrategyDef) + * @generated + */ + void unsetFailOverStrategyDef(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}' reference is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fail Over Strategy Def</em>' reference is set. + * @see #unsetFailOverStrategyDef() + * @see #getFailOverStrategyDef() + * @see #setFailOverStrategyDef(FailOverStrategyDef) + * @generated + */ + boolean isSetFailOverStrategyDef(); + +} // CDOSessionDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOTransactionDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOTransactionDef.java new file mode 100644 index 0000000000..406874b112 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOTransactionDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOTransactionDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Transaction Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOTransactionDef() + * @model + * @generated + */ +public interface CDOTransactionDef extends CDOViewDef { + +} // CDOTransactionDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOViewDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOViewDef.java new file mode 100644 index 0000000000..c4a259f240 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/CDOViewDef.java @@ -0,0 +1,54 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOViewDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO View Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOViewDef() + * @model + * @generated + */ +public interface CDOViewDef extends Def { + /** + * Returns the value of the '<em><b>Cdo Session Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cdo Session Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cdo Session Def</em>' reference. + * @see #setCdoSessionDef(CDOSessionDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getCDOViewDef_CdoSessionDef() + * @model required="true" + * @generated + */ + CDOSessionDef getCdoSessionDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cdo Session Def</em>' reference. + * @see #getCdoSessionDef() + * @generated + */ + void setCdoSessionDef(CDOSessionDef value); + +} // CDOViewDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EDynamicPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EDynamicPackageDef.java new file mode 100644 index 0000000000..7fcc73a690 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EDynamicPackageDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EDynamicPackageDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Dynamic CDO Package Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getEDynamicPackageDef() + * @model + * @generated + */ +public interface EDynamicPackageDef extends EPackageDef { + /** + * Returns the value of the '<em><b>Resource URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Resource URI</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Resource URI</em>' attribute. + * @see #setResourceURI(String) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getEDynamicPackageDef_ResourceURI() + * @model required="true" + * @generated + */ + String getResourceURI(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Resource URI</em>' attribute. + * @see #getResourceURI() + * @generated + */ + void setResourceURI(String value); + +} // DynamicCDOPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EGlobalPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EGlobalPackageDef.java new file mode 100644 index 0000000000..375b85cb5a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EGlobalPackageDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EGlobalPackageDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Native CDO Package Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getEGlobalPackageDef() + * @model + * @generated + */ +public interface EGlobalPackageDef extends EPackageDef { +} // NativeCDOPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EPackageDef.java new file mode 100644 index 0000000000..3d470df9f4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/EPackageDef.java @@ -0,0 +1,54 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EPackageDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Package Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.EPackageDef#getNsURI <em>Ns URI</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getEPackageDef() + * @model abstract="true" + * @generated + */ +public interface EPackageDef extends Def { + /** + * Returns the value of the '<em><b>Ns URI</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ns URI</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ns URI</em>' attribute. + * @see #setNsURI(String) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getEPackageDef_NsURI() + * @model required="true" + * @generated + */ + String getNsURI(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.EPackageDef#getNsURI <em>Ns URI</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ns URI</em>' attribute. + * @see #getNsURI() + * @generated + */ + void setNsURI(String value); + +} // CDOPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/FailOverStrategyDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/FailOverStrategyDef.java new file mode 100644 index 0000000000..4b7338a255 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/FailOverStrategyDef.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FailOverStrategyDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Fail Over Strategy Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef#getConnectorDef <em>Connector Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getFailOverStrategyDef() + * @model abstract="true" + * @generated + */ +public interface FailOverStrategyDef extends Def { + /** + * Returns the value of the '<em><b>Connector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Connector Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Connector Def</em>' reference. + * @see #setConnectorDef(ConnectorDef) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getFailOverStrategyDef_ConnectorDef() + * @model required="true" + * @generated + */ + ConnectorDef getConnectorDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef#getConnectorDef <em>Connector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Connector Def</em>' reference. + * @see #getConnectorDef() + * @generated + */ + void setConnectorDef(ConnectorDef value); + +} // FailOverStrategyDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/PluginRepositoryProviderDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/PluginRepositoryProviderDef.java new file mode 100644 index 0000000000..ec7c9201c5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/PluginRepositoryProviderDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PluginRepositoryProviderDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Plugin Repository Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getPluginRepositoryProviderDef() + * @model + * @generated + */ +public interface PluginRepositoryProviderDef extends RepositoryProviderDef { +} // PluginRepositoryProviderDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RepositoryProviderDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RepositoryProviderDef.java new file mode 100644 index 0000000000..f2eaf50cab --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RepositoryProviderDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RepositoryProviderDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Repository Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getRepositoryProviderDef() + * @model abstract="true" + * @generated + */ +public interface RepositoryProviderDef extends Def { +} // RepositoryProviderDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/ResourceMode.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/ResourceMode.java new file mode 100644 index 0000000000..12e32f02ac --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/ResourceMode.java @@ -0,0 +1,262 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ResourceMode.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + +import org.eclipse.emf.cdo.CDOTransaction; +import org.eclipse.emf.cdo.eresource.CDOResource; + +import org.eclipse.emf.common.util.Enumerator; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Resource Mode</b></em>', and + * utility methods for working with them. <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getResourceMode() + * @model + * @generated + */ +public enum ResourceMode implements Enumerator +{ + /** + * The '<em><b>GET</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #GET_VALUE + * @generated NOT + * @ordered + */ + GET(0, "GET", "GET") + { + @Override + public CDOResource getResource(String path, CDOTransaction transaction) + { + return transaction.getResource(path); + // return transaction.getResource(path, false); + } + }, + + /** + * The '<em><b>CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #CREATE_VALUE + * @generated NOT + * @ordered + */ + CREATE(0, "CREATE", "CREATE") + { + @Override + public CDOResource getResource(String path, CDOTransaction transaction) + { + return transaction.createResource(path); + } + }, + + /** + * The '<em><b>GET OR CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #GET_OR_CREATE_VALUE + * @generated NOT + * @ordered + */ + GET_OR_CREATE(0, "GET_OR_CREATE", "GET_OR_CREATE") + { + @Override + public CDOResource getResource(String path, CDOTransaction transaction) + { + return transaction.getOrCreateResource(path); + } + }; + + /** + * The '<em><b>GET</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>GET</b></em>' literal object isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * @see #GET + * @model + * @generated + * @ordered + */ + public static final int GET_VALUE = 0; + + /** + * The '<em><b>CREATE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>CREATE</b></em>' literal object isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * @see #CREATE + * @model + * @generated + * @ordered + */ + public static final int CREATE_VALUE = 0; + + /** + * The '<em><b>GET OR CREATE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>GET OR CREATE</b></em>' literal object isn't clear, there really should be more of a + * description here... + * </p> + * <!-- end-user-doc --> + * @see #GET_OR_CREATE + * @model + * @generated + * @ordered + */ + public static final int GET_OR_CREATE_VALUE = 0; + + /** + * An array of all the '<em><b>Resource Mode</b></em>' enumerators. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private static final ResourceMode[] VALUES_ARRAY = new ResourceMode[] { + GET, + CREATE, + GET_OR_CREATE, + }; + + /** + * A public read-only list of all the '<em><b>Resource Mode</b></em>' enumerators. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + */ + public static final List<ResourceMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Resource Mode</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + */ + public static ResourceMode get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ResourceMode result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Resource Mode</b></em>' literal with the specified name. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + */ + public static ResourceMode getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ResourceMode result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Resource Mode</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + */ + public static ResourceMode get(int value) + { + switch (value) { + case GET_VALUE: return GET; + } + return null; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private ResourceMode(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public int getValue() + { + return value; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + */ + @Override + public String toString() + { + return literal; + } + + public CDOResource getResource(String path, CDOTransaction cdoTransaction) + { + throw new UnsupportedOperationException("use a subclass!"); + } + +} // ResourceMode diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RetryFailOverStrategyDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RetryFailOverStrategyDef.java new file mode 100644 index 0000000000..edb03892fc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/RetryFailOverStrategyDef.java @@ -0,0 +1,80 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RetryFailOverStrategyDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Retry Fail Over Strategy</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries <em>Retries</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getRetryFailOverStrategyDef() + * @model + * @generated + */ +public interface RetryFailOverStrategyDef extends FailOverStrategyDef { + /** + * Returns the value of the '<em><b>Retries</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Retries</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Retries</em>' attribute. + * @see #isSetRetries() + * @see #unsetRetries() + * @see #setRetries(int) + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#getRetryFailOverStrategyDef_Retries() + * @model unsettable="true" + * @generated + */ + int getRetries(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries <em>Retries</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Retries</em>' attribute. + * @see #isSetRetries() + * @see #unsetRetries() + * @see #getRetries() + * @generated + */ + void setRetries(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries <em>Retries</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetRetries() + * @see #getRetries() + * @see #setRetries(int) + * @generated + */ + void unsetRetries(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef#getRetries <em>Retries</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Retries</em>' attribute is set. + * @see #unsetRetries() + * @see #getRetries() + * @see #setRetries(int) + * @generated + */ + boolean isSetRetries(); + +} // RetryFailOverStrategy diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOAuditDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOAuditDefImpl.java new file mode 100644 index 0000000000..7d0f137ef3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOAuditDefImpl.java @@ -0,0 +1,182 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOAuditDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.CDOSession; +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; + +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import java.util.Date; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Audit Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOAuditDefImpl#getTimeStamp <em>Time Stamp</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOAuditDefImpl extends CDOViewDefImpl implements CDOAuditDef +{ + /** + * The default value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getTimeStamp() + * @generated + * @ordered + */ + protected static final Date TIME_STAMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getTimeStamp() + * @generated + * @ordered + */ + protected Date timeStamp = TIME_STAMP_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOAuditDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_AUDIT_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public Date getTimeStamp() + { + return timeStamp; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setTimeStamp(Date newTimeStamp) + { + Date oldTimeStamp = timeStamp; + timeStamp = newTimeStamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP, oldTimeStamp, timeStamp)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP: + return getTimeStamp(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP: + setTimeStamp((Date)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP: + setTimeStamp(TIME_STAMP_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP: + return TIME_STAMP_EDEFAULT == null ? timeStamp != null : !TIME_STAMP_EDEFAULT.equals(timeStamp); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (timeStamp: "); + result.append(timeStamp); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() + { + CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance(); + return cdoSession.openAudit(getTimeStamp().getTime()); + } + + @Override + protected void validateDefinition() + { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP), "time stamp is not set!"); + } + +} // CDOAuditDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOClientProtocolFactoryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOClientProtocolFactoryDefImpl.java new file mode 100644 index 0000000000..b167a18618 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOClientProtocolFactoryDefImpl.java @@ -0,0 +1,52 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOClientProtocolFactoryDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; + +import org.eclipse.emf.internal.cdo.protocol.CDOClientProtocolFactory; + +import org.eclipse.net4j.net4jdefs.impl.ClientProtocolFactoryDefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class CDOClientProtocolFactoryDefImpl extends ClientProtocolFactoryDefImpl implements CDOClientProtocolFactoryDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CDOClientProtocolFactoryDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.CDO_CLIENT_PROTOCOL_FACTORY_DEF; + } + + @Override + protected Object createInstance() { + return new CDOClientProtocolFactory(); + } + +} //CDOClientProtocolFactoryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsFactoryImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsFactoryImpl.java new file mode 100644 index 0000000000..dd5eed72c0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsFactoryImpl.java @@ -0,0 +1,307 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsFactoryImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsFactory; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; +import org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef; +import org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef; +import org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.ResourceMode; +import org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CDODefsFactoryImpl extends EFactoryImpl implements CDODefsFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static CDODefsFactory init() { + try { + CDODefsFactory theCDODefsFactory = (CDODefsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/CDO/defs/1.0.0"); + if (theCDODefsFactory != null) { + return theCDODefsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CDODefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDODefsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CDODefsPackage.CDO_VIEW_DEF: return createCDOViewDef(); + case CDODefsPackage.CDO_TRANSACTION_DEF: return createCDOTransactionDef(); + case CDODefsPackage.CDO_AUDIT_DEF: return createCDOAuditDef(); + case CDODefsPackage.CDO_SESSION_DEF: return createCDOSessionDef(); + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF: return createRetryFailOverStrategyDef(); + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF: return createCDOPackageRegistryDef(); + case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF: return createCDOEagerPackageRegistryDef(); + case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF: return createCDOLazyPackageRegistryDef(); + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF: return createEDynamicPackageDef(); + case CDODefsPackage.EGLOBAL_PACKAGE_DEF: return createEGlobalPackageDef(); + case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF: return createCDOClientProtocolFactoryDef(); + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF: return createCDOServerProtocolFactoryDef(); + case CDODefsPackage.PLUGIN_REPOSITORY_PROVIDER_DEF: return createPluginRepositoryProviderDef(); + case CDODefsPackage.CDO_RESOURCE_DEF: return createCDOResourceDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case CDODefsPackage.RESOURCE_MODE: + return createResourceModeFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case CDODefsPackage.RESOURCE_MODE: + return convertResourceModeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOViewDef createCDOViewDef() { + CDOViewDefImpl cdoViewDef = new CDOViewDefImpl(); + return cdoViewDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOTransactionDef createCDOTransactionDef() { + CDOTransactionDefImpl cdoTransactionDef = new CDOTransactionDefImpl(); + return cdoTransactionDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOAuditDef createCDOAuditDef() { + CDOAuditDefImpl cdoAuditDef = new CDOAuditDefImpl(); + return cdoAuditDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOSessionDef createCDOSessionDef() { + CDOSessionDefImpl cdoSessionDef = new CDOSessionDefImpl(); + return cdoSessionDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RetryFailOverStrategyDef createRetryFailOverStrategyDef() { + RetryFailOverStrategyDefImpl retryFailOverStrategyDef = new RetryFailOverStrategyDefImpl(); + return retryFailOverStrategyDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOPackageRegistryDef createCDOPackageRegistryDef() { + CDOPackageRegistryDefImpl cdoPackageRegistryDef = new CDOPackageRegistryDefImpl(); + return cdoPackageRegistryDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef() { + CDOEagerPackageRegistryDefImpl cdoEagerPackageRegistryDef = new CDOEagerPackageRegistryDefImpl(); + return cdoEagerPackageRegistryDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef() { + CDOLazyPackageRegistryDefImpl cdoLazyPackageRegistryDef = new CDOLazyPackageRegistryDefImpl(); + return cdoLazyPackageRegistryDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDynamicPackageDef createEDynamicPackageDef() { + EDynamicPackageDefImpl eDynamicPackageDef = new EDynamicPackageDefImpl(); + return eDynamicPackageDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EGlobalPackageDef createEGlobalPackageDef() { + EGlobalPackageDefImpl eGlobalPackageDef = new EGlobalPackageDefImpl(); + return eGlobalPackageDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef() { + CDOClientProtocolFactoryDefImpl cdoClientProtocolFactoryDef = new CDOClientProtocolFactoryDefImpl(); + return cdoClientProtocolFactoryDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOServerProtocolFactoryDef createCDOServerProtocolFactoryDef() { + CDOServerProtocolFactoryDefImpl cdoServerProtocolFactoryDef = new CDOServerProtocolFactoryDefImpl(); + return cdoServerProtocolFactoryDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PluginRepositoryProviderDef createPluginRepositoryProviderDef() { + PluginRepositoryProviderDefImpl pluginRepositoryProviderDef = new PluginRepositoryProviderDefImpl(); + return pluginRepositoryProviderDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOResourceDef createCDOResourceDef() { + CDOResourceDefImpl cdoResourceDef = new CDOResourceDefImpl(); + return cdoResourceDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ResourceMode createResourceModeFromString(EDataType eDataType, String initialValue) { + ResourceMode result = ResourceMode.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertResourceModeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDODefsPackage getCDODefsPackage() { + return (CDODefsPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static CDODefsPackage getPackage() { + return CDODefsPackage.eINSTANCE; + } + +} //CDODefsFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsPackageImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsPackageImpl.java new file mode 100644 index 0000000000..40a01780ae --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDODefsPackageImpl.java @@ -0,0 +1,743 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsPackageImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsFactory; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; +import org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef; +import org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef; +import org.eclipse.emf.cdo.cdodefs.EPackageDef; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; +import org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.ResourceMode; +import org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CDODefsPackageImpl extends EPackageImpl implements CDODefsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoViewDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoTransactionDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoAuditDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoSessionDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass failOverStrategyDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass retryFailOverStrategyDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoPackageRegistryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoEagerPackageRegistryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoLazyPackageRegistryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass ePackageDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass eDynamicPackageDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass eGlobalPackageDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoClientProtocolFactoryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoServerProtocolFactoryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass repositoryProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass pluginRepositoryProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoResourceDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum resourceModeEEnum = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage#eNS_URI + * @see #init() + * @generated + */ + private CDODefsPackageImpl() { + super(eNS_URI, CDODefsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CDODefsPackage init() { + if (isInited) return (CDODefsPackage)EPackage.Registry.INSTANCE.getEPackage(CDODefsPackage.eNS_URI); + + // Obtain or create and register package + CDODefsPackageImpl theCDODefsPackage = (CDODefsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CDODefsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CDODefsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + Net4jDefsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCDODefsPackage.createPackageContents(); + + // Initialize created meta-data + theCDODefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCDODefsPackage.freeze(); + + return theCDODefsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOViewDef() { + return cdoViewDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOViewDef_CdoSessionDef() { + return (EReference)cdoViewDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOTransactionDef() { + return cdoTransactionDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOAuditDef() { + return cdoAuditDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOAuditDef_TimeStamp() { + return (EAttribute)cdoAuditDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOSessionDef() { + return cdoSessionDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOSessionDef_ConnectorDef() { + return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOSessionDef_RepositoryName() { + return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOSessionDef_CdoPackageRegistryDef() { + return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOSessionDef_LegacySupportEnabled() { + return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOSessionDef_FailOverStrategyDef() { + return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFailOverStrategyDef() { + return failOverStrategyDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getFailOverStrategyDef_ConnectorDef() { + return (EReference)failOverStrategyDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRetryFailOverStrategyDef() { + return retryFailOverStrategyDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRetryFailOverStrategyDef_Retries() { + return (EAttribute)retryFailOverStrategyDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOPackageRegistryDef() { + return cdoPackageRegistryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOPackageRegistryDef_Packages() { + return (EReference)cdoPackageRegistryDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOEagerPackageRegistryDef() { + return cdoEagerPackageRegistryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOLazyPackageRegistryDef() { + return cdoLazyPackageRegistryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEPackageDef() { + return ePackageDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEPackageDef_NsURI() { + return (EAttribute)ePackageDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEDynamicPackageDef() { + return eDynamicPackageDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEDynamicPackageDef_ResourceURI() { + return (EAttribute)eDynamicPackageDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEGlobalPackageDef() { + return eGlobalPackageDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOClientProtocolFactoryDef() { + return cdoClientProtocolFactoryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOServerProtocolFactoryDef() { + return cdoServerProtocolFactoryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOServerProtocolFactoryDef_RepositoryProviderDef() { + return (EReference)cdoServerProtocolFactoryDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRepositoryProviderDef() { + return repositoryProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPluginRepositoryProviderDef() { + return pluginRepositoryProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOResourceDef() { + return cdoResourceDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOResourceDef_CdoTransaction() { + return (EReference)cdoResourceDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOResourceDef_ResourceMode() { + return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOResourceDef_Path() { + return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getResourceMode() { + return resourceModeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDODefsFactory getCDODefsFactory() { + return (CDODefsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + cdoViewDefEClass = createEClass(CDO_VIEW_DEF); + createEReference(cdoViewDefEClass, CDO_VIEW_DEF__CDO_SESSION_DEF); + + cdoTransactionDefEClass = createEClass(CDO_TRANSACTION_DEF); + + cdoAuditDefEClass = createEClass(CDO_AUDIT_DEF); + createEAttribute(cdoAuditDefEClass, CDO_AUDIT_DEF__TIME_STAMP); + + cdoSessionDefEClass = createEClass(CDO_SESSION_DEF); + createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CONNECTOR_DEF); + createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__REPOSITORY_NAME); + createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF); + createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED); + createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF); + + failOverStrategyDefEClass = createEClass(FAIL_OVER_STRATEGY_DEF); + createEReference(failOverStrategyDefEClass, FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF); + + retryFailOverStrategyDefEClass = createEClass(RETRY_FAIL_OVER_STRATEGY_DEF); + createEAttribute(retryFailOverStrategyDefEClass, RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES); + + cdoPackageRegistryDefEClass = createEClass(CDO_PACKAGE_REGISTRY_DEF); + createEReference(cdoPackageRegistryDefEClass, CDO_PACKAGE_REGISTRY_DEF__PACKAGES); + + cdoEagerPackageRegistryDefEClass = createEClass(CDO_EAGER_PACKAGE_REGISTRY_DEF); + + cdoLazyPackageRegistryDefEClass = createEClass(CDO_LAZY_PACKAGE_REGISTRY_DEF); + + ePackageDefEClass = createEClass(EPACKAGE_DEF); + createEAttribute(ePackageDefEClass, EPACKAGE_DEF__NS_URI); + + eDynamicPackageDefEClass = createEClass(EDYNAMIC_PACKAGE_DEF); + createEAttribute(eDynamicPackageDefEClass, EDYNAMIC_PACKAGE_DEF__RESOURCE_URI); + + eGlobalPackageDefEClass = createEClass(EGLOBAL_PACKAGE_DEF); + + cdoClientProtocolFactoryDefEClass = createEClass(CDO_CLIENT_PROTOCOL_FACTORY_DEF); + + cdoServerProtocolFactoryDefEClass = createEClass(CDO_SERVER_PROTOCOL_FACTORY_DEF); + createEReference(cdoServerProtocolFactoryDefEClass, CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF); + + repositoryProviderDefEClass = createEClass(REPOSITORY_PROVIDER_DEF); + + pluginRepositoryProviderDefEClass = createEClass(PLUGIN_REPOSITORY_PROVIDER_DEF); + + cdoResourceDefEClass = createEClass(CDO_RESOURCE_DEF); + createEReference(cdoResourceDefEClass, CDO_RESOURCE_DEF__CDO_TRANSACTION); + createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__RESOURCE_MODE); + createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__PATH); + + // Create enums + resourceModeEEnum = createEEnum(RESOURCE_MODE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jUtilDefsPackage.eNS_URI); + Net4jDefsPackage theNet4jDefsPackage = (Net4jDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jDefsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + cdoViewDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoTransactionDefEClass.getESuperTypes().add(this.getCDOViewDef()); + cdoAuditDefEClass.getESuperTypes().add(this.getCDOViewDef()); + cdoSessionDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + failOverStrategyDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + retryFailOverStrategyDefEClass.getESuperTypes().add(this.getFailOverStrategyDef()); + cdoPackageRegistryDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoEagerPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); + cdoLazyPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); + ePackageDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + eDynamicPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); + eGlobalPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); + cdoClientProtocolFactoryDefEClass.getESuperTypes().add(theNet4jDefsPackage.getClientProtocolFactoryDef()); + cdoServerProtocolFactoryDefEClass.getESuperTypes().add(theNet4jDefsPackage.getServerProtocolFactoryDef()); + repositoryProviderDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + pluginRepositoryProviderDefEClass.getESuperTypes().add(this.getRepositoryProviderDef()); + cdoResourceDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + + // Initialize classes and features; add operations and parameters + initEClass(cdoViewDefEClass, CDOViewDef.class, "CDOViewDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOViewDef_CdoSessionDef(), this.getCDOSessionDef(), null, "cdoSessionDef", null, 1, 1, CDOViewDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoTransactionDefEClass, CDOTransactionDef.class, "CDOTransactionDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoAuditDefEClass, CDOAuditDef.class, "CDOAuditDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCDOAuditDef_TimeStamp(), ecorePackage.getEDate(), "timeStamp", null, 1, 1, CDOAuditDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoSessionDefEClass, CDOSessionDef.class, "CDOSessionDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOSessionDef_ConnectorDef(), theNet4jDefsPackage.getConnectorDef(), null, "connectorDef", null, 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOSessionDef_RepositoryName(), ecorePackage.getEString(), "repositoryName", null, 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getCDOSessionDef_CdoPackageRegistryDef(), this.getCDOPackageRegistryDef(), null, "cdoPackageRegistryDef", null, 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOSessionDef_LegacySupportEnabled(), ecorePackage.getEBoolean(), "legacySupportEnabled", "false", 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCDOSessionDef_FailOverStrategyDef(), this.getFailOverStrategyDef(), null, "failOverStrategyDef", null, 0, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(failOverStrategyDefEClass, FailOverStrategyDef.class, "FailOverStrategyDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFailOverStrategyDef_ConnectorDef(), theNet4jDefsPackage.getConnectorDef(), null, "connectorDef", null, 1, 1, FailOverStrategyDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(retryFailOverStrategyDefEClass, RetryFailOverStrategyDef.class, "RetryFailOverStrategyDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRetryFailOverStrategyDef_Retries(), ecorePackage.getEInt(), "retries", null, 0, 1, RetryFailOverStrategyDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoPackageRegistryDefEClass, CDOPackageRegistryDef.class, "CDOPackageRegistryDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOPackageRegistryDef_Packages(), this.getEPackageDef(), null, "packages", null, 0, -1, CDOPackageRegistryDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoEagerPackageRegistryDefEClass, CDOEagerPackageRegistryDef.class, "CDOEagerPackageRegistryDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoLazyPackageRegistryDefEClass, CDOLazyPackageRegistryDef.class, "CDOLazyPackageRegistryDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(ePackageDefEClass, EPackageDef.class, "EPackageDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEPackageDef_NsURI(), ecorePackage.getEString(), "nsURI", null, 1, 1, EPackageDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eDynamicPackageDefEClass, EDynamicPackageDef.class, "EDynamicPackageDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEDynamicPackageDef_ResourceURI(), ecorePackage.getEString(), "resourceURI", null, 1, 1, EDynamicPackageDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eGlobalPackageDefEClass, EGlobalPackageDef.class, "EGlobalPackageDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoClientProtocolFactoryDefEClass, CDOClientProtocolFactoryDef.class, "CDOClientProtocolFactoryDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoServerProtocolFactoryDefEClass, CDOServerProtocolFactoryDef.class, "CDOServerProtocolFactoryDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOServerProtocolFactoryDef_RepositoryProviderDef(), this.getRepositoryProviderDef(), null, "repositoryProviderDef", null, 1, 1, CDOServerProtocolFactoryDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(repositoryProviderDefEClass, RepositoryProviderDef.class, "RepositoryProviderDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(pluginRepositoryProviderDefEClass, PluginRepositoryProviderDef.class, "PluginRepositoryProviderDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoResourceDefEClass, CDOResourceDef.class, "CDOResourceDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOResourceDef_CdoTransaction(), this.getCDOTransactionDef(), null, "cdoTransaction", null, 1, 1, CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOResourceDef_ResourceMode(), this.getResourceMode(), "resourceMode", "NULL", 1, 1, CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOResourceDef_Path(), ecorePackage.getEString(), "path", null, 1, 1, CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(resourceModeEEnum, ResourceMode.class, "ResourceMode"); + addEEnumLiteral(resourceModeEEnum, ResourceMode.GET); + addEEnumLiteral(resourceModeEEnum, ResourceMode.CREATE); + addEEnumLiteral(resourceModeEEnum, ResourceMode.GET_OR_CREATE); + + // Create resource + createResource(eNS_URI); + } + +} //CDODefsPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOEagerPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOEagerPackageRegistryDefImpl.java new file mode 100644 index 0000000000..26ea4076ae --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOEagerPackageRegistryDefImpl.java @@ -0,0 +1,56 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOEagerPackageRegistryDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.util.CDOUtil; + +import org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl.Eager; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Eager Package Registry Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class CDOEagerPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOEagerPackageRegistryDef +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOEagerPackageRegistryDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_EAGER_PACKAGE_REGISTRY_DEF; + } + + /** + * Creates a {@link Eager}. + * + * @return the CDO package registry + */ + protected Object createInstance() + { + return addPackages(CDOUtil.createEagerPackageRegistry()); + } + +} // EagerPackageRegistryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOLazyPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOLazyPackageRegistryDefImpl.java new file mode 100644 index 0000000000..b1b7f722cd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOLazyPackageRegistryDefImpl.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOLazyPackageRegistryDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.util.CDOUtil; + +import org.eclipse.emf.internal.cdo.util.CDOPackageRegistryImpl.Lazy; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Lazy Package Registry Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class CDOLazyPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOLazyPackageRegistryDef +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOLazyPackageRegistryDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_LAZY_PACKAGE_REGISTRY_DEF; + } + + /** + * Creates a {@link Lazy}. + * + * @return the CDO package registry + */ + protected Object createInstance() + { + return addPackages(CDOUtil.createLazyPackageRegistry()); + } +} // LazyPackageRegistryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOPackageRegistryDefImpl.java new file mode 100644 index 0000000000..051afbcbc7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOPackageRegistryDefImpl.java @@ -0,0 +1,241 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOPackageRegistryDefImpl.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.EPackageDef; + +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +// TODO: Auto-generated Javadoc +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Package Registry Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOPackageRegistryDefImpl#getPackages <em>Packages</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOPackageRegistryDefImpl extends DefImpl implements CDOPackageRegistryDef +{ + + /** + * The cached value of the '{@link #getPackages() <em>Packages</em>}' containment reference list. <!-- begin-user-doc + * --> <!-- end-user-doc --> + */ + protected EList<EPackageDef> packages; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @generated + */ + protected CDOPackageRegistryDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the e class + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_PACKAGE_REGISTRY_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the packages + * @generated + */ + @SuppressWarnings("unchecked") + public EList<EPackageDef> getPackages() + { + if (packages == null) { + packages = new EObjectContainmentEList<EPackageDef>(EPackageDef.class, this, CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES); + } + return packages; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param otherEnd + * the other end + * @param featureID + * the feature id + * @param msgs + * the msgs + * @return the notification chain + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) { + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES: + return ((InternalEList<?>)getPackages()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @param resolve + * the resolve + * @param coreType + * the core type + * @return the object + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES: + return getPackages(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @param newValue + * the new value + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES: + getPackages().clear(); + getPackages().addAll((Collection<? extends EPackageDef>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES: + getPackages().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @return true, if e is set + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES: + return packages != null && !packages.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * Creates the instance. + * + * @return the CDO package registry + */ + protected Object createInstance() + { + return addPackages(new EPackageRegistryImpl()); + } + + /** + * Adds the packages. + * + * @param packageRegistry + * the package registry + * @return the e package. registry + */ + protected EPackage.Registry addPackages(EPackage.Registry packageRegistry) + { + for (EPackageDef ePackageDef : getPackages()) + { + addPackage(ePackageDef, packageRegistry); + } + return packageRegistry; + } + + /** + * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> . + * + * @param ePackageDef + * the ePackage definition + * @param packageRegistry + * the package registry + */ + protected void addPackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry) + { + EPackage ePackage = (EPackage)ePackageDef.getInstance(); + packageRegistry.put(ePackage.getNsURI(), ePackage); + } + + /** + * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> . + * + * @param ePackageDef + * the ePackage definition + * @param packageRegistry + * the package registry + */ + protected void removePackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry) + { + EPackage ePackage = (EPackage)ePackageDef.getInstance(); + packageRegistry.remove(ePackage.getNsURI()); + } + +} // CDOPackageRegistryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOResourceDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOResourceDefImpl.java new file mode 100644 index 0000000000..3d1d4eca81 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOResourceDefImpl.java @@ -0,0 +1,302 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOResourceDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.CDOTransaction; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.ResourceMode; +import org.eclipse.emf.cdo.eresource.CDOResource; + +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Resource Def</b></em>'. <!-- end-user-doc + * --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOResourceDefImpl#getCdoTransaction <em>Cdo Transaction</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef +{ + + /** + * The cached value of the '{@link #getCdoTransaction() <em>Cdo Transaction</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCdoTransaction() + * @generated + * @ordered + */ + protected CDOTransactionDef cdoTransaction; + + /** + * The default value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResourceMode() + * @generated NOT + * @ordered + */ + protected static final ResourceMode RESOURCE_MODE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getResourceMode() + * @generated + * @ordered + */ + protected ResourceMode resourceMode = RESOURCE_MODE_EDEFAULT; + + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOResourceDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_RESOURCE_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOTransactionDef getCdoTransaction() + { + if (cdoTransaction != null && cdoTransaction.eIsProxy()) { + InternalEObject oldCdoTransaction = (InternalEObject)cdoTransaction; + cdoTransaction = (CDOTransactionDef)eResolveProxy(oldCdoTransaction); + if (cdoTransaction != oldCdoTransaction) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION, oldCdoTransaction, cdoTransaction)); + } + } + return cdoTransaction; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOTransactionDef basicGetCdoTransaction() + { + return cdoTransaction; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setCdoTransaction(CDOTransactionDef newCdoTransaction) + { + CDOTransactionDef oldCdoTransaction = cdoTransaction; + cdoTransaction = newCdoTransaction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION, oldCdoTransaction, cdoTransaction)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public ResourceMode getResourceMode() + { + return resourceMode; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setResourceMode(ResourceMode newResourceMode) + { + ResourceMode oldResourceMode = resourceMode; + resourceMode = newResourceMode == null ? RESOURCE_MODE_EDEFAULT : newResourceMode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE, oldResourceMode, resourceMode)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getPath() + { + return path; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) + { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION: + if (resolve) return getCdoTransaction(); + return basicGetCdoTransaction(); + case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE: + return getResourceMode(); + case CDODefsPackage.CDO_RESOURCE_DEF__PATH: + return getPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION: + setCdoTransaction((CDOTransactionDef)newValue); + return; + case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE: + setResourceMode((ResourceMode)newValue); + return; + case CDODefsPackage.CDO_RESOURCE_DEF__PATH: + setPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION: + setCdoTransaction((CDOTransactionDef)null); + return; + case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE: + setResourceMode(RESOURCE_MODE_EDEFAULT); + return; + case CDODefsPackage.CDO_RESOURCE_DEF__PATH: + setPath(PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION: + return cdoTransaction != null; + case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE: + return resourceMode != RESOURCE_MODE_EDEFAULT; + case CDODefsPackage.CDO_RESOURCE_DEF__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resourceMode: "); + result.append(resourceMode); + result.append(", path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() + { + CDOTransaction cdoTransaction = (CDOTransaction)getCdoTransaction().getInstance(); + CDOResource cdoResource = getResourceMode().getResource(getPath(), cdoTransaction); + cdoTransaction.commit(); + return cdoResource; + + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__PATH), "path is not set!"); + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION), "cdo transaction is not set!"); + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE), "resourceMode is not set!"); + } + +} // CDOResourceDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOServerProtocolFactoryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOServerProtocolFactoryDefImpl.java new file mode 100644 index 0000000000..025bb1af84 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOServerProtocolFactoryDefImpl.java @@ -0,0 +1,176 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOServerProtocolFactoryDefImpl.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef; +import org.eclipse.emf.cdo.internal.server.protocol.CDOServerProtocolFactory; +import org.eclipse.emf.cdo.server.IRepositoryProvider; + +import org.eclipse.net4j.net4jdefs.impl.ServerProtocolFactoryDefImpl; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>CDO Server Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOServerProtocolFactoryDefImpl#getRepositoryProviderDef <em>Repository Provider Def</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOServerProtocolFactoryDefImpl extends ServerProtocolFactoryDefImpl implements CDOServerProtocolFactoryDef { + + /** + * The cached value of the '{@link #getRepositoryProviderDef() <em>Repository Provider Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRepositoryProviderDef() + * @generated + * @ordered + */ + protected RepositoryProviderDef repositoryProviderDef; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CDOServerProtocolFactoryDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.CDO_SERVER_PROTOCOL_FACTORY_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RepositoryProviderDef getRepositoryProviderDef() { + if (repositoryProviderDef != null && repositoryProviderDef.eIsProxy()) { + InternalEObject oldRepositoryProviderDef = (InternalEObject)repositoryProviderDef; + repositoryProviderDef = (RepositoryProviderDef)eResolveProxy(oldRepositoryProviderDef); + if (repositoryProviderDef != oldRepositoryProviderDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF, oldRepositoryProviderDef, repositoryProviderDef)); + } + } + return repositoryProviderDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RepositoryProviderDef basicGetRepositoryProviderDef() { + return repositoryProviderDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRepositoryProviderDef(RepositoryProviderDef newRepositoryProviderDef) { + RepositoryProviderDef oldRepositoryProviderDef = repositoryProviderDef; + repositoryProviderDef = newRepositoryProviderDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF, oldRepositoryProviderDef, repositoryProviderDef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF: + if (resolve) return getRepositoryProviderDef(); + return basicGetRepositoryProviderDef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF: + setRepositoryProviderDef((RepositoryProviderDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF: + setRepositoryProviderDef((RepositoryProviderDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF__REPOSITORY_PROVIDER_DEF: + return repositoryProviderDef != null; + } + return super.eIsSet(featureID); + } + + @Override + protected Object createInstance() { + return new CDOServerProtocolFactory((IRepositoryProvider) getRepositoryProviderDef().getInstance()); + } + + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(getRepositoryProviderDef() != null, "repository provider not set!"); + } + +} //CDOServerProtocolFactoryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOSessionDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOSessionDefImpl.java new file mode 100644 index 0000000000..7b0f611199 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOSessionDefImpl.java @@ -0,0 +1,560 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOSessionDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.CDOSession; +import org.eclipse.emf.cdo.CDOSessionConfiguration; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; +import org.eclipse.emf.cdo.util.CDOPackageRegistry; +import org.eclipse.emf.cdo.util.CDOUtil; + +import org.eclipse.emf.internal.cdo.CDOSessionConfigurationImpl; + +import org.eclipse.net4j.connector.IConnector; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.signal.failover.IFailOverStrategy; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Session Def</b></em>'. <!-- end-user-doc + * --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl#getConnectorDef <em>Connector Def</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl#getRepositoryName <em>Repository Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl#getCdoPackageRegistryDef <em>Cdo Package Registry Def + * </em>}</li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl#isLegacySupportEnabled <em>Legacy Support Enabled</em>} + * </li> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOSessionDefImpl#getFailOverStrategyDef <em>Fail Over Strategy Def</em>} + * </li> + * </ul> + * </p> + * + * @generated + */ +public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef +{ + /** + * The cached value of the '{@link #getConnectorDef() <em>Connector Def</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getConnectorDef() + * @generated + * @ordered + */ + protected ConnectorDef connectorDef; + + /** + * This is true if the Connector Def reference has been set. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean connectorDefESet; + + /** + * The default value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRepositoryName() + * @generated + * @ordered + */ + protected static final String REPOSITORY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRepositoryName() + * @generated + * @ordered + */ + protected String repositoryName = REPOSITORY_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getCdoPackageRegistryDef() <em>Cdo Package Registry Def</em>}' reference. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #getCdoPackageRegistryDef() + * @generated + * @ordered + */ + protected CDOPackageRegistryDef cdoPackageRegistryDef; + + /** + * The default value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #isLegacySupportEnabled() + * @generated + * @ordered + */ + protected static final boolean LEGACY_SUPPORT_ENABLED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #isLegacySupportEnabled() + * @generated + * @ordered + */ + protected boolean legacySupportEnabled = LEGACY_SUPPORT_ENABLED_EDEFAULT; + + /** + * The cached value of the '{@link #getFailOverStrategyDef() <em>Fail Over Strategy Def</em>}' reference. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #getFailOverStrategyDef() + * @generated + * @ordered + */ + protected FailOverStrategyDef failOverStrategyDef; + + /** + * This is true if the Fail Over Strategy Def reference has been set. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean failOverStrategyDefESet; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOSessionDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_SESSION_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public ConnectorDef getConnectorDef() + { + if (connectorDef != null && connectorDef.eIsProxy()) { + InternalEObject oldConnectorDef = (InternalEObject)connectorDef; + connectorDef = (ConnectorDef)eResolveProxy(oldConnectorDef); + if (connectorDef != oldConnectorDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef)); + } + } + return connectorDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public ConnectorDef basicGetConnectorDef() + { + return connectorDef; + } + + /** + * <!-- begin-user-doc --> Sets the {@link ConnectorDef} for this {@link CDOSessionDef}. If a + * {@link FailOverStrategyDef} was already set, an IllegalStateException is thrown. ConnectorDef and + * FailOverStrategyDef are mutually exclusive. + * + * @throws IllegalStateException + * if a {@link FailOverStrategyDef} was set before + * @see CDOSessionConfigurationImpl#openSession() <!-- end-user-doc --> + * @generated NOT + */ + public void setConnectorDef(ConnectorDef newConnectorDef) + { + if (isSetFailOverStrategyDef()) + { + throw new IllegalStateException("connector and failover strategy are mutually exclusive!"); + } + else + { + setConnectorDefGen(newConnectorDef); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setConnectorDefGen(ConnectorDef newConnectorDef) + { + ConnectorDef oldConnectorDef = connectorDef; + connectorDef = newConnectorDef; + boolean oldConnectorDefESet = connectorDefESet; + connectorDefESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef, !oldConnectorDefESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetConnectorDef() + { + ConnectorDef oldConnectorDef = connectorDef; + boolean oldConnectorDefESet = connectorDefESet; + connectorDef = null; + connectorDefESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF, oldConnectorDef, null, oldConnectorDefESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetConnectorDef() + { + return connectorDefESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getRepositoryName() + { + return repositoryName; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setRepositoryName(String newRepositoryName) + { + String oldRepositoryName = repositoryName; + repositoryName = newRepositoryName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME, oldRepositoryName, repositoryName)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOPackageRegistryDef getCdoPackageRegistryDef() + { + if (cdoPackageRegistryDef != null && cdoPackageRegistryDef.eIsProxy()) { + InternalEObject oldCdoPackageRegistryDef = (InternalEObject)cdoPackageRegistryDef; + cdoPackageRegistryDef = (CDOPackageRegistryDef)eResolveProxy(oldCdoPackageRegistryDef); + if (cdoPackageRegistryDef != oldCdoPackageRegistryDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef)); + } + } + return cdoPackageRegistryDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOPackageRegistryDef basicGetCdoPackageRegistryDef() + { + return cdoPackageRegistryDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setCdoPackageRegistryDef(CDOPackageRegistryDef newCdoPackageRegistryDef) + { + CDOPackageRegistryDef oldCdoPackageRegistryDef = cdoPackageRegistryDef; + cdoPackageRegistryDef = newCdoPackageRegistryDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isLegacySupportEnabled() + { + return legacySupportEnabled; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setLegacySupportEnabled(boolean newLegacySupportEnabled) + { + boolean oldLegacySupportEnabled = legacySupportEnabled; + legacySupportEnabled = newLegacySupportEnabled; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED, oldLegacySupportEnabled, legacySupportEnabled)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public FailOverStrategyDef getFailOverStrategyDef() + { + if (failOverStrategyDef != null && failOverStrategyDef.eIsProxy()) { + InternalEObject oldFailOverStrategyDef = (InternalEObject)failOverStrategyDef; + failOverStrategyDef = (FailOverStrategyDef)eResolveProxy(oldFailOverStrategyDef); + if (failOverStrategyDef != oldFailOverStrategyDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, failOverStrategyDef)); + } + } + return failOverStrategyDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public FailOverStrategyDef basicGetFailOverStrategyDef() + { + return failOverStrategyDef; + } + + /** + * <!-- begin-user-doc --> Sets the {@link FailOverStrategyDef} for this {@link CDOSessionDef}. If a ConnectorDef was + * already set, an <b>IllegalStateException<b> is thrown. ConnectorDef and FailOverStrategyDef are mutually exclusive. + * + * @throws IllegalStateException + * if a {@link FailOverStrategyDef} was set before + * @see CDOSessionConfigurationImpl#openSession() <!-- end-user-doc --> + * @generated NOT + */ + public void setFailOverStrategyDef(FailOverStrategyDef newFailOverStrategyDef) + { + if (isSetConnectorDef()) + { + throw new IllegalStateException("connector and failover strategy are mutually exclusive!"); + } + else + { + setFailOverStrategyDefGen(newFailOverStrategyDef); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setFailOverStrategyDefGen(FailOverStrategyDef newFailOverStrategyDef) + { + FailOverStrategyDef oldFailOverStrategyDef = failOverStrategyDef; + failOverStrategyDef = newFailOverStrategyDef; + boolean oldFailOverStrategyDefESet = failOverStrategyDefESet; + failOverStrategyDefESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, failOverStrategyDef, !oldFailOverStrategyDefESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetFailOverStrategyDef() + { + FailOverStrategyDef oldFailOverStrategyDef = failOverStrategyDef; + boolean oldFailOverStrategyDefESet = failOverStrategyDefESet; + failOverStrategyDef = null; + failOverStrategyDefESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF, oldFailOverStrategyDef, null, oldFailOverStrategyDefESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetFailOverStrategyDef() + { + return failOverStrategyDefESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF: + if (resolve) return getConnectorDef(); + return basicGetConnectorDef(); + case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME: + return getRepositoryName(); + case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF: + if (resolve) return getCdoPackageRegistryDef(); + return basicGetCdoPackageRegistryDef(); + case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED: + return isLegacySupportEnabled() ? Boolean.TRUE : Boolean.FALSE; + case CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF: + if (resolve) return getFailOverStrategyDef(); + return basicGetFailOverStrategyDef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF: + setConnectorDef((ConnectorDef)newValue); + return; + case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME: + setRepositoryName((String)newValue); + return; + case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF: + setCdoPackageRegistryDef((CDOPackageRegistryDef)newValue); + return; + case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED: + setLegacySupportEnabled(((Boolean)newValue).booleanValue()); + return; + case CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF: + setFailOverStrategyDef((FailOverStrategyDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF: + unsetConnectorDef(); + return; + case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME: + setRepositoryName(REPOSITORY_NAME_EDEFAULT); + return; + case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF: + setCdoPackageRegistryDef((CDOPackageRegistryDef)null); + return; + case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED: + setLegacySupportEnabled(LEGACY_SUPPORT_ENABLED_EDEFAULT); + return; + case CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF: + unsetFailOverStrategyDef(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF: + return isSetConnectorDef(); + case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME: + return REPOSITORY_NAME_EDEFAULT == null ? repositoryName != null : !REPOSITORY_NAME_EDEFAULT.equals(repositoryName); + case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF: + return cdoPackageRegistryDef != null; + case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED: + return legacySupportEnabled != LEGACY_SUPPORT_ENABLED_EDEFAULT; + case CDODefsPackage.CDO_SESSION_DEF__FAIL_OVER_STRATEGY_DEF: + return isSetFailOverStrategyDef(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (repositoryName: "); + result.append(repositoryName); + result.append(", legacySupportEnabled: "); + result.append(legacySupportEnabled); + result.append(')'); + return result.toString(); + } + + @Override + protected CDOSession createInstance() + { + CDOSessionConfiguration configuration = CDOUtil.createSessionConfiguration(); + + if (isSetConnectorDef()) + { + configuration.setConnector((IConnector)getConnectorDef().getInstance()); + } + if (isSetFailOverStrategyDef()) + { + configuration.setFailOverStrategy((IFailOverStrategy)getFailOverStrategyDef().getInstance()); + } + configuration.setPackageRegistry((CDOPackageRegistry)getCdoPackageRegistryDef().getInstance()); + configuration.setRepositoryName(getRepositoryName()); + return configuration.openSession(); + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState // + (eIsSet(CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME), "repository name not set yet!"); + /* + * failoverStrategy and connector are mutually exclusive + * @see CDOSessionConfiguration#openSession + */ + CheckUtil.checkState(isSetConnectorDef() ^ isSetFailOverStrategyDef(), + "fail over strategy and connector are mutually exclusive!"); + // CheckUtil.checkState(getCdoPackageRegistryDef() != null, + // "package registry definition is not set!"); + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF), + "package registry definition is not set!"); + } + +} // CDOSessionDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOTransactionDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOTransactionDefImpl.java new file mode 100644 index 0000000000..1805bca119 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOTransactionDefImpl.java @@ -0,0 +1,52 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOTransactionDefImpl.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.CDOSession; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Transaction Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class CDOTransactionDefImpl extends CDOViewDefImpl implements CDOTransactionDef +{ + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOTransactionDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_TRANSACTION_DEF; + } + + @Override + protected Object createInstance() + { + CDOSession cdoSession = (CDOSession) getCdoSessionDef().getInstance(); + return cdoSession.openTransaction(); + } + +} // CDOTransactionDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOViewDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOViewDefImpl.java new file mode 100644 index 0000000000..91ab4e58db --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/CDOViewDefImpl.java @@ -0,0 +1,188 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOViewDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.CDOSession; +import org.eclipse.emf.cdo.CDOView; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; + +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.container.ContainerEventAdapter; +import org.eclipse.net4j.util.container.IContainer; +import org.eclipse.net4j.util.event.EventUtil; +import org.eclipse.net4j.util.event.IListener; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>CDO View Definition</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.CDOViewDefImpl#getCdoSessionDef <em>Cdo Session Def</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOViewDefImpl extends DefImpl implements CDOViewDef { + + protected IListener instanceListener = new ContainerEventAdapter<CDOView>() { + @Override + protected void onRemoved(IContainer<CDOView> container, CDOView element) { + Object instance = getInternalInstance(); + if (element == instance) { + handleDeactivation(instance); + } + } + }; + + /** + * The cached value of the '{@link #getCdoSessionDef() <em>Cdo Session Def</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getCdoSessionDef() + * @generated + * @ordered + */ + protected CDOSessionDef cdoSessionDef; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOViewDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.CDO_VIEW_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOSessionDef getCdoSessionDef() { + if (cdoSessionDef != null && cdoSessionDef.eIsProxy()) { + InternalEObject oldCdoSessionDef = (InternalEObject)cdoSessionDef; + cdoSessionDef = (CDOSessionDef)eResolveProxy(oldCdoSessionDef); + if (cdoSessionDef != oldCdoSessionDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF, oldCdoSessionDef, cdoSessionDef)); + } + } + return cdoSessionDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOSessionDef basicGetCdoSessionDef() { + return cdoSessionDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setCdoSessionDef(CDOSessionDef newCdoSessionDef) { + CDOSessionDef oldCdoSessionDef = cdoSessionDef; + cdoSessionDef = newCdoSessionDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF, oldCdoSessionDef, cdoSessionDef)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF: + if (resolve) return getCdoSessionDef(); + return basicGetCdoSessionDef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF: + setCdoSessionDef((CDOSessionDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF: + setCdoSessionDef((CDOSessionDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF: + return cdoSessionDef != null; + } + return super.eIsSet(featureID); + } + + @Override + protected Object createInstance() { + CDOSession cdoSession = (CDOSession) getCdoSessionDef().getInstance(); + return cdoSession.openView(); + } + + @Override + protected void validateDefinition() { + CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF), + "no session definition set yet!"); + } + + protected void wireInstance(Object instance) { + EventUtil.addListener(((CDOView) instance).getSession(), + instanceListener); + } + + protected void unwireInstance(Object instance) { + EventUtil.removeListener(((CDOView) instance).getSession(), instanceListener); + } +} // CDOViewDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EDynamicPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EDynamicPackageDefImpl.java new file mode 100644 index 0000000000..0ab8e7016c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EDynamicPackageDefImpl.java @@ -0,0 +1,178 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EDynamicPackageDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef; + +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dynamic CDO Package Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.EDynamicPackageDefImpl#getResourceURI <em>Resource URI</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EDynamicPackageDefImpl extends EPackageDefImpl implements EDynamicPackageDef +{ + /** + * The default value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getResourceURI() + * @generated + * @ordered + */ + protected static final String RESOURCE_URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getResourceURI() + * @generated + * @ordered + */ + protected String resourceURI = RESOURCE_URI_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected EDynamicPackageDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.EDYNAMIC_PACKAGE_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getResourceURI() + { + return resourceURI; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setResourceURI(String newResourceURI) + { + String oldResourceURI = resourceURI; + resourceURI = newResourceURI; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI, oldResourceURI, resourceURI)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI: + return getResourceURI(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI: + setResourceURI((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI: + setResourceURI(RESOURCE_URI_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI: + return RESOURCE_URI_EDEFAULT == null ? resourceURI != null : !RESOURCE_URI_EDEFAULT.equals(resourceURI); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resourceURI: "); + result.append(resourceURI); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() + { + throw new UnsupportedOperationException("not implemented yet!"); + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState(eIsSet(CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI), "resource uri not set!"); + } + +} // DynamicCDOPackageDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EGlobalPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EGlobalPackageDefImpl.java new file mode 100644 index 0000000000..d2e35e9f19 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EGlobalPackageDefImpl.java @@ -0,0 +1,49 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EGlobalPackageDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Native CDO Package Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class EGlobalPackageDefImpl extends EPackageDefImpl implements EGlobalPackageDef +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected EGlobalPackageDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.EGLOBAL_PACKAGE_DEF; + } + + @Override + public Object createInstance() + { + return EPackage.Registry.INSTANCE.getEPackage(getNsURI()); + } +} diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EPackageDefImpl.java new file mode 100644 index 0000000000..b2fe21fb01 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/EPackageDefImpl.java @@ -0,0 +1,176 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EPackageDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.EPackageDef; + +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import java.net.URI; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Package Def</b></em>'. <!-- end-user-doc + * --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.EPackageDefImpl#getNsURI <em>Ns URI</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class EPackageDefImpl extends DefImpl implements EPackageDef +{ + /** + * The default value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @see #getNsURI() + * @generated + * @ordered + */ + protected static final String NS_URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @see #getNsURI() + * @generated + * @ordered + */ + protected String nsURI = NS_URI_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected EPackageDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.EPACKAGE_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getNsURI() + { + return nsURI; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setNsURI(String newNsURI) + { + String oldNsURI = nsURI; + nsURI = newNsURI; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EPACKAGE_DEF__NS_URI, oldNsURI, nsURI)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case CDODefsPackage.EPACKAGE_DEF__NS_URI: + return getNsURI(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case CDODefsPackage.EPACKAGE_DEF__NS_URI: + setNsURI((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case CDODefsPackage.EPACKAGE_DEF__NS_URI: + setNsURI(NS_URI_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case CDODefsPackage.EPACKAGE_DEF__NS_URI: + return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nsURI: "); + result.append(nsURI); + result.append(')'); + return result.toString(); + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState(eIsSet(CDODefsPackage.EPACKAGE_DEF__NS_URI) && URI.create(getNsURI()) != null, + "nsURI not set or not valid!"); + } + +} // CDOPackageDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/FailOverStrategyDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/FailOverStrategyDefImpl.java new file mode 100644 index 0000000000..98e622a5bb --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/FailOverStrategyDefImpl.java @@ -0,0 +1,160 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FailOverStrategyDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; + +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Fail Over Strategy Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.FailOverStrategyDefImpl#getConnectorDef <em>Connector Def</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class FailOverStrategyDefImpl extends DefImpl implements FailOverStrategyDef { + /** + * The cached value of the '{@link #getConnectorDef() <em>Connector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConnectorDef() + * @generated + * @ordered + */ + protected ConnectorDef connectorDef; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FailOverStrategyDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.FAIL_OVER_STRATEGY_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorDef getConnectorDef() { + if (connectorDef != null && connectorDef.eIsProxy()) { + InternalEObject oldConnectorDef = (InternalEObject)connectorDef; + connectorDef = (ConnectorDef)eResolveProxy(oldConnectorDef); + if (connectorDef != oldConnectorDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef)); + } + } + return connectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ConnectorDef basicGetConnectorDef() { + return connectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConnectorDef(ConnectorDef newConnectorDef) { + ConnectorDef oldConnectorDef = connectorDef; + connectorDef = newConnectorDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF, oldConnectorDef, connectorDef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF: + if (resolve) return getConnectorDef(); + return basicGetConnectorDef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF: + setConnectorDef((ConnectorDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF: + setConnectorDef((ConnectorDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CDODefsPackage.FAIL_OVER_STRATEGY_DEF__CONNECTOR_DEF: + return connectorDef != null; + } + return super.eIsSet(featureID); + } + +} //FailOverStrategyDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/PluginRepositoryProviderDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/PluginRepositoryProviderDefImpl.java new file mode 100644 index 0000000000..a59e4abe2b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/PluginRepositoryProviderDefImpl.java @@ -0,0 +1,49 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PluginRepositoryProviderDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef; +import org.eclipse.emf.cdo.internal.server.PluginRepositoryProvider; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Plugin Repository Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class PluginRepositoryProviderDefImpl extends RepositoryProviderDefImpl implements PluginRepositoryProviderDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PluginRepositoryProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.PLUGIN_REPOSITORY_PROVIDER_DEF; + } + + @Override + protected Object createInstance() { + return PluginRepositoryProvider.INSTANCE; + } + +} //PluginRepositoryProviderDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RepositoryProviderDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RepositoryProviderDefImpl.java new file mode 100644 index 0000000000..0671b782bc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RepositoryProviderDefImpl.java @@ -0,0 +1,45 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RepositoryProviderDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef; + +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Repository Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class RepositoryProviderDefImpl extends DefImpl implements RepositoryProviderDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected RepositoryProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.REPOSITORY_PROVIDER_DEF; + } + +} //RepositoryProviderDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RetryFailOverStrategyDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RetryFailOverStrategyDefImpl.java new file mode 100644 index 0000000000..03fb604c32 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/impl/RetryFailOverStrategyDefImpl.java @@ -0,0 +1,201 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RetryFailOverStrategyDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef; + +import org.eclipse.net4j.connector.IConnector; +import org.eclipse.net4j.signal.failover.IFailOverStrategy; +import org.eclipse.net4j.signal.failover.RetryFailOverStrategy; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>Retry Fail Over Strategy</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.cdodefs.impl.RetryFailOverStrategyDefImpl#getRetries <em>Retries</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class RetryFailOverStrategyDefImpl extends FailOverStrategyDefImpl + implements RetryFailOverStrategyDef { + /** + * The default value of the '{@link #getRetries() <em>Retries</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getRetries() + * @generated + * @ordered + */ + protected static final int RETRIES_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRetries() <em>Retries</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getRetries() + * @generated + * @ordered + */ + protected int retries = RETRIES_EDEFAULT; + + /** + * This is true if the Retries attribute has been set. + * <!-- begin-user-doc + * --> <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean retriesESet; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected RetryFailOverStrategyDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDODefsPackage.Literals.RETRY_FAIL_OVER_STRATEGY_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public int getRetries() { + return retries; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setRetries(int newRetries) { + int oldRetries = retries; + retries = newRetries; + boolean oldRetriesESet = retriesESet; + retriesESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES, oldRetries, retries, !oldRetriesESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetRetries() { + int oldRetries = retries; + boolean oldRetriesESet = retriesESet; + retries = RETRIES_EDEFAULT; + retriesESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES, oldRetries, RETRIES_EDEFAULT, oldRetriesESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetRetries() { + return retriesESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES: + return new Integer(getRetries()); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES: + setRetries(((Integer)newValue).intValue()); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES: + unsetRetries(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF__RETRIES: + return isSetRetries(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (retries: "); + if (retriesESet) result.append(retries); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + + @Override + protected IFailOverStrategy createInstance() { + IFailOverStrategy failOverStrategy = null; + IConnector connector = (IConnector) getConnectorDef().getInstance(); + if (isSetRetries()) { + failOverStrategy = new RetryFailOverStrategy(connector, + getRetries()); + } else { + failOverStrategy = new RetryFailOverStrategy(connector); + } + return failOverStrategy; + } +} // RetryFailOverStrategyImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsAdapterFactory.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsAdapterFactory.java new file mode 100644 index 0000000000..8246172bcd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsAdapterFactory.java @@ -0,0 +1,504 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsAdapterFactory.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.util; + +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; +import org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef; +import org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef; +import org.eclipse.emf.cdo.cdodefs.EPackageDef; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; +import org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef; + +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage + * @generated + */ +public class CDODefsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CDODefsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDODefsAdapterFactory() { + if (modelPackage == null) { + modelPackage = CDODefsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CDODefsSwitch<Adapter> modelSwitch = + new CDODefsSwitch<Adapter>() { + @Override + public Adapter caseCDOViewDef(CDOViewDef object) { + return createCDOViewDefAdapter(); + } + @Override + public Adapter caseCDOTransactionDef(CDOTransactionDef object) { + return createCDOTransactionDefAdapter(); + } + @Override + public Adapter caseCDOAuditDef(CDOAuditDef object) { + return createCDOAuditDefAdapter(); + } + @Override + public Adapter caseCDOSessionDef(CDOSessionDef object) { + return createCDOSessionDefAdapter(); + } + @Override + public Adapter caseFailOverStrategyDef(FailOverStrategyDef object) { + return createFailOverStrategyDefAdapter(); + } + @Override + public Adapter caseRetryFailOverStrategyDef(RetryFailOverStrategyDef object) { + return createRetryFailOverStrategyDefAdapter(); + } + @Override + public Adapter caseCDOPackageRegistryDef(CDOPackageRegistryDef object) { + return createCDOPackageRegistryDefAdapter(); + } + @Override + public Adapter caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object) { + return createCDOEagerPackageRegistryDefAdapter(); + } + @Override + public Adapter caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object) { + return createCDOLazyPackageRegistryDefAdapter(); + } + @Override + public Adapter caseEPackageDef(EPackageDef object) { + return createEPackageDefAdapter(); + } + @Override + public Adapter caseEDynamicPackageDef(EDynamicPackageDef object) { + return createEDynamicPackageDefAdapter(); + } + @Override + public Adapter caseEGlobalPackageDef(EGlobalPackageDef object) { + return createEGlobalPackageDefAdapter(); + } + @Override + public Adapter caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object) { + return createCDOClientProtocolFactoryDefAdapter(); + } + @Override + public Adapter caseCDOServerProtocolFactoryDef(CDOServerProtocolFactoryDef object) { + return createCDOServerProtocolFactoryDefAdapter(); + } + @Override + public Adapter caseRepositoryProviderDef(RepositoryProviderDef object) { + return createRepositoryProviderDefAdapter(); + } + @Override + public Adapter casePluginRepositoryProviderDef(PluginRepositoryProviderDef object) { + return createPluginRepositoryProviderDefAdapter(); + } + @Override + public Adapter caseCDOResourceDef(CDOResourceDef object) { + return createCDOResourceDefAdapter(); + } + @Override + public Adapter caseDef(Def object) { + return createDefAdapter(); + } + @Override + public Adapter caseProtocolProviderDef(ProtocolProviderDef object) { + return createProtocolProviderDefAdapter(); + } + @Override + public Adapter caseClientProtocolFactoryDef(ClientProtocolFactoryDef object) { + return createClientProtocolFactoryDefAdapter(); + } + @Override + public Adapter caseServerProtocolFactoryDef(ServerProtocolFactoryDef object) { + return createServerProtocolFactoryDefAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOViewDef <em>CDO View Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOViewDef + * @generated + */ + public Adapter createCDOViewDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOTransactionDef <em>CDO Transaction Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOTransactionDef + * @generated + */ + public Adapter createCDOTransactionDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOAuditDef <em>CDO Audit Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOAuditDef + * @generated + */ + public Adapter createCDOAuditDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOSessionDef <em>CDO Session Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOSessionDef + * @generated + */ + public Adapter createCDOSessionDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef <em>Fail Over Strategy Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef + * @generated + */ + public Adapter createFailOverStrategyDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef <em>Retry Fail Over Strategy Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef + * @generated + */ + public Adapter createRetryFailOverStrategyDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef <em>CDO Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef + * @generated + */ + public Adapter createCDOPackageRegistryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef <em>CDO Eager Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef + * @generated + */ + public Adapter createCDOEagerPackageRegistryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef <em>CDO Lazy Package Registry Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef + * @generated + */ + public Adapter createCDOLazyPackageRegistryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.EPackageDef <em>EPackage Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.EPackageDef + * @generated + */ + public Adapter createEPackageDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef <em>EDynamic Package Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef + * @generated + */ + public Adapter createEDynamicPackageDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef <em>EGlobal Package Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef + * @generated + */ + public Adapter createEGlobalPackageDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef <em>CDO Client Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef + * @generated + */ + public Adapter createCDOClientProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef <em>CDO Server Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef + * @generated + */ + public Adapter createCDOServerProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef <em>Repository Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef + * @generated + */ + public Adapter createRepositoryProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef <em>Plugin Repository Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef + * @generated + */ + public Adapter createPluginRepositoryProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.cdodefs.CDOResourceDef <em>CDO Resource Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.cdodefs.CDOResourceDef + * @generated + */ + public Adapter createCDOResourceDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + public Adapter createDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ProtocolProviderDef <em>Protocol Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ProtocolProviderDef + * @generated + */ + public Adapter createProtocolProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef <em>Client Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef + * @generated + */ + public Adapter createClientProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef <em>Server Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef + * @generated + */ + public Adapter createServerProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CDODefsAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsSwitch.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsSwitch.java new file mode 100644 index 0000000000..a5666695b6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsSwitch.java @@ -0,0 +1,577 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDODefsSwitch.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.cdodefs.util; + +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.cdodefs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOServerProtocolFactoryDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; +import org.eclipse.emf.cdo.cdodefs.EDynamicPackageDef; +import org.eclipse.emf.cdo.cdodefs.EGlobalPackageDef; +import org.eclipse.emf.cdo.cdodefs.EPackageDef; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; +import org.eclipse.emf.cdo.cdodefs.PluginRepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.RepositoryProviderDef; +import org.eclipse.emf.cdo.cdodefs.RetryFailOverStrategyDef; + +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.cdodefs.CDODefsPackage + * @generated + */ +public class CDODefsSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CDODefsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDODefsSwitch() { + if (modelPackage == null) { + modelPackage = CDODefsPackage.eINSTANCE; + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case CDODefsPackage.CDO_VIEW_DEF: { + CDOViewDef cdoViewDef = (CDOViewDef)theEObject; + T result = caseCDOViewDef(cdoViewDef); + if (result == null) result = caseDef(cdoViewDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_TRANSACTION_DEF: { + CDOTransactionDef cdoTransactionDef = (CDOTransactionDef)theEObject; + T result = caseCDOTransactionDef(cdoTransactionDef); + if (result == null) result = caseCDOViewDef(cdoTransactionDef); + if (result == null) result = caseDef(cdoTransactionDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_AUDIT_DEF: { + CDOAuditDef cdoAuditDef = (CDOAuditDef)theEObject; + T result = caseCDOAuditDef(cdoAuditDef); + if (result == null) result = caseCDOViewDef(cdoAuditDef); + if (result == null) result = caseDef(cdoAuditDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_SESSION_DEF: { + CDOSessionDef cdoSessionDef = (CDOSessionDef)theEObject; + T result = caseCDOSessionDef(cdoSessionDef); + if (result == null) result = caseDef(cdoSessionDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.FAIL_OVER_STRATEGY_DEF: { + FailOverStrategyDef failOverStrategyDef = (FailOverStrategyDef)theEObject; + T result = caseFailOverStrategyDef(failOverStrategyDef); + if (result == null) result = caseDef(failOverStrategyDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.RETRY_FAIL_OVER_STRATEGY_DEF: { + RetryFailOverStrategyDef retryFailOverStrategyDef = (RetryFailOverStrategyDef)theEObject; + T result = caseRetryFailOverStrategyDef(retryFailOverStrategyDef); + if (result == null) result = caseFailOverStrategyDef(retryFailOverStrategyDef); + if (result == null) result = caseDef(retryFailOverStrategyDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF: { + CDOPackageRegistryDef cdoPackageRegistryDef = (CDOPackageRegistryDef)theEObject; + T result = caseCDOPackageRegistryDef(cdoPackageRegistryDef); + if (result == null) result = caseDef(cdoPackageRegistryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF: { + CDOEagerPackageRegistryDef cdoEagerPackageRegistryDef = (CDOEagerPackageRegistryDef)theEObject; + T result = caseCDOEagerPackageRegistryDef(cdoEagerPackageRegistryDef); + if (result == null) result = caseCDOPackageRegistryDef(cdoEagerPackageRegistryDef); + if (result == null) result = caseDef(cdoEagerPackageRegistryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF: { + CDOLazyPackageRegistryDef cdoLazyPackageRegistryDef = (CDOLazyPackageRegistryDef)theEObject; + T result = caseCDOLazyPackageRegistryDef(cdoLazyPackageRegistryDef); + if (result == null) result = caseCDOPackageRegistryDef(cdoLazyPackageRegistryDef); + if (result == null) result = caseDef(cdoLazyPackageRegistryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.EPACKAGE_DEF: { + EPackageDef ePackageDef = (EPackageDef)theEObject; + T result = caseEPackageDef(ePackageDef); + if (result == null) result = caseDef(ePackageDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF: { + EDynamicPackageDef eDynamicPackageDef = (EDynamicPackageDef)theEObject; + T result = caseEDynamicPackageDef(eDynamicPackageDef); + if (result == null) result = caseEPackageDef(eDynamicPackageDef); + if (result == null) result = caseDef(eDynamicPackageDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.EGLOBAL_PACKAGE_DEF: { + EGlobalPackageDef eGlobalPackageDef = (EGlobalPackageDef)theEObject; + T result = caseEGlobalPackageDef(eGlobalPackageDef); + if (result == null) result = caseEPackageDef(eGlobalPackageDef); + if (result == null) result = caseDef(eGlobalPackageDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF: { + CDOClientProtocolFactoryDef cdoClientProtocolFactoryDef = (CDOClientProtocolFactoryDef)theEObject; + T result = caseCDOClientProtocolFactoryDef(cdoClientProtocolFactoryDef); + if (result == null) result = caseClientProtocolFactoryDef(cdoClientProtocolFactoryDef); + if (result == null) result = caseProtocolProviderDef(cdoClientProtocolFactoryDef); + if (result == null) result = caseDef(cdoClientProtocolFactoryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_SERVER_PROTOCOL_FACTORY_DEF: { + CDOServerProtocolFactoryDef cdoServerProtocolFactoryDef = (CDOServerProtocolFactoryDef)theEObject; + T result = caseCDOServerProtocolFactoryDef(cdoServerProtocolFactoryDef); + if (result == null) result = caseServerProtocolFactoryDef(cdoServerProtocolFactoryDef); + if (result == null) result = caseProtocolProviderDef(cdoServerProtocolFactoryDef); + if (result == null) result = caseDef(cdoServerProtocolFactoryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.REPOSITORY_PROVIDER_DEF: { + RepositoryProviderDef repositoryProviderDef = (RepositoryProviderDef)theEObject; + T result = caseRepositoryProviderDef(repositoryProviderDef); + if (result == null) result = caseDef(repositoryProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.PLUGIN_REPOSITORY_PROVIDER_DEF: { + PluginRepositoryProviderDef pluginRepositoryProviderDef = (PluginRepositoryProviderDef)theEObject; + T result = casePluginRepositoryProviderDef(pluginRepositoryProviderDef); + if (result == null) result = caseRepositoryProviderDef(pluginRepositoryProviderDef); + if (result == null) result = caseDef(pluginRepositoryProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDODefsPackage.CDO_RESOURCE_DEF: { + CDOResourceDef cdoResourceDef = (CDOResourceDef)theEObject; + T result = caseCDOResourceDef(cdoResourceDef); + if (result == null) result = caseDef(cdoResourceDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO View Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO View Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOViewDef(CDOViewDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Transaction Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Transaction Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOTransactionDef(CDOTransactionDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Audit Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Audit Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOAuditDef(CDOAuditDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Session Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Session Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOSessionDef(CDOSessionDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Fail Over Strategy Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Fail Over Strategy Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFailOverStrategyDef(FailOverStrategyDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Retry Fail Over Strategy Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Retry Fail Over Strategy Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRetryFailOverStrategyDef(RetryFailOverStrategyDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Package Registry Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Package Registry Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOPackageRegistryDef(CDOPackageRegistryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Eager Package Registry Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Eager Package Registry Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Lazy Package Registry Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Lazy Package Registry Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EPackage Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EPackage Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEPackageDef(EPackageDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EDynamic Package Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EDynamic Package Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEDynamicPackageDef(EDynamicPackageDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EGlobal Package Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EGlobal Package Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEGlobalPackageDef(EGlobalPackageDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Client Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Client Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Server Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Server Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOServerProtocolFactoryDef(CDOServerProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Repository Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Repository Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRepositoryProviderDef(RepositoryProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Plugin Repository Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Plugin Repository Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePluginRepositoryProviderDef(PluginRepositoryProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Resource Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Resource Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOResourceDef(CDOResourceDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDef(Def object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProtocolProviderDef(ProtocolProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClientProtocolFactoryDef(ClientProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Server Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Server Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseServerProtocolFactoryDef(ServerProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} //CDODefsSwitch diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsUtil.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsUtil.java new file mode 100644 index 0000000000..30255e670f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/cdodefs/util/CDODefsUtil.java @@ -0,0 +1,78 @@ +package org.eclipse.emf.cdo.cdodefs.util; + +import org.eclipse.emf.cdo.cdodefs.CDOAuditDef; +import org.eclipse.emf.cdo.cdodefs.CDODefsFactory; +import org.eclipse.emf.cdo.cdodefs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.cdodefs.CDOResourceDef; +import org.eclipse.emf.cdo.cdodefs.CDOSessionDef; +import org.eclipse.emf.cdo.cdodefs.CDOTransactionDef; +import org.eclipse.emf.cdo.cdodefs.FailOverStrategyDef; + +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; + +import java.util.Date; + +public class CDODefsUtil +{ + + public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef cdoPackageRegistryDef, + TCPConnectorDef tcpConnectorDef) + { + CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef(); + cdoSessionDef.setConnectorDef(tcpConnectorDef); + cdoSessionDef.setRepositoryName(repositoryName); + cdoSessionDef.setCdoPackageRegistryDef(cdoPackageRegistryDef); + return cdoSessionDef; + } + + public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef cdoPackageRegistryDef, + FailOverStrategyDef failOverStrategyDef) + { + CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef(); + cdoSessionDef.setFailOverStrategyDef(failOverStrategyDef); + cdoSessionDef.setRepositoryName(repositoryName); + cdoSessionDef.setCdoPackageRegistryDef(cdoPackageRegistryDef); + return cdoSessionDef; + } + + public static CDOPackageRegistryDef createEagerPackageRegistryDef() + { + CDOPackageRegistryDef cdoPackageRegistryDef = CDODefsFactory.eINSTANCE.createCDOEagerPackageRegistryDef(); + return cdoPackageRegistryDef; + } + + public static CDOAuditDef createCDOAuditDef(CDOSessionDef cdoSessionDef) + { + CDOAuditDef cdoAuditDef = CDODefsFactory.eINSTANCE.createCDOAuditDef(); + cdoAuditDef.setCdoSessionDef(cdoSessionDef); + cdoAuditDef.setTimeStamp(new Date()); + return cdoAuditDef; + } + + public static CDOTransactionDef createCDOTransactionDef(String host, String repositoryName, + TCPConnectorDef tcpConnectorDef) + { + CDOSessionDef sessionDef = createSessionDef(repositoryName, // + createEagerPackageRegistryDef(), // + tcpConnectorDef); + + return createCDOTransactionDef(sessionDef); + } + + public static CDOTransactionDef createCDOTransactionDef(CDOSessionDef cdoSessionDef) + { + + CDOTransactionDef cdoTransactionDef = CDODefsFactory.eINSTANCE.createCDOTransactionDef(); + cdoTransactionDef.setCdoSessionDef(cdoSessionDef); + return cdoTransactionDef; + } + + public static CDOResourceDef createCDOResourceDef(CDOTransactionDef cdoTransactionDef) + { + + CDOResourceDef cdoResourceDef = CDODefsFactory.eINSTANCE.createCDOResourceDef(); + cdoResourceDef.setCdoTransaction(cdoTransactionDef); + return cdoResourceDef; + } + +} diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/.classpath b/plugins/org.eclipse.emf.cdo.ui.defs/.classpath new file mode 100644 index 0000000000..304e86186a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.classpath @@ -0,0 +1,7 @@ +<?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.ui.defs/.cvsignore b/plugins/org.eclipse.emf.cdo.ui.defs/.cvsignore new file mode 100644 index 0000000000..ba077a4031 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/.project b/plugins/org.eclipse.emf.cdo.ui.defs/.project new file mode 100644 index 0000000000..83e5e9be91 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.ui.defs</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> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..6121790430 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Fri Dec 12 15:21:10 CET 2008 +eclipse.preferences.version=1 +encoding//model/org.eclipse.emf.cdo.ui.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..a006c51240 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,258 @@ +#Mon Dec 15 16:13:39 CET 2008 +eclipse.preferences.version=1 +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=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=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=false +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.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..1bcd6e9c80 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,4 @@ +#Mon Dec 15 16:13:39 CET 2008 +eclipse.preferences.version=1 +formatter_profile=_Unmanaged profile 'EMFT' mine +formatter_settings_version=11 diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.moreunit.prefs b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.moreunit.prefs new file mode 100644 index 0000000000..71fcdf29a9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/.settings/org.moreunit.prefs @@ -0,0 +1,6 @@ +#Mon Dec 15 10:00:16 CET 2008 +eclipse.preferences.version=1 +org.moreunit.flexiblenaming=true +org.moreunit.prefixes= +org.moreunit.unitsourcefolder=org.eclipse.emf.cdo.ui.defs\:src\:org.eclipse.emf.cdo.tests.ui.defs\:src +org.moreunit.useprojectsettings=true diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.ui.defs/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7784b3933f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/META-INF/MANIFEST.MF @@ -0,0 +1,22 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.emf.cdo.ui.defs;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.emf.cdo.ui.cdouidefs, + org.eclipse.emf.cdo.ui.cdouidefs.editorlauncher, + org.eclipse.emf.cdo.ui.cdouidefs.impl, + org.eclipse.emf.cdo.ui.cdouidefs.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.cdo;visibility:=reexport, + org.eclipse.emf.cdo.defs;visibility:=reexport, + org.eclipse.net4j.util.defs;visibility:=reexport, + org.eclipse.net4j.defs;visibility:=reexport, + org.eclipse.ui;bundle-version="3.4.0", + org.eclipse.emf.cdo.ui;bundle-version="2.0.0" +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/about.html b/plugins/org.eclipse.emf.cdo.ui.defs/about.html new file mode 100644 index 0000000000..d35d5aed64 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("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.defs/build.properties b/plugins/org.eclipse.emf.cdo.ui.defs/build.properties new file mode 100644 index 0000000000..becb1ebc4e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/build.properties @@ -0,0 +1,14 @@ + +# <copyright> +# </copyright> +# +# $Id: build.properties,v 1.1 2008-12-28 18:05:25 estepper Exp $ + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/copyright.txt b/plugins/org.eclipse.emf.cdo.ui.defs/copyright.txt new file mode 100644 index 0000000000..529118d99e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/copyright.txt @@ -0,0 +1,8 @@ +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.defs/epl-v10.html b/plugins/org.eclipse.emf.cdo.ui.defs/epl-v10.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/epl-v10.html @@ -0,0 +1,319 @@ +<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.defs/icons/database_go.png b/plugins/org.eclipse.emf.cdo.ui.defs/icons/database_go.png Binary files differnew file mode 100644 index 0000000000..61a8556c40 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/icons/database_go.png diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/license.html b/plugins/org.eclipse.emf.cdo.ui.defs/license.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/license.html @@ -0,0 +1,319 @@ +<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.defs/model/org.eclipse.emf.cdo.ui.defs.ecore b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.ecore new file mode 100644 index 0000000000..8c16552050 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.ecore @@ -0,0 +1,16 @@ +<?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="cdouidefs" + nsURI="http://www.eclipse.org/emf/CDO/ui/defs/1.0.0" nsPrefix="cdouidefs"> + <eClassifiers xsi:type="ecore:EClass" name="EditorDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="editorID" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="CDOEditorDef" eSuperTypes="#//EditorDef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="cdoView" lowerBound="1" + eType="ecore:EClass ../../org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.ecore#//CDOViewDef"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourcePath" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> +</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.ecorediag b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.ecorediag new file mode 100644 index 0000000000..21eee2e26a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.ecorediag @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram 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" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_IICdgchYEd2cL7seIDpZRw" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_ILuDoMhYEd2cL7seIDpZRw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_IMxzkMhYEd2cL7seIDpZRw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_IM4hQMhYEd2cL7seIDpZRw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_IPMOYMhYEd2cL7seIDpZRw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.ui.defs.ecore#//EditorDef/editorID"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_IPMOYchYEd2cL7seIDpZRw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_IM4hQchYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_IM4hQshYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_IM4hQ8hYEd2cL7seIDpZRw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_IM69gMhYEd2cL7seIDpZRw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_IM69gchYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_IM69gshYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_IM69g8hYEd2cL7seIDpZRw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ILuDochYEd2cL7seIDpZRw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.ui.defs.ecore#//EditorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ILuDoshYEd2cL7seIDpZRw" x="16"/> + </children> + <children xmi:type="notation:Node" xmi:id="_IPPRsMhYEd2cL7seIDpZRw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_IPZpwMhYEd2cL7seIDpZRw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_IPaQ0MhYEd2cL7seIDpZRw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_IPizsMhYEd2cL7seIDpZRw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.emf.cdo.ui.defs.ecore#//CDOEditorDef/resourcePath"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_IPizschYEd2cL7seIDpZRw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_IPaQ0chYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_IPaQ0shYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_IPaQ08hYEd2cL7seIDpZRw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_IPaQ1MhYEd2cL7seIDpZRw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_IPaQ1chYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_IPaQ1shYEd2cL7seIDpZRw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_IPaQ18hYEd2cL7seIDpZRw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_IPPRschYEd2cL7seIDpZRw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.emf.cdo.ui.defs.ecore#//CDOEditorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IPPRsshYEd2cL7seIDpZRw" y="109"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_IIDroMhYEd2cL7seIDpZRw"/> + <element xmi:type="ecore:EPackage" href="org.eclipse.emf.cdo.ui.defs.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_IPty0MhYEd2cL7seIDpZRw" type="3003" source="_IPPRsMhYEd2cL7seIDpZRw" target="_ILuDoMhYEd2cL7seIDpZRw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_IPty0chYEd2cL7seIDpZRw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_IPuZ4MhYEd2cL7seIDpZRw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_IPuZ4chYEd2cL7seIDpZRw" points="[0, 0, 0, 60]$[0, -60, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JEdpgMhYEd2cL7seIDpZRw" id="(0.49707603,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JEeQkMhYEd2cL7seIDpZRw" id="(0.4964029,1.0)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.genmodel b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.genmodel new file mode 100644 index 0000000000..9971d45e47 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/model/org.eclipse.emf.cdo.ui.defs.genmodel @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.cdo.ui.defs/src" + modelPluginID="org.eclipse.emf.cdo.ui.defs" modelName="Org.eclipse.emf.cdo.ui" + importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false" + usedGenPackages="../../org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel#//cdodefs ../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel#//net4jutildefs ../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel#//net4jdefs"> + <foreignModel>org.eclipse.emf.cdo.ui.defs.ecore</foreignModel> + <genPackages prefix="CDOUIDefs" basePackage="org.eclipse.emf.cdo.ui" disposableProviderFactory="true" + ecorePackage="org.eclipse.emf.cdo.ui.defs.ecore#/"> + <genClasses ecoreClass="org.eclipse.emf.cdo.ui.defs.ecore#//EditorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.ui.defs.ecore#//EditorDef/editorID"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.emf.cdo.ui.defs.ecore#//CDOEditorDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.emf.cdo.ui.defs.ecore#//CDOEditorDef/view"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.emf.cdo.ui.defs.ecore#//CDOEditorDef/resourcePaths"/> + </genClasses> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/plugin.properties b/plugins/org.eclipse.emf.cdo.ui.defs/plugin.properties new file mode 100644 index 0000000000..0b5df83aad --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/plugin.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +# 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: +# André Dietisheim - 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 UI Definitions +providerName = Eclipse.org + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/plugin.xml b/plugins/org.eclipse.emf.cdo.ui.defs/plugin.xml new file mode 100644 index 0000000000..a01f00e66e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/plugin.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id: plugin.xml,v 1.1 2008-12-28 18:05:25 estepper Exp $ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.eclipse.org/emf/CDO/ui/defs/1.0.0" + class="org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage" + genModel="model/org.eclipse.emf.cdo.ui.defs.genmodel"/> + </extension> + <extension + point="org.eclipse.ui.editors"> + <editor + default="false" + icon="icons/database_go.png" + id="org.eclipse.emf.cdo.ui.defs.editorlauncher" + launcher="org.eclipse.emf.cdo.ui.cdouidefs.editorlauncher.EditorLauncher" + name="name"> + <contentTypeBinding + contentTypeId="org.eclipse.emf.cdo.ui.defs.editor.contenttype"> + </contentTypeBinding> + </editor> + </extension> + <extension + point="org.eclipse.core.runtime.contentTypes"> + <content-type file-extensions="xmi" id="org.eclipse.emf.cdo.ui.defs.contenttype" name="CDO Editor launcher File" priority="normal"> + <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2"> + <parameter name="element" value="CDOEditorDef"> + </parameter> + </describer> + </content-type> + </extension> +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOEditorDef.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOEditorDef.java new file mode 100644 index 0000000000..4546e70f00 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOEditorDef.java @@ -0,0 +1,81 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOEditorDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs; + +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>CDO Editor Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getCdoView <em>Cdo View</em>}</li> + * <li>{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getResourcePath <em>Resource Path</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#getCDOEditorDef() + * @model + * @generated + */ +public interface CDOEditorDef extends EditorDef { + /** + * Returns the value of the '<em><b>Cdo View</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cdo View</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cdo View</em>' reference. + * @see #setCdoView(CDOViewDef) + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#getCDOEditorDef_CdoView() + * @model required="true" + * @generated + */ + CDOViewDef getCdoView(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getCdoView <em>Cdo View</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cdo View</em>' reference. + * @see #getCdoView() + * @generated + */ + void setCdoView(CDOViewDef value); + + /** + * Returns the value of the '<em><b>Resource Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Resource Path</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Resource Path</em>' attribute. + * @see #setResourcePath(String) + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#getCDOEditorDef_ResourcePath() + * @model required="true" + * @generated + */ + String getResourcePath(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getResourcePath <em>Resource Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Resource Path</em>' attribute. + * @see #getResourcePath() + * @generated + */ + void setResourcePath(String value); + +} // CDOEditorDef diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsFactory.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsFactory.java new file mode 100644 index 0000000000..96a10d8a05 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsFactory.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsFactory.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage + * @generated + */ +public interface CDOUIDefsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CDOUIDefsFactory eINSTANCE = org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Editor Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Editor Def</em>'. + * @generated + */ + EditorDef createEditorDef(); + + /** + * Returns a new object of class '<em>CDO Editor Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>CDO Editor Def</em>'. + * @generated + */ + CDOEditorDef createCDOEditorDef(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + CDOUIDefsPackage getCDOUIDefsPackage(); + +} //CDOUIDefsFactory diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsPackage.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsPackage.java new file mode 100644 index 0000000000..02dc236986 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/CDOUIDefsPackage.java @@ -0,0 +1,260 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsPackage.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs; + +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsFactory + * @model kind="package" + * @generated + */ +public interface CDOUIDefsPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "cdouidefs"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/ui/defs/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "cdouidefs"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + CDOUIDefsPackage eINSTANCE = org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.EditorDefImpl <em>Editor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.EditorDefImpl + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsPackageImpl#getEditorDef() + * @generated + */ + int EDITOR_DEF = 0; + + /** + * The feature id for the '<em><b>Editor ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EDITOR_DEF__EDITOR_ID = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Editor Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EDITOR_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl <em>CDO Editor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsPackageImpl#getCDOEditorDef() + * @generated + */ + int CDO_EDITOR_DEF = 1; + + /** + * The feature id for the '<em><b>Editor ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EDITOR_DEF__EDITOR_ID = EDITOR_DEF__EDITOR_ID; + + /** + * The feature id for the '<em><b>Cdo View</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EDITOR_DEF__CDO_VIEW = EDITOR_DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Resource Path</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EDITOR_DEF__RESOURCE_PATH = EDITOR_DEF_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>CDO Editor Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CDO_EDITOR_DEF_FEATURE_COUNT = EDITOR_DEF_FEATURE_COUNT + 2; + + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.ui.cdouidefs.EditorDef <em>Editor Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Editor Def</em>'. + * @see org.eclipse.emf.cdo.ui.cdouidefs.EditorDef + * @generated + */ + EClass getEditorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.ui.cdouidefs.EditorDef#getEditorID <em>Editor ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Editor ID</em>'. + * @see org.eclipse.emf.cdo.ui.cdouidefs.EditorDef#getEditorID() + * @see #getEditorDef() + * @generated + */ + EAttribute getEditorDef_EditorID(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef <em>CDO Editor Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>CDO Editor Def</em>'. + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef + * @generated + */ + EClass getCDOEditorDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getCdoView <em>Cdo View</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Cdo View</em>'. + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getCdoView() + * @see #getCDOEditorDef() + * @generated + */ + EReference getCDOEditorDef_CdoView(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getResourcePath <em>Resource Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Resource Path</em>'. + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef#getResourcePath() + * @see #getCDOEditorDef() + * @generated + */ + EAttribute getCDOEditorDef_ResourcePath(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + CDOUIDefsFactory getCDOUIDefsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.EditorDefImpl <em>Editor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.EditorDefImpl + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsPackageImpl#getEditorDef() + * @generated + */ + EClass EDITOR_DEF = eINSTANCE.getEditorDef(); + + /** + * The meta object literal for the '<em><b>Editor ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EDITOR_DEF__EDITOR_ID = eINSTANCE.getEditorDef_EditorID(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl <em>CDO Editor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl + * @see org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOUIDefsPackageImpl#getCDOEditorDef() + * @generated + */ + EClass CDO_EDITOR_DEF = eINSTANCE.getCDOEditorDef(); + + /** + * The meta object literal for the '<em><b>Cdo View</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CDO_EDITOR_DEF__CDO_VIEW = eINSTANCE.getCDOEditorDef_CdoView(); + + /** + * The meta object literal for the '<em><b>Resource Path</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CDO_EDITOR_DEF__RESOURCE_PATH = eINSTANCE.getCDOEditorDef_ResourcePath(); + + } + +} //CDOUIDefsPackage diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/EditorDef.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/EditorDef.java new file mode 100644 index 0000000000..b1d40b849f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/EditorDef.java @@ -0,0 +1,54 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EditorDef.java,v 1.1 2008-12-28 18:05:24 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Editor Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.ui.cdouidefs.EditorDef#getEditorID <em>Editor ID</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#getEditorDef() + * @model + * @generated + */ +public interface EditorDef extends Def { + /** + * Returns the value of the '<em><b>Editor ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Editor ID</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Editor ID</em>' attribute. + * @see #setEditorID(String) + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#getEditorDef_EditorID() + * @model required="true" + * @generated + */ + String getEditorID(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.ui.cdouidefs.EditorDef#getEditorID <em>Editor ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Editor ID</em>' attribute. + * @see #getEditorID() + * @generated + */ + void setEditorID(String value); + +} // EditorDef diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/editorlauncher/EditorLauncher.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/editorlauncher/EditorLauncher.java new file mode 100644 index 0000000000..b6bfdcab95 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/editorlauncher/EditorLauncher.java @@ -0,0 +1,42 @@ +/*************************************************************************** + * Copyright (c) 2008 Open Canarias S.L. 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: + * Victor Roldan Betancort - initial API and implementation + * Eike Stepper - maintenance + **************************************************************************/ + +package org.eclipse.emf.cdo.ui.cdouidefs.editorlauncher; + +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +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.core.runtime.IPath; +import org.eclipse.ui.IEditorLauncher; + +@SuppressWarnings("restriction") +public class EditorLauncher implements IEditorLauncher +{ + + public void open(IPath file) + { + ResourceSet resourceSet = new ResourceSetImpl(); + URI resourceURI = URI.createFileURI(file.toString()); + Resource ecoreResource = resourceSet.getResource(resourceURI, true); + EObject eObject = ecoreResource.getContents().get(0); + if (eObject instanceof EditorDef) + { + EditorDef editorDef = ((EditorDef) eObject); + editorDef.getInstance(); + } + } +} diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOEditorDefImpl.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOEditorDefImpl.java new file mode 100644 index 0000000000..d2b0722f49 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOEditorDefImpl.java @@ -0,0 +1,385 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOEditorDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.impl; + +import org.eclipse.emf.cdo.CDOView; +import org.eclipse.emf.cdo.cdodefs.CDOViewDef; +import org.eclipse.emf.cdo.internal.ui.editor.CDOEditor; +import org.eclipse.emf.cdo.internal.ui.editor.CDOEditorInput; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; + +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.DefException; +import org.eclipse.net4j.util.ui.UIUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IPartListener; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.PlatformUI; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>View Editor Def</b></em>'. <!-- end-user-doc + * --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl#getCdoView <em>Cdo View</em>}</li> + * <li> + * {@link org.eclipse.emf.cdo.ui.cdouidefs.impl.CDOEditorDefImpl#getResourcePath <em>Resource Path</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CDOEditorDefImpl extends EditorDefImpl implements CDOEditorDef +{ + + /** + * The cached value of the '{@link #getCdoView() <em>Cdo View</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getCdoView() + * @generated + * @ordered + */ + protected CDOViewDef cdoView; + + /** + * The default value of the '{@link #getResourcePath() <em>Resource Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResourcePath() + * @generated + * @ordered + */ + protected static final String RESOURCE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResourcePath() <em>Resource Path</em>}' attribute. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getResourcePath() + * @generated + * @ordered + */ + protected String resourcePath = RESOURCE_PATH_EDEFAULT; + + protected IPartListener partListener = new IPartListener() + { + + public void partActivated(IWorkbenchPart part) + { + // ignore + } + + public void partBroughtToTop(IWorkbenchPart part) + { + // ignore + } + + public void partClosed(IWorkbenchPart part) + { + Object instance = getInternalInstance(); + if (part == instance) + { + handleDeactivation(instance); + } + } + + public void partDeactivated(IWorkbenchPart part) + { + // ignore + } + + public void partOpened(IWorkbenchPart part) + { + // ignore + } + }; + + @Override + public void unsetInstance() + { + handleDeactivation(getInternalInstance()); + } + + @Override + protected void handleDeactivation(Object instance) + { + CheckUtil.checkState(instance, "the instance ist not created yet or already close!"); + closeEditor((CDOEditor)instance); + super.handleDeactivation(instance); + } + + @Override + protected void unwireInstance(Object instance) + { + IWorkbenchWindow activeWorkbenchWindow = UIUtil.getActiveWorkbenchWindow(); + if (activeWorkbenchWindow != null) + { + activeWorkbenchWindow.getPartService().removePartListener(partListener); + } + } + + @Override + protected void wireInstance(Object instance) + { + IWorkbenchWindow activeWorkbenchWindow = UIUtil.getActiveWorkbenchWindow(); + if (activeWorkbenchWindow != null) + { + activeWorkbenchWindow.getPartService().addPartListener(partListener); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected CDOEditorDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDOUIDefsPackage.Literals.CDO_EDITOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOViewDef getCdoView() + { + if (cdoView != null && cdoView.eIsProxy()) + { + InternalEObject oldCdoView = (InternalEObject)cdoView; + cdoView = (CDOViewDef)eResolveProxy(oldCdoView); + if (cdoView != oldCdoView) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW, oldCdoView, cdoView)); + } + } + return cdoView; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CDOViewDef basicGetCdoView() + { + return cdoView; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setCdoView(CDOViewDef newCdoView) + { + CDOViewDef oldCdoView = cdoView; + cdoView = newCdoView; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW, oldCdoView, cdoView)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getResourcePath() + { + return resourcePath; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setResourcePath(String newResourcePath) + { + String oldResourcePath = resourcePath; + resourcePath = newResourcePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDOUIDefsPackage.CDO_EDITOR_DEF__RESOURCE_PATH, oldResourcePath, resourcePath)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW: + if (resolve) return getCdoView(); + return basicGetCdoView(); + case CDOUIDefsPackage.CDO_EDITOR_DEF__RESOURCE_PATH: + return getResourcePath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW: + setCdoView((CDOViewDef)newValue); + return; + case CDOUIDefsPackage.CDO_EDITOR_DEF__RESOURCE_PATH: + setResourcePath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW: + setCdoView((CDOViewDef)null); + return; + case CDOUIDefsPackage.CDO_EDITOR_DEF__RESOURCE_PATH: + setResourcePath(RESOURCE_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case CDOUIDefsPackage.CDO_EDITOR_DEF__CDO_VIEW: + return cdoView != null; + case CDOUIDefsPackage.CDO_EDITOR_DEF__RESOURCE_PATH: + return RESOURCE_PATH_EDEFAULT == null ? resourcePath != null : !RESOURCE_PATH_EDEFAULT.equals(resourcePath); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (resourcePath: "); + result.append(resourcePath); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() + { + return openCDOEditor(getResourcePath()); + } + + /** + * Open a {@link CDOEditor} for a given resource path. + * + * @param resourcePath + * the resource path to open an editor for + * @return the editor part that was opened, <tt>null</tt> if an exception occurred while opening it + * @throws DefException + * if the Editor could not be opened + */ + private IEditorPart openCDOEditor(String resourcePath) + { + IEditorInput input = new CDOEditorInput((CDOView)getCdoView().getInstance(), resourcePath); + IEditorPart cdoEditor = null; + IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); + CheckUtil.checkState(workbenchWindow != null && workbenchWindow.getActivePage() != null, + "no active window or no active page present!"); + try + { + return workbenchWindow.getActivePage().openEditor(input, doGetEditorID()); + } + catch (PartInitException e) + { + throw new DefException("the CDOEditor could not be opened!", e); + } + } + + /** + * Gets the editor id. if the public property #editorID is set, this ID is returned. Otherwise the default + * CDOEditor#EDITOR_ID is returned. + * + * @param editorID + * the editor id + * @return the string + */ + private String doGetEditorID() + { + String editorID = getEditorID(); + if (editorID == null || editorID.length() <= 0) + { + editorID = CDOEditor.EDITOR_ID; + } + return editorID; + } + + private void closeEditor(IEditorPart editorPart) + { + IWorkbenchPage workbenchPage = UIUtil.getActiveWorkbenchPage(); + if (workbenchPage != null) + { + workbenchPage.closeEditor(editorPart, true); + } + } + + @Override + protected void validateDefinition() + { + super.validateDefinition(); + CheckUtil.checkState(getResourcePath() != null && getResourcePath().length() > 0, "resource paths are not set!"); + CheckUtil.checkState(getCdoView() != null, "cdo view is not set!"); + } + +} // ViewEditorDefImpl diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsFactoryImpl.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsFactoryImpl.java new file mode 100644 index 0000000000..cc1c1a8030 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsFactoryImpl.java @@ -0,0 +1,115 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsFactoryImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.impl; + +import org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsFactory; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CDOUIDefsFactoryImpl extends EFactoryImpl implements CDOUIDefsFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static CDOUIDefsFactory init() { + try + { + CDOUIDefsFactory theCDOUIDefsFactory = (CDOUIDefsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/CDO/ui/defs/1.0.0"); + if (theCDOUIDefsFactory != null) + { + return theCDOUIDefsFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new CDOUIDefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOUIDefsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) + { + case CDOUIDefsPackage.EDITOR_DEF: return createEditorDef(); + case CDOUIDefsPackage.CDO_EDITOR_DEF: return createCDOEditorDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EditorDef createEditorDef() { + EditorDefImpl editorDef = new EditorDefImpl(); + return editorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOEditorDef createCDOEditorDef() { + CDOEditorDefImpl cdoEditorDef = new CDOEditorDefImpl(); + return cdoEditorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOUIDefsPackage getCDOUIDefsPackage() { + return (CDOUIDefsPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static CDOUIDefsPackage getPackage() { + return CDOUIDefsPackage.eINSTANCE; + } + +} //CDOUIDefsFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsPackageImpl.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsPackageImpl.java new file mode 100644 index 0000000000..d1dd5951fc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/CDOUIDefsPackageImpl.java @@ -0,0 +1,243 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsPackageImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.impl; + +import org.eclipse.emf.cdo.cdodefs.CDODefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsFactory; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class CDOUIDefsPackageImpl extends EPackageImpl implements CDOUIDefsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass editorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cdoEditorDefEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage#eNS_URI + * @see #init() + * @generated + */ + private CDOUIDefsPackageImpl() { + super(eNS_URI, CDOUIDefsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CDOUIDefsPackage init() { + if (isInited) return (CDOUIDefsPackage)EPackage.Registry.INSTANCE.getEPackage(CDOUIDefsPackage.eNS_URI); + + // Obtain or create and register package + CDOUIDefsPackageImpl theCDOUIDefsPackage = (CDOUIDefsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CDOUIDefsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CDOUIDefsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CDODefsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCDOUIDefsPackage.createPackageContents(); + + // Initialize created meta-data + theCDOUIDefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCDOUIDefsPackage.freeze(); + + return theCDOUIDefsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEditorDef() { + return editorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEditorDef_EditorID() { + return (EAttribute)editorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCDOEditorDef() { + return cdoEditorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCDOEditorDef_CdoView() { + return (EReference)cdoEditorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCDOEditorDef_ResourcePath() { + return (EAttribute)cdoEditorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOUIDefsFactory getCDOUIDefsFactory() { + return (CDOUIDefsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + editorDefEClass = createEClass(EDITOR_DEF); + createEAttribute(editorDefEClass, EDITOR_DEF__EDITOR_ID); + + cdoEditorDefEClass = createEClass(CDO_EDITOR_DEF); + createEReference(cdoEditorDefEClass, CDO_EDITOR_DEF__CDO_VIEW); + createEAttribute(cdoEditorDefEClass, CDO_EDITOR_DEF__RESOURCE_PATH); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jUtilDefsPackage.eNS_URI); + CDODefsPackage theCDODefsPackage = (CDODefsPackage)EPackage.Registry.INSTANCE.getEPackage(CDODefsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + editorDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoEditorDefEClass.getESuperTypes().add(this.getEditorDef()); + + // Initialize classes and features; add operations and parameters + initEClass(editorDefEClass, EditorDef.class, "EditorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEditorDef_EditorID(), ecorePackage.getEString(), "editorID", null, 1, 1, EditorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoEditorDefEClass, CDOEditorDef.class, "CDOEditorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOEditorDef_CdoView(), theCDODefsPackage.getCDOViewDef(), null, "cdoView", null, 1, 1, CDOEditorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOEditorDef_ResourcePath(), ecorePackage.getEString(), "resourcePath", null, 1, 1, CDOEditorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //CDOUIDefsPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/EditorDefImpl.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/EditorDefImpl.java new file mode 100644 index 0000000000..49800b28a3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/impl/EditorDefImpl.java @@ -0,0 +1,168 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EditorDefImpl.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.impl; + +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>Editor Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.ui.cdouidefs.impl.EditorDefImpl#getEditorID <em>Editor ID</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EditorDefImpl extends DefImpl implements EditorDef { + /** + * The default value of the '{@link #getEditorID() <em>Editor ID</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getEditorID() + * @generated + * @ordered + */ + protected static final String EDITOR_ID_EDEFAULT = null; + /** + * The cached value of the '{@link #getEditorID() <em>Editor ID</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getEditorID() + * @generated + * @ordered + */ + protected String editorID = EDITOR_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected EditorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return CDOUIDefsPackage.Literals.EDITOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getEditorID() { + return editorID; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setEditorID(String newEditorID) { + String oldEditorID = editorID; + editorID = newEditorID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CDOUIDefsPackage.EDITOR_DEF__EDITOR_ID, oldEditorID, editorID)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) + { + case CDOUIDefsPackage.EDITOR_DEF__EDITOR_ID: + return getEditorID(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) + { + case CDOUIDefsPackage.EDITOR_DEF__EDITOR_ID: + setEditorID((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) + { + case CDOUIDefsPackage.EDITOR_DEF__EDITOR_ID: + setEditorID(EDITOR_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) + { + case CDOUIDefsPackage.EDITOR_DEF__EDITOR_ID: + return EDITOR_ID_EDEFAULT == null ? editorID != null : !EDITOR_ID_EDEFAULT.equals(editorID); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (editorID: "); + result.append(editorID); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() { + throw new UnsupportedOperationException("not implemented yet!"); + } + + @Override + protected void validateDefinition() { + CheckUtil.checkState(getEditorID() != null + && getEditorID().length() >= 0, "editor id not set!"); + } +} // EditorDefImpl diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsAdapterFactory.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsAdapterFactory.java new file mode 100644 index 0000000000..3453471126 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsAdapterFactory.java @@ -0,0 +1,170 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsAdapterFactory.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.util; + +import org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage + * @generated + */ +public class CDOUIDefsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CDOUIDefsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOUIDefsAdapterFactory() { + if (modelPackage == null) + { + modelPackage = CDOUIDefsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) + { + return true; + } + if (object instanceof EObject) + { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CDOUIDefsSwitch<Adapter> modelSwitch = + new CDOUIDefsSwitch<Adapter>() + { + @Override + public Adapter caseEditorDef(EditorDef object) + { + return createEditorDefAdapter(); + } + @Override + public Adapter caseCDOEditorDef(CDOEditorDef object) + { + return createCDOEditorDefAdapter(); + } + @Override + public Adapter caseDef(Def object) + { + return createDefAdapter(); + } + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.ui.cdouidefs.EditorDef <em>Editor Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.ui.cdouidefs.EditorDef + * @generated + */ + public Adapter createEditorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef <em>CDO Editor Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef + * @generated + */ + public Adapter createCDOEditorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + public Adapter createDefAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CDOUIDefsAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsSwitch.java b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsSwitch.java new file mode 100644 index 0000000000..c1ea700dd6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.ui.defs/src/org/eclipse/emf/cdo/ui/cdouidefs/util/CDOUIDefsSwitch.java @@ -0,0 +1,179 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CDOUIDefsSwitch.java,v 1.1 2008-12-28 18:05:25 estepper Exp $ + */ +package org.eclipse.emf.cdo.ui.cdouidefs.util; + +import org.eclipse.emf.cdo.ui.cdouidefs.CDOEditorDef; +import org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage; +import org.eclipse.emf.cdo.ui.cdouidefs.EditorDef; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.ui.cdouidefs.CDOUIDefsPackage + * @generated + */ +public class CDOUIDefsSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static CDOUIDefsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CDOUIDefsSwitch() { + if (modelPackage == null) + { + modelPackage = CDOUIDefsPackage.eINSTANCE; + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) + { + case CDOUIDefsPackage.EDITOR_DEF: + { + EditorDef editorDef = (EditorDef)theEObject; + T result = caseEditorDef(editorDef); + if (result == null) result = caseDef(editorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CDOUIDefsPackage.CDO_EDITOR_DEF: + { + CDOEditorDef cdoEditorDef = (CDOEditorDef)theEObject; + T result = caseCDOEditorDef(cdoEditorDef); + if (result == null) result = caseEditorDef(cdoEditorDef); + if (result == null) result = caseDef(cdoEditorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Editor Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Editor Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEditorDef(EditorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>CDO Editor Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>CDO Editor Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCDOEditorDef(CDOEditorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDef(Def object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} //CDOUIDefsSwitch diff --git a/plugins/org.eclipse.net4j.defs/.classpath b/plugins/org.eclipse.net4j.defs/.classpath new file mode 100644 index 0000000000..304e86186a --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.classpath @@ -0,0 +1,7 @@ +<?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.net4j.defs/.cvsignore b/plugins/org.eclipse.net4j.defs/.cvsignore new file mode 100644 index 0000000000..ba077a4031 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/plugins/org.eclipse.net4j.defs/.project b/plugins/org.eclipse.net4j.defs/.project new file mode 100644 index 0000000000..3c86066604 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.net4j.defs</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> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..30b22635b5 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Tue Dec 16 17:15:58 CET 2008 +eclipse.preferences.version=1 +encoding//model/org.eclipse.net4j.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..dd158ff537 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,258 @@ +#Mon Dec 15 16:13:46 CET 2008 +eclipse.preferences.version=1 +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=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=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=false +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.net4j.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..589ef0320d --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,4 @@ +#Mon Dec 15 16:13:46 CET 2008 +eclipse.preferences.version=1 +formatter_profile=_Unmanaged profile 'EMFT' mine +formatter_settings_version=11 diff --git a/plugins/org.eclipse.net4j.defs/.settings/org.moreunit.prefs b/plugins/org.eclipse.net4j.defs/.settings/org.moreunit.prefs new file mode 100644 index 0000000000..48c2caa909 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/.settings/org.moreunit.prefs @@ -0,0 +1,6 @@ +#Wed Dec 10 11:19:31 CET 2008 +eclipse.preferences.version=1 +org.moreunit.flexiblenaming=true +org.moreunit.prefixes= +org.moreunit.unitsourcefolder=org.eclipse.net4j.defs\:src\:org.eclipse.net4j.tests.defs\:src +org.moreunit.useprojectsettings=true diff --git a/plugins/org.eclipse.net4j.defs/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.defs/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..d50b95a341 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/META-INF/MANIFEST.MF @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.net4j.defs;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.cdo;visibility:=reexport, + org.eclipse.net4j.util.defs;bundle-version="1.0.0", + org.eclipse.net4j.tcp;bundle-version="2.0.0", + org.eclipse.net4j.jvm;bundle-version="2.0.0", + org.eclipse.net4j.http;bundle-version="2.0.0" +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.net4j.net4jdefs, + org.eclipse.net4j.net4jdefs.impl, + org.eclipse.net4j.net4jdefs.util diff --git a/plugins/org.eclipse.net4j.defs/about.html b/plugins/org.eclipse.net4j.defs/about.html new file mode 100644 index 0000000000..c5796baf03 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/about.html @@ -0,0 +1,29 @@ +<!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.net4j.defs/build.properties b/plugins/org.eclipse.net4j.defs/build.properties new file mode 100644 index 0000000000..8de8fa2c13 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/build.properties @@ -0,0 +1,23 @@ +# 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,\ + model/ +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.net4j.defs/copyright.txt b/plugins/org.eclipse.net4j.defs/copyright.txt new file mode 100644 index 0000000000..07978a5b95 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +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: + André Dietisheim - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.net4j.defs/epl-v10.html b/plugins/org.eclipse.net4j.defs/epl-v10.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/epl-v10.html @@ -0,0 +1,319 @@ +<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.net4j.defs/license.html b/plugins/org.eclipse.net4j.defs/license.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/license.html @@ -0,0 +1,319 @@ +<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.net4j.defs/model/org.eclipse.net4j.defs.ecore b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore new file mode 100644 index 0000000000..838e4b9f21 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore @@ -0,0 +1,80 @@ +<?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="net4jdefs" + nsURI="http://www.eclipse.org/NET4J/defs/1.0.0" nsPrefix="net4jdefs"> + <eClassifiers xsi:type="ecore:EClass" name="ConnectorDef" abstract="true" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="userID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" + unsettable="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="bufferProvider" lowerBound="1" + eType="#//BufferProviderDef"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="executorService" lowerBound="1" + eType="ecore:EClass ../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//ExecutorServiceDef"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="negotiator" eType="#//NegotiatorDef" + unsettable="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="clientProtocolProvider" + lowerBound="1" upperBound="-1" eType="#//ClientProtocolFactoryDef" unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ClientProtocolFactoryDef" abstract="true" + eSuperTypes="#//ProtocolProviderDef"/> + <eClassifiers xsi:type="ecore:EClass" name="TCPConnectorDef" eSuperTypes="#//ConnectorDef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="tcpSelectorDef" eType="#//TCPSelectorDef"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="host" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="port" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" + unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="AcceptorDef" abstract="true" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="bufferProvider" eType="#//BufferPoolDef"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="executorService" eType="ecore:EClass ../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//ThreadPoolDef"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="negotiator" eType="#//NegotiatorDef" + unsettable="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="serverProtocolProvider" + lowerBound="1" upperBound="-1" eType="#//ServerProtocolFactoryDef" unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="TCPAcceptorDef" eSuperTypes="#//AcceptorDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="host" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="port" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="tcpSelectorDef" lowerBound="1" + eType="#//TCPSelectorDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="JVMAcceptorDef" eSuperTypes="#//AcceptorDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="JVMConnectorDef" eSuperTypes="#//ConnectorDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="HTTPConnectorDef" eSuperTypes="#//ConnectorDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="url" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="NegotiatorDef" abstract="true" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="ResponseNegotiatorDef" eSuperTypes="#//NegotiatorDef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="credentialsProvider" eType="#//CredentialsProviderDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ChallengeNegotiatorDef" eSuperTypes="#//NegotiatorDef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="userManager" eType="#//UserManagerDef"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="randomizer" eType="#//RandomizerDef"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="TCPSelectorDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="ServerProtocolFactoryDef" abstract="true" + eSuperTypes="#//ProtocolProviderDef"/> + <eClassifiers xsi:type="ecore:EClass" name="BufferProviderDef" abstract="true" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="BufferPoolDef" eSuperTypes="#//BufferProviderDef"/> + <eClassifiers xsi:type="ecore:EClass" name="ProtocolProviderDef" abstract="true" + eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="CredentialsProviderDef" abstract="true" + eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="userID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="PasswordCredentialsProviderDef" eSuperTypes="#//CredentialsProviderDef"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="password" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="User"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="userID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="password" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="UserManagerDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"> + <eStructuralFeatures xsi:type="ecore:EReference" name="user" lowerBound="1" upperBound="-1" + eType="#//User" unsettable="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="RandomizerDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> +</ecore:EPackage> diff --git a/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecorediag b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecorediag new file mode 100644 index 0000000000..da933f2004 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecorediag @@ -0,0 +1,661 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram 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" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_05gMAcuMEd2PF5F8mtjyUw" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_0-ZTEMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-fZsMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-gn0MuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-lgUMuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//ConnectorDef/userID"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-lgUcuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-gn0cuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-gn0suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-gn08uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-h18MuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-h18cuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-h18suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-h188uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-ZTEcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ConnectorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-ZTEsuMEd2PF5F8mtjyUw" x="992" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-mHYMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-mucMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-nVgMuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-nVgcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-nVgsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-nVg8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-n8kMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-n8kcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-n8ksuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-n8k8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-mHYcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ClientProtocolFactoryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-mHYsuMEd2PF5F8mtjyUw" x="1216" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-ojoMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-pKsMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-pxwMuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-qY0MuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//TCPConnectorDef/host"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-qY0cuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-q_4MuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//TCPConnectorDef/port"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-q_4cuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-pxwcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-pxwsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-pxw8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-pxxMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-pxxcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-pxxsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-pxx8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-ojocuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//TCPConnectorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-ojosuMEd2PF5F8mtjyUw" x="752" y="416"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-vRUMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-v4YMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-v4YcuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-v4YsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-v4Y8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-v4ZMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-wfcMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-wfccuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-wfcsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-wfc8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-vRUcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//AcceptorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-vRUsuMEd2PF5F8mtjyUw" x="416" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-wfdMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-xGgMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-xGgcuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-xtkMuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/host"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-xtkcuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-xtksuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/port"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-xtk8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-xGgsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-xGg8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-xGhMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-xGhcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-xGhsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-xGh8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-xGiMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-wfdcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//TCPAcceptorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-wfdsuMEd2PF5F8mtjyUw" x="576" y="416"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-xtlMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-yUoMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-yUocuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-y7tMuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//JVMAcceptorDef/name"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-y7tcuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-yUosuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-yUo8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-yUpMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-y7sMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-y7scuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-y7ssuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-y7s8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-xtlcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//JVMAcceptorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-xtlsuMEd2PF5F8mtjyUw" x="384" y="416"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-ziwMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-0J0MuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-0J0cuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-0w4MuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//JVMConnectorDef/name"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-0w4cuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-0J0suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-0J08uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-0J1MuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-0J1cuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-0J1suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-0J18uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-0J2MuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-ziwcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//JVMConnectorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-ziwsuMEd2PF5F8mtjyUw" x="944" y="416"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-0w4suMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-1X8MuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-1X8cuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0-1X-cuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//HTTPConnectorDef/url"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0-1_AMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-1X8suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-1X88uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-1X9MuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-1X9cuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-1X9suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-1X98uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-1X-MuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-0w48uMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//HTTPConnectorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-0w5MuMEd2PF5F8mtjyUw" x="1136" y="416"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-1_AcuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-1_BMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-2mEMuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-2mEcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-2mEsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-2mE8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-2mFMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-2mFcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-2mFsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-2mF8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-1_AsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//NegotiatorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-1_A8uMEd2PF5F8mtjyUw" x="640" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-3NIMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-3NI8uMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-3NJMuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-3NJcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-3NJsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-3NJ8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-30MMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-30McuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-30MsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-30M8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-3NIcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ResponseNegotiatorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-3NIsuMEd2PF5F8mtjyUw" x="1184" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-30NMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-4bQMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-4bQcuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-4bQsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-4bQ8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-4bRMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-4bRcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-4bRsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-4bR8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-4bSMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-30NcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ChallengeNegotiatorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-30NsuMEd2PF5F8mtjyUw" x="752" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-5CUMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-5CU8uMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-5pYMuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-5pYcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-5pYsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-5pY8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-5pZMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-5pZcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-5pZsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-5pZ8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-5CUcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//TCPSelectorDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-5CUsuMEd2PF5F8mtjyUw" x="576" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-5paMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-6QcMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-6QccuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-6QcsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-6Qc8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-6QdMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-6QdcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-6QdsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-6Qd8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-63gMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-5pacuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ServerProtocolFactoryDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-5pasuMEd2PF5F8mtjyUw" x="400" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-63gcuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-63hMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-7ekMuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-7ekcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-7eksuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-7ek8uMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-7elMuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-7elcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-7elsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-7el8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-63gsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//BufferProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-63g8uMEd2PF5F8mtjyUw" x="816" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-7emMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-8FoMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-8FocuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-8FosuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-8Fo8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-8FpMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-8FpcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-8FpsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-8Fp8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-8FqMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-7emcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//BufferPoolDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-7emsuMEd2PF5F8mtjyUw" x="224" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0-8ssMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0-960MuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0-960cuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0-960suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0-9608uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0-961MuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0--h4MuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0--h4cuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0--h4suMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0--h48uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0-9TwMuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//ProtocolProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-9TwcuMEd2PF5F8mtjyUw" x="1008" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_ZYoMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0_amwMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0_amwcuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0_bN18uMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//CredentialsProviderDef/userID"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_bN2MuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_bN0MuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_bN0cuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_bN0suMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_bN08uMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_bN1MuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_bN1cuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_bN1suMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0_ZYocuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//CredentialsProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0_ZYosuMEd2PF5F8mtjyUw" x="1728" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_b04MuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0_cb8MuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0_cb8cuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0_dDB8uMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//PasswordCredentialsProviderDef/password"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_dDCMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_dDAMuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_dDAcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_dDAsuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_dDA8uMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_dDBMuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_dDBcuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_dDBsuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0_b04cuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//PasswordCredentialsProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0_b04suMEd2PF5F8mtjyUw" x="1696" y="304"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_dqEMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0_e4MMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0_e4McuMEd2PF5F8mtjyUw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_e4MsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_e4M8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_e4NMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_e4NcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_e4NsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_ffQMuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_ffQcuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0_dqEcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//UserManagerDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0_dqEsuMEd2PF5F8mtjyUw" x="32" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_gGUMuMEd2PF5F8mtjyUw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_0_gtYMuMEd2PF5F8mtjyUw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_0_gtYcuMEd2PF5F8mtjyUw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_0_hUcMuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//User/userID"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_hUccuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_hUcsuMEd2PF5F8mtjyUw" type="2001"> + <element xmi:type="ecore:EAttribute" href="org.eclipse.net4j.defs.ecore#//User/password"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_hUc8uMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_gtYsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_gtY8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_gtZMuMEd2PF5F8mtjyUw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_gtZcuMEd2PF5F8mtjyUw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_0_gtZsuMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_0_gtZ8uMEd2PF5F8mtjyUw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_0_gtaMuMEd2PF5F8mtjyUw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_0_gGUcuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.defs.ecore#//User"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0_gGUsuMEd2PF5F8mtjyUw" x="32" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_uZgiIdEQEd2lHcdF0ybKRg" type="1001"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ucp8wNEQEd2lHcdF0ybKRg" source="Shortcut"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ucqj0NEQEd2lHcdF0ybKRg" key="modelID" value="EcoreTools"/> + </eAnnotations> + <children xmi:type="notation:Node" xmi:id="_ucJmcNEQEd2lHcdF0ybKRg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_ucKNgNEQEd2lHcdF0ybKRg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ucKNgdEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ucKNgtEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ucKNg9EQEd2lHcdF0ybKRg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ucmSYNEQEd2lHcdF0ybKRg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_ucm5cNEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_ucm5cdEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_ucm5ctEQEd2lHcdF0ybKRg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_uZhwQNEQEd2lHcdF0ybKRg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="platform:/resource/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//ExecutorServiceDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_uZhwQdEQEd2lHcdF0ybKRg" x="1008" y="160"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ucrx8NEQEd2lHcdF0ybKRg" type="1001"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ucu1QNEQEd2lHcdF0ybKRg" source="Shortcut"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ucu1QdEQEd2lHcdF0ybKRg" key="modelID" value="EcoreTools"/> + </eAnnotations> + <children xmi:type="notation:Node" xmi:id="_uctAENEQEd2lHcdF0ybKRg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_uctAEdEQEd2lHcdF0ybKRg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_uctAEtEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_uctAE9EQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_uctAFNEQEd2lHcdF0ybKRg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_uctnINEQEd2lHcdF0ybKRg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_uctnIdEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_uctnItEQEd2lHcdF0ybKRg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_uctnI9EQEd2lHcdF0ybKRg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_ucrx8dEQEd2lHcdF0ybKRg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="platform:/resource/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ucrx8tEQEd2lHcdF0ybKRg" x="1456" y="160"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_05gMAsuMEd2PF5F8mtjyUw"/> + <element xmi:type="ecore:EPackage" href="org.eclipse.net4j.defs.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_0_yaMMuMEd2PF5F8mtjyUw" type="3002" source="_0-ZTEMuMEd2PF5F8mtjyUw" target="_0-63gcuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_0PYMuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_0PYcuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_02cMuMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_02ccuMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_yaMcuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_yaMsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//ConnectorDef/bufferProvider"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_yaM8uMEd2PF5F8mtjyUw" points="[0, 0, 152, 228]$[-151, -61, 1, 167]$[-151, -228, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1ED2MMuMEd2PF5F8mtjyUw" id="(0.3255814,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1ED2McuMEd2PF5F8mtjyUw" id="(0.51079136,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_02csuMEd2PF5F8mtjyUw" type="3002" source="_0-ZTEMuMEd2PF5F8mtjyUw" target="_0-1_AcuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_1dgMuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_1dgcuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_2EkMuMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_2EkcuMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_02c8uMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_02dMuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//ConnectorDef/negotiator"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_02dcuMEd2PF5F8mtjyUw" points="[0, 0, 299, 102]$[-286, -61, 13, 41]$[-298, -102, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EAL0MuMEd2PF5F8mtjyUw" id="(0.1627907,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EAL0cuMEd2PF5F8mtjyUw" id="(0.5964912,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_2EksuMEd2PF5F8mtjyUw" type="3002" source="_0-ZTEMuMEd2PF5F8mtjyUw" target="_0-mHYMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_2roMuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_2rocuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_2rosuMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_2ro8uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_2Ek8uMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_2ElMuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//ConnectorDef/clientProtocolProvider"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_2ElcuMEd2PF5F8mtjyUw" points="[0, 0, -226, 102]$[165, -61, -61, 41]$[227, -102, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EAy4MuMEd2PF5F8mtjyUw" id="(0.65891474,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EAy4cuMEd2PF5F8mtjyUw" id="(0.4972973,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_3SsMuMEd2PF5F8mtjyUw" type="3003" source="_0-mHYMuMEd2PF5F8mtjyUw" target="_0-8ssMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_3SscuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_3SssuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_3Ss8uMEd2PF5F8mtjyUw" points="[1, 0, 192, 85]$[1, -30, 192, 55]$[-191, -30, 0, 55]$[-191, -85, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D3B4MuMEd2PF5F8mtjyUw" id="(0.4972973,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D3B4cuMEd2PF5F8mtjyUw" id="(0.6644737,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_35wMuMEd2PF5F8mtjyUw" type="3002" source="_0-ojoMuMEd2PF5F8mtjyUw" target="_0-5CUMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_35xMuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_35xcuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_35xsuMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_35x8uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_35wcuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_35wsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//TCPConnectorDef/tcpSelectorDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_35w8uMEd2PF5F8mtjyUw" points="[0, 0, 135, 68]$[-135, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D-WoMuMEd2PF5F8mtjyUw" id="(0.33333334,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D-WocuMEd2PF5F8mtjyUw" id="(0.7478992,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_4g0MuMEd2PF5F8mtjyUw" type="3003" source="_0-ojoMuMEd2PF5F8mtjyUw" target="_0-ZTEMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_4g0cuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_4g0suMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_4g08uMEd2PF5F8mtjyUw" points="[0, 0, -178, 60]$[0, -30, -178, 30]$[179, -30, 1, 30]$[179, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D-9sMuMEd2PF5F8mtjyUw" id="(0.6666667,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D-9scuMEd2PF5F8mtjyUw" id="(0.24806201,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_4g1MuMEd2PF5F8mtjyUw" type="3002" source="_0-vRUMuMEd2PF5F8mtjyUw" target="_0-7emMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_4g2MuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_4g2cuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_4g2suMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_4g28uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_4g1cuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_4g1suMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//AcceptorDef/bufferProvider"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_4g18uMEd2PF5F8mtjyUw" points="[0, 0, 157, 102]$[-114, -61, 43, 41]$[-157, -102, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D76YcuMEd2PF5F8mtjyUw" id="(0.24509804,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D8hcMuMEd2PF5F8mtjyUw" id="(0.49541286,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_5H4MuMEd2PF5F8mtjyUw" type="3002" source="_0-vRUMuMEd2PF5F8mtjyUw" target="_0-1_AcuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_5H5MuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5H5cuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_5H5suMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5H58uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_5H4cuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_5H4suMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//AcceptorDef/negotiator"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_5H48uMEd2PF5F8mtjyUw" points="[0, 0, -177, 102]$[168, -61, -9, 41]$[178, -102, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D9IgMuMEd2PF5F8mtjyUw" id="(0.74509805,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D9vkMuMEd2PF5F8mtjyUw" id="(0.19298245,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_5H6MuMEd2PF5F8mtjyUw" type="3002" source="_0-vRUMuMEd2PF5F8mtjyUw" target="_0-5paMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_5u8MuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5u8cuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_5u8suMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5u88uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_5H6cuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_5H6suMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//AcceptorDef/serverProtocolProvider"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_5H68uMEd2PF5F8mtjyUw" points="[0, 0, 1, 102]$[0, -102, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D7TUsuMEd2PF5F8mtjyUw" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D76YMuMEd2PF5F8mtjyUw" id="(0.35978836,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_5u9MuMEd2PF5F8mtjyUw" type="3002" source="_0-wfdMuMEd2PF5F8mtjyUw" target="_0-5CUMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_5u-MuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5u-cuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_5u-suMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_5u-8uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_5u9cuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_5u9suMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/tcpSelectorDef"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_5u98uMEd2PF5F8mtjyUw" points="[0, 0, 0, 68]$[0, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D6FMMuMEd2PF5F8mtjyUw" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D6FMcuMEd2PF5F8mtjyUw" id="(0.49579832,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_6WAMuMEd2PF5F8mtjyUw" type="3003" source="_0-wfdMuMEd2PF5F8mtjyUw" target="_0-vRUMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_6WAcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_6WAsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_6WA8uMEd2PF5F8mtjyUw" points="[0, 0, 114, 68]$[0, -30, 114, 38]$[-114, -30, 0, 38]$[-114, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D5eIcuMEd2PF5F8mtjyUw" id="(0.24590164,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D5eIsuMEd2PF5F8mtjyUw" id="(0.74509805,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_6WBMuMEd2PF5F8mtjyUw" type="3003" source="_0-xtlMuMEd2PF5F8mtjyUw" target="_0-vRUMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_6WBcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_6WBsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_6WB8uMEd2PF5F8mtjyUw" points="[0, 0, 0, 68]$[0, -68, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D4QAcuMEd2PF5F8mtjyUw" id="(0.6048387,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D4QAsuMEd2PF5F8mtjyUw" id="(0.5,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_6WCMuMEd2PF5F8mtjyUw" type="3003" source="_0-ziwMuMEd2PF5F8mtjyUw" target="_0-ZTEMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_6WCcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_6WCsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_6WC8uMEd2PF5F8mtjyUw" points="[1, 0, 1, 60]$[1, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D43EMuMEd2PF5F8mtjyUw" id="(0.80451125,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D43EcuMEd2PF5F8mtjyUw" id="(0.49612403,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_69EMuMEd2PF5F8mtjyUw" type="3003" source="_0-0w4suMEd2PF5F8mtjyUw" target="_0-ZTEMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_69EcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_69EsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_69E8uMEd2PF5F8mtjyUw" points="[0, 0, 126, 60]$[0, -30, 126, 30]$[-125, -30, 1, 30]$[-125, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D3o8suMEd2PF5F8mtjyUw" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D4QAMuMEd2PF5F8mtjyUw" id="(0.74418604,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_69FMuMEd2PF5F8mtjyUw" type="3002" source="_0-3NIMuMEd2PF5F8mtjyUw" target="_0_ZYoMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_69GMuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_69GcuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_69GsuMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_69G8uMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_69FcuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_69FsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//ResponseNegotiatorDef/credentialsProvider"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_69F8uMEd2PF5F8mtjyUw" points="[0, 0, -469, 94]$[453, -61, -16, 33]$[469, -94, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D6sQMuMEd2PF5F8mtjyUw" id="(0.6647399,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D6sQcuMEd2PF5F8mtjyUw" id="(0.24855492,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_7kIMuMEd2PF5F8mtjyUw" type="3003" source="_0-3NIMuMEd2PF5F8mtjyUw" target="_0-1_AcuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_7kIcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_7kIsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_7kI8uMEd2PF5F8mtjyUw" points="[1, 0, 501, 102]$[1, -30, 501, 72]$[-499, -30, 1, 72]$[-499, -102, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D7TUMuMEd2PF5F8mtjyUw" id="(0.32947975,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D7TUcuMEd2PF5F8mtjyUw" id="(0.7982456,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_8LMMuMEd2PF5F8mtjyUw" type="3003" source="_0-30NMuMEd2PF5F8mtjyUw" target="_0-1_AcuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_8LMcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_8LMsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_8LM8uMEd2PF5F8mtjyUw" points="[0, 0, 152, 102]$[0, -30, 152, 72]$[-152, -30, 0, 72]$[-152, -102, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D43EsuMEd2PF5F8mtjyUw" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D5eIMuMEd2PF5F8mtjyUw" id="(0.39473686,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_8LNMuMEd2PF5F8mtjyUw" type="3003" source="_0-5paMuMEd2PF5F8mtjyUw" target="_0-8ssMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_8LNcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_8LNsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_8LN8uMEd2PF5F8mtjyUw" points="[0, 0, -568, 85]$[0, -30, -568, 55]$[569, -30, 1, 55]$[569, -85, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EBZ8MuMEd2PF5F8mtjyUw" id="(0.4973545,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EBZ8cuMEd2PF5F8mtjyUw" id="(0.32894737,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_8yQMuMEd2PF5F8mtjyUw" type="3003" source="_0-7emMuMEd2PF5F8mtjyUw" target="_0-63gcuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_8yQcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_8yQsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_8yQ8uMEd2PF5F8mtjyUw" points="[0, 0, -564, 85]$[0, -30, -564, 55]$[564, -30, 0, 55]$[564, -85, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EBZ8suMEd2PF5F8mtjyUw" id="(0.49541286,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1EBZ88uMEd2PF5F8mtjyUw" id="(0.25179857,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_8yRMuMEd2PF5F8mtjyUw" type="3003" source="_0_b04MuMEd2PF5F8mtjyUw" target="_0_ZYoMuMEd2PF5F8mtjyUw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_8yRcuMEd2PF5F8mtjyUw" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_8yRsuMEd2PF5F8mtjyUw" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_8yR8uMEd2PF5F8mtjyUw" points="[1, 0, 0, 94]$[1, -94, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D3o8MuMEd2PF5F8mtjyUw" id="(0.4978355,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D3o8cuMEd2PF5F8mtjyUw" id="(0.49710983,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_0_8ySMuMEd2PF5F8mtjyUw" type="3002" source="_0_dqEMuMEd2PF5F8mtjyUw" target="_0_gGUMuMEd2PF5F8mtjyUw"> + <children xmi:type="notation:Node" xmi:id="_0_9ZUcuMEd2PF5F8mtjyUw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_9ZUsuMEd2PF5F8mtjyUw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_0_9ZU8uMEd2PF5F8mtjyUw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_0_9ZVMuMEd2PF5F8mtjyUw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_0_8yScuMEd2PF5F8mtjyUw" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_0_8ySsuMEd2PF5F8mtjyUw" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//UserManagerDef/user"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0_9ZUMuMEd2PF5F8mtjyUw" points="[1, 0, 1, 60]$[1, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D_kwMuMEd2PF5F8mtjyUw" id="(0.49612403,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1D_kwcuMEd2PF5F8mtjyUw" id="(0.4966443,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_ufiRoNEQEd2lHcdF0ybKRg" type="3002" source="_0-ZTEMuMEd2PF5F8mtjyUw" target="_uZgiIdEQEd2lHcdF0ybKRg"> + <children xmi:type="notation:Node" xmi:id="_ufjfwNEQEd2lHcdF0ybKRg" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ufjfwdEQEd2lHcdF0ybKRg" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ufkG0NEQEd2lHcdF0ybKRg" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ufkG0dEQEd2lHcdF0ybKRg" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_ufiRodEQEd2lHcdF0ybKRg" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_ufiRotEQEd2lHcdF0ybKRg" fontName="Sans" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.defs.ecore#//ConnectorDef/executorService"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ufiRo9EQEd2lHcdF0ybKRg" points="[1, 0, 0, 85]$[1, -85, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_uhVocNEQEd2lHcdF0ybKRg" id="(0.49612403,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_uhVocdEQEd2lHcdF0ybKRg" id="(0.36,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_ufl8ANEQEd2lHcdF0ybKRg" type="3003" source="_0-ZTEMuMEd2PF5F8mtjyUw" target="_ucrx8NEQEd2lHcdF0ybKRg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_ufl8AdEQEd2lHcdF0ybKRg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_ufl8AtEQEd2lHcdF0ybKRg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ufl8A9EQEd2lHcdF0ybKRg" points="[1, 0, -460, 60]$[1, -30, -460, 30]$[461, -30, 0, 30]$[461, -60, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_uhTMMNEQEd2lHcdF0ybKRg" id="(0.82945734,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_uhTzQNEQEd2lHcdF0ybKRg" id="(0.49756098,1.0)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel new file mode 100644 index 0000000000..09d9c56ddc --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.net4j.defs/src" + modelPluginID="org.eclipse.net4j.defs" modelName="Org.eclipse.net4j" importerID="org.eclipse.emf.importer.ecore" + complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel#//net4jutildefs"> + <foreignModel>org.eclipse.net4j.defs.ecore</foreignModel> + <genPackages prefix="Net4jDefs" basePackage="org.eclipse.net4j" disposableProviderFactory="true" + ecorePackage="org.eclipse.net4j.defs.ecore#/"> + <genClasses image="false" ecoreClass="org.eclipse.net4j.defs.ecore#//ConnectorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//ConnectorDef/userID"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//ConnectorDef/bufferProviderDef"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//ConnectorDef/executorServiceDef"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//ConnectorDef/negotiatorDef"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//ConnectorDef/clientProtocolFactoryDef"/> + </genClasses> + <genClasses image="false" ecoreClass="org.eclipse.net4j.defs.ecore#//ClientProtocolFactoryDef"/> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//TCPConnectorDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//TCPConnectorDef/tcpSelectorDef"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//TCPConnectorDef/host"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//TCPConnectorDef/port"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//AcceptorDef"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//AcceptorDef/negotiatorDef"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//AcceptorDef/threadPoolDef"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//AcceptorDef/bufferPoolDef"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//TCPAcceptorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/host"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/port"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.defs.ecore#//TCPAcceptorDef/tcpSelectorDef"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//JVMAcceptorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//JVMAcceptorDef/name"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//JVMConnectorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//JVMConnectorDef/name"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//HTTPConnectorDef"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute org.eclipse.net4j.defs.ecore#//HTTPConnectorDef/url"/> + </genClasses> + <genClasses image="false" ecoreClass="org.eclipse.net4j.defs.ecore#//NegotiatorDef"/> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//ResponseNegotiatorDef"/> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//ChallengeNegotiatorDef"/> + <genClasses ecoreClass="org.eclipse.net4j.defs.ecore#//TCPSelectorDef"/> + <genClasses image="false" ecoreClass="org.eclipse.net4j.defs.ecore#//ServerProtocolFactoryDef"/> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.net4j.defs/plugin.properties b/plugins/org.eclipse.net4j.defs/plugin.properties new file mode 100644 index 0000000000..27661fb89d --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/plugin.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +# 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: +# André Dietisheim - 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 = Net4j Signalling Platform Definitions +providerName = Eclipse.org + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.net4j.defs/plugin.xml b/plugins/org.eclipse.net4j.defs/plugin.xml new file mode 100644 index 0000000000..97f1b32610 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/plugin.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id: plugin.xml,v 1.1 2008-12-28 18:07:30 estepper Exp $ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.eclipse.org/NET4J/util/defs/1.0.0" + class="org.eclipse.net4j.net4jdefs.Net4jDefsPackage" + genModel="model/org.eclipse.net4j.defs.genmodel"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/AcceptorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/AcceptorDef.java new file mode 100644 index 0000000000..8277c1a040 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/AcceptorDef.java @@ -0,0 +1,178 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AcceptorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Acceptor Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getBufferProvider <em>Buffer Provider</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getExecutorService <em>Executor Service</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator <em>Negotiator</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getServerProtocolProvider <em>Server Protocol Provider</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getAcceptorDef() + * @model abstract="true" + * @generated + */ +public interface AcceptorDef extends Def { + /** + * Returns the value of the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Buffer Provider</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Buffer Provider</em>' reference. + * @see #setBufferProvider(BufferPoolDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getAcceptorDef_BufferProvider() + * @model + * @generated + */ + BufferPoolDef getBufferProvider(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getBufferProvider <em>Buffer Provider</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Buffer Provider</em>' reference. + * @see #getBufferProvider() + * @generated + */ + void setBufferProvider(BufferPoolDef value); + + /** + * Returns the value of the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Executor Service</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Executor Service</em>' reference. + * @see #setExecutorService(ThreadPoolDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getAcceptorDef_ExecutorService() + * @model + * @generated + */ + ThreadPoolDef getExecutorService(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getExecutorService <em>Executor Service</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Executor Service</em>' reference. + * @see #getExecutorService() + * @generated + */ + void setExecutorService(ThreadPoolDef value); + + /** + * Returns the value of the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Negotiator</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Negotiator</em>' reference. + * @see #isSetNegotiator() + * @see #unsetNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getAcceptorDef_Negotiator() + * @model unsettable="true" + * @generated + */ + NegotiatorDef getNegotiator(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator <em>Negotiator</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Negotiator</em>' reference. + * @see #isSetNegotiator() + * @see #unsetNegotiator() + * @see #getNegotiator() + * @generated + */ + void setNegotiator(NegotiatorDef value); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator <em>Negotiator</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetNegotiator() + * @see #getNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @generated + */ + void unsetNegotiator(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator <em>Negotiator</em>}' reference is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Negotiator</em>' reference is set. + * @see #unsetNegotiator() + * @see #getNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @generated + */ + boolean isSetNegotiator(); + + /** + * Returns the value of the '<em><b>Server Protocol Provider</b></em>' reference list. + * The list contents are of type {@link org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Server Protocol Provider</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Server Protocol Provider</em>' reference list. + * @see #isSetServerProtocolProvider() + * @see #unsetServerProtocolProvider() + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getAcceptorDef_ServerProtocolProvider() + * @model unsettable="true" required="true" + * @generated + */ + EList<ServerProtocolFactoryDef> getServerProtocolProvider(); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getServerProtocolProvider <em>Server Protocol Provider</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetServerProtocolProvider() + * @see #getServerProtocolProvider() + * @generated + */ + void unsetServerProtocolProvider(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getServerProtocolProvider <em>Server Protocol Provider</em>}' reference list is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Server Protocol Provider</em>' reference list is set. + * @see #unsetServerProtocolProvider() + * @see #getServerProtocolProvider() + * @generated + */ + boolean isSetServerProtocolProvider(); + +} // AcceptorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferPoolDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferPoolDef.java new file mode 100644 index 0000000000..8d9c8629a0 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferPoolDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BufferPoolDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Buffer Pool Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getBufferPoolDef() + * @model + * @generated + */ +public interface BufferPoolDef extends BufferProviderDef { +} // BufferPoolDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferProviderDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferProviderDef.java new file mode 100644 index 0000000000..1fc208d8ce --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/BufferProviderDef.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BufferProviderDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Buffer Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getBufferProviderDef() + * @model abstract="true" + * @generated + */ +public interface BufferProviderDef extends Def { +} // BufferProviderDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ChallengeNegotiatorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ChallengeNegotiatorDef.java new file mode 100644 index 0000000000..ddf22c8a81 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ChallengeNegotiatorDef.java @@ -0,0 +1,81 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ChallengeNegotiatorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Challenge Negotiator Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getUserManager <em>User Manager</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getRandomizer <em>Randomizer</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getChallengeNegotiatorDef() + * @model + * @generated + */ +public interface ChallengeNegotiatorDef extends NegotiatorDef { + + /** + * Returns the value of the '<em><b>User Manager</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User Manager</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User Manager</em>' reference. + * @see #setUserManager(UserManagerDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getChallengeNegotiatorDef_UserManager() + * @model + * @generated + */ + UserManagerDef getUserManager(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getUserManager <em>User Manager</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User Manager</em>' reference. + * @see #getUserManager() + * @generated + */ + void setUserManager(UserManagerDef value); + + /** + * Returns the value of the '<em><b>Randomizer</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Randomizer</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Randomizer</em>' reference. + * @see #setRandomizer(RandomizerDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getChallengeNegotiatorDef_Randomizer() + * @model + * @generated + */ + RandomizerDef getRandomizer(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getRandomizer <em>Randomizer</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Randomizer</em>' reference. + * @see #getRandomizer() + * @generated + */ + void setRandomizer(RandomizerDef value); +} // ChallengeNegotiatorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ClientProtocolFactoryDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ClientProtocolFactoryDef.java new file mode 100644 index 0000000000..b87605e0b7 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ClientProtocolFactoryDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ClientProtocolFactoryDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Client Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getClientProtocolFactoryDef() + * @model abstract="true" + * @generated + */ +public interface ClientProtocolFactoryDef extends ProtocolProviderDef { +} // ClientProtocolFactoryDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ConnectorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ConnectorDef.java new file mode 100644 index 0000000000..37dc6fef6c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ConnectorDef.java @@ -0,0 +1,232 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ConnectorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Connector Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID <em>User ID</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getBufferProvider <em>Buffer Provider</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getExecutorService <em>Executor Service</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator <em>Negotiator</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getClientProtocolProvider <em>Client Protocol Provider</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef() + * @model abstract="true" + * @generated + */ +public interface ConnectorDef extends Def { + /** + * Returns the value of the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User ID</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User ID</em>' attribute. + * @see #isSetUserID() + * @see #unsetUserID() + * @see #setUserID(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef_UserID() + * @model unsettable="true" + * @generated + */ + String getUserID(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User ID</em>' attribute. + * @see #isSetUserID() + * @see #unsetUserID() + * @see #getUserID() + * @generated + */ + void setUserID(String value); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUserID() + * @see #getUserID() + * @see #setUserID(String) + * @generated + */ + void unsetUserID(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID <em>User ID</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>User ID</em>' attribute is set. + * @see #unsetUserID() + * @see #getUserID() + * @see #setUserID(String) + * @generated + */ + boolean isSetUserID(); + + /** + * Returns the value of the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Buffer Provider</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Buffer Provider</em>' reference. + * @see #setBufferProvider(BufferProviderDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef_BufferProvider() + * @model required="true" + * @generated + */ + BufferProviderDef getBufferProvider(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getBufferProvider <em>Buffer Provider</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Buffer Provider</em>' reference. + * @see #getBufferProvider() + * @generated + */ + void setBufferProvider(BufferProviderDef value); + + /** + * Returns the value of the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Executor Service</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Executor Service</em>' reference. + * @see #setExecutorService(ExecutorServiceDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef_ExecutorService() + * @model required="true" + * @generated + */ + ExecutorServiceDef getExecutorService(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getExecutorService <em>Executor Service</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Executor Service</em>' reference. + * @see #getExecutorService() + * @generated + */ + void setExecutorService(ExecutorServiceDef value); + + /** + * Returns the value of the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Negotiator</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Negotiator</em>' reference. + * @see #isSetNegotiator() + * @see #unsetNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef_Negotiator() + * @model unsettable="true" + * @generated + */ + NegotiatorDef getNegotiator(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator <em>Negotiator</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Negotiator</em>' reference. + * @see #isSetNegotiator() + * @see #unsetNegotiator() + * @see #getNegotiator() + * @generated + */ + void setNegotiator(NegotiatorDef value); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator <em>Negotiator</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetNegotiator() + * @see #getNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @generated + */ + void unsetNegotiator(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator <em>Negotiator</em>}' reference is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Negotiator</em>' reference is set. + * @see #unsetNegotiator() + * @see #getNegotiator() + * @see #setNegotiator(NegotiatorDef) + * @generated + */ + boolean isSetNegotiator(); + + /** + * Returns the value of the '<em><b>Client Protocol Provider</b></em>' reference list. + * The list contents are of type {@link org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Client Protocol Provider</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Client Protocol Provider</em>' reference list. + * @see #isSetClientProtocolProvider() + * @see #unsetClientProtocolProvider() + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getConnectorDef_ClientProtocolProvider() + * @model unsettable="true" required="true" + * @generated + */ + EList<ClientProtocolFactoryDef> getClientProtocolProvider(); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getClientProtocolProvider <em>Client Protocol Provider</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetClientProtocolProvider() + * @see #getClientProtocolProvider() + * @generated + */ + void unsetClientProtocolProvider(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getClientProtocolProvider <em>Client Protocol Provider</em>}' reference list is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Client Protocol Provider</em>' reference list is set. + * @see #unsetClientProtocolProvider() + * @see #getClientProtocolProvider() + * @generated + */ + boolean isSetClientProtocolProvider(); + +} // ConnectorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/CredentialsProviderDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/CredentialsProviderDef.java new file mode 100644 index 0000000000..14fdf0e4d9 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/CredentialsProviderDef.java @@ -0,0 +1,54 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CredentialsProviderDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Credentials Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.CredentialsProviderDef#getUserID <em>User ID</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getCredentialsProviderDef() + * @model abstract="true" + * @generated + */ +public interface CredentialsProviderDef extends Def { + /** + * Returns the value of the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User ID</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User ID</em>' attribute. + * @see #setUserID(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getCredentialsProviderDef_UserID() + * @model + * @generated + */ + String getUserID(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.CredentialsProviderDef#getUserID <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User ID</em>' attribute. + * @see #getUserID() + * @generated + */ + void setUserID(String value); + +} // CredentialsProviderDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/HTTPConnectorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/HTTPConnectorDef.java new file mode 100644 index 0000000000..967b42117b --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/HTTPConnectorDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: HTTPConnectorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>HTTP Connector Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.HTTPConnectorDef#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getHTTPConnectorDef() + * @model + * @generated + */ +public interface HTTPConnectorDef extends ConnectorDef { + + /** + * Returns the value of the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Url</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Url</em>' attribute. + * @see #setUrl(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getHTTPConnectorDef_Url() + * @model + * @generated + */ + String getUrl(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.HTTPConnectorDef#getUrl <em>Url</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Url</em>' attribute. + * @see #getUrl() + * @generated + */ + void setUrl(String value); +} // HTTPConnectorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMAcceptorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMAcceptorDef.java new file mode 100644 index 0000000000..5a73c1b6d6 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMAcceptorDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JVMAcceptorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>JVM Acceptor Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.JVMAcceptorDef#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getJVMAcceptorDef() + * @model + * @generated + */ +public interface JVMAcceptorDef extends AcceptorDef { + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getJVMAcceptorDef_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.JVMAcceptorDef#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); +} // JVMAcceptorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMConnectorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMConnectorDef.java new file mode 100644 index 0000000000..4de5b4e73c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/JVMConnectorDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JVMConnectorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>JVM Connector Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.JVMConnectorDef#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getJVMConnectorDef() + * @model + * @generated + */ +public interface JVMConnectorDef extends ConnectorDef { + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getJVMConnectorDef_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.JVMConnectorDef#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); +} // JVMConnectorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/NegotiatorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/NegotiatorDef.java new file mode 100644 index 0000000000..98e662502b --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/NegotiatorDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NegotiatorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Negotiator Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getNegotiatorDef() + * @model abstract="true" + * @generated + */ +public interface NegotiatorDef extends Def { +} // NegotiatorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsFactory.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsFactory.java new file mode 100644 index 0000000000..7ebff198ec --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsFactory.java @@ -0,0 +1,154 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage + * @generated + */ +public interface Net4jDefsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4jDefsFactory eINSTANCE = org.eclipse.net4j.net4jdefs.impl.Net4jDefsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>TCP Connector Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>TCP Connector Def</em>'. + * @generated + */ + TCPConnectorDef createTCPConnectorDef(); + + /** + * Returns a new object of class '<em>TCP Acceptor Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>TCP Acceptor Def</em>'. + * @generated + */ + TCPAcceptorDef createTCPAcceptorDef(); + + /** + * Returns a new object of class '<em>JVM Acceptor Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>JVM Acceptor Def</em>'. + * @generated + */ + JVMAcceptorDef createJVMAcceptorDef(); + + /** + * Returns a new object of class '<em>JVM Connector Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>JVM Connector Def</em>'. + * @generated + */ + JVMConnectorDef createJVMConnectorDef(); + + /** + * Returns a new object of class '<em>HTTP Connector Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>HTTP Connector Def</em>'. + * @generated + */ + HTTPConnectorDef createHTTPConnectorDef(); + + /** + * Returns a new object of class '<em>Response Negotiator Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Response Negotiator Def</em>'. + * @generated + */ + ResponseNegotiatorDef createResponseNegotiatorDef(); + + /** + * Returns a new object of class '<em>Challenge Negotiator Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Challenge Negotiator Def</em>'. + * @generated + */ + ChallengeNegotiatorDef createChallengeNegotiatorDef(); + + /** + * Returns a new object of class '<em>TCP Selector Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>TCP Selector Def</em>'. + * @generated + */ + TCPSelectorDef createTCPSelectorDef(); + + /** + * Returns a new object of class '<em>Buffer Pool Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Buffer Pool Def</em>'. + * @generated + */ + BufferPoolDef createBufferPoolDef(); + + /** + * Returns a new object of class '<em>Password Credentials Provider Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Password Credentials Provider Def</em>'. + * @generated + */ + PasswordCredentialsProviderDef createPasswordCredentialsProviderDef(); + + /** + * Returns a new object of class '<em>User Manager Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>User Manager Def</em>'. + * @generated + */ + UserManagerDef createUserManagerDef(); + + /** + * Returns a new object of class '<em>Randomizer Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Randomizer Def</em>'. + * @generated + */ + RandomizerDef createRandomizerDef(); + + /** + * Returns a new object of class '<em>User</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>User</em>'. + * @generated + */ + User createUser(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + Net4jDefsPackage getNet4jDefsPackage(); + +} //Net4jDefsFactory diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsPackage.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsPackage.java new file mode 100644 index 0000000000..7bf31a82a7 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/Net4jDefsPackage.java @@ -0,0 +1,1852 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsPackage.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.Net4jDefsFactory + * @model kind="package" + * @generated + */ +public interface Net4jDefsPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "net4jdefs"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/NET4J/defs/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "net4jdefs"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4jDefsPackage eINSTANCE = org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl <em>Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getConnectorDef() + * @generated + */ + int CONNECTOR_DEF = 0; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF__USER_ID = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF__BUFFER_PROVIDER = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF__EXECUTOR_SERVICE = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF__NEGOTIATOR = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Client Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Connector Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CONNECTOR_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ClientProtocolFactoryDefImpl <em>Client Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ClientProtocolFactoryDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getClientProtocolFactoryDef() + * @generated + */ + int CLIENT_PROTOCOL_FACTORY_DEF = 1; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl <em>TCP Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPConnectorDef() + * @generated + */ + int TCP_CONNECTOR_DEF = 2; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl <em>Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getAcceptorDef() + * @generated + */ + int ACCEPTOR_DEF = 3; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl <em>TCP Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPAcceptorDef() + * @generated + */ + int TCP_ACCEPTOR_DEF = 4; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.JVMAcceptorDefImpl <em>JVM Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.JVMAcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getJVMAcceptorDef() + * @generated + */ + int JVM_ACCEPTOR_DEF = 5; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.JVMConnectorDefImpl <em>JVM Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.JVMConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getJVMConnectorDef() + * @generated + */ + int JVM_CONNECTOR_DEF = 6; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.HTTPConnectorDefImpl <em>HTTP Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.HTTPConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getHTTPConnectorDef() + * @generated + */ + int HTTP_CONNECTOR_DEF = 7; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.NegotiatorDefImpl <em>Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.NegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getNegotiatorDef() + * @generated + */ + int NEGOTIATOR_DEF = 8; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ResponseNegotiatorDefImpl <em>Response Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ResponseNegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getResponseNegotiatorDef() + * @generated + */ + int RESPONSE_NEGOTIATOR_DEF = 9; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl <em>Challenge Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getChallengeNegotiatorDef() + * @generated + */ + int CHALLENGE_NEGOTIATOR_DEF = 10; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPSelectorDefImpl <em>TCP Selector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPSelectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPSelectorDef() + * @generated + */ + int TCP_SELECTOR_DEF = 11; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ServerProtocolFactoryDefImpl <em>Server Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ServerProtocolFactoryDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getServerProtocolFactoryDef() + * @generated + */ + int SERVER_PROTOCOL_FACTORY_DEF = 12; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.BufferProviderDefImpl <em>Buffer Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.BufferProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getBufferProviderDef() + * @generated + */ + int BUFFER_PROVIDER_DEF = 13; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.BufferPoolDefImpl <em>Buffer Pool Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.BufferPoolDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getBufferPoolDef() + * @generated + */ + int BUFFER_POOL_DEF = 14; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.ProtocolProviderDefImpl <em>Protocol Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ProtocolProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getProtocolProviderDef() + * @generated + */ + int PROTOCOL_PROVIDER_DEF = 15; + + /** + * The number of structural features of the '<em>Protocol Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PROTOCOL_PROVIDER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Client Protocol Factory Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = PROTOCOL_PROVIDER_DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__USER_ID = CONNECTOR_DEF__USER_ID; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__BUFFER_PROVIDER = CONNECTOR_DEF__BUFFER_PROVIDER; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__EXECUTOR_SERVICE = CONNECTOR_DEF__EXECUTOR_SERVICE; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__NEGOTIATOR = CONNECTOR_DEF__NEGOTIATOR; + + /** + * The feature id for the '<em><b>Client Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER = CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER; + + /** + * The feature id for the '<em><b>Tcp Selector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF = CONNECTOR_DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__HOST = CONNECTOR_DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF__PORT = CONNECTOR_DEF_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>TCP Connector Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_CONNECTOR_DEF_FEATURE_COUNT = CONNECTOR_DEF_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ACCEPTOR_DEF__BUFFER_PROVIDER = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ACCEPTOR_DEF__EXECUTOR_SERVICE = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ACCEPTOR_DEF__NEGOTIATOR = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Server Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3; + + /** + * The number of structural features of the '<em>Acceptor Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ACCEPTOR_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__BUFFER_PROVIDER = ACCEPTOR_DEF__BUFFER_PROVIDER; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__EXECUTOR_SERVICE = ACCEPTOR_DEF__EXECUTOR_SERVICE; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__NEGOTIATOR = ACCEPTOR_DEF__NEGOTIATOR; + + /** + * The feature id for the '<em><b>Server Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER = ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER; + + /** + * The feature id for the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__HOST = ACCEPTOR_DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__PORT = ACCEPTOR_DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Tcp Selector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF = ACCEPTOR_DEF_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>TCP Acceptor Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_ACCEPTOR_DEF_FEATURE_COUNT = ACCEPTOR_DEF_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF__BUFFER_PROVIDER = ACCEPTOR_DEF__BUFFER_PROVIDER; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF__EXECUTOR_SERVICE = ACCEPTOR_DEF__EXECUTOR_SERVICE; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF__NEGOTIATOR = ACCEPTOR_DEF__NEGOTIATOR; + + /** + * The feature id for the '<em><b>Server Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER = ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF__NAME = ACCEPTOR_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>JVM Acceptor Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_ACCEPTOR_DEF_FEATURE_COUNT = ACCEPTOR_DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__USER_ID = CONNECTOR_DEF__USER_ID; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__BUFFER_PROVIDER = CONNECTOR_DEF__BUFFER_PROVIDER; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__EXECUTOR_SERVICE = CONNECTOR_DEF__EXECUTOR_SERVICE; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__NEGOTIATOR = CONNECTOR_DEF__NEGOTIATOR; + + /** + * The feature id for the '<em><b>Client Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER = CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF__NAME = CONNECTOR_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>JVM Connector Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JVM_CONNECTOR_DEF_FEATURE_COUNT = CONNECTOR_DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__USER_ID = CONNECTOR_DEF__USER_ID; + + /** + * The feature id for the '<em><b>Buffer Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__BUFFER_PROVIDER = CONNECTOR_DEF__BUFFER_PROVIDER; + + /** + * The feature id for the '<em><b>Executor Service</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__EXECUTOR_SERVICE = CONNECTOR_DEF__EXECUTOR_SERVICE; + + /** + * The feature id for the '<em><b>Negotiator</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__NEGOTIATOR = CONNECTOR_DEF__NEGOTIATOR; + + /** + * The feature id for the '<em><b>Client Protocol Provider</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER = CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER; + + /** + * The feature id for the '<em><b>Url</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF__URL = CONNECTOR_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>HTTP Connector Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int HTTP_CONNECTOR_DEF_FEATURE_COUNT = CONNECTOR_DEF_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Negotiator Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEGOTIATOR_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Credentials Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER = NEGOTIATOR_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Response Negotiator Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RESPONSE_NEGOTIATOR_DEF_FEATURE_COUNT = NEGOTIATOR_DEF_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>User Manager</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER = NEGOTIATOR_DEF_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Randomizer</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER = NEGOTIATOR_DEF_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Challenge Negotiator Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CHALLENGE_NEGOTIATOR_DEF_FEATURE_COUNT = NEGOTIATOR_DEF_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>TCP Selector Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TCP_SELECTOR_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Server Protocol Factory Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SERVER_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = PROTOCOL_PROVIDER_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Buffer Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUFFER_PROVIDER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Buffer Pool Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUFFER_POOL_DEF_FEATURE_COUNT = BUFFER_PROVIDER_DEF_FEATURE_COUNT + 0; + + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.CredentialsProviderDefImpl <em>Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.CredentialsProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getCredentialsProviderDef() + * @generated + */ + int CREDENTIALS_PROVIDER_DEF = 16; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREDENTIALS_PROVIDER_DEF__USER_ID = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Credentials Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREDENTIALS_PROVIDER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.PasswordCredentialsProviderDefImpl <em>Password Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.PasswordCredentialsProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getPasswordCredentialsProviderDef() + * @generated + */ + int PASSWORD_CREDENTIALS_PROVIDER_DEF = 17; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PASSWORD_CREDENTIALS_PROVIDER_DEF__USER_ID = CREDENTIALS_PROVIDER_DEF__USER_ID; + + /** + * The feature id for the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD = CREDENTIALS_PROVIDER_DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Password Credentials Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PASSWORD_CREDENTIALS_PROVIDER_DEF_FEATURE_COUNT = CREDENTIALS_PROVIDER_DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.UserManagerDefImpl <em>User Manager Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.UserManagerDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getUserManagerDef() + * @generated + */ + int USER_MANAGER_DEF = 19; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.UserImpl <em>User</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.UserImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getUser() + * @generated + */ + int USER = 18; + + /** + * The feature id for the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int USER__USER_ID = 0; + + /** + * The feature id for the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int USER__PASSWORD = 1; + + /** + * The number of structural features of the '<em>User</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int USER_FEATURE_COUNT = 2; + + /** + * The feature id for the '<em><b>User</b></em>' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int USER_MANAGER_DEF__USER = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>User Manager Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int USER_MANAGER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4jdefs.impl.RandomizerDefImpl <em>Randomizer Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.RandomizerDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getRandomizerDef() + * @generated + */ + int RANDOMIZER_DEF = 20; + + /** + * The number of structural features of the '<em>Randomizer Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int RANDOMIZER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ConnectorDef <em>Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Connector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef + * @generated + */ + EClass getConnectorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID <em>User ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User ID</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef#getUserID() + * @see #getConnectorDef() + * @generated + */ + EAttribute getConnectorDef_UserID(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getBufferProvider <em>Buffer Provider</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Buffer Provider</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef#getBufferProvider() + * @see #getConnectorDef() + * @generated + */ + EReference getConnectorDef_BufferProvider(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getExecutorService <em>Executor Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Executor Service</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef#getExecutorService() + * @see #getConnectorDef() + * @generated + */ + EReference getConnectorDef_ExecutorService(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator <em>Negotiator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Negotiator</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef#getNegotiator() + * @see #getConnectorDef() + * @generated + */ + EReference getConnectorDef_Negotiator(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.net4j.net4jdefs.ConnectorDef#getClientProtocolProvider <em>Client Protocol Provider</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>Client Protocol Provider</em>'. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef#getClientProtocolProvider() + * @see #getConnectorDef() + * @generated + */ + EReference getConnectorDef_ClientProtocolProvider(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef <em>Client Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Client Protocol Factory Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef + * @generated + */ + EClass getClientProtocolFactoryDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef <em>TCP Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>TCP Connector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPConnectorDef + * @generated + */ + EClass getTCPConnectorDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Tcp Selector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPConnectorDef#getTcpSelectorDef() + * @see #getTCPConnectorDef() + * @generated + */ + EReference getTCPConnectorDef_TcpSelectorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getHost <em>Host</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Host</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPConnectorDef#getHost() + * @see #getTCPConnectorDef() + * @generated + */ + EAttribute getTCPConnectorDef_Host(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort <em>Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort() + * @see #getTCPConnectorDef() + * @generated + */ + EAttribute getTCPConnectorDef_Port(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.AcceptorDef <em>Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Acceptor Def</em>'. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef + * @generated + */ + EClass getAcceptorDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getBufferProvider <em>Buffer Provider</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Buffer Provider</em>'. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef#getBufferProvider() + * @see #getAcceptorDef() + * @generated + */ + EReference getAcceptorDef_BufferProvider(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getExecutorService <em>Executor Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Executor Service</em>'. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef#getExecutorService() + * @see #getAcceptorDef() + * @generated + */ + EReference getAcceptorDef_ExecutorService(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator <em>Negotiator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Negotiator</em>'. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef#getNegotiator() + * @see #getAcceptorDef() + * @generated + */ + EReference getAcceptorDef_Negotiator(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.net4j.net4jdefs.AcceptorDef#getServerProtocolProvider <em>Server Protocol Provider</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>Server Protocol Provider</em>'. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef#getServerProtocolProvider() + * @see #getAcceptorDef() + * @generated + */ + EReference getAcceptorDef_ServerProtocolProvider(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef <em>TCP Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>TCP Acceptor Def</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPAcceptorDef + * @generated + */ + EClass getTCPAcceptorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getHost <em>Host</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Host</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getHost() + * @see #getTCPAcceptorDef() + * @generated + */ + EAttribute getTCPAcceptorDef_Host(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getPort <em>Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getPort() + * @see #getTCPAcceptorDef() + * @generated + */ + EAttribute getTCPAcceptorDef_Port(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Tcp Selector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getTcpSelectorDef() + * @see #getTCPAcceptorDef() + * @generated + */ + EReference getTCPAcceptorDef_TcpSelectorDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.JVMAcceptorDef <em>JVM Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>JVM Acceptor Def</em>'. + * @see org.eclipse.net4j.net4jdefs.JVMAcceptorDef + * @generated + */ + EClass getJVMAcceptorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.JVMAcceptorDef#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.net4j.net4jdefs.JVMAcceptorDef#getName() + * @see #getJVMAcceptorDef() + * @generated + */ + EAttribute getJVMAcceptorDef_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.JVMConnectorDef <em>JVM Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>JVM Connector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.JVMConnectorDef + * @generated + */ + EClass getJVMConnectorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.JVMConnectorDef#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.net4j.net4jdefs.JVMConnectorDef#getName() + * @see #getJVMConnectorDef() + * @generated + */ + EAttribute getJVMConnectorDef_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.HTTPConnectorDef <em>HTTP Connector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>HTTP Connector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.HTTPConnectorDef + * @generated + */ + EClass getHTTPConnectorDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.HTTPConnectorDef#getUrl <em>Url</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Url</em>'. + * @see org.eclipse.net4j.net4jdefs.HTTPConnectorDef#getUrl() + * @see #getHTTPConnectorDef() + * @generated + */ + EAttribute getHTTPConnectorDef_Url(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.NegotiatorDef <em>Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Negotiator Def</em>'. + * @see org.eclipse.net4j.net4jdefs.NegotiatorDef + * @generated + */ + EClass getNegotiatorDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef <em>Response Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Response Negotiator Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef + * @generated + */ + EClass getResponseNegotiatorDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef#getCredentialsProvider <em>Credentials Provider</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Credentials Provider</em>'. + * @see org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef#getCredentialsProvider() + * @see #getResponseNegotiatorDef() + * @generated + */ + EReference getResponseNegotiatorDef_CredentialsProvider(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef <em>Challenge Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Challenge Negotiator Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef + * @generated + */ + EClass getChallengeNegotiatorDef(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getUserManager <em>User Manager</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>User Manager</em>'. + * @see org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getUserManager() + * @see #getChallengeNegotiatorDef() + * @generated + */ + EReference getChallengeNegotiatorDef_UserManager(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getRandomizer <em>Randomizer</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Randomizer</em>'. + * @see org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef#getRandomizer() + * @see #getChallengeNegotiatorDef() + * @generated + */ + EReference getChallengeNegotiatorDef_Randomizer(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.TCPSelectorDef <em>TCP Selector Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>TCP Selector Def</em>'. + * @see org.eclipse.net4j.net4jdefs.TCPSelectorDef + * @generated + */ + EClass getTCPSelectorDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef <em>Server Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Server Protocol Factory Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef + * @generated + */ + EClass getServerProtocolFactoryDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.BufferProviderDef <em>Buffer Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Buffer Provider Def</em>'. + * @see org.eclipse.net4j.net4jdefs.BufferProviderDef + * @generated + */ + EClass getBufferProviderDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.BufferPoolDef <em>Buffer Pool Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Buffer Pool Def</em>'. + * @see org.eclipse.net4j.net4jdefs.BufferPoolDef + * @generated + */ + EClass getBufferPoolDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.ProtocolProviderDef <em>Protocol Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Protocol Provider Def</em>'. + * @see org.eclipse.net4j.net4jdefs.ProtocolProviderDef + * @generated + */ + EClass getProtocolProviderDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.CredentialsProviderDef <em>Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Credentials Provider Def</em>'. + * @see org.eclipse.net4j.net4jdefs.CredentialsProviderDef + * @generated + */ + EClass getCredentialsProviderDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.CredentialsProviderDef#getUserID <em>User ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User ID</em>'. + * @see org.eclipse.net4j.net4jdefs.CredentialsProviderDef#getUserID() + * @see #getCredentialsProviderDef() + * @generated + */ + EAttribute getCredentialsProviderDef_UserID(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef <em>Password Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Password Credentials Provider Def</em>'. + * @see org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef + * @generated + */ + EClass getPasswordCredentialsProviderDef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef#getPassword <em>Password</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Password</em>'. + * @see org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef#getPassword() + * @see #getPasswordCredentialsProviderDef() + * @generated + */ + EAttribute getPasswordCredentialsProviderDef_Password(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.UserManagerDef <em>User Manager Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>User Manager Def</em>'. + * @see org.eclipse.net4j.net4jdefs.UserManagerDef + * @generated + */ + EClass getUserManagerDef(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.net4j.net4jdefs.UserManagerDef#getUser <em>User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference list '<em>User</em>'. + * @see org.eclipse.net4j.net4jdefs.UserManagerDef#getUser() + * @see #getUserManagerDef() + * @generated + */ + EReference getUserManagerDef_User(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.RandomizerDef <em>Randomizer Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Randomizer Def</em>'. + * @see org.eclipse.net4j.net4jdefs.RandomizerDef + * @generated + */ + EClass getRandomizerDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4jdefs.User <em>User</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>User</em>'. + * @see org.eclipse.net4j.net4jdefs.User + * @generated + */ + EClass getUser(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.User#getUserID <em>User ID</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>User ID</em>'. + * @see org.eclipse.net4j.net4jdefs.User#getUserID() + * @see #getUser() + * @generated + */ + EAttribute getUser_UserID(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.net4j.net4jdefs.User#getPassword <em>Password</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Password</em>'. + * @see org.eclipse.net4j.net4jdefs.User#getPassword() + * @see #getUser() + * @generated + */ + EAttribute getUser_Password(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + Net4jDefsFactory getNet4jDefsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl <em>Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getConnectorDef() + * @generated + */ + EClass CONNECTOR_DEF = eINSTANCE.getConnectorDef(); + + /** + * The meta object literal for the '<em><b>User ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CONNECTOR_DEF__USER_ID = eINSTANCE.getConnectorDef_UserID(); + + /** + * The meta object literal for the '<em><b>Buffer Provider</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONNECTOR_DEF__BUFFER_PROVIDER = eINSTANCE.getConnectorDef_BufferProvider(); + + /** + * The meta object literal for the '<em><b>Executor Service</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONNECTOR_DEF__EXECUTOR_SERVICE = eINSTANCE.getConnectorDef_ExecutorService(); + + /** + * The meta object literal for the '<em><b>Negotiator</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONNECTOR_DEF__NEGOTIATOR = eINSTANCE.getConnectorDef_Negotiator(); + + /** + * The meta object literal for the '<em><b>Client Protocol Provider</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER = eINSTANCE.getConnectorDef_ClientProtocolProvider(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ClientProtocolFactoryDefImpl <em>Client Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ClientProtocolFactoryDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getClientProtocolFactoryDef() + * @generated + */ + EClass CLIENT_PROTOCOL_FACTORY_DEF = eINSTANCE.getClientProtocolFactoryDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl <em>TCP Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPConnectorDef() + * @generated + */ + EClass TCP_CONNECTOR_DEF = eINSTANCE.getTCPConnectorDef(); + + /** + * The meta object literal for the '<em><b>Tcp Selector Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF = eINSTANCE.getTCPConnectorDef_TcpSelectorDef(); + + /** + * The meta object literal for the '<em><b>Host</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TCP_CONNECTOR_DEF__HOST = eINSTANCE.getTCPConnectorDef_Host(); + + /** + * The meta object literal for the '<em><b>Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TCP_CONNECTOR_DEF__PORT = eINSTANCE.getTCPConnectorDef_Port(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl <em>Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getAcceptorDef() + * @generated + */ + EClass ACCEPTOR_DEF = eINSTANCE.getAcceptorDef(); + + /** + * The meta object literal for the '<em><b>Buffer Provider</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ACCEPTOR_DEF__BUFFER_PROVIDER = eINSTANCE.getAcceptorDef_BufferProvider(); + + /** + * The meta object literal for the '<em><b>Executor Service</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ACCEPTOR_DEF__EXECUTOR_SERVICE = eINSTANCE.getAcceptorDef_ExecutorService(); + + /** + * The meta object literal for the '<em><b>Negotiator</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ACCEPTOR_DEF__NEGOTIATOR = eINSTANCE.getAcceptorDef_Negotiator(); + + /** + * The meta object literal for the '<em><b>Server Protocol Provider</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER = eINSTANCE.getAcceptorDef_ServerProtocolProvider(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl <em>TCP Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPAcceptorDef() + * @generated + */ + EClass TCP_ACCEPTOR_DEF = eINSTANCE.getTCPAcceptorDef(); + + /** + * The meta object literal for the '<em><b>Host</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TCP_ACCEPTOR_DEF__HOST = eINSTANCE.getTCPAcceptorDef_Host(); + + /** + * The meta object literal for the '<em><b>Port</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TCP_ACCEPTOR_DEF__PORT = eINSTANCE.getTCPAcceptorDef_Port(); + + /** + * The meta object literal for the '<em><b>Tcp Selector Def</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF = eINSTANCE.getTCPAcceptorDef_TcpSelectorDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.JVMAcceptorDefImpl <em>JVM Acceptor Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.JVMAcceptorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getJVMAcceptorDef() + * @generated + */ + EClass JVM_ACCEPTOR_DEF = eINSTANCE.getJVMAcceptorDef(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JVM_ACCEPTOR_DEF__NAME = eINSTANCE.getJVMAcceptorDef_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.JVMConnectorDefImpl <em>JVM Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.JVMConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getJVMConnectorDef() + * @generated + */ + EClass JVM_CONNECTOR_DEF = eINSTANCE.getJVMConnectorDef(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JVM_CONNECTOR_DEF__NAME = eINSTANCE.getJVMConnectorDef_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.HTTPConnectorDefImpl <em>HTTP Connector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.HTTPConnectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getHTTPConnectorDef() + * @generated + */ + EClass HTTP_CONNECTOR_DEF = eINSTANCE.getHTTPConnectorDef(); + + /** + * The meta object literal for the '<em><b>Url</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute HTTP_CONNECTOR_DEF__URL = eINSTANCE.getHTTPConnectorDef_Url(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.NegotiatorDefImpl <em>Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.NegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getNegotiatorDef() + * @generated + */ + EClass NEGOTIATOR_DEF = eINSTANCE.getNegotiatorDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ResponseNegotiatorDefImpl <em>Response Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ResponseNegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getResponseNegotiatorDef() + * @generated + */ + EClass RESPONSE_NEGOTIATOR_DEF = eINSTANCE.getResponseNegotiatorDef(); + + /** + * The meta object literal for the '<em><b>Credentials Provider</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER = eINSTANCE.getResponseNegotiatorDef_CredentialsProvider(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl <em>Challenge Negotiator Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getChallengeNegotiatorDef() + * @generated + */ + EClass CHALLENGE_NEGOTIATOR_DEF = eINSTANCE.getChallengeNegotiatorDef(); + + /** + * The meta object literal for the '<em><b>User Manager</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER = eINSTANCE.getChallengeNegotiatorDef_UserManager(); + + /** + * The meta object literal for the '<em><b>Randomizer</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER = eINSTANCE.getChallengeNegotiatorDef_Randomizer(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.TCPSelectorDefImpl <em>TCP Selector Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.TCPSelectorDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getTCPSelectorDef() + * @generated + */ + EClass TCP_SELECTOR_DEF = eINSTANCE.getTCPSelectorDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ServerProtocolFactoryDefImpl <em>Server Protocol Factory Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ServerProtocolFactoryDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getServerProtocolFactoryDef() + * @generated + */ + EClass SERVER_PROTOCOL_FACTORY_DEF = eINSTANCE.getServerProtocolFactoryDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.BufferProviderDefImpl <em>Buffer Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.BufferProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getBufferProviderDef() + * @generated + */ + EClass BUFFER_PROVIDER_DEF = eINSTANCE.getBufferProviderDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.BufferPoolDefImpl <em>Buffer Pool Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.BufferPoolDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getBufferPoolDef() + * @generated + */ + EClass BUFFER_POOL_DEF = eINSTANCE.getBufferPoolDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.ProtocolProviderDefImpl <em>Protocol Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.ProtocolProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getProtocolProviderDef() + * @generated + */ + EClass PROTOCOL_PROVIDER_DEF = eINSTANCE.getProtocolProviderDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.CredentialsProviderDefImpl <em>Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.CredentialsProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getCredentialsProviderDef() + * @generated + */ + EClass CREDENTIALS_PROVIDER_DEF = eINSTANCE.getCredentialsProviderDef(); + + /** + * The meta object literal for the '<em><b>User ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREDENTIALS_PROVIDER_DEF__USER_ID = eINSTANCE.getCredentialsProviderDef_UserID(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.PasswordCredentialsProviderDefImpl <em>Password Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.PasswordCredentialsProviderDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getPasswordCredentialsProviderDef() + * @generated + */ + EClass PASSWORD_CREDENTIALS_PROVIDER_DEF = eINSTANCE.getPasswordCredentialsProviderDef(); + + /** + * The meta object literal for the '<em><b>Password</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD = eINSTANCE.getPasswordCredentialsProviderDef_Password(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.UserManagerDefImpl <em>User Manager Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.UserManagerDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getUserManagerDef() + * @generated + */ + EClass USER_MANAGER_DEF = eINSTANCE.getUserManagerDef(); + + /** + * The meta object literal for the '<em><b>User</b></em>' reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference USER_MANAGER_DEF__USER = eINSTANCE.getUserManagerDef_User(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.RandomizerDefImpl <em>Randomizer Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.RandomizerDefImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getRandomizerDef() + * @generated + */ + EClass RANDOMIZER_DEF = eINSTANCE.getRandomizerDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4jdefs.impl.UserImpl <em>User</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.impl.UserImpl + * @see org.eclipse.net4j.net4jdefs.impl.Net4jDefsPackageImpl#getUser() + * @generated + */ + EClass USER = eINSTANCE.getUser(); + + /** + * The meta object literal for the '<em><b>User ID</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute USER__USER_ID = eINSTANCE.getUser_UserID(); + + /** + * The meta object literal for the '<em><b>Password</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute USER__PASSWORD = eINSTANCE.getUser_Password(); + + } + +} //Net4jDefsPackage diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/PasswordCredentialsProviderDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/PasswordCredentialsProviderDef.java new file mode 100644 index 0000000000..847867775c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/PasswordCredentialsProviderDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PasswordCredentialsProviderDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Password Credentials Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef#getPassword <em>Password</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getPasswordCredentialsProviderDef() + * @model + * @generated + */ +public interface PasswordCredentialsProviderDef extends CredentialsProviderDef { + /** + * Returns the value of the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Password</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Password</em>' attribute. + * @see #setPassword(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getPasswordCredentialsProviderDef_Password() + * @model + * @generated + */ + String getPassword(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef#getPassword <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Password</em>' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + +} // PasswordCredentialsProviderDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ProtocolProviderDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ProtocolProviderDef.java new file mode 100644 index 0000000000..5265323637 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ProtocolProviderDef.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ProtocolProviderDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Protocol Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getProtocolProviderDef() + * @model abstract="true" + * @generated + */ +public interface ProtocolProviderDef extends Def { +} // ProtocolProviderDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/RandomizerDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/RandomizerDef.java new file mode 100644 index 0000000000..c2d6c9118f --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/RandomizerDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RandomizerDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Randomizer Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getRandomizerDef() + * @model + * @generated + */ +public interface RandomizerDef extends Def { +} // RandomizerDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ResponseNegotiatorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ResponseNegotiatorDef.java new file mode 100644 index 0000000000..f4a5d4440c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ResponseNegotiatorDef.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ResponseNegotiatorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Response Negotiator Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef#getCredentialsProvider <em>Credentials Provider</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getResponseNegotiatorDef() + * @model + * @generated + */ +public interface ResponseNegotiatorDef extends NegotiatorDef { + + /** + * Returns the value of the '<em><b>Credentials Provider</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Credentials Provider</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Credentials Provider</em>' reference. + * @see #setCredentialsProvider(CredentialsProviderDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getResponseNegotiatorDef_CredentialsProvider() + * @model + * @generated + */ + CredentialsProviderDef getCredentialsProvider(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef#getCredentialsProvider <em>Credentials Provider</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Credentials Provider</em>' reference. + * @see #getCredentialsProvider() + * @generated + */ + void setCredentialsProvider(CredentialsProviderDef value); +} // ResponseNegotiatorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerConnector.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerConnector.java new file mode 100644 index 0000000000..f579b7366b --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerConnector.java @@ -0,0 +1,53 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ServerConnector.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Server Connector</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.ServerConnector#getAcceptorDef <em>Acceptor Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jdefsPackage#getServerConnector() + * @model abstract="true" + * @generated + */ +public interface ServerConnector extends ConnectorDef { + /** + * Returns the value of the '<em><b>Acceptor Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Acceptor Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Acceptor Def</em>' reference. + * @see #setAcceptorDef(AcceptorDef) + * @see org.eclipse.net4j.net4jdefs.Net4jdefsPackage#getServerConnector_AcceptorDef() + * @model + * @generated + */ + AcceptorDef getAcceptorDef(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.ServerConnector#getAcceptorDef <em>Acceptor Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Acceptor Def</em>' reference. + * @see #getAcceptorDef() + * @generated + */ + void setAcceptorDef(AcceptorDef value); + +} // ServerConnector diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerProtocolFactoryDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerProtocolFactoryDef.java new file mode 100644 index 0000000000..d11fac3505 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/ServerProtocolFactoryDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ServerProtocolFactoryDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Server Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getServerProtocolFactoryDef() + * @model abstract="true" + * @generated + */ +public interface ServerProtocolFactoryDef extends ProtocolProviderDef { +} // ServerProtocolFactoryDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/SeverProtocolFactory.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/SeverProtocolFactory.java new file mode 100644 index 0000000000..cb3c739159 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/SeverProtocolFactory.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SeverProtocolFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Sever Protocol Factory</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jdefsPackage#getSeverProtocolFactory() + * @model + * @generated + */ +public interface SeverProtocolFactory extends Def { +} // SeverProtocolFactory diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPAcceptorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPAcceptorDef.java new file mode 100644 index 0000000000..fcb5985d89 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPAcceptorDef.java @@ -0,0 +1,107 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPAcceptorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>TCP Acceptor Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getHost <em>Host</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getPort <em>Port</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPAcceptorDef() + * @model + * @generated + */ +public interface TCPAcceptorDef extends AcceptorDef { + + /** + * Returns the value of the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Host</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Host</em>' attribute. + * @see #setHost(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPAcceptorDef_Host() + * @model required="true" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getHost <em>Host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Host</em>' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port</em>' attribute. + * @see #setPort(int) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPAcceptorDef_Port() + * @model required="true" + * @generated + */ + int getPort(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getPort <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port</em>' attribute. + * @see #getPort() + * @generated + */ + void setPort(int value); + + /** + * Returns the value of the '<em><b>Tcp Selector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tcp Selector Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tcp Selector Def</em>' reference. + * @see #setTcpSelectorDef(TCPSelectorDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPAcceptorDef_TcpSelectorDef() + * @model required="true" + * @generated + */ + TCPSelectorDef getTcpSelectorDef(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tcp Selector Def</em>' reference. + * @see #getTcpSelectorDef() + * @generated + */ + void setTcpSelectorDef(TCPSelectorDef value); +} // TCPAcceptorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPConnectorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPConnectorDef.java new file mode 100644 index 0000000000..50b0d74b56 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPConnectorDef.java @@ -0,0 +1,134 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPConnectorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>TCP Connector Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getHost <em>Host</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort <em>Port</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPConnectorDef() + * @model + * @generated + */ +public interface TCPConnectorDef extends ConnectorDef { + /** + * Returns the value of the '<em><b>Tcp Selector Def</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tcp Selector Def</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tcp Selector Def</em>' reference. + * @see #setTcpSelectorDef(TCPSelectorDef) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPConnectorDef_TcpSelectorDef() + * @model + * @generated + */ + TCPSelectorDef getTcpSelectorDef(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getTcpSelectorDef <em>Tcp Selector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tcp Selector Def</em>' reference. + * @see #getTcpSelectorDef() + * @generated + */ + void setTcpSelectorDef(TCPSelectorDef value); + + /** + * Returns the value of the '<em><b>Host</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Host</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Host</em>' attribute. + * @see #setHost(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPConnectorDef_Host() + * @model required="true" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getHost <em>Host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Host</em>' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the '<em><b>Port</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port</em>' attribute. + * @see #isSetPort() + * @see #unsetPort() + * @see #setPort(int) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPConnectorDef_Port() + * @model unsettable="true" + * @generated + */ + int getPort(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port</em>' attribute. + * @see #isSetPort() + * @see #unsetPort() + * @see #getPort() + * @generated + */ + void setPort(int value); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort <em>Port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetPort() + * @see #getPort() + * @see #setPort(int) + * @generated + */ + void unsetPort(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef#getPort <em>Port</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Port</em>' attribute is set. + * @see #unsetPort() + * @see #getPort() + * @see #setPort(int) + * @generated + */ + boolean isSetPort(); + +} // TCPConnectorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPSelectorDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPSelectorDef.java new file mode 100644 index 0000000000..78285378cf --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/TCPSelectorDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPSelectorDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>TCP Selector Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getTCPSelectorDef() + * @model + * @generated + */ +public interface TCPSelectorDef extends Def { +} // TCPSelectorDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/User.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/User.java new file mode 100644 index 0000000000..4a54e6976b --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/User.java @@ -0,0 +1,81 @@ +/** + * <copyright> + * </copyright> + * + * $Id: User.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>User</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.User#getUserID <em>User ID</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.User#getPassword <em>Password</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getUser() + * @model + * @generated + */ +public interface User extends EObject { + /** + * Returns the value of the '<em><b>User ID</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User ID</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User ID</em>' attribute. + * @see #setUserID(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getUser_UserID() + * @model + * @generated + */ + String getUserID(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.User#getUserID <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>User ID</em>' attribute. + * @see #getUserID() + * @generated + */ + void setUserID(String value); + + /** + * Returns the value of the '<em><b>Password</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Password</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Password</em>' attribute. + * @see #setPassword(String) + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getUser_Password() + * @model + * @generated + */ + String getPassword(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.net4jdefs.User#getPassword <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Password</em>' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + +} // User diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/UserManagerDef.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/UserManagerDef.java new file mode 100644 index 0000000000..cbef95edc0 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/UserManagerDef.java @@ -0,0 +1,69 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UserManagerDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>User Manager Def</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.UserManagerDef#getUser <em>User</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getUserManagerDef() + * @model + * @generated + */ +public interface UserManagerDef extends Def { + + /** + * Returns the value of the '<em><b>User</b></em>' reference list. + * The list contents are of type {@link org.eclipse.net4j.net4jdefs.User}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>User</em>' reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>User</em>' reference list. + * @see #isSetUser() + * @see #unsetUser() + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#getUserManagerDef_User() + * @model unsettable="true" required="true" + * @generated + */ + EList<User> getUser(); + + /** + * Unsets the value of the '{@link org.eclipse.net4j.net4jdefs.UserManagerDef#getUser <em>User</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUser() + * @see #getUser() + * @generated + */ + void unsetUser(); + + /** + * Returns whether the value of the '{@link org.eclipse.net4j.net4jdefs.UserManagerDef#getUser <em>User</em>}' reference list is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>User</em>' reference list is set. + * @see #unsetUser() + * @see #getUser() + * @generated + */ + boolean isSetUser(); +} // UserManagerDef diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/AcceptorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/AcceptorDefImpl.java new file mode 100644 index 0000000000..9f202f4cad --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/AcceptorDefImpl.java @@ -0,0 +1,387 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AcceptorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.ITransportConfig; +import org.eclipse.net4j.buffer.IBufferProvider; +import org.eclipse.net4j.net4jdefs.AcceptorDef; +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.util.Net4jDefsUtil; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; +import org.eclipse.net4j.util.security.INegotiator; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; +import java.util.concurrent.ExecutorService; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>Acceptor Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl#getBufferProvider <em>Buffer Provider</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl#getExecutorService <em>Executor Service</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl#getNegotiator <em>Negotiator</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.AcceptorDefImpl#getServerProtocolProvider <em>Server Protocol Provider</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class AcceptorDefImpl extends DefImpl implements AcceptorDef { + /** + * The cached value of the '{@link #getBufferProvider() <em>Buffer Provider</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getBufferProvider() + * @generated + * @ordered + */ + protected BufferPoolDef bufferProvider; + + /** + * The cached value of the '{@link #getExecutorService() <em>Executor Service</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getExecutorService() + * @generated + * @ordered + */ + protected ThreadPoolDef executorService; + + /** + * The cached value of the '{@link #getNegotiator() <em>Negotiator</em>}' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getNegotiator() + * @generated + * @ordered + */ + protected NegotiatorDef negotiator; + + /** + * This is true if the Negotiator reference has been set. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + protected boolean negotiatorESet; + + /** + * The cached value of the '{@link #getServerProtocolProvider() <em>Server Protocol Provider</em>}' reference list. + * <!-- begin-user-doc + * --> <!-- end-user-doc --> + * @see #getServerProtocolProvider() + * @generated + * @ordered + */ + protected EList<ServerProtocolFactoryDef> serverProtocolProvider; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected AcceptorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.ACCEPTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public BufferPoolDef getBufferProvider() { + if (bufferProvider != null && bufferProvider.eIsProxy()) { + InternalEObject oldBufferProvider = (InternalEObject)bufferProvider; + bufferProvider = (BufferPoolDef)eResolveProxy(oldBufferProvider); + if (bufferProvider != oldBufferProvider) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER, oldBufferProvider, bufferProvider)); + } + } + return bufferProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public BufferPoolDef basicGetBufferProvider() { + return bufferProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setBufferProvider(BufferPoolDef newBufferProvider) { + BufferPoolDef oldBufferProvider = bufferProvider; + bufferProvider = newBufferProvider; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER, oldBufferProvider, bufferProvider)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public ThreadPoolDef getExecutorService() { + if (executorService != null && executorService.eIsProxy()) { + InternalEObject oldExecutorService = (InternalEObject)executorService; + executorService = (ThreadPoolDef)eResolveProxy(oldExecutorService); + if (executorService != oldExecutorService) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE, oldExecutorService, executorService)); + } + } + return executorService; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public ThreadPoolDef basicGetExecutorService() { + return executorService; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setExecutorService(ThreadPoolDef newExecutorService) { + ThreadPoolDef oldExecutorService = executorService; + executorService = newExecutorService; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE, oldExecutorService, executorService)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public NegotiatorDef getNegotiator() { + if (negotiator != null && negotiator.eIsProxy()) { + InternalEObject oldNegotiator = (InternalEObject)negotiator; + negotiator = (NegotiatorDef)eResolveProxy(oldNegotiator); + if (negotiator != oldNegotiator) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR, oldNegotiator, negotiator)); + } + } + return negotiator; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public NegotiatorDef basicGetNegotiator() { + return negotiator; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setNegotiator(NegotiatorDef newNegotiator) { + NegotiatorDef oldNegotiator = negotiator; + negotiator = newNegotiator; + boolean oldNegotiatorESet = negotiatorESet; + negotiatorESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR, oldNegotiator, negotiator, !oldNegotiatorESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetNegotiator() { + NegotiatorDef oldNegotiator = negotiator; + boolean oldNegotiatorESet = negotiatorESet; + negotiator = null; + negotiatorESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR, oldNegotiator, null, oldNegotiatorESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetNegotiator() { + return negotiatorESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EList<ServerProtocolFactoryDef> getServerProtocolProvider() { + if (serverProtocolProvider == null) { + serverProtocolProvider = new EObjectResolvingEList.Unsettable<ServerProtocolFactoryDef>(ServerProtocolFactoryDef.class, this, Net4jDefsPackage.ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER); + } + return serverProtocolProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetServerProtocolProvider() { + if (serverProtocolProvider != null) ((InternalEList.Unsettable<?>)serverProtocolProvider).unset(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetServerProtocolProvider() { + return serverProtocolProvider != null && ((InternalEList.Unsettable<?>)serverProtocolProvider).isSet(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER: + if (resolve) return getBufferProvider(); + return basicGetBufferProvider(); + case Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE: + if (resolve) return getExecutorService(); + return basicGetExecutorService(); + case Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR: + if (resolve) return getNegotiator(); + return basicGetNegotiator(); + case Net4jDefsPackage.ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER: + return getServerProtocolProvider(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER: + setBufferProvider((BufferPoolDef)newValue); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE: + setExecutorService((ThreadPoolDef)newValue); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR: + setNegotiator((NegotiatorDef)newValue); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER: + getServerProtocolProvider().clear(); + getServerProtocolProvider().addAll((Collection<? extends ServerProtocolFactoryDef>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER: + setBufferProvider((BufferPoolDef)null); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE: + setExecutorService((ThreadPoolDef)null); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR: + unsetNegotiator(); + return; + case Net4jDefsPackage.ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER: + unsetServerProtocolProvider(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER: + return bufferProvider != null; + case Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE: + return executorService != null; + case Net4jDefsPackage.ACCEPTOR_DEF__NEGOTIATOR: + return isSetNegotiator(); + case Net4jDefsPackage.ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER: + return isSetServerProtocolProvider(); + } + return super.eIsSet(featureID); + } + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.ACCEPTOR_DEF__EXECUTOR_SERVICE), + "thread pool not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.ACCEPTOR_DEF__BUFFER_PROVIDER), + "buffer pool not set!"); + if (isSetServerProtocolProvider()) { + CheckUtil.checkState(getServerProtocolProvider().size() >= 1, "server protocol provider is set but has no protocol factories!"); + } + } + + protected void configure(ITransportConfig config) { + + config.setBufferProvider((IBufferProvider) getBufferProvider() + .getInstance()); + config.setReceiveExecutor((ExecutorService) getExecutorService() + .getInstance()); + if (isSetServerProtocolProvider() + && getServerProtocolProvider().size() > 0) { + config + .setProtocolProvider(Net4jDefsUtil + .createFactoriesProtocolProvider(getServerProtocolProvider())); + } + if (isSetNegotiator()) { + config.setNegotiator((INegotiator) getNegotiator().getInstance()); + } + } + +} // AcceptorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferPoolDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferPoolDefImpl.java new file mode 100644 index 0000000000..142bacd018 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferPoolDefImpl.java @@ -0,0 +1,58 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BufferPoolDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.Net4jUtil; +import org.eclipse.net4j.buffer.IBufferProvider; +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Buffer Pool Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class BufferPoolDefImpl extends BufferProviderDefImpl implements BufferPoolDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BufferPoolDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.BUFFER_POOL_DEF; + } + + /** + * creates and returns a buffer provider. + * + * @generated NOT + */ + @Override + protected Object createInstance() { + IBufferProvider bufferProvider = Net4jUtil.createBufferPool(); +// LifecycleUtil.activate(bufferProvider); + return bufferProvider; + } + + +} //BufferPoolDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferProviderDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferProviderDefImpl.java new file mode 100644 index 0000000000..3b9d926704 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/BufferProviderDefImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BufferProviderDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Buffer Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class BufferProviderDefImpl extends DefImpl implements BufferProviderDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BufferProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.BUFFER_PROVIDER_DEF; + } + +} //BufferProviderDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ChallengeNegotiatorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ChallengeNegotiatorDefImpl.java new file mode 100644 index 0000000000..fb2eb40efa --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ChallengeNegotiatorDefImpl.java @@ -0,0 +1,267 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ChallengeNegotiatorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.net4jdefs.UserManagerDef; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.security.ChallengeNegotiator; +import org.eclipse.net4j.util.security.IRandomizer; +import org.eclipse.net4j.util.security.IUserManager; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Challenge Negotiator Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl#getUserManager <em>User Manager</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ChallengeNegotiatorDefImpl#getRandomizer <em>Randomizer</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ChallengeNegotiatorDefImpl extends NegotiatorDefImpl implements ChallengeNegotiatorDef +{ + + /** + * The cached value of the '{@link #getUserManager() <em>User Manager</em>}' reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getUserManager() + * @generated + * @ordered + */ + protected UserManagerDef userManager; + + /** + * The cached value of the '{@link #getRandomizer() <em>Randomizer</em>}' reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getRandomizer() + * @generated + * @ordered + */ + protected RandomizerDef randomizer; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ChallengeNegotiatorDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jDefsPackage.Literals.CHALLENGE_NEGOTIATOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public UserManagerDef getUserManager() + { + if (userManager != null && userManager.eIsProxy()) + { + InternalEObject oldUserManager = (InternalEObject)userManager; + userManager = (UserManagerDef)eResolveProxy(oldUserManager); + if (userManager != oldUserManager) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER, oldUserManager, userManager)); + } + } + return userManager; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public UserManagerDef basicGetUserManager() + { + return userManager; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setUserManager(UserManagerDef newUserManager) + { + UserManagerDef oldUserManager = userManager; + userManager = newUserManager; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER, + oldUserManager, userManager)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public RandomizerDef getRandomizer() + { + if (randomizer != null && randomizer.eIsProxy()) + { + InternalEObject oldRandomizer = (InternalEObject)randomizer; + randomizer = (RandomizerDef)eResolveProxy(oldRandomizer); + if (randomizer != oldRandomizer) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER, oldRandomizer, randomizer)); + } + } + return randomizer; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public RandomizerDef basicGetRandomizer() + { + return randomizer; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setRandomizer(RandomizerDef newRandomizer) + { + RandomizerDef oldRandomizer = randomizer; + randomizer = newRandomizer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER, + oldRandomizer, randomizer)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER: + if (resolve) + return getUserManager(); + return basicGetUserManager(); + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER: + if (resolve) + return getRandomizer(); + return basicGetRandomizer(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER: + setUserManager((UserManagerDef)newValue); + return; + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER: + setRandomizer((RandomizerDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER: + setUserManager((UserManagerDef)null); + return; + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER: + setRandomizer((RandomizerDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER: + return userManager != null; + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER: + return randomizer != null; + } + return super.eIsSet(featureID); + } + + @Override + protected Object createInstance() + { + ChallengeNegotiator challengeNegotiator = new ChallengeNegotiator(); + challengeNegotiator.setRandomizer((IRandomizer)getRandomizer().getInstance()); + challengeNegotiator.setUserManager((IUserManager)getUserManager().getInstance()); + + return challengeNegotiator; + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState(eIsSet(Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER), "randomizer is not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER), "user manager is not set!"); + } + +} // ChallengeNegotiatorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ClientProtocolFactoryDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ClientProtocolFactoryDefImpl.java new file mode 100644 index 0000000000..a330831f31 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ClientProtocolFactoryDefImpl.java @@ -0,0 +1,43 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ClientProtocolFactoryDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Client Protocol Factory Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class ClientProtocolFactoryDefImpl extends ProtocolProviderDefImpl implements ClientProtocolFactoryDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ClientProtocolFactoryDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.CLIENT_PROTOCOL_FACTORY_DEF; + } + +} //ClientProtocolFactoryDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ConnectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ConnectorDefImpl.java new file mode 100644 index 0000000000..ff11316cf7 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ConnectorDefImpl.java @@ -0,0 +1,627 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ConnectorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.ITransportConfig; +import org.eclipse.net4j.buffer.IBufferProvider; +import org.eclipse.net4j.connector.IConnector; +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.util.Net4jDefsUtil; +import org.eclipse.net4j.protocol.IProtocolProvider; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; +import org.eclipse.net4j.util.security.INegotiator; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.spi.net4j.Connector; + +import java.util.Collection; +import java.util.concurrent.ExecutorService; + +// TODO: Auto-generated Javadoc +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Connector Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl#getUserID <em>User ID</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl#getBufferProvider <em>Buffer Provider</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl#getExecutorService <em>Executor Service</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl#getNegotiator <em>Negotiator</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ConnectorDefImpl#getClientProtocolProvider <em>Client Protocol Provider + * </em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class ConnectorDefImpl extends DefImpl implements ConnectorDef +{ + + /** + * The default value of the '{@link #getUserID() <em>User ID</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUserID() <em>User ID</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + */ + protected String userID = USER_ID_EDEFAULT; + + /** + * This is true if the User ID attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + protected boolean userIDESet; + + /** + * The cached value of the '{@link #getBufferProvider() <em>Buffer Provider</em>}' reference. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getBufferProvider() + * @generated + * @ordered + */ + protected BufferProviderDef bufferProvider; + + /** + * The cached value of the '{@link #getExecutorService() <em>Executor Service</em>}' reference. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @see #getExecutorService() + * @generated + * @ordered + */ + protected ExecutorServiceDef executorService; + + /** + * The cached value of the '{@link #getNegotiator() <em>Negotiator</em>}' reference. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getNegotiator() + * @generated + * @ordered + */ + protected NegotiatorDef negotiator; + + /** + * This is true if the Negotiator reference has been set. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + protected boolean negotiatorESet; + + /** + * The cached value of the '{@link #getClientProtocolProvider() <em>Client Protocol Provider</em>}' reference list. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #getClientProtocolProvider() + * @generated + * @ordered + */ + protected EList<ClientProtocolFactoryDef> clientProtocolProvider; + + /** + * The cached value of the '{@link #getBufferProviderDef() <em>Buffer Provider Def</em>}' reference. <!-- + * begin-user-doc --> <!-- end-user-doc --> + */ + protected BufferProviderDef bufferProviderDef; + + /** + * The cached value of the '{@link #getExecutorServiceDef() <em>Executor Service Def</em>}' reference. <!-- + * begin-user-doc --> <!-- end-user-doc --> + */ + protected ExecutorServiceDef executorServiceDef; + + /** + * The cached value of the '{@link #getNegotiatorDef() <em>Negotiator Def</em>}' reference. <!-- begin-user-doc --> + * <!-- end-user-doc --> + */ + protected NegotiatorDef negotiatorDef; + + /** + * The cached value of the '{@link #getClientProtocolFactoryDef() <em>Client Protocol Factory Def</em>}' reference + * list. <!-- begin-user-doc --> <!-- end-user-doc --> + */ + protected EList<ClientProtocolFactoryDef> clientProtocolFactoryDef; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @generated + */ + protected ConnectorDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the e class + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jDefsPackage.Literals.CONNECTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the user id + * @generated + */ + public String getUserID() + { + return userID; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param newUserID + * the new user id + * @generated + */ + public void setUserID(String newUserID) + { + String oldUserID = userID; + userID = newUserID; + boolean oldUserIDESet = userIDESet; + userIDESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__USER_ID, oldUserID, userID, + !oldUserIDESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void unsetUserID() + { + String oldUserID = userID; + boolean oldUserIDESet = userIDESet; + userID = USER_ID_EDEFAULT; + userIDESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.CONNECTOR_DEF__USER_ID, oldUserID, + USER_ID_EDEFAULT, oldUserIDESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public boolean isSetUserID() + { + return userIDESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public BufferProviderDef getBufferProvider() + { + if (bufferProvider != null && bufferProvider.eIsProxy()) + { + InternalEObject oldBufferProvider = (InternalEObject)bufferProvider; + bufferProvider = (BufferProviderDef)eResolveProxy(oldBufferProvider); + if (bufferProvider != oldBufferProvider) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER, + oldBufferProvider, bufferProvider)); + } + } + return bufferProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public BufferProviderDef basicGetBufferProvider() + { + return bufferProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setBufferProvider(BufferProviderDef newBufferProvider) + { + BufferProviderDef oldBufferProvider = bufferProvider; + bufferProvider = newBufferProvider; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER, + oldBufferProvider, bufferProvider)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ExecutorServiceDef getExecutorService() + { + if (executorService != null && executorService.eIsProxy()) + { + InternalEObject oldExecutorService = (InternalEObject)executorService; + executorService = (ExecutorServiceDef)eResolveProxy(oldExecutorService); + if (executorService != oldExecutorService) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE, + oldExecutorService, executorService)); + } + } + return executorService; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ExecutorServiceDef basicGetExecutorService() + { + return executorService; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setExecutorService(ExecutorServiceDef newExecutorService) + { + ExecutorServiceDef oldExecutorService = executorService; + executorService = newExecutorService; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE, + oldExecutorService, executorService)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public NegotiatorDef getNegotiator() + { + if (negotiator != null && negotiator.eIsProxy()) + { + InternalEObject oldNegotiator = (InternalEObject)negotiator; + negotiator = (NegotiatorDef)eResolveProxy(oldNegotiator); + if (negotiator != oldNegotiator) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR, + oldNegotiator, negotiator)); + } + } + return negotiator; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public NegotiatorDef basicGetNegotiator() + { + return negotiator; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setNegotiator(NegotiatorDef newNegotiator) + { + NegotiatorDef oldNegotiator = negotiator; + negotiator = newNegotiator; + boolean oldNegotiatorESet = negotiatorESet; + negotiatorESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR, oldNegotiator, + negotiator, !oldNegotiatorESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void unsetNegotiator() + { + NegotiatorDef oldNegotiator = negotiator; + boolean oldNegotiatorESet = negotiatorESet; + negotiator = null; + negotiatorESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR, + oldNegotiator, null, oldNegotiatorESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public boolean isSetNegotiator() + { + return negotiatorESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EList<ClientProtocolFactoryDef> getClientProtocolProvider() + { + if (clientProtocolProvider == null) + { + clientProtocolProvider = new EObjectResolvingEList.Unsettable<ClientProtocolFactoryDef>( + ClientProtocolFactoryDef.class, this, Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER); + } + return clientProtocolProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void unsetClientProtocolProvider() + { + if (clientProtocolProvider != null) + ((InternalEList.Unsettable<?>)clientProtocolProvider).unset(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public boolean isSetClientProtocolProvider() + { + return clientProtocolProvider != null && ((InternalEList.Unsettable<?>)clientProtocolProvider).isSet(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @param resolve + * the resolve + * @param coreType + * the core type + * @return the object + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Net4jDefsPackage.CONNECTOR_DEF__USER_ID: + return getUserID(); + case Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER: + if (resolve) + return getBufferProvider(); + return basicGetBufferProvider(); + case Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE: + if (resolve) + return getExecutorService(); + return basicGetExecutorService(); + case Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR: + if (resolve) + return getNegotiator(); + return basicGetNegotiator(); + case Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER: + return getClientProtocolProvider(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @param newValue + * the new value + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Net4jDefsPackage.CONNECTOR_DEF__USER_ID: + setUserID((String)newValue); + return; + case Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER: + setBufferProvider((BufferProviderDef)newValue); + return; + case Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE: + setExecutorService((ExecutorServiceDef)newValue); + return; + case Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR: + setNegotiator((NegotiatorDef)newValue); + return; + case Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER: + getClientProtocolProvider().clear(); + getClientProtocolProvider().addAll((Collection<? extends ClientProtocolFactoryDef>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Net4jDefsPackage.CONNECTOR_DEF__USER_ID: + unsetUserID(); + return; + case Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER: + setBufferProvider((BufferProviderDef)null); + return; + case Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE: + setExecutorService((ExecutorServiceDef)null); + return; + case Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR: + unsetNegotiator(); + return; + case Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER: + unsetClientProtocolProvider(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @param featureID + * the feature id + * @return true, if e is set + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Net4jDefsPackage.CONNECTOR_DEF__USER_ID: + return isSetUserID(); + case Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER: + return bufferProvider != null; + case Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE: + return executorService != null; + case Net4jDefsPackage.CONNECTOR_DEF__NEGOTIATOR: + return isSetNegotiator(); + case Net4jDefsPackage.CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER: + return isSetClientProtocolProvider(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the string + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (userID: "); + if (userIDESet) + result.append(userID); + else + result.append("<unset>"); + result.append(')'); + return result.toString(); + } + + /** + * Configures a given {@link ITransportConfig}. It particularly sets + * <ul> + * <li>{@link IBufferProvider}</li> + * <li>{@link ExecutorService}</li> + * <li>{@link INegotiator}</li> + * <li>{@link IProtocolProvider}</li> + * </ul> + * + * @param config + * the transport config + */ + protected void configure(ITransportConfig config) + { + config.setBufferProvider((IBufferProvider)getBufferProvider().getInstance()); + config.setReceiveExecutor((ExecutorService)getExecutorService().getInstance()); + if (isSetClientProtocolProvider()) + { + config.setProtocolProvider(Net4jDefsUtil.createFactoriesProtocolProvider(getClientProtocolProvider())); + } + if (isSetNegotiator()) + { + config.setNegotiator((INegotiator)getNegotiator().getInstance()); + } + } + + protected void configure(Connector connector) + { + if (isSetUserID()) + { + connector.setUserID(getUserID()); + } + configure(connector.getConfig()); + } + + @Override + protected void validateDefinition() + { + CheckUtil.checkState(eIsSet(Net4jDefsPackage.CONNECTOR_DEF__BUFFER_PROVIDER), "buffer provider not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.CONNECTOR_DEF__EXECUTOR_SERVICE), "executor service not set!"); // + if (isSetClientProtocolProvider()) + { + CheckUtil.checkState(getClientProtocolProvider().size() >= 1, + "client protocol provider is set but has no protocol factories!"); + } + + } + + protected abstract IConnector createInstance(); + +} // ConnectorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/CredentialsProviderDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/CredentialsProviderDefImpl.java new file mode 100644 index 0000000000..972c7bbd8f --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/CredentialsProviderDefImpl.java @@ -0,0 +1,165 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CredentialsProviderDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.CredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Credentials Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.CredentialsProviderDefImpl#getUserID <em>User ID</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public abstract class CredentialsProviderDefImpl extends DefImpl implements CredentialsProviderDef { + /** + * The default value of the '{@link #getUserID() <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserID() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUserID() <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserID() + * @generated + * @ordered + */ + protected String userID = USER_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CredentialsProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.CREDENTIALS_PROVIDER_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUserID() { + return userID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUserID(String newUserID) { + String oldUserID = userID; + userID = newUserID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF__USER_ID, oldUserID, userID)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF__USER_ID: + return getUserID(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF__USER_ID: + setUserID((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF__USER_ID: + setUserID(USER_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF__USER_ID: + return USER_ID_EDEFAULT == null ? userID != null : !USER_ID_EDEFAULT.equals(userID); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (userID: "); + result.append(userID); + result.append(')'); + return result.toString(); + } + +} //CredentialsProviderDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/HTTPConnectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/HTTPConnectorDefImpl.java new file mode 100644 index 0000000000..2dfd8ff7a0 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/HTTPConnectorDefImpl.java @@ -0,0 +1,172 @@ +/** + * <copyright> + * </copyright> + * + * $Id: HTTPConnectorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.http.common.IHTTPConnector; +import org.eclipse.net4j.internal.http.HTTPClientConnector; +import org.eclipse.net4j.net4jdefs.HTTPConnectorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>HTTP Connector Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.HTTPConnectorDefImpl#getUrl <em>Url</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class HTTPConnectorDefImpl extends ConnectorDefImpl implements + HTTPConnectorDef { + /** + * The default value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #getUrl() + * @generated + * @ordered + */ + protected static final String URL_EDEFAULT = null; + /** + * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see #getUrl() + * @generated + * @ordered + */ + protected String url = URL_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected HTTPConnectorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.HTTP_CONNECTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getUrl() { + return url; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setUrl(String newUrl) { + String oldUrl = url; + url = newUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL, oldUrl, url)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL: + return getUrl(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL: + setUrl((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL: + setUrl(URL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL: + return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (url: "); + result.append(url); + result.append(')'); + return result.toString(); + } + + protected IHTTPConnector createInstance() { + HTTPClientConnector connector = new HTTPClientConnector(); + + configure(connector.getConfig()); + connector.setURL(getUrl()); + connector.activate(); + + return connector; + } + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.HTTP_CONNECTOR_DEF__URL), "url not set!"); + } +} // HTTPConnectorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMAcceptorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMAcceptorDefImpl.java new file mode 100644 index 0000000000..a79197825c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMAcceptorDefImpl.java @@ -0,0 +1,173 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JVMAcceptorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.buffer.IBufferProvider; +import org.eclipse.net4j.internal.jvm.JVMAcceptor; +import org.eclipse.net4j.net4jdefs.JVMAcceptorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import java.util.concurrent.ExecutorService; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>JVM Acceptor Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.JVMAcceptorDefImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class JVMAcceptorDefImpl extends AcceptorDefImpl implements + JVMAcceptorDef { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected JVMAcceptorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.JVM_ACCEPTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() { + JVMAcceptor jvmAcceptor = new JVMAcceptor(); + jvmAcceptor.getConfig().setBufferProvider( + (IBufferProvider) getBufferProvider().getInstance()); + jvmAcceptor.getConfig().setReceiveExecutor( + (ExecutorService) getExecutorService().getInstance()); + jvmAcceptor.setName(getName()); + return jvmAcceptor; + } + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.JVM_ACCEPTOR_DEF__NAME), "name not set!"); + } +} // JVMAcceptorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMConnectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMConnectorDefImpl.java new file mode 100644 index 0000000000..a1ab84c887 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/JVMConnectorDefImpl.java @@ -0,0 +1,179 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JVMConnectorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.internal.jvm.JVMClientConnector; +import org.eclipse.net4j.jvm.IJVMConnector; +import org.eclipse.net4j.net4jdefs.JVMConnectorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>JVM Connector Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.JVMConnectorDefImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class JVMConnectorDefImpl extends ConnectorDefImpl implements + JVMConnectorDef { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected JVMConnectorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.JVM_CONNECTOR_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + + @Override + protected IJVMConnector createInstance() { + JVMClientConnector connector = new JVMClientConnector(); + configure(connector); + + connector.setName(getName()); + return connector; + } + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.JVM_CONNECTOR_DEF__NAME), "name not set!"); + } + +} // JVMConnectorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/NegotiatorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/NegotiatorDefImpl.java new file mode 100644 index 0000000000..819b94e6e3 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/NegotiatorDefImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NegotiatorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Negotiator Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class NegotiatorDefImpl extends DefImpl implements NegotiatorDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NegotiatorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.NEGOTIATOR_DEF; + } + +} //NegotiatorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsFactoryImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsFactoryImpl.java new file mode 100644 index 0000000000..5fa36b5d55 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsFactoryImpl.java @@ -0,0 +1,243 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsFactoryImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef; +import org.eclipse.net4j.net4jdefs.HTTPConnectorDef; +import org.eclipse.net4j.net4jdefs.JVMAcceptorDef; +import org.eclipse.net4j.net4jdefs.JVMConnectorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsFactory; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef; +import org.eclipse.net4j.net4jdefs.TCPAcceptorDef; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.net4jdefs.User; +import org.eclipse.net4j.net4jdefs.UserManagerDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4jDefsFactoryImpl extends EFactoryImpl implements Net4jDefsFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static Net4jDefsFactory init() { + try { + Net4jDefsFactory theNet4jDefsFactory = (Net4jDefsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/NET4J/defs/1.0.0"); + if (theNet4jDefsFactory != null) { + return theNet4jDefsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new Net4jDefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jDefsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case Net4jDefsPackage.TCP_CONNECTOR_DEF: return createTCPConnectorDef(); + case Net4jDefsPackage.TCP_ACCEPTOR_DEF: return createTCPAcceptorDef(); + case Net4jDefsPackage.JVM_ACCEPTOR_DEF: return createJVMAcceptorDef(); + case Net4jDefsPackage.JVM_CONNECTOR_DEF: return createJVMConnectorDef(); + case Net4jDefsPackage.HTTP_CONNECTOR_DEF: return createHTTPConnectorDef(); + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF: return createResponseNegotiatorDef(); + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF: return createChallengeNegotiatorDef(); + case Net4jDefsPackage.TCP_SELECTOR_DEF: return createTCPSelectorDef(); + case Net4jDefsPackage.BUFFER_POOL_DEF: return createBufferPoolDef(); + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF: return createPasswordCredentialsProviderDef(); + case Net4jDefsPackage.USER: return createUser(); + case Net4jDefsPackage.USER_MANAGER_DEF: return createUserManagerDef(); + case Net4jDefsPackage.RANDOMIZER_DEF: return createRandomizerDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TCPConnectorDef createTCPConnectorDef() { + TCPConnectorDefImpl tcpConnectorDef = new TCPConnectorDefImpl(); + return tcpConnectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TCPAcceptorDef createTCPAcceptorDef() { + TCPAcceptorDefImpl tcpAcceptorDef = new TCPAcceptorDefImpl(); + return tcpAcceptorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JVMAcceptorDef createJVMAcceptorDef() { + JVMAcceptorDefImpl jvmAcceptorDef = new JVMAcceptorDefImpl(); + return jvmAcceptorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JVMConnectorDef createJVMConnectorDef() { + JVMConnectorDefImpl jvmConnectorDef = new JVMConnectorDefImpl(); + return jvmConnectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public HTTPConnectorDef createHTTPConnectorDef() { + HTTPConnectorDefImpl httpConnectorDef = new HTTPConnectorDefImpl(); + return httpConnectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ResponseNegotiatorDef createResponseNegotiatorDef() { + ResponseNegotiatorDefImpl responseNegotiatorDef = new ResponseNegotiatorDefImpl(); + return responseNegotiatorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ChallengeNegotiatorDef createChallengeNegotiatorDef() { + ChallengeNegotiatorDefImpl challengeNegotiatorDef = new ChallengeNegotiatorDefImpl(); + return challengeNegotiatorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TCPSelectorDef createTCPSelectorDef() { + TCPSelectorDefImpl tcpSelectorDef = new TCPSelectorDefImpl(); + return tcpSelectorDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BufferPoolDef createBufferPoolDef() { + BufferPoolDefImpl bufferPoolDef = new BufferPoolDefImpl(); + return bufferPoolDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PasswordCredentialsProviderDef createPasswordCredentialsProviderDef() { + PasswordCredentialsProviderDefImpl passwordCredentialsProviderDef = new PasswordCredentialsProviderDefImpl(); + return passwordCredentialsProviderDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UserManagerDef createUserManagerDef() { + UserManagerDefImpl userManagerDef = new UserManagerDefImpl(); + return userManagerDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RandomizerDef createRandomizerDef() { + RandomizerDefImpl randomizerDef = new RandomizerDefImpl(); + return randomizerDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public User createUser() { + UserImpl user = new UserImpl(); + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jDefsPackage getNet4jDefsPackage() { + return (Net4jDefsPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static Net4jDefsPackage getPackage() { + return Net4jDefsPackage.eINSTANCE; + } + +} //Net4jDefsFactoryImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsPackageImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsPackageImpl.java new file mode 100644 index 0000000000..47cd12e5ca --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/Net4jDefsPackageImpl.java @@ -0,0 +1,910 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsPackageImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.AcceptorDef; +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.net4jdefs.CredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.HTTPConnectorDef; +import org.eclipse.net4j.net4jdefs.JVMAcceptorDef; +import org.eclipse.net4j.net4jdefs.JVMConnectorDef; +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsFactory; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.TCPAcceptorDef; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.net4jdefs.User; +import org.eclipse.net4j.net4jdefs.UserManagerDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4jDefsPackageImpl extends EPackageImpl implements Net4jDefsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass connectorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass clientProtocolFactoryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tcpConnectorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass acceptorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tcpAcceptorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass jvmAcceptorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass jvmConnectorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass httpConnectorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass negotiatorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass responseNegotiatorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass challengeNegotiatorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tcpSelectorDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass serverProtocolFactoryDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass bufferProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass bufferPoolDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass protocolProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass credentialsProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass passwordCredentialsProviderDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass userManagerDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass randomizerDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass userEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage#eNS_URI + * @see #init() + * @generated + */ + private Net4jDefsPackageImpl() { + super(eNS_URI, Net4jDefsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static Net4jDefsPackage init() { + if (isInited) return (Net4jDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jDefsPackage.eNS_URI); + + // Obtain or create and register package + Net4jDefsPackageImpl theNet4jDefsPackage = (Net4jDefsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Net4jDefsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Net4jDefsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + Net4jUtilDefsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theNet4jDefsPackage.createPackageContents(); + + // Initialize created meta-data + theNet4jDefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNet4jDefsPackage.freeze(); + + return theNet4jDefsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getConnectorDef() { + return connectorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getConnectorDef_UserID() { + return (EAttribute)connectorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorDef_BufferProvider() { + return (EReference)connectorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorDef_ExecutorService() { + return (EReference)connectorDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorDef_Negotiator() { + return (EReference)connectorDefEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getConnectorDef_ClientProtocolProvider() { + return (EReference)connectorDefEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getClientProtocolFactoryDef() { + return clientProtocolFactoryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTCPConnectorDef() { + return tcpConnectorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTCPConnectorDef_TcpSelectorDef() { + return (EReference)tcpConnectorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTCPConnectorDef_Host() { + return (EAttribute)tcpConnectorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTCPConnectorDef_Port() { + return (EAttribute)tcpConnectorDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAcceptorDef() { + return acceptorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAcceptorDef_BufferProvider() { + return (EReference)acceptorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAcceptorDef_ExecutorService() { + return (EReference)acceptorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAcceptorDef_Negotiator() { + return (EReference)acceptorDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAcceptorDef_ServerProtocolProvider() { + return (EReference)acceptorDefEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTCPAcceptorDef() { + return tcpAcceptorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTCPAcceptorDef_Host() { + return (EAttribute)tcpAcceptorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTCPAcceptorDef_Port() { + return (EAttribute)tcpAcceptorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTCPAcceptorDef_TcpSelectorDef() { + return (EReference)tcpAcceptorDefEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getJVMAcceptorDef() { + return jvmAcceptorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJVMAcceptorDef_Name() { + return (EAttribute)jvmAcceptorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getJVMConnectorDef() { + return jvmConnectorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJVMConnectorDef_Name() { + return (EAttribute)jvmConnectorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getHTTPConnectorDef() { + return httpConnectorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getHTTPConnectorDef_Url() { + return (EAttribute)httpConnectorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNegotiatorDef() { + return negotiatorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getResponseNegotiatorDef() { + return responseNegotiatorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getResponseNegotiatorDef_CredentialsProvider() { + return (EReference)responseNegotiatorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getChallengeNegotiatorDef() { + return challengeNegotiatorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getChallengeNegotiatorDef_UserManager() { + return (EReference)challengeNegotiatorDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getChallengeNegotiatorDef_Randomizer() { + return (EReference)challengeNegotiatorDefEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTCPSelectorDef() { + return tcpSelectorDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getServerProtocolFactoryDef() { + return serverProtocolFactoryDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBufferProviderDef() { + return bufferProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBufferPoolDef() { + return bufferPoolDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getProtocolProviderDef() { + return protocolProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCredentialsProviderDef() { + return credentialsProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCredentialsProviderDef_UserID() { + return (EAttribute)credentialsProviderDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPasswordCredentialsProviderDef() { + return passwordCredentialsProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPasswordCredentialsProviderDef_Password() { + return (EAttribute)passwordCredentialsProviderDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUserManagerDef() { + return userManagerDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getUserManagerDef_User() { + return (EReference)userManagerDefEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRandomizerDef() { + return randomizerDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUser() { + return userEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUser_UserID() { + return (EAttribute)userEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUser_Password() { + return (EAttribute)userEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jDefsFactory getNet4jDefsFactory() { + return (Net4jDefsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + connectorDefEClass = createEClass(CONNECTOR_DEF); + createEAttribute(connectorDefEClass, CONNECTOR_DEF__USER_ID); + createEReference(connectorDefEClass, CONNECTOR_DEF__BUFFER_PROVIDER); + createEReference(connectorDefEClass, CONNECTOR_DEF__EXECUTOR_SERVICE); + createEReference(connectorDefEClass, CONNECTOR_DEF__NEGOTIATOR); + createEReference(connectorDefEClass, CONNECTOR_DEF__CLIENT_PROTOCOL_PROVIDER); + + clientProtocolFactoryDefEClass = createEClass(CLIENT_PROTOCOL_FACTORY_DEF); + + tcpConnectorDefEClass = createEClass(TCP_CONNECTOR_DEF); + createEReference(tcpConnectorDefEClass, TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF); + createEAttribute(tcpConnectorDefEClass, TCP_CONNECTOR_DEF__HOST); + createEAttribute(tcpConnectorDefEClass, TCP_CONNECTOR_DEF__PORT); + + acceptorDefEClass = createEClass(ACCEPTOR_DEF); + createEReference(acceptorDefEClass, ACCEPTOR_DEF__BUFFER_PROVIDER); + createEReference(acceptorDefEClass, ACCEPTOR_DEF__EXECUTOR_SERVICE); + createEReference(acceptorDefEClass, ACCEPTOR_DEF__NEGOTIATOR); + createEReference(acceptorDefEClass, ACCEPTOR_DEF__SERVER_PROTOCOL_PROVIDER); + + tcpAcceptorDefEClass = createEClass(TCP_ACCEPTOR_DEF); + createEAttribute(tcpAcceptorDefEClass, TCP_ACCEPTOR_DEF__HOST); + createEAttribute(tcpAcceptorDefEClass, TCP_ACCEPTOR_DEF__PORT); + createEReference(tcpAcceptorDefEClass, TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF); + + jvmAcceptorDefEClass = createEClass(JVM_ACCEPTOR_DEF); + createEAttribute(jvmAcceptorDefEClass, JVM_ACCEPTOR_DEF__NAME); + + jvmConnectorDefEClass = createEClass(JVM_CONNECTOR_DEF); + createEAttribute(jvmConnectorDefEClass, JVM_CONNECTOR_DEF__NAME); + + httpConnectorDefEClass = createEClass(HTTP_CONNECTOR_DEF); + createEAttribute(httpConnectorDefEClass, HTTP_CONNECTOR_DEF__URL); + + negotiatorDefEClass = createEClass(NEGOTIATOR_DEF); + + responseNegotiatorDefEClass = createEClass(RESPONSE_NEGOTIATOR_DEF); + createEReference(responseNegotiatorDefEClass, RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER); + + challengeNegotiatorDefEClass = createEClass(CHALLENGE_NEGOTIATOR_DEF); + createEReference(challengeNegotiatorDefEClass, CHALLENGE_NEGOTIATOR_DEF__USER_MANAGER); + createEReference(challengeNegotiatorDefEClass, CHALLENGE_NEGOTIATOR_DEF__RANDOMIZER); + + tcpSelectorDefEClass = createEClass(TCP_SELECTOR_DEF); + + serverProtocolFactoryDefEClass = createEClass(SERVER_PROTOCOL_FACTORY_DEF); + + bufferProviderDefEClass = createEClass(BUFFER_PROVIDER_DEF); + + bufferPoolDefEClass = createEClass(BUFFER_POOL_DEF); + + protocolProviderDefEClass = createEClass(PROTOCOL_PROVIDER_DEF); + + credentialsProviderDefEClass = createEClass(CREDENTIALS_PROVIDER_DEF); + createEAttribute(credentialsProviderDefEClass, CREDENTIALS_PROVIDER_DEF__USER_ID); + + passwordCredentialsProviderDefEClass = createEClass(PASSWORD_CREDENTIALS_PROVIDER_DEF); + createEAttribute(passwordCredentialsProviderDefEClass, PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD); + + userEClass = createEClass(USER); + createEAttribute(userEClass, USER__USER_ID); + createEAttribute(userEClass, USER__PASSWORD); + + userManagerDefEClass = createEClass(USER_MANAGER_DEF); + createEReference(userManagerDefEClass, USER_MANAGER_DEF__USER); + + randomizerDefEClass = createEClass(RANDOMIZER_DEF); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jUtilDefsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + connectorDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + clientProtocolFactoryDefEClass.getESuperTypes().add(this.getProtocolProviderDef()); + tcpConnectorDefEClass.getESuperTypes().add(this.getConnectorDef()); + acceptorDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + tcpAcceptorDefEClass.getESuperTypes().add(this.getAcceptorDef()); + jvmAcceptorDefEClass.getESuperTypes().add(this.getAcceptorDef()); + jvmConnectorDefEClass.getESuperTypes().add(this.getConnectorDef()); + httpConnectorDefEClass.getESuperTypes().add(this.getConnectorDef()); + negotiatorDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + responseNegotiatorDefEClass.getESuperTypes().add(this.getNegotiatorDef()); + challengeNegotiatorDefEClass.getESuperTypes().add(this.getNegotiatorDef()); + tcpSelectorDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + serverProtocolFactoryDefEClass.getESuperTypes().add(this.getProtocolProviderDef()); + bufferProviderDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + bufferPoolDefEClass.getESuperTypes().add(this.getBufferProviderDef()); + protocolProviderDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + credentialsProviderDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + passwordCredentialsProviderDefEClass.getESuperTypes().add(this.getCredentialsProviderDef()); + userManagerDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + randomizerDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + + // Initialize classes and features; add operations and parameters + initEClass(connectorDefEClass, ConnectorDef.class, "ConnectorDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getConnectorDef_UserID(), ecorePackage.getEString(), "userID", null, 0, 1, ConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConnectorDef_BufferProvider(), this.getBufferProviderDef(), null, "bufferProvider", null, 1, 1, ConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConnectorDef_ExecutorService(), theNet4jUtilDefsPackage.getExecutorServiceDef(), null, "executorService", null, 1, 1, ConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConnectorDef_Negotiator(), this.getNegotiatorDef(), null, "negotiator", null, 0, 1, ConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConnectorDef_ClientProtocolProvider(), this.getClientProtocolFactoryDef(), null, "clientProtocolProvider", null, 1, -1, ConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(clientProtocolFactoryDefEClass, ClientProtocolFactoryDef.class, "ClientProtocolFactoryDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(tcpConnectorDefEClass, TCPConnectorDef.class, "TCPConnectorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTCPConnectorDef_TcpSelectorDef(), this.getTCPSelectorDef(), null, "tcpSelectorDef", null, 0, 1, TCPConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTCPConnectorDef_Host(), ecorePackage.getEString(), "host", null, 1, 1, TCPConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTCPConnectorDef_Port(), ecorePackage.getEInt(), "port", null, 0, 1, TCPConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(acceptorDefEClass, AcceptorDef.class, "AcceptorDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAcceptorDef_BufferProvider(), this.getBufferPoolDef(), null, "bufferProvider", null, 0, 1, AcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAcceptorDef_ExecutorService(), theNet4jUtilDefsPackage.getThreadPoolDef(), null, "executorService", null, 0, 1, AcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAcceptorDef_Negotiator(), this.getNegotiatorDef(), null, "negotiator", null, 0, 1, AcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAcceptorDef_ServerProtocolProvider(), this.getServerProtocolFactoryDef(), null, "serverProtocolProvider", null, 1, -1, AcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tcpAcceptorDefEClass, TCPAcceptorDef.class, "TCPAcceptorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTCPAcceptorDef_Host(), ecorePackage.getEString(), "host", null, 1, 1, TCPAcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTCPAcceptorDef_Port(), ecorePackage.getEInt(), "port", null, 1, 1, TCPAcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTCPAcceptorDef_TcpSelectorDef(), this.getTCPSelectorDef(), null, "tcpSelectorDef", null, 1, 1, TCPAcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(jvmAcceptorDefEClass, JVMAcceptorDef.class, "JVMAcceptorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getJVMAcceptorDef_Name(), ecorePackage.getEString(), "name", null, 0, 1, JVMAcceptorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(jvmConnectorDefEClass, JVMConnectorDef.class, "JVMConnectorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getJVMConnectorDef_Name(), ecorePackage.getEString(), "name", null, 0, 1, JVMConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(httpConnectorDefEClass, HTTPConnectorDef.class, "HTTPConnectorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHTTPConnectorDef_Url(), ecorePackage.getEString(), "url", null, 0, 1, HTTPConnectorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(negotiatorDefEClass, NegotiatorDef.class, "NegotiatorDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(responseNegotiatorDefEClass, ResponseNegotiatorDef.class, "ResponseNegotiatorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getResponseNegotiatorDef_CredentialsProvider(), this.getCredentialsProviderDef(), null, "credentialsProvider", null, 0, 1, ResponseNegotiatorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(challengeNegotiatorDefEClass, ChallengeNegotiatorDef.class, "ChallengeNegotiatorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getChallengeNegotiatorDef_UserManager(), this.getUserManagerDef(), null, "userManager", null, 0, 1, ChallengeNegotiatorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getChallengeNegotiatorDef_Randomizer(), this.getRandomizerDef(), null, "randomizer", null, 0, 1, ChallengeNegotiatorDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tcpSelectorDefEClass, TCPSelectorDef.class, "TCPSelectorDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(serverProtocolFactoryDefEClass, ServerProtocolFactoryDef.class, "ServerProtocolFactoryDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(bufferProviderDefEClass, BufferProviderDef.class, "BufferProviderDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(bufferPoolDefEClass, BufferPoolDef.class, "BufferPoolDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(protocolProviderDefEClass, ProtocolProviderDef.class, "ProtocolProviderDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(credentialsProviderDefEClass, CredentialsProviderDef.class, "CredentialsProviderDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCredentialsProviderDef_UserID(), ecorePackage.getEString(), "userID", null, 0, 1, CredentialsProviderDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(passwordCredentialsProviderDefEClass, PasswordCredentialsProviderDef.class, "PasswordCredentialsProviderDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPasswordCredentialsProviderDef_Password(), ecorePackage.getEString(), "password", null, 0, 1, PasswordCredentialsProviderDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(userEClass, User.class, "User", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUser_UserID(), ecorePackage.getEString(), "userID", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUser_Password(), ecorePackage.getEString(), "password", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(userManagerDefEClass, UserManagerDef.class, "UserManagerDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getUserManagerDef_User(), this.getUser(), null, "user", null, 1, -1, UserManagerDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(randomizerDefEClass, RandomizerDef.class, "RandomizerDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //Net4jDefsPackageImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/PasswordCredentialsProviderDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/PasswordCredentialsProviderDefImpl.java new file mode 100644 index 0000000000..a2365a2ece --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/PasswordCredentialsProviderDefImpl.java @@ -0,0 +1,184 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PasswordCredentialsProviderDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.security.IPasswordCredentials; +import org.eclipse.net4j.util.security.PasswordCredentials; +import org.eclipse.net4j.util.security.PasswordCredentialsProvider; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Password Credentials Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.PasswordCredentialsProviderDefImpl#getPassword <em>Password</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PasswordCredentialsProviderDefImpl extends CredentialsProviderDefImpl implements PasswordCredentialsProviderDef { + + /** + * The default value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PasswordCredentialsProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.PASSWORD_CREDENTIALS_PROVIDER_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPassword() { + return password; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPassword(String newPassword) { + String oldPassword = password; + password = newPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD, oldPassword, password)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD: + return getPassword(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD: + setPassword((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD: + setPassword(PASSWORD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF__PASSWORD: + return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (password: "); + result.append(password); + result.append(')'); + return result.toString(); + } + + @Override + protected Object createInstance() { + IPasswordCredentials passwordCredential = new PasswordCredentials(getUserID(), getPassword().toCharArray()); + PasswordCredentialsProvider passwordCredentialsProvider = new PasswordCredentialsProvider(passwordCredential ); + return passwordCredentialsProvider; + } + + @Override + protected void validateDefinition() { + CheckUtil.checkState(getUserID() != null && getUserID().length() > 0, "userID is not set!"); + CheckUtil.checkState(getPassword() != null && getPassword().length() > 0, "password is not set!"); + super.validateDefinition(); + } + + +} //PasswordCredentialsProviderDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ProtocolProviderDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ProtocolProviderDefImpl.java new file mode 100644 index 0000000000..18ea454aae --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ProtocolProviderDefImpl.java @@ -0,0 +1,44 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ProtocolProviderDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Protocol Provider Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class ProtocolProviderDefImpl extends DefImpl implements ProtocolProviderDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ProtocolProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.PROTOCOL_PROVIDER_DEF; + } + +} //ProtocolProviderDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/RandomizerDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/RandomizerDefImpl.java new file mode 100644 index 0000000000..7fd359a4f2 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/RandomizerDefImpl.java @@ -0,0 +1,52 @@ +/** + * <copyright> + * </copyright> + * + * $Id: RandomizerDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; +import org.eclipse.net4j.util.security.Randomizer; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Randomizer Def</b></em>'. <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class RandomizerDefImpl extends DefImpl implements RandomizerDef +{ + @Override + protected Object createInstance() + { + return new Randomizer(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected RandomizerDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jDefsPackage.Literals.RANDOMIZER_DEF; + } + +} // RandomizerDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ResponseNegotiatorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ResponseNegotiatorDefImpl.java new file mode 100644 index 0000000000..87fb99bc68 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ResponseNegotiatorDefImpl.java @@ -0,0 +1,161 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ResponseNegotiatorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.CredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef; +import org.eclipse.net4j.util.security.IPasswordCredentialsProvider; +import org.eclipse.net4j.util.security.ResponseNegotiator; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>Response Negotiator Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.ResponseNegotiatorDefImpl#getCredentialsProvider <em>Credentials Provider</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ResponseNegotiatorDefImpl extends NegotiatorDefImpl implements + ResponseNegotiatorDef { + /** + * The cached value of the '{@link #getCredentialsProvider() <em>Credentials Provider</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getCredentialsProvider() + * @generated + * @ordered + */ + protected CredentialsProviderDef credentialsProvider; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected ResponseNegotiatorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.RESPONSE_NEGOTIATOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CredentialsProviderDef getCredentialsProvider() { + if (credentialsProvider != null && credentialsProvider.eIsProxy()) { + InternalEObject oldCredentialsProvider = (InternalEObject)credentialsProvider; + credentialsProvider = (CredentialsProviderDef)eResolveProxy(oldCredentialsProvider); + if (credentialsProvider != oldCredentialsProvider) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER, oldCredentialsProvider, credentialsProvider)); + } + } + return credentialsProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public CredentialsProviderDef basicGetCredentialsProvider() { + return credentialsProvider; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setCredentialsProvider( + CredentialsProviderDef newCredentialsProvider) { + CredentialsProviderDef oldCredentialsProvider = credentialsProvider; + credentialsProvider = newCredentialsProvider; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER, oldCredentialsProvider, credentialsProvider)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER: + if (resolve) return getCredentialsProvider(); + return basicGetCredentialsProvider(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER: + setCredentialsProvider((CredentialsProviderDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER: + setCredentialsProvider((CredentialsProviderDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF__CREDENTIALS_PROVIDER: + return credentialsProvider != null; + } + return super.eIsSet(featureID); + } + + @Override + protected Object createInstance() { + ResponseNegotiator responseNegotiator = new ResponseNegotiator(); + responseNegotiator + .setCredentialsProvider((IPasswordCredentialsProvider) getCredentialsProvider() + .getInstance()); + return responseNegotiator; + } + +} // ResponseNegotiatorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ServerProtocolFactoryDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ServerProtocolFactoryDefImpl.java new file mode 100644 index 0000000000..67244505f7 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/ServerProtocolFactoryDefImpl.java @@ -0,0 +1,45 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ServerProtocolFactoryDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Server Protocol Factory Def</b></em>'. <!-- + * end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class ServerProtocolFactoryDefImpl extends ProtocolProviderDefImpl implements ServerProtocolFactoryDef +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ServerProtocolFactoryDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jDefsPackage.Literals.SERVER_PROTOCOL_FACTORY_DEF; + } + +} // ServerProtocolFactoryDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPAcceptorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPAcceptorDefImpl.java new file mode 100644 index 0000000000..3d40bac6eb --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPAcceptorDefImpl.java @@ -0,0 +1,289 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPAcceptorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.internal.tcp.TCPAcceptor; +import org.eclipse.net4j.internal.tcp.TCPSelector; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.TCPAcceptorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.tcp.ITCPAcceptor; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>TCP Acceptor Def</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl#getHost <em>Host</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl#getPort <em>Port</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPAcceptorDefImpl#getTcpSelectorDef <em>Tcp Selector Def</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TCPAcceptorDefImpl extends AcceptorDefImpl implements + TCPAcceptorDef { + /** + * The default value of the '{@link #getHost() <em>Host</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getHost() + * @generated + * @ordered + */ + protected static final String HOST_EDEFAULT = null; + /** + * The cached value of the '{@link #getHost() <em>Host</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getHost() + * @generated + * @ordered + */ + protected String host = HOST_EDEFAULT; + /** + * The default value of the '{@link #getPort() <em>Port</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getPort() + * @generated + * @ordered + */ + protected static final int PORT_EDEFAULT = 0; + /** + * The cached value of the '{@link #getPort() <em>Port</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getPort() + * @generated + * @ordered + */ + protected int port = PORT_EDEFAULT; + /** + * The cached value of the '{@link #getTcpSelectorDef() <em>Tcp Selector Def</em>}' reference. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @see #getTcpSelectorDef() + * @generated + * @ordered + */ + protected TCPSelectorDef tcpSelectorDef; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected TCPAcceptorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.TCP_ACCEPTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getHost() { + return host; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setHost(String newHost) { + String oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST, oldHost, host)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public int getPort() { + return port; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setPort(int newPort) { + int oldPort = port; + port = newPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT, oldPort, port)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public TCPSelectorDef getTcpSelectorDef() { + if (tcpSelectorDef != null && tcpSelectorDef.eIsProxy()) { + InternalEObject oldTcpSelectorDef = (InternalEObject)tcpSelectorDef; + tcpSelectorDef = (TCPSelectorDef)eResolveProxy(oldTcpSelectorDef); + if (tcpSelectorDef != oldTcpSelectorDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF, oldTcpSelectorDef, tcpSelectorDef)); + } + } + return tcpSelectorDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public TCPSelectorDef basicGetTcpSelectorDef() { + return tcpSelectorDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setTcpSelectorDef(TCPSelectorDef newTcpSelectorDef) { + TCPSelectorDef oldTcpSelectorDef = tcpSelectorDef; + tcpSelectorDef = newTcpSelectorDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF, oldTcpSelectorDef, tcpSelectorDef)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST: + return getHost(); + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT: + return new Integer(getPort()); + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF: + if (resolve) return getTcpSelectorDef(); + return basicGetTcpSelectorDef(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST: + setHost((String)newValue); + return; + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT: + setPort(((Integer)newValue).intValue()); + return; + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF: + setTcpSelectorDef((TCPSelectorDef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST: + setHost(HOST_EDEFAULT); + return; + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT: + setPort(PORT_EDEFAULT); + return; + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF: + setTcpSelectorDef((TCPSelectorDef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST: + return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host); + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT: + return port != PORT_EDEFAULT; + case Net4jDefsPackage.TCP_ACCEPTOR_DEF__TCP_SELECTOR_DEF: + return tcpSelectorDef != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (host: "); + result.append(host); + result.append(", port: "); + result.append(port); + result.append(')'); + return result.toString(); + } + + @Override + protected ITCPAcceptor createInstance() { + TCPSelector tcpSelector = (TCPSelector) getTcpSelectorDef() + .getInstance(); + + TCPAcceptor tcpAcceptor = new TCPAcceptor(); + + tcpAcceptor.setStartSynchronously(true); + tcpAcceptor.setSynchronousStartTimeout(500l); + configure(tcpAcceptor.getConfig()); + tcpAcceptor.setSelector(tcpSelector); + + tcpAcceptor.setAddress(getHost()); + tcpAcceptor.setPort(getPort()); + + return tcpAcceptor; + } + + @Override + protected void validateDefinition() { + super.validateDefinition(); + CheckUtil.checkState(getTcpSelectorDef() != null, + "tcp selector not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.TCP_ACCEPTOR_DEF__HOST), "host not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.TCP_ACCEPTOR_DEF__PORT), "port not set!"); + } + +} // TCPAcceptorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPConnectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPConnectorDefImpl.java new file mode 100644 index 0000000000..5967bcd5db --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPConnectorDefImpl.java @@ -0,0 +1,352 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPConnectorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.internal.tcp.TCPClientConnector; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.tcp.ITCPConnector; +import org.eclipse.net4j.tcp.ITCPSelector; +import org.eclipse.net4j.util.CheckUtil; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>TCP Connector Def</b></em>'. <!-- end-user-doc + * --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl#getTcpSelectorDef <em>Tcp Selector Def</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl#getHost <em>Host</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.TCPConnectorDefImpl#getPort <em>Port</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TCPConnectorDefImpl extends ConnectorDefImpl implements TCPConnectorDef +{ + /** + * The cached value of the '{@link #getTcpSelectorDef() <em>Tcp Selector Def</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTcpSelectorDef() + * @generated + * @ordered + */ + protected TCPSelectorDef tcpSelectorDef; + + /** + * The default value of the '{@link #getHost() <em>Host</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @see #getHost() + * @generated + * @ordered + */ + protected static final String HOST_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHost() <em>Host</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getHost() + * @generated + * @ordered + */ + protected String host = HOST_EDEFAULT; + + /** + * The default value of the '{@link #getPort() <em>Port</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @see #getPort() + * @generated + * @ordered + */ + protected static final int PORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPort() <em>Port</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see #getPort() + * @generated + * @ordered + */ + protected int port = PORT_EDEFAULT; + + /** + * This is true if the Port attribute has been set. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean portESet; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected TCPConnectorDefImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jDefsPackage.Literals.TCP_CONNECTOR_DEF; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public TCPSelectorDef getTcpSelectorDef() + { + if (tcpSelectorDef != null && tcpSelectorDef.eIsProxy()) { + InternalEObject oldTcpSelectorDef = (InternalEObject)tcpSelectorDef; + tcpSelectorDef = (TCPSelectorDef)eResolveProxy(oldTcpSelectorDef); + if (tcpSelectorDef != oldTcpSelectorDef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF, oldTcpSelectorDef, tcpSelectorDef)); + } + } + return tcpSelectorDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public TCPSelectorDef basicGetTcpSelectorDef() + { + return tcpSelectorDef; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setTcpSelectorDef(TCPSelectorDef newTcpSelectorDef) + { + TCPSelectorDef oldTcpSelectorDef = tcpSelectorDef; + tcpSelectorDef = newTcpSelectorDef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF, oldTcpSelectorDef, tcpSelectorDef)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public String getHost() + { + return host; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setHost(String newHost) + { + String oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST, oldHost, host)); + } + + /** + * <!-- begin-user-doc -->gets the <b>port</b> of this connector. If the port was not set, the + * {@link ITCPConnector#DEFAULT_PORT} is returned<!-- end-user-doc --> + * + * @generated NOT + */ + public int getPort() + { + if (isSetPort()) + { + return getPortGen(); + } + else + { + return ITCPConnector.DEFAULT_PORT; + } + } + + /** + * @generated + */ + public int getPortGen() + { + return port; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void setPort(int newPort) + { + int oldPort = port; + port = newPort; + boolean oldPortESet = portESet; + portESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT, oldPort, port, !oldPortESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public void unsetPort() + { + int oldPort = port; + boolean oldPortESet = portESet; + port = PORT_EDEFAULT; + portESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT, oldPort, PORT_EDEFAULT, oldPortESet)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public boolean isSetPort() + { + return portESet; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) { + case Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF: + if (resolve) return getTcpSelectorDef(); + return basicGetTcpSelectorDef(); + case Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST: + return getHost(); + case Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT: + return new Integer(getPort()); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) { + case Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF: + setTcpSelectorDef((TCPSelectorDef)newValue); + return; + case Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST: + setHost((String)newValue); + return; + case Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT: + setPort(((Integer)newValue).intValue()); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) { + case Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF: + setTcpSelectorDef((TCPSelectorDef)null); + return; + case Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST: + setHost(HOST_EDEFAULT); + return; + case Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT: + unsetPort(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) { + case Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF: + return tcpSelectorDef != null; + case Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST: + return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host); + case Net4jDefsPackage.TCP_CONNECTOR_DEF__PORT: + return isSetPort(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (host: "); + result.append(host); + result.append(", port: "); + if (portESet) result.append(port); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + + @Override + protected ITCPConnector createInstance() + { + TCPClientConnector connector = new TCPClientConnector(); + + configure(connector); + connector.setSelector((ITCPSelector)getTcpSelectorDef().getInstance()); + connector.setHost(getHost()); + connector.setPort(getPort()); + + return connector; + } + + @Override + protected void validateDefinition() + { + super.validateDefinition(); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.TCP_CONNECTOR_DEF__TCP_SELECTOR_DEF), "tcp selector not set!"); + CheckUtil.checkState(eIsSet(Net4jDefsPackage.TCP_CONNECTOR_DEF__HOST), "host not set!"); // + } +} // TCPConnectorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPSelectorDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPSelectorDefImpl.java new file mode 100644 index 0000000000..cdbe3cc61c --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/TCPSelectorDefImpl.java @@ -0,0 +1,58 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TCPSelectorDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.internal.tcp.TCPSelector; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>TCP Selector Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class TCPSelectorDefImpl extends DefImpl implements TCPSelectorDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TCPSelectorDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.TCP_SELECTOR_DEF; + } + + /** + * Creates and returns a {@link TCPSelector}. + * + * @return a new tcp selector instance + * + * @generated NOT + */ + @Override + public Object createInstance() { + TCPSelector selector = new TCPSelector(); + selector.activate(); + return selector; + } +} //TCPSelectorDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserImpl.java new file mode 100644 index 0000000000..e7c36a0d46 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserImpl.java @@ -0,0 +1,219 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UserImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.User; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>User</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.UserImpl#getUserID <em>User ID</em>}</li> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.UserImpl#getPassword <em>Password</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class UserImpl extends EObjectImpl implements User { + /** + * The default value of the '{@link #getUserID() <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserID() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUserID() <em>User ID</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUserID() + * @generated + * @ordered + */ + protected String userID = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() <em>Password</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UserImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.USER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUserID() { + return userID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUserID(String newUserID) { + String oldUserID = userID; + userID = newUserID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.USER__USER_ID, oldUserID, userID)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPassword() { + return password; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPassword(String newPassword) { + String oldPassword = password; + password = newPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jDefsPackage.USER__PASSWORD, oldPassword, password)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.USER__USER_ID: + return getUserID(); + case Net4jDefsPackage.USER__PASSWORD: + return getPassword(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.USER__USER_ID: + setUserID((String)newValue); + return; + case Net4jDefsPackage.USER__PASSWORD: + setPassword((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.USER__USER_ID: + setUserID(USER_ID_EDEFAULT); + return; + case Net4jDefsPackage.USER__PASSWORD: + setPassword(PASSWORD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.USER__USER_ID: + return USER_ID_EDEFAULT == null ? userID != null : !USER_ID_EDEFAULT.equals(userID); + case Net4jDefsPackage.USER__PASSWORD: + return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (userID: "); + result.append(userID); + result.append(", password: "); + result.append(password); + result.append(')'); + return result.toString(); + } + +} //UserImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserManagerDefImpl.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserManagerDefImpl.java new file mode 100644 index 0000000000..aca1d01729 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/impl/UserManagerDefImpl.java @@ -0,0 +1,161 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UserManagerDefImpl.java,v 1.1 2008-12-28 18:07:28 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.User; +import org.eclipse.net4j.net4jdefs.UserManagerDef; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; +import org.eclipse.net4j.util.security.UserManager; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>User Manager Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.net4jdefs.impl.UserManagerDefImpl#getUser <em>User</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class UserManagerDefImpl extends DefImpl implements UserManagerDef { + /** + * The cached value of the '{@link #getUser() <em>User</em>}' reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected EList<User> user; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UserManagerDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jDefsPackage.Literals.USER_MANAGER_DEF; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<User> getUser() { + if (user == null) { + user = new EObjectResolvingEList.Unsettable<User>(User.class, this, Net4jDefsPackage.USER_MANAGER_DEF__USER); + } + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetUser() { + if (user != null) ((InternalEList.Unsettable<?>)user).unset(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetUser() { + return user != null && ((InternalEList.Unsettable<?>)user).isSet(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jDefsPackage.USER_MANAGER_DEF__USER: + return getUser(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jDefsPackage.USER_MANAGER_DEF__USER: + getUser().clear(); + getUser().addAll((Collection<? extends User>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jDefsPackage.USER_MANAGER_DEF__USER: + unsetUser(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jDefsPackage.USER_MANAGER_DEF__USER: + return isSetUser(); + } + return super.eIsSet(featureID); + } + + @Override + protected Object createInstance() { + UserManager userManager = new UserManager(); + return userManager; + + } + +} //UserManagerDefImpl diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/ConnectorDefBuilder.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/ConnectorDefBuilder.java new file mode 100644 index 0000000000..ad86d31573 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/ConnectorDefBuilder.java @@ -0,0 +1,45 @@ +package org.eclipse.net4j.net4jdefs.util; + +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; + +public class ConnectorDefBuilder +{ + + protected BufferProviderDef bufferProviderDef; + + protected ExecutorServiceDef executorServiceDef; + + public ConnectorDefBuilder() + { + super(); + } + + public ConnectorDefBuilder bufferProvider(BufferProviderDef bufferProviderDef) + { + this.bufferProviderDef = bufferProviderDef; + return this; + } + + public ConnectorDefBuilder executorService(ExecutorServiceDef executorServiceDef) + { + this.executorServiceDef = executorServiceDef; + return this; + } + + public void validate() + { + CheckUtil.checkState(bufferProviderDef != null, "bufferProviderDef is not set!"); + CheckUtil.checkState(executorServiceDef != null, "executorServiceDef is not set!"); + } + + public void build(ConnectorDef connectorDef) + { + validate(); + + connectorDef.setBufferProvider(bufferProviderDef); + connectorDef.setExecutorService(executorServiceDef); + } +} diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsAdapterFactory.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsAdapterFactory.java new file mode 100644 index 0000000000..e70485d0f7 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsAdapterFactory.java @@ -0,0 +1,522 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsAdapterFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.util; + +import org.eclipse.net4j.net4jdefs.AcceptorDef; +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.net4jdefs.CredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.HTTPConnectorDef; +import org.eclipse.net4j.net4jdefs.JVMAcceptorDef; +import org.eclipse.net4j.net4jdefs.JVMConnectorDef; +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.TCPAcceptorDef; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.net4jdefs.User; +import org.eclipse.net4j.net4jdefs.UserManagerDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage + * @generated + */ +public class Net4jDefsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4jDefsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jDefsAdapterFactory() { + if (modelPackage == null) { + modelPackage = Net4jDefsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Net4jDefsSwitch<Adapter> modelSwitch = + new Net4jDefsSwitch<Adapter>() { + @Override + public Adapter caseConnectorDef(ConnectorDef object) { + return createConnectorDefAdapter(); + } + @Override + public Adapter caseClientProtocolFactoryDef(ClientProtocolFactoryDef object) { + return createClientProtocolFactoryDefAdapter(); + } + @Override + public Adapter caseTCPConnectorDef(TCPConnectorDef object) { + return createTCPConnectorDefAdapter(); + } + @Override + public Adapter caseAcceptorDef(AcceptorDef object) { + return createAcceptorDefAdapter(); + } + @Override + public Adapter caseTCPAcceptorDef(TCPAcceptorDef object) { + return createTCPAcceptorDefAdapter(); + } + @Override + public Adapter caseJVMAcceptorDef(JVMAcceptorDef object) { + return createJVMAcceptorDefAdapter(); + } + @Override + public Adapter caseJVMConnectorDef(JVMConnectorDef object) { + return createJVMConnectorDefAdapter(); + } + @Override + public Adapter caseHTTPConnectorDef(HTTPConnectorDef object) { + return createHTTPConnectorDefAdapter(); + } + @Override + public Adapter caseNegotiatorDef(NegotiatorDef object) { + return createNegotiatorDefAdapter(); + } + @Override + public Adapter caseResponseNegotiatorDef(ResponseNegotiatorDef object) { + return createResponseNegotiatorDefAdapter(); + } + @Override + public Adapter caseChallengeNegotiatorDef(ChallengeNegotiatorDef object) { + return createChallengeNegotiatorDefAdapter(); + } + @Override + public Adapter caseTCPSelectorDef(TCPSelectorDef object) { + return createTCPSelectorDefAdapter(); + } + @Override + public Adapter caseServerProtocolFactoryDef(ServerProtocolFactoryDef object) { + return createServerProtocolFactoryDefAdapter(); + } + @Override + public Adapter caseBufferProviderDef(BufferProviderDef object) { + return createBufferProviderDefAdapter(); + } + @Override + public Adapter caseBufferPoolDef(BufferPoolDef object) { + return createBufferPoolDefAdapter(); + } + @Override + public Adapter caseProtocolProviderDef(ProtocolProviderDef object) { + return createProtocolProviderDefAdapter(); + } + @Override + public Adapter caseCredentialsProviderDef(CredentialsProviderDef object) { + return createCredentialsProviderDefAdapter(); + } + @Override + public Adapter casePasswordCredentialsProviderDef(PasswordCredentialsProviderDef object) { + return createPasswordCredentialsProviderDefAdapter(); + } + @Override + public Adapter caseUser(User object) { + return createUserAdapter(); + } + @Override + public Adapter caseUserManagerDef(UserManagerDef object) { + return createUserManagerDefAdapter(); + } + @Override + public Adapter caseRandomizerDef(RandomizerDef object) { + return createRandomizerDefAdapter(); + } + @Override + public Adapter caseDef(Def object) { + return createDefAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ConnectorDef <em>Connector Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ConnectorDef + * @generated + */ + public Adapter createConnectorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef <em>Client Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef + * @generated + */ + public Adapter createClientProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.TCPConnectorDef <em>TCP Connector Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.TCPConnectorDef + * @generated + */ + public Adapter createTCPConnectorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.AcceptorDef <em>Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.AcceptorDef + * @generated + */ + public Adapter createAcceptorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.TCPAcceptorDef <em>TCP Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.TCPAcceptorDef + * @generated + */ + public Adapter createTCPAcceptorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.JVMAcceptorDef <em>JVM Acceptor Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.JVMAcceptorDef + * @generated + */ + public Adapter createJVMAcceptorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.JVMConnectorDef <em>JVM Connector Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.JVMConnectorDef + * @generated + */ + public Adapter createJVMConnectorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.HTTPConnectorDef <em>HTTP Connector Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.HTTPConnectorDef + * @generated + */ + public Adapter createHTTPConnectorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.NegotiatorDef <em>Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.NegotiatorDef + * @generated + */ + public Adapter createNegotiatorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef <em>Response Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef + * @generated + */ + public Adapter createResponseNegotiatorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef <em>Challenge Negotiator Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef + * @generated + */ + public Adapter createChallengeNegotiatorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.TCPSelectorDef <em>TCP Selector Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.TCPSelectorDef + * @generated + */ + public Adapter createTCPSelectorDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef <em>Server Protocol Factory Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef + * @generated + */ + public Adapter createServerProtocolFactoryDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.BufferProviderDef <em>Buffer Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.BufferProviderDef + * @generated + */ + public Adapter createBufferProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.BufferPoolDef <em>Buffer Pool Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.BufferPoolDef + * @generated + */ + public Adapter createBufferPoolDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.ProtocolProviderDef <em>Protocol Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.ProtocolProviderDef + * @generated + */ + public Adapter createProtocolProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.CredentialsProviderDef <em>Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.CredentialsProviderDef + * @generated + */ + public Adapter createCredentialsProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef <em>Password Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef + * @generated + */ + public Adapter createPasswordCredentialsProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.UserManagerDef <em>User Manager Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.UserManagerDef + * @generated + */ + public Adapter createUserManagerDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.RandomizerDef <em>Randomizer Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.RandomizerDef + * @generated + */ + public Adapter createRandomizerDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4jdefs.User <em>User</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4jdefs.User + * @generated + */ + public Adapter createUserAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + public Adapter createDefAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //Net4jDefsAdapterFactory diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsSwitch.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsSwitch.java new file mode 100644 index 0000000000..2a86b2aa69 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsSwitch.java @@ -0,0 +1,618 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jDefsSwitch.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4jdefs.util; + +import org.eclipse.net4j.net4jdefs.AcceptorDef; +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.ChallengeNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ClientProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.ConnectorDef; +import org.eclipse.net4j.net4jdefs.CredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.HTTPConnectorDef; +import org.eclipse.net4j.net4jdefs.JVMAcceptorDef; +import org.eclipse.net4j.net4jdefs.JVMConnectorDef; +import org.eclipse.net4j.net4jdefs.NegotiatorDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4jdefs.PasswordCredentialsProviderDef; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.RandomizerDef; +import org.eclipse.net4j.net4jdefs.ResponseNegotiatorDef; +import org.eclipse.net4j.net4jdefs.ServerProtocolFactoryDef; +import org.eclipse.net4j.net4jdefs.TCPAcceptorDef; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.net4jdefs.User; +import org.eclipse.net4j.net4jdefs.UserManagerDef; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4jdefs.Net4jDefsPackage + * @generated + */ +public class Net4jDefsSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4jDefsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jDefsSwitch() { + if (modelPackage == null) { + modelPackage = Net4jDefsPackage.eINSTANCE; + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case Net4jDefsPackage.CONNECTOR_DEF: { + ConnectorDef connectorDef = (ConnectorDef)theEObject; + T result = caseConnectorDef(connectorDef); + if (result == null) result = caseDef(connectorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.CLIENT_PROTOCOL_FACTORY_DEF: { + ClientProtocolFactoryDef clientProtocolFactoryDef = (ClientProtocolFactoryDef)theEObject; + T result = caseClientProtocolFactoryDef(clientProtocolFactoryDef); + if (result == null) result = caseProtocolProviderDef(clientProtocolFactoryDef); + if (result == null) result = caseDef(clientProtocolFactoryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.TCP_CONNECTOR_DEF: { + TCPConnectorDef tcpConnectorDef = (TCPConnectorDef)theEObject; + T result = caseTCPConnectorDef(tcpConnectorDef); + if (result == null) result = caseConnectorDef(tcpConnectorDef); + if (result == null) result = caseDef(tcpConnectorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.ACCEPTOR_DEF: { + AcceptorDef acceptorDef = (AcceptorDef)theEObject; + T result = caseAcceptorDef(acceptorDef); + if (result == null) result = caseDef(acceptorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.TCP_ACCEPTOR_DEF: { + TCPAcceptorDef tcpAcceptorDef = (TCPAcceptorDef)theEObject; + T result = caseTCPAcceptorDef(tcpAcceptorDef); + if (result == null) result = caseAcceptorDef(tcpAcceptorDef); + if (result == null) result = caseDef(tcpAcceptorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.JVM_ACCEPTOR_DEF: { + JVMAcceptorDef jvmAcceptorDef = (JVMAcceptorDef)theEObject; + T result = caseJVMAcceptorDef(jvmAcceptorDef); + if (result == null) result = caseAcceptorDef(jvmAcceptorDef); + if (result == null) result = caseDef(jvmAcceptorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.JVM_CONNECTOR_DEF: { + JVMConnectorDef jvmConnectorDef = (JVMConnectorDef)theEObject; + T result = caseJVMConnectorDef(jvmConnectorDef); + if (result == null) result = caseConnectorDef(jvmConnectorDef); + if (result == null) result = caseDef(jvmConnectorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.HTTP_CONNECTOR_DEF: { + HTTPConnectorDef httpConnectorDef = (HTTPConnectorDef)theEObject; + T result = caseHTTPConnectorDef(httpConnectorDef); + if (result == null) result = caseConnectorDef(httpConnectorDef); + if (result == null) result = caseDef(httpConnectorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.NEGOTIATOR_DEF: { + NegotiatorDef negotiatorDef = (NegotiatorDef)theEObject; + T result = caseNegotiatorDef(negotiatorDef); + if (result == null) result = caseDef(negotiatorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.RESPONSE_NEGOTIATOR_DEF: { + ResponseNegotiatorDef responseNegotiatorDef = (ResponseNegotiatorDef)theEObject; + T result = caseResponseNegotiatorDef(responseNegotiatorDef); + if (result == null) result = caseNegotiatorDef(responseNegotiatorDef); + if (result == null) result = caseDef(responseNegotiatorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.CHALLENGE_NEGOTIATOR_DEF: { + ChallengeNegotiatorDef challengeNegotiatorDef = (ChallengeNegotiatorDef)theEObject; + T result = caseChallengeNegotiatorDef(challengeNegotiatorDef); + if (result == null) result = caseNegotiatorDef(challengeNegotiatorDef); + if (result == null) result = caseDef(challengeNegotiatorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.TCP_SELECTOR_DEF: { + TCPSelectorDef tcpSelectorDef = (TCPSelectorDef)theEObject; + T result = caseTCPSelectorDef(tcpSelectorDef); + if (result == null) result = caseDef(tcpSelectorDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.SERVER_PROTOCOL_FACTORY_DEF: { + ServerProtocolFactoryDef serverProtocolFactoryDef = (ServerProtocolFactoryDef)theEObject; + T result = caseServerProtocolFactoryDef(serverProtocolFactoryDef); + if (result == null) result = caseProtocolProviderDef(serverProtocolFactoryDef); + if (result == null) result = caseDef(serverProtocolFactoryDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.BUFFER_PROVIDER_DEF: { + BufferProviderDef bufferProviderDef = (BufferProviderDef)theEObject; + T result = caseBufferProviderDef(bufferProviderDef); + if (result == null) result = caseDef(bufferProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.BUFFER_POOL_DEF: { + BufferPoolDef bufferPoolDef = (BufferPoolDef)theEObject; + T result = caseBufferPoolDef(bufferPoolDef); + if (result == null) result = caseBufferProviderDef(bufferPoolDef); + if (result == null) result = caseDef(bufferPoolDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.PROTOCOL_PROVIDER_DEF: { + ProtocolProviderDef protocolProviderDef = (ProtocolProviderDef)theEObject; + T result = caseProtocolProviderDef(protocolProviderDef); + if (result == null) result = caseDef(protocolProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.CREDENTIALS_PROVIDER_DEF: { + CredentialsProviderDef credentialsProviderDef = (CredentialsProviderDef)theEObject; + T result = caseCredentialsProviderDef(credentialsProviderDef); + if (result == null) result = caseDef(credentialsProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.PASSWORD_CREDENTIALS_PROVIDER_DEF: { + PasswordCredentialsProviderDef passwordCredentialsProviderDef = (PasswordCredentialsProviderDef)theEObject; + T result = casePasswordCredentialsProviderDef(passwordCredentialsProviderDef); + if (result == null) result = caseCredentialsProviderDef(passwordCredentialsProviderDef); + if (result == null) result = caseDef(passwordCredentialsProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.USER: { + User user = (User)theEObject; + T result = caseUser(user); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.USER_MANAGER_DEF: { + UserManagerDef userManagerDef = (UserManagerDef)theEObject; + T result = caseUserManagerDef(userManagerDef); + if (result == null) result = caseDef(userManagerDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jDefsPackage.RANDOMIZER_DEF: { + RandomizerDef randomizerDef = (RandomizerDef)theEObject; + T result = caseRandomizerDef(randomizerDef); + if (result == null) result = caseDef(randomizerDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Connector Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Connector Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConnectorDef(ConnectorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClientProtocolFactoryDef(ClientProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>TCP Connector Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>TCP Connector Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTCPConnectorDef(TCPConnectorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Acceptor Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Acceptor Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAcceptorDef(AcceptorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>TCP Acceptor Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>TCP Acceptor Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTCPAcceptorDef(TCPAcceptorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>JVM Acceptor Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>JVM Acceptor Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseJVMAcceptorDef(JVMAcceptorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>JVM Connector Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>JVM Connector Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseJVMConnectorDef(JVMConnectorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>HTTP Connector Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>HTTP Connector Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHTTPConnectorDef(HTTPConnectorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Negotiator Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Negotiator Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNegotiatorDef(NegotiatorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Response Negotiator Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Response Negotiator Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseResponseNegotiatorDef(ResponseNegotiatorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Challenge Negotiator Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Challenge Negotiator Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseChallengeNegotiatorDef(ChallengeNegotiatorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>TCP Selector Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>TCP Selector Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTCPSelectorDef(TCPSelectorDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Server Protocol Factory Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Server Protocol Factory Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseServerProtocolFactoryDef(ServerProtocolFactoryDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Buffer Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Buffer Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBufferProviderDef(BufferProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Buffer Pool Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Buffer Pool Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBufferPoolDef(BufferPoolDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProtocolProviderDef(ProtocolProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Credentials Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Credentials Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCredentialsProviderDef(CredentialsProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Password Credentials Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Password Credentials Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePasswordCredentialsProviderDef(PasswordCredentialsProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>User Manager Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>User Manager Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUserManagerDef(UserManagerDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Randomizer Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Randomizer Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRandomizerDef(RandomizerDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>User</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>User</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUser(User object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDef(Def object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} //Net4jDefsSwitch diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsUtil.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsUtil.java new file mode 100644 index 0000000000..a42661912b --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/Net4jDefsUtil.java @@ -0,0 +1,53 @@ +package org.eclipse.net4j.net4jdefs.util; + +import org.eclipse.net4j.FactoriesProtocolProvider; +import org.eclipse.net4j.net4jdefs.Net4jDefsFactory; +import org.eclipse.net4j.net4jdefs.ProtocolProviderDef; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.protocol.IProtocolProvider; +import org.eclipse.net4j.tcp.ITCPConnector; +import org.eclipse.net4j.util.factory.IFactory; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsFactory; + +import java.util.Iterator; +import java.util.List; + +public class Net4jDefsUtil +{ + /** + * Creates the factories protocol provider. The current implementation uses a {@link FactoriesProtocolProvider}. + * + * @param clientProtocolFactoryDef + * the client protocol factory definition + * @return the protocol provider + */ + public static <PPD extends ProtocolProviderDef> IProtocolProvider createFactoriesProtocolProvider( + List<PPD> protocolFactoryDef) + { + FactoriesProtocolProvider protocolProvider = new FactoriesProtocolProvider(); + for (Iterator<PPD> iterator = protocolFactoryDef.iterator(); iterator.hasNext();) + { + PPD protocolProviderDef = iterator.next(); + protocolProvider.addFactory((IFactory)protocolProviderDef.getInstance()); + } + return protocolProvider; + } + + public static TCPConnectorDef createTCPConnectorDef(final String host) + { + return createTCPConnectorDef(host, ITCPConnector.DEFAULT_PORT); + } + + public static TCPConnectorDef createTCPConnectorDef(final String host, final int port) + { + TCPConnectorDef tcpConnectorDef = Net4jDefsFactory.eINSTANCE.createTCPConnectorDef(); + + tcpConnectorDef.setHost(host); + tcpConnectorDef.setPort(port); + tcpConnectorDef.setBufferProvider(Net4jDefsFactory.eINSTANCE.createBufferPoolDef()); + tcpConnectorDef.setExecutorService(Net4jUtilDefsFactory.eINSTANCE.createThreadPoolDef()); + tcpConnectorDef.setTcpSelectorDef(Net4jDefsFactory.eINSTANCE.createTCPSelectorDef()); + + return tcpConnectorDef; + } +} diff --git a/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/TCPClientConnectorBuilder.java b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/TCPClientConnectorBuilder.java new file mode 100644 index 0000000000..32b6a84a40 --- /dev/null +++ b/plugins/org.eclipse.net4j.defs/src/org/eclipse/net4j/net4jdefs/util/TCPClientConnectorBuilder.java @@ -0,0 +1,66 @@ +package org.eclipse.net4j.net4jdefs.util; + +import org.eclipse.net4j.net4jdefs.BufferPoolDef; +import org.eclipse.net4j.net4jdefs.BufferProviderDef; +import org.eclipse.net4j.net4jdefs.Net4jDefsFactory; +import org.eclipse.net4j.net4jdefs.TCPConnectorDef; +import org.eclipse.net4j.net4jdefs.TCPSelectorDef; +import org.eclipse.net4j.tcp.ITCPConnector; +import org.eclipse.net4j.util.CheckUtil; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsFactory; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +public class TCPClientConnectorBuilder +{ + + private int port = ITCPConnector.DEFAULT_PORT; + + private String host; + + private BufferProviderDef bufferProviderDef = Net4jDefsFactory.eINSTANCE.createBufferPoolDef(); + + private ExecutorServiceDef executorService = Net4jUtilDefsFactory.eINSTANCE.createThreadPoolDef(); + + private TCPSelectorDef tcpSelectorDef = Net4jDefsFactory.eINSTANCE.createTCPSelectorDef(); + + public TCPClientConnectorBuilder port(int port) + { + this.port = port; + return this; + } + + public TCPClientConnectorBuilder host(String host) + { + this.host = host; + return this; + } + + public TCPClientConnectorBuilder executorServiceDef(ThreadPoolDef threadPoolDef) + { + this.executorService = threadPoolDef; + return this; + } + + public TCPClientConnectorBuilder bufferDef(BufferPoolDef bufferPoolDef) + { + this.bufferProviderDef = bufferPoolDef; + return this; + } + + public TCPConnectorDef build() + { + TCPConnectorDef tcpClientConnectorDef = Net4jDefsFactory.eINSTANCE.createTCPConnectorDef(); + + CheckUtil.checkState(host != null, "host is not set!"); + tcpClientConnectorDef.setHost(host); + + tcpClientConnectorDef.setPort(port); + + tcpClientConnectorDef.setBufferProvider(bufferProviderDef); + tcpClientConnectorDef.setExecutorService(executorService); + tcpClientConnectorDef.setTcpSelectorDef(tcpSelectorDef); + + return tcpClientConnectorDef; + } +} diff --git a/plugins/org.eclipse.net4j.ui.defs/.classpath b/plugins/org.eclipse.net4j.ui.defs/.classpath new file mode 100644 index 0000000000..304e86186a --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.classpath @@ -0,0 +1,7 @@ +<?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.net4j.ui.defs/.cvsignore b/plugins/org.eclipse.net4j.ui.defs/.cvsignore new file mode 100644 index 0000000000..ba077a4031 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/plugins/org.eclipse.net4j.ui.defs/.project b/plugins/org.eclipse.net4j.ui.defs/.project new file mode 100644 index 0000000000..648d3a917f --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.net4j.ui.defs</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> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..7f656af821 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Thu Dec 11 18:24:34 CET 2008 +eclipse.preferences.version=1 +encoding//model/org.eclipse.net4j.ui.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..62c2dab4cc --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,258 @@ +#Mon Dec 15 16:14:00 CET 2008 +eclipse.preferences.version=1 +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=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=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=false +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.net4j.ui.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..92036134ef --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,4 @@ +#Mon Dec 15 16:14:00 CET 2008 +eclipse.preferences.version=1 +formatter_profile=_Unmanaged profile 'EMFT' mine +formatter_settings_version=11 diff --git a/plugins/org.eclipse.net4j.ui.defs/.settings/org.moreunit.prefs b/plugins/org.eclipse.net4j.ui.defs/.settings/org.moreunit.prefs new file mode 100644 index 0000000000..48c2caa909 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/.settings/org.moreunit.prefs @@ -0,0 +1,6 @@ +#Wed Dec 10 11:19:31 CET 2008 +eclipse.preferences.version=1 +org.moreunit.flexiblenaming=true +org.moreunit.prefixes= +org.moreunit.unitsourcefolder=org.eclipse.net4j.defs\:src\:org.eclipse.net4j.tests.defs\:src +org.moreunit.useprojectsettings=true diff --git a/plugins/org.eclipse.net4j.ui.defs/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.ui.defs/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..f5cb6142ac --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.net4j.ui.defs;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.cdo;visibility:=reexport, + org.eclipse.net4j.util.defs;bundle-version="1.0.0", + org.eclipse.net4j.defs;bundle-version="1.0.0", + org.eclipse.net4j.util.ui;bundle-version="2.0.0" +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.net4j.ui.defs/about.html b/plugins/org.eclipse.net4j.ui.defs/about.html new file mode 100644 index 0000000000..c5796baf03 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/about.html @@ -0,0 +1,29 @@ +<!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.net4j.ui.defs/build.properties b/plugins/org.eclipse.net4j.ui.defs/build.properties new file mode 100644 index 0000000000..8de8fa2c13 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/build.properties @@ -0,0 +1,23 @@ +# 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,\ + model/ +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.net4j.ui.defs/copyright.txt b/plugins/org.eclipse.net4j.ui.defs/copyright.txt new file mode 100644 index 0000000000..07978a5b95 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +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: + André Dietisheim - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.net4j.ui.defs/epl-v10.html b/plugins/org.eclipse.net4j.ui.defs/epl-v10.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/epl-v10.html @@ -0,0 +1,319 @@ +<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.net4j.ui.defs/license.html b/plugins/org.eclipse.net4j.ui.defs/license.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/license.html @@ -0,0 +1,319 @@ +<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.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecore b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecore new file mode 100644 index 0000000000..2375ef6bac --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecore @@ -0,0 +1,7 @@ +<?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="net4juidefs" + nsURI="http://www.eclipse.org/NET4J/ui/defs/1.0.0" nsPrefix="net4juidefs"> + <eClassifiers xsi:type="ecore:EClass" name="InteractiveCredentialsProviderDef" eSuperTypes="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> +</ecore:EPackage> diff --git a/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecorediag b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecorediag new file mode 100644 index 0000000000..1baf92a023 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.ecorediag @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram 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" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_lCfqoMeoEd28bMYta3MXHg" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_lDgXQMeoEd28bMYta3MXHg" type="1001"> + <children xmi:type="notation:Node" xmi:id="_lDkosMeoEd28bMYta3MXHg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_lDlPwMeoEd28bMYta3MXHg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_lDlPwceoEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_lDlPwseoEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_lDlPw8eoEd28bMYta3MXHg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_lDl20MeoEd28bMYta3MXHg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_lDl20ceoEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_lDl20seoEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_lDl208eoEd28bMYta3MXHg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_lDgXQceoEd28bMYta3MXHg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.ui.defs.ecore#//InteractiveCredentialsProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lDgXQseoEd28bMYta3MXHg" x="304" y="176"/> + </children> + <children xmi:type="notation:Node" xmi:id="_l50UMMeoEd28bMYta3MXHg" type="1001"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_l53-kMeoEd28bMYta3MXHg" source="Shortcut"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_l6GBAMeoEd28bMYta3MXHg" key="modelID" value="EcoreTools"/> + </eAnnotations> + <children xmi:type="notation:Node" xmi:id="_l51iUMeoEd28bMYta3MXHg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_l52JYMeoEd28bMYta3MXHg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_l52JYceoEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_l52JYseoEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_l52JY8eoEd28bMYta3MXHg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_l52wcMeoEd28bMYta3MXHg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_l52wcceoEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_l52wcseoEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_l52wc8eoEd28bMYta3MXHg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_l50UMceoEd28bMYta3MXHg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="platform:/resource/org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.ecore#//PasswordCredentialsProviderDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l507QMeoEd28bMYta3MXHg" x="32" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_WKx-wMfEEd28bMYta3MXHg" type="1001"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_WK0bAMfEEd28bMYta3MXHg" source="Shortcut"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_WK0bAcfEEd28bMYta3MXHg" key="modelID" value="EcoreTools"/> + </eAnnotations> + <children xmi:type="notation:Node" xmi:id="_WKzM4MfEEd28bMYta3MXHg" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_WKzM4cfEEd28bMYta3MXHg" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_WKzM4sfEEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_WKzM48fEEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_WKzM5MfEEd28bMYta3MXHg"/> + </children> + <children xmi:type="notation:Node" xmi:id="_WKzz8MfEEd28bMYta3MXHg" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_WKzz8cfEEd28bMYta3MXHg"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_WKzz8sfEEd28bMYta3MXHg"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_WKzz88fEEd28bMYta3MXHg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_WKx-wcfEEd28bMYta3MXHg" fontName="Sans" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="platform:/resource/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore#//Def"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_WKx-wsfEEd28bMYta3MXHg" x="320" y="32"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_lCfqoceoEd28bMYta3MXHg"/> + <element xmi:type="ecore:EPackage" href="org.eclipse.net4j.ui.defs.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_WLDrkMfEEd28bMYta3MXHg" type="3003" source="_lDgXQMeoEd28bMYta3MXHg" target="_WKx-wMfEEd28bMYta3MXHg"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_WLDrkcfEEd28bMYta3MXHg" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_WLDrksfEEd28bMYta3MXHg" fontName="Sans"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WLDrk8fEEd28bMYta3MXHg" points="[0, 0, 0, 60]$[0, -60, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WLS8IMfEEd28bMYta3MXHg" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WLTjMMfEEd28bMYta3MXHg" id="(0.49756098,1.0)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.genmodel b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.genmodel new file mode 100644 index 0000000000..803220cab6 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/model/org.eclipse.net4j.ui.defs.genmodel @@ -0,0 +1,11 @@ +<?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.net4j.ui.defs/src" + modelPluginID="org.eclipse.net4j.ui.defs" modelName="Org.eclipse.net4j.ui" importerID="org.eclipse.emf.importer.ecore" + complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel#//net4jutildefs ../../org.eclipse.net4j.defs/model/org.eclipse.net4j.defs.genmodel#//net4jdefs"> + <foreignModel>org.eclipse.net4j.ui.defs.ecore</foreignModel> + <genPackages prefix="Net4JUIDefs" basePackage="org.eclipse.net4j" disposableProviderFactory="true" + ecorePackage="org.eclipse.net4j.ui.defs.ecore#/"> + <genClasses ecoreClass="org.eclipse.net4j.ui.defs.ecore#//InteractiveCredentialsProviderDef"/> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.net4j.ui.defs/plugin.properties b/plugins/org.eclipse.net4j.ui.defs/plugin.properties new file mode 100644 index 0000000000..257a9e520a --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/plugin.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +# 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: +# André Dietisheim - 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 = Net4j Signalling Platform UI Definitions +providerName = Eclipse.org + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.net4j.ui.defs/plugin.xml b/plugins/org.eclipse.net4j.ui.defs/plugin.xml new file mode 100644 index 0000000000..c39adcb8d3 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/plugin.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id: plugin.xml,v 1.1 2008-12-28 18:07:29 estepper Exp $ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.eclipse.org/NET4J/util/defs/1.0.0" + class="org.eclipse.net4j.net4jdefs.Net4jDefsPackage" + genModel="model/org.eclipse.net4j.defs.genmodel"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/InteractiveCredentialsProviderDef.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/InteractiveCredentialsProviderDef.java new file mode 100644 index 0000000000..0ff09c0190 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/InteractiveCredentialsProviderDef.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: InteractiveCredentialsProviderDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs; + +import org.eclipse.net4j.util.net4jutildefs.Def; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Interactive Credentials Provider Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage#getInteractiveCredentialsProviderDef() + * @model + * @generated + */ +public interface InteractiveCredentialsProviderDef extends Def { +} // InteractiveCredentialsProviderDef diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsFactory.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsFactory.java new file mode 100644 index 0000000000..d91ed0526e --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsFactory.java @@ -0,0 +1,46 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage + * @generated + */ +public interface Net4JUIDefsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4JUIDefsFactory eINSTANCE = org.eclipse.net4j.net4juidefs.impl.Net4JUIDefsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Interactive Credentials Provider Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Interactive Credentials Provider Def</em>'. + * @generated + */ + InteractiveCredentialsProviderDef createInteractiveCredentialsProviderDef(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + Net4JUIDefsPackage getNet4JUIDefsPackage(); + +} //Net4JUIDefsFactory diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsPackage.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsPackage.java new file mode 100644 index 0000000000..78dc94d444 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/Net4JUIDefsPackage.java @@ -0,0 +1,126 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsPackage.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs; + +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsFactory + * @model kind="package" + * @generated + */ +public interface Net4JUIDefsPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "net4juidefs"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/NET4J/ui/defs/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "net4juidefs"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4JUIDefsPackage eINSTANCE = org.eclipse.net4j.net4juidefs.impl.Net4JUIDefsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.net4j.net4juidefs.impl.InteractiveCredentialsProviderDefImpl <em>Interactive Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.impl.InteractiveCredentialsProviderDefImpl + * @see org.eclipse.net4j.net4juidefs.impl.Net4JUIDefsPackageImpl#getInteractiveCredentialsProviderDef() + * @generated + */ + int INTERACTIVE_CREDENTIALS_PROVIDER_DEF = 0; + + /** + * The number of structural features of the '<em>Interactive Credentials Provider Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INTERACTIVE_CREDENTIALS_PROVIDER_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef <em>Interactive Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Interactive Credentials Provider Def</em>'. + * @see org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef + * @generated + */ + EClass getInteractiveCredentialsProviderDef(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + Net4JUIDefsFactory getNet4JUIDefsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.net4j.net4juidefs.impl.InteractiveCredentialsProviderDefImpl <em>Interactive Credentials Provider Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.impl.InteractiveCredentialsProviderDefImpl + * @see org.eclipse.net4j.net4juidefs.impl.Net4JUIDefsPackageImpl#getInteractiveCredentialsProviderDef() + * @generated + */ + EClass INTERACTIVE_CREDENTIALS_PROVIDER_DEF = eINSTANCE.getInteractiveCredentialsProviderDef(); + + } + +} //Net4JUIDefsPackage diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/InteractiveCredentialsProviderDefImpl.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/InteractiveCredentialsProviderDefImpl.java new file mode 100644 index 0000000000..f19372b32e --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/InteractiveCredentialsProviderDefImpl.java @@ -0,0 +1,52 @@ +/** + * <copyright> + * </copyright> + * + * $Id: InteractiveCredentialsProviderDefImpl.java,v 1.1 2008-12-28 18:07:30 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs.impl; + +import org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.impl.DefImpl; +import org.eclipse.net4j.util.security.IPasswordCredentials; +import org.eclipse.net4j.util.ui.security.InteractiveCredentialsProvider; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>Interactive Credentials Provider Def</b></em>'. <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class InteractiveCredentialsProviderDefImpl extends + DefImpl implements + InteractiveCredentialsProviderDef { + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + protected InteractiveCredentialsProviderDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4JUIDefsPackage.Literals.INTERACTIVE_CREDENTIALS_PROVIDER_DEF; + } + + @Override + protected Object createInstance() { + InteractiveCredentialsProvider interactivePasswordCredentialsProvider = new InteractiveCredentialsProvider(); + IPasswordCredentials credentials = interactivePasswordCredentialsProvider + .getCredentials(); + return interactivePasswordCredentialsProvider; + } +} // InteractiveCredentialsProviderDefImpl diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsFactoryImpl.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsFactoryImpl.java new file mode 100644 index 0000000000..89a0894c7e --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsFactoryImpl.java @@ -0,0 +1,99 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsFactoryImpl.java,v 1.1 2008-12-28 18:07:30 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs.impl; + +import org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsFactory; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4JUIDefsFactoryImpl extends EFactoryImpl implements Net4JUIDefsFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static Net4JUIDefsFactory init() { + try { + Net4JUIDefsFactory theNet4JUIDefsFactory = (Net4JUIDefsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/NET4J/ui/defs/1.0.0"); + if (theNet4JUIDefsFactory != null) { + return theNet4JUIDefsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new Net4JUIDefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4JUIDefsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case Net4JUIDefsPackage.INTERACTIVE_CREDENTIALS_PROVIDER_DEF: return createInteractiveCredentialsProviderDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InteractiveCredentialsProviderDef createInteractiveCredentialsProviderDef() { + InteractiveCredentialsProviderDefImpl interactiveCredentialsProviderDef = new InteractiveCredentialsProviderDefImpl(); + return interactiveCredentialsProviderDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4JUIDefsPackage getNet4JUIDefsPackage() { + return (Net4JUIDefsPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static Net4JUIDefsPackage getPackage() { + return Net4JUIDefsPackage.eINSTANCE; + } + +} //Net4JUIDefsFactoryImpl diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsPackageImpl.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsPackageImpl.java new file mode 100644 index 0000000000..858f8f9f78 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/impl/Net4JUIDefsPackageImpl.java @@ -0,0 +1,184 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsPackageImpl.java,v 1.1 2008-12-28 18:07:30 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs.impl; + +import org.eclipse.net4j.net4jdefs.Net4jDefsPackage; +import org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsFactory; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4JUIDefsPackageImpl extends EPackageImpl implements Net4JUIDefsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass interactiveCredentialsProviderDefEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage#eNS_URI + * @see #init() + * @generated + */ + private Net4JUIDefsPackageImpl() { + super(eNS_URI, Net4JUIDefsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static Net4JUIDefsPackage init() { + if (isInited) return (Net4JUIDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4JUIDefsPackage.eNS_URI); + + // Obtain or create and register package + Net4JUIDefsPackageImpl theNet4JUIDefsPackage = (Net4JUIDefsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Net4JUIDefsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Net4JUIDefsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + Net4jDefsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theNet4JUIDefsPackage.createPackageContents(); + + // Initialize created meta-data + theNet4JUIDefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNet4JUIDefsPackage.freeze(); + + return theNet4JUIDefsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getInteractiveCredentialsProviderDef() { + return interactiveCredentialsProviderDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4JUIDefsFactory getNet4JUIDefsFactory() { + return (Net4JUIDefsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + interactiveCredentialsProviderDefEClass = createEClass(INTERACTIVE_CREDENTIALS_PROVIDER_DEF); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jUtilDefsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + interactiveCredentialsProviderDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + + // Initialize classes and features; add operations and parameters + initEClass(interactiveCredentialsProviderDefEClass, InteractiveCredentialsProviderDef.class, "InteractiveCredentialsProviderDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //Net4JUIDefsPackageImpl diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsAdapterFactory.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsAdapterFactory.java new file mode 100644 index 0000000000..ad67ba46fa --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsAdapterFactory.java @@ -0,0 +1,142 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsAdapterFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs.util; + +import org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage + * @generated + */ +public class Net4JUIDefsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4JUIDefsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4JUIDefsAdapterFactory() { + if (modelPackage == null) { + modelPackage = Net4JUIDefsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Net4JUIDefsSwitch<Adapter> modelSwitch = + new Net4JUIDefsSwitch<Adapter>() { + @Override + public Adapter caseInteractiveCredentialsProviderDef(InteractiveCredentialsProviderDef object) { + return createInteractiveCredentialsProviderDefAdapter(); + } + @Override + public Adapter caseDef(Def object) { + return createDefAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef <em>Interactive Credentials Provider Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef + * @generated + */ + public Adapter createInteractiveCredentialsProviderDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + public Adapter createDefAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //Net4JUIDefsAdapterFactory diff --git a/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsSwitch.java b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsSwitch.java new file mode 100644 index 0000000000..0870011cb6 --- /dev/null +++ b/plugins/org.eclipse.net4j.ui.defs/src/org/eclipse/net4j/net4juidefs/util/Net4JUIDefsSwitch.java @@ -0,0 +1,148 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4JUIDefsSwitch.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.net4juidefs.util; + +import org.eclipse.net4j.net4juidefs.InteractiveCredentialsProviderDef; +import org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.Def; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.net4juidefs.Net4JUIDefsPackage + * @generated + */ +public class Net4JUIDefsSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4JUIDefsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4JUIDefsSwitch() { + if (modelPackage == null) { + modelPackage = Net4JUIDefsPackage.eINSTANCE; + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case Net4JUIDefsPackage.INTERACTIVE_CREDENTIALS_PROVIDER_DEF: { + InteractiveCredentialsProviderDef interactiveCredentialsProviderDef = (InteractiveCredentialsProviderDef)theEObject; + T result = caseInteractiveCredentialsProviderDef(interactiveCredentialsProviderDef); + if (result == null) result = caseDef(interactiveCredentialsProviderDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Interactive Credentials Provider Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Interactive Credentials Provider Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInteractiveCredentialsProviderDef(InteractiveCredentialsProviderDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDef(Def object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} //Net4JUIDefsSwitch diff --git a/plugins/org.eclipse.net4j.util.defs/.classpath b/plugins/org.eclipse.net4j.util.defs/.classpath new file mode 100644 index 0000000000..304e86186a --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.classpath @@ -0,0 +1,7 @@ +<?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.net4j.util.defs/.cvsignore b/plugins/org.eclipse.net4j.util.defs/.cvsignore new file mode 100644 index 0000000000..ba077a4031 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.cvsignore @@ -0,0 +1 @@ +bin diff --git a/plugins/org.eclipse.net4j.util.defs/.project b/plugins/org.eclipse.net4j.util.defs/.project new file mode 100644 index 0000000000..f42c0f19f4 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.net4j.util.defs</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> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..a303376b77 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Wed Nov 26 10:40:36 CET 2008 +eclipse.preferences.version=1 +encoding//model/org.eclipse.net4j.util.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..fa9592e2e1 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,266 @@ +#Mon Dec 15 16:14:06 CET 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.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=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=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=false +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.net4j.util.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..ea76f47ba5 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,112 @@ +#Mon Dec 15 16:14:05 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=false +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=false +cleanup.format_source_code=false +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_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +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=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_trailing_whitespaces=false +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=false +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=false +formatter_profile=_Unmanaged profile 'EMFT' mine +formatter_settings_version=11 +org.eclipse.jdt.ui.exception.name=ex +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.overrideannotation=true +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=false +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=false +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/plugins/org.eclipse.net4j.util.defs/.settings/org.moreunit.prefs b/plugins/org.eclipse.net4j.util.defs/.settings/org.moreunit.prefs new file mode 100644 index 0000000000..0548a8bc75 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/.settings/org.moreunit.prefs @@ -0,0 +1,6 @@ +#Tue Oct 14 15:59:28 CEST 2008 +eclipse.preferences.version=1 +org.moreunit.flexiblenaming=true +org.moreunit.prefixes= +org.moreunit.unitsourcefolder=org.eclipse.net4j.util.defs\:src\:org.eclipse.net4j.util.defs.tests\:src +org.moreunit.useprojectsettings=true diff --git a/plugins/org.eclipse.net4j.util.defs/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.util.defs/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..2c2902c8d1 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.net4j.util.defs;singleton:=true +Bundle-Version: 1.0.0 +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.net4j.util.net4jutildefs, + org.eclipse.net4j.util.net4jutildefs.impl, + org.eclipse.net4j.util.net4jutildefs.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.cdo;bundle-version="2.0.0" +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.net4j.util.defs/about.html b/plugins/org.eclipse.net4j.util.defs/about.html new file mode 100644 index 0000000000..c5796baf03 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/about.html @@ -0,0 +1,29 @@ +<!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.net4j.util.defs/build.properties b/plugins/org.eclipse.net4j.util.defs/build.properties new file mode 100644 index 0000000000..8de8fa2c13 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/build.properties @@ -0,0 +1,23 @@ +# 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,\ + model/ +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.net4j.util.defs/copyright.txt b/plugins/org.eclipse.net4j.util.defs/copyright.txt new file mode 100644 index 0000000000..07978a5b95 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2004 - 2008 André Dietisheim, Switzerland. +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: + André Dietisheim - initial API and implementation
\ No newline at end of file diff --git a/plugins/org.eclipse.net4j.util.defs/epl-v10.html b/plugins/org.eclipse.net4j.util.defs/epl-v10.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/epl-v10.html @@ -0,0 +1,319 @@ +<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.net4j.util.defs/license.html b/plugins/org.eclipse.net4j.util.defs/license.html new file mode 100644 index 0000000000..d7b88e9416 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/license.html @@ -0,0 +1,319 @@ +<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.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore new file mode 100644 index 0000000000..8690dbf769 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore @@ -0,0 +1,18 @@ +<?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="net4jutildefs" + nsURI="http://www.eclipse.org/NET4J/util/defs/1.0.0" nsPrefix="net4jutildefs"> + <eClassifiers xsi:type="ecore:EClass" name="DefsContainer"> + <eStructuralFeatures xsi:type="ecore:EReference" name="definitions" lowerBound="1" + upperBound="-1" eType="#//Def" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="defaultDefinition" eType="#//Def"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Def" abstract="true"> + <eOperations name="getInstance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/> + <eOperations name="unsetInstance"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ExecutorServiceDef" abstract="true" + eSuperTypes="#//Def"/> + <eClassifiers xsi:type="ecore:EClass" name="ThreadPoolDef" eSuperTypes="#//ExecutorServiceDef"/> +</ecore:EPackage> diff --git a/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecorediag b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecorediag new file mode 100644 index 0000000000..fc32908075 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecorediag @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram 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" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation" xmi:id="_R5E7MbueEd2h0phgI_C1DA" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_R7A04LueEd2h0phgI_C1DA" type="1001"> + <children xmi:type="notation:Node" xmi:id="_R7EfQLueEd2h0phgI_C1DA" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_R7FGULueEd2h0phgI_C1DA" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_R7FGUbueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_R7FGUrueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_R7FGU7ueEd2h0phgI_C1DA"/> + </children> + <children xmi:type="notation:Node" xmi:id="_R7FtYLueEd2h0phgI_C1DA" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_R7FtYbueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_R7FtYrueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_R7FtY7ueEd2h0phgI_C1DA"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_R7A04bueEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.util.defs.ecore#//DefsContainer"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R7A04rueEd2h0phgI_C1DA" x="760" y="44"/> + </children> + <children xmi:type="notation:Node" xmi:id="_R7FtZLueEd2h0phgI_C1DA" type="1001"> + <children xmi:type="notation:Node" xmi:id="_R7GUcLueEd2h0phgI_C1DA" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_R7GUcbueEd2h0phgI_C1DA" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_R7GUcrueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_R7GUc7ueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_R7GUdLueEd2h0phgI_C1DA"/> + </children> + <children xmi:type="notation:Node" xmi:id="_R7G7gLueEd2h0phgI_C1DA" type="5002"> + <children xmi:type="notation:Node" xmi:id="_R7G7hLueEd2h0phgI_C1DA" type="2002"> + <element xmi:type="ecore:EOperation" href="org.eclipse.net4j.util.defs.ecore#//Def/getInstance"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_R7G7hbueEd2h0phgI_C1DA"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_R7G7gbueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_R7G7grueEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_R7G7g7ueEd2h0phgI_C1DA"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_R7FtZbueEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.util.defs.ecore#//Def"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R7FtZrueEd2h0phgI_C1DA" x="352" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Nc51YLufEd2h0phgI_C1DA" type="1001"> + <children xmi:type="notation:Node" xmi:id="_Nc7DgLufEd2h0phgI_C1DA" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_Nc7DgbufEd2h0phgI_C1DA" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Nc7DgrufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Nc7Dg7ufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Nc7DhLufEd2h0phgI_C1DA"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Nc7qkLufEd2h0phgI_C1DA" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Nc7qkbufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Nc7qkrufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Nc7qk7ufEd2h0phgI_C1DA"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_Nc51YbufEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.util.defs.ecore#//ExecutorServiceDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Nc51YrufEd2h0phgI_C1DA" x="208" y="144"/> + </children> + <children xmi:type="notation:Node" xmi:id="_SgsfYLufEd2h0phgI_C1DA" type="1001"> + <children xmi:type="notation:Node" xmi:id="_SgtGcLufEd2h0phgI_C1DA" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_SgtGcbufEd2h0phgI_C1DA" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_SgtGcrufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_SgtGc7ufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_SgtGdLufEd2h0phgI_C1DA"/> + </children> + <children xmi:type="notation:Node" xmi:id="_SgttgLufEd2h0phgI_C1DA" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_SgttgbufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_SgttgrufEd2h0phgI_C1DA"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Sgttg7ufEd2h0phgI_C1DA"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_SgsfYbufEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10" fillColor="13761016" lineColor="0"/> + <element xmi:type="ecore:EClass" href="org.eclipse.net4j.util.defs.ecore#//ThreadPoolDef"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SgsfYrufEd2h0phgI_C1DA" x="224" y="240"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_R5E7MrueEd2h0phgI_C1DA"/> + <element xmi:type="ecore:EPackage" href="org.eclipse.net4j.util.defs.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_R7IwsLueEd2h0phgI_C1DA" type="3002" source="_R7A04LueEd2h0phgI_C1DA" target="_R7FtZLueEd2h0phgI_C1DA"> + <children xmi:type="notation:Node" xmi:id="_R7JXwLueEd2h0phgI_C1DA" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_R7JXwbueEd2h0phgI_C1DA" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_R7J-0LueEd2h0phgI_C1DA" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_R7J-0bueEd2h0phgI_C1DA" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_R7IwsbueEd2h0phgI_C1DA" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_R7IwsrueEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.util.defs.ecore#//DefsContainer/definitions"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_R7Iws7ueEd2h0phgI_C1DA" points="[0, 0, 1, 60]$[0, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_R8I2QLueEd2h0phgI_C1DA" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_R8JdULueEd2h0phgI_C1DA" id="(0.49726775,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_R7J-0rueEd2h0phgI_C1DA" type="3002" source="_R7A04LueEd2h0phgI_C1DA" target="_R7FtZLueEd2h0phgI_C1DA"> + <children xmi:type="notation:Node" xmi:id="_R7Kl4LueEd2h0phgI_C1DA" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_R7Kl4bueEd2h0phgI_C1DA" x="-38" y="29"/> + </children> + <children xmi:type="notation:Node" xmi:id="_R7Kl4rueEd2h0phgI_C1DA" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_R7Kl47ueEd2h0phgI_C1DA" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_R7J-07ueEd2h0phgI_C1DA" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_R7J-1LueEd2h0phgI_C1DA" fontName="UnDotum" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="org.eclipse.net4j.util.defs.ecore#//DefsContainer/defaultDefinition"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_R7J-1bueEd2h0phgI_C1DA" points="[0, 0, 1, 60]$[0, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_R8KEYLueEd2h0phgI_C1DA" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_R8KEYbueEd2h0phgI_C1DA" id="(0.49726775,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Qs4_cLufEd2h0phgI_C1DA" type="3003" source="_Nc51YLufEd2h0phgI_C1DA" target="_R7FtZLueEd2h0phgI_C1DA"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Qs4_cbufEd2h0phgI_C1DA" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Qs4_crufEd2h0phgI_C1DA" fontName="UnDotum"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Qs4_c7ufEd2h0phgI_C1DA" points="[0, 0, -142, 60]$[0, -30, -142, 30]$[143, -30, 1, 30]$[143, -60, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Y6_pULufEd2h0phgI_C1DA" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Qs60oLufEd2h0phgI_C1DA" id="(0.32786885,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_USOHYLufEd2h0phgI_C1DA" type="3003" source="_SgsfYLufEd2h0phgI_C1DA" target="_Nc51YLufEd2h0phgI_C1DA"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_USOHYbufEd2h0phgI_C1DA" routing="Tree" lineColor="0"/> + <styles xmi:type="notation:FontStyle" xmi:id="_USOHYrufEd2h0phgI_C1DA" fontName="UnDotum"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_USOHY7ufEd2h0phgI_C1DA" points="[0, 0, 0, 60]$[0, -60, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Y7GXALufEd2h0phgI_C1DA" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_USQjoLufEd2h0phgI_C1DA" id="(0.5,1.0)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel new file mode 100644 index 0000000000..1770182b76 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.net4j.util.defs/src" + modelPluginID="org.eclipse.net4j.util.defs" modelName="Org.eclipse.net4j.util" + importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"> + <foreignModel>org.eclipse.net4j.util.defs.ecore</foreignModel> + <genPackages prefix="Net4jUtilDefs" basePackage="org.eclipse.net4j.util" disposableProviderFactory="true" + ecorePackage="org.eclipse.net4j.util.defs.ecore#/"> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//DefsContainer"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference org.eclipse.net4j.util.defs.ecore#//DefsContainer/definitions"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference org.eclipse.net4j.util.defs.ecore#//DefsContainer/defaultDefinition"/> + </genClasses> + <genClasses image="false" ecoreClass="org.eclipse.net4j.util.defs.ecore#//Def"> + <genOperations ecoreOperation="org.eclipse.net4j.util.defs.ecore#//Def/getInstance"/> + </genClasses> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//BufferProviderDef"/> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//BufferPoolDef"/> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//ExecutorServiceDef"/> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//ThreadPoolDef"/> + <genClasses ecoreClass="org.eclipse.net4j.util.defs.ecore#//ProtocolProviderDef"/> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.net4j.util.defs/plugin.properties b/plugins/org.eclipse.net4j.util.defs/plugin.properties new file mode 100644 index 0000000000..f8804b9183 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/plugin.properties @@ -0,0 +1,25 @@ +# 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 = Net4j Signalling Platform Definitions Utils +providerName = Eclipse.org + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.net4j.util.defs/plugin.xml b/plugins/org.eclipse.net4j.util.defs/plugin.xml new file mode 100644 index 0000000000..72dabe7b6e --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/plugin.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id: plugin.xml,v 1.1 2008-12-28 18:07:28 estepper Exp $ +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri="http://www.eclipse.org/NET4J/util/defs/1.0.0" + class="org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage" + genModel="model/org.eclipse.net4j.util.defs.genmodel"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Def.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Def.java new file mode 100644 index 0000000000..354ca991ae --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Def.java @@ -0,0 +1,39 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Def.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getDef() + * @model abstract="true" + * @generated + */ +public interface Def extends EObject { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model kind="operation" + * @generated + */ + Object getInstance(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model + * @generated + */ + void unsetInstance(); + + public boolean isTouched(); +} // Def diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefException.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefException.java new file mode 100644 index 0000000000..3574259b79 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefException.java @@ -0,0 +1,18 @@ +package org.eclipse.net4j.util.net4jutildefs; + +public class DefException extends RuntimeException +{ + + private static final long serialVersionUID = 1L; + + public DefException(String message, Throwable cause) + { + super(message, cause); + } + + public DefException(Throwable cause) + { + super(cause); + } + +} diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefsContainer.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefsContainer.java new file mode 100644 index 0000000000..741c04c5c8 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefsContainer.java @@ -0,0 +1,72 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DefsContainer.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Defs Container</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefinitions <em>Definitions</em>}</li> + * <li>{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefaultDefinition <em>Default Definition</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getDefsContainer() + * @model + * @generated + */ +public interface DefsContainer extends EObject { + /** + * Returns the value of the '<em><b>Definitions</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.net4j.util.net4jutildefs.Def}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Definitions</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Definitions</em>' containment reference list. + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getDefsContainer_Definitions() + * @model containment="true" required="true" + * @generated + */ + EList<Def> getDefinitions(); + + /** + * Returns the value of the '<em><b>Default Definition</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Default Definition</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Default Definition</em>' reference. + * @see #setDefaultDefinition(Def) + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getDefsContainer_DefaultDefinition() + * @model + * @generated + */ + Def getDefaultDefinition(); + + /** + * Sets the value of the '{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefaultDefinition <em>Default Definition</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Default Definition</em>' reference. + * @see #getDefaultDefinition() + * @generated + */ + void setDefaultDefinition(Def value); + +} // DefsContainer diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ExecutorServiceDef.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ExecutorServiceDef.java new file mode 100644 index 0000000000..0ba08d23da --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ExecutorServiceDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ExecutorServiceDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Executor Service Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getExecutorServiceDef() + * @model abstract="true" + * @generated + */ +public interface ExecutorServiceDef extends Def { +} // ExecutorServiceDef diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsFactory.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsFactory.java new file mode 100644 index 0000000000..c6d285f085 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsFactory.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage + * @generated + */ +public interface Net4jUtilDefsFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4jUtilDefsFactory eINSTANCE = org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Defs Container</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Defs Container</em>'. + * @generated + */ + DefsContainer createDefsContainer(); + + /** + * Returns a new object of class '<em>Thread Pool Def</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Thread Pool Def</em>'. + * @generated + */ + ThreadPoolDef createThreadPoolDef(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + Net4jUtilDefsPackage getNet4jUtilDefsPackage(); + +} //Net4jUtilDefsFactory diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsPackage.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsPackage.java new file mode 100644 index 0000000000..1a3915864c --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsPackage.java @@ -0,0 +1,297 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsPackage.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsFactory + * @model kind="package" + * @generated + */ +public interface Net4jUtilDefsPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "net4jutildefs"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/NET4J/util/defs/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "net4jutildefs"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + Net4jUtilDefsPackage eINSTANCE = org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl <em>Defs Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getDefsContainer() + * @generated + */ + int DEFS_CONTAINER = 0; + + /** + * The feature id for the '<em><b>Definitions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DEFS_CONTAINER__DEFINITIONS = 0; + + /** + * The feature id for the '<em><b>Default Definition</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DEFS_CONTAINER__DEFAULT_DEFINITION = 1; + + /** + * The number of structural features of the '<em>Defs Container</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DEFS_CONTAINER_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.DefImpl <em>Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.DefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getDef() + * @generated + */ + int DEF = 1; + + /** + * The number of structural features of the '<em>Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DEF_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.ExecutorServiceDefImpl <em>Executor Service Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.ExecutorServiceDefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getExecutorServiceDef() + * @generated + */ + int EXECUTOR_SERVICE_DEF = 2; + + /** + * The number of structural features of the '<em>Executor Service Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EXECUTOR_SERVICE_DEF_FEATURE_COUNT = DEF_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.ThreadPoolDefImpl <em>Thread Pool Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.ThreadPoolDefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getThreadPoolDef() + * @generated + */ + int THREAD_POOL_DEF = 3; + + /** + * The number of structural features of the '<em>Thread Pool Def</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int THREAD_POOL_DEF_FEATURE_COUNT = EXECUTOR_SERVICE_DEF_FEATURE_COUNT + 0; + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer <em>Defs Container</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Defs Container</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.DefsContainer + * @generated + */ + EClass getDefsContainer(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefinitions <em>Definitions</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Definitions</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefinitions() + * @see #getDefsContainer() + * @generated + */ + EReference getDefsContainer_Definitions(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefaultDefinition <em>Default Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the reference '<em>Default Definition</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.DefsContainer#getDefaultDefinition() + * @see #getDefsContainer() + * @generated + */ + EReference getDefsContainer_DefaultDefinition(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Def</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + EClass getDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef <em>Executor Service Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Executor Service Def</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef + * @generated + */ + EClass getExecutorServiceDef(); + + /** + * Returns the meta object for class '{@link org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef <em>Thread Pool Def</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Thread Pool Def</em>'. + * @see org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef + * @generated + */ + EClass getThreadPoolDef(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + Net4jUtilDefsFactory getNet4jUtilDefsFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl <em>Defs Container</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getDefsContainer() + * @generated + */ + EClass DEFS_CONTAINER = eINSTANCE.getDefsContainer(); + + /** + * The meta object literal for the '<em><b>Definitions</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DEFS_CONTAINER__DEFINITIONS = eINSTANCE.getDefsContainer_Definitions(); + + /** + * The meta object literal for the '<em><b>Default Definition</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DEFS_CONTAINER__DEFAULT_DEFINITION = eINSTANCE.getDefsContainer_DefaultDefinition(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.DefImpl <em>Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.DefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getDef() + * @generated + */ + EClass DEF = eINSTANCE.getDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.ExecutorServiceDefImpl <em>Executor Service Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.ExecutorServiceDefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getExecutorServiceDef() + * @generated + */ + EClass EXECUTOR_SERVICE_DEF = eINSTANCE.getExecutorServiceDef(); + + /** + * The meta object literal for the '{@link org.eclipse.net4j.util.net4jutildefs.impl.ThreadPoolDefImpl <em>Thread Pool Def</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.impl.ThreadPoolDefImpl + * @see org.eclipse.net4j.util.net4jutildefs.impl.Net4jUtilDefsPackageImpl#getThreadPoolDef() + * @generated + */ + EClass THREAD_POOL_DEF = eINSTANCE.getThreadPoolDef(); + + } + +} //Net4jUtilDefsPackage diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ThreadPoolDef.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ThreadPoolDef.java new file mode 100644 index 0000000000..0fc07438ab --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ThreadPoolDef.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ThreadPoolDef.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Thread Pool Def</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#getThreadPoolDef() + * @model + * @generated + */ +public interface ThreadPoolDef extends ExecutorServiceDef { +} // ThreadPoolDef diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefImpl.java new file mode 100644 index 0000000000..04956d3e63 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefImpl.java @@ -0,0 +1,255 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DefImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.event.EventUtil; +import org.eclipse.net4j.util.event.IListener; +import org.eclipse.net4j.util.lifecycle.ILifecycle; +import org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter; +import org.eclipse.net4j.util.lifecycle.LifecycleUtil; +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.util.Net4jUtilDefsUtil; +import org.eclipse.net4j.util.net4jutildefs.util.Net4jUtilDefsUtil.IVisitor; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.impl.AdapterImpl; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import java.util.List; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Definition</b></em>'. <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class DefImpl extends EObjectImpl implements Def +{ + + /** The instance. */ + private Object instance; + + private boolean touched; + + protected IListener instanceListener = new LifecycleEventAdapter() + { + @Override + protected void onDeactivated(ILifecycle lifecycle) + { + if (lifecycle == instance) + { + handleDeactivation(instance); + } + } + }; + + /** + * this might be changed to a content adapter across non-containment references + * + * @see Recipe: Subclass EContentAdapter to receive notifications across non-containment references + * @see http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration + */ + /** adapter that tracks if this def was touched */ + protected Adapter touchedAdapter = new AdapterImpl() + { + + @Override + public void notifyChanged(Notification msg) + { + switch (msg.getEventType()) + { + case Notification.SET: + case Notification.UNSET: + case Notification.ADD: + case Notification.REMOVE: + touched = true; + } + } + }; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @generated + */ + protected DefImpl() + { + super(); + eAdapters().add(touchedAdapter); + } + + public Object getInternalInstance() + { + return instance; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc -->. + * + * @return the e class + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Net4jUtilDefsPackage.Literals.DEF; + } + + /** + * returns an instance that is created for the given definition. Instances are stored and reused. The instance is + * activated before it is returned. A later call to #getInstace + * + * @return the instance that this definition defines + * @see #createInstance() + * @see #wireInstance(Object) + * @see LifecycleUtil#activate(Object) + * @generated NOT + */ + public Object getInstance() + { + synchronized (this) + { + if (!isSetInstance()) + { + // instance is not created yet + setInstance(); + } + else if (isSetInstance() && isTouched()) + { + // instance is created but def settings were changed afterwards + unsetInstance(); + setInstance(); + } + touched = false; + return instance; + } + } + + private void setInstance() + { + validateDefinition(); + instance = createInstance(); + wireInstance(instance); + activateInstance(instance); + } + + protected void activateInstance(Object instance) + { + LifecycleUtil.activate(instance); + } + + protected void deactivateInstance() + { + LifecycleUtil.deactivate(instance); + } + + /** + * <!-- begin-user-doc -->Unsets the instance managed by this Definition. The internal reference to it is cleared and + * internal listeners to it are removed <!-- end-user-doc --> + * + * @generated NOT + */ + public void unsetInstance() + { + deactivateInstance(); + } + + /** + * Checks if the the instance in this <em>definition</em> is set. In other words, if the instance handled by this + * <em>defintion</em> is present + * + * @return <code>true</code>, if the instance in this definition is set + */ + public boolean isSetInstance() + { + return instance != null; + } + + /** + * Returns whether this definition (and all its nested, referenced defs) was touched since it created its internal + * instance. + * + * @return true, if this definition was touched since it created its internal instance + */ + public boolean isTouched() + { + IVisitor<EStructuralFeature> structuralFeaturesVisitor = new Net4jUtilDefsUtil.IVisitor<EStructuralFeature>() + { + public void visit(EStructuralFeature structuralFeature) + { + if (structuralFeature.getEType().eClass() == Net4jUtilDefsPackage.eINSTANCE.getDef().eClass()) + { + Object referencedObject = eGet(structuralFeature, true); + if (referencedObject != null) + { + if (structuralFeature.getUpperBound() != -1) + { + touched |= ((Def)referencedObject).isTouched(); + } + else + { + List referenceList = (List)referencedObject; + for (Object reference : referenceList) + { + touched |= ((Def)reference).isTouched(); + } + } + } + } + } + }; + + Net4jUtilDefsUtil.doForAllStructuralFeatures(structuralFeaturesVisitor, eClass().getEStructuralFeatures()); + return touched; + } + + protected void wireInstance(Object instance) + { + EventUtil.addListener(instance, instanceListener); + } + + protected void unwireInstance(Object instance) + { + EventUtil.removeListener(instance, instanceListener); + } + + protected void handleDeactivation(Object instance) + { + synchronized (this) + { + unwireInstance(instance); + this.instance = null; + } + } + + /** + * validates the present definition. Subclasses have to provide an implementation + * + * @throws IllegalStateException + */ + protected void validateDefinition() + { + } + + /** + * Creates a new instance. Subclasses have to provide an implementation + * + * @return a new instance + */ + /** + * Creates a new instance. Subclasses have to provide an implementation + * + * @return a new instance + */ + protected abstract Object createInstance(); + +} // DefinitionImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefsContainerImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefsContainerImpl.java new file mode 100644 index 0000000000..6dacb44613 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefsContainerImpl.java @@ -0,0 +1,214 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DefsContainerImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.DefsContainer; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Defs Container</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl#getDefinitions <em>Definitions</em>}</li> + * <li>{@link org.eclipse.net4j.util.net4jutildefs.impl.DefsContainerImpl#getDefaultDefinition <em>Default Definition</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DefsContainerImpl extends EObjectImpl implements DefsContainer { + /** + * The cached value of the '{@link #getDefinitions() <em>Definitions</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDefinitions() + * @generated + * @ordered + */ + protected EList<Def> definitions; + /** + * The cached value of the '{@link #getDefaultDefinition() <em>Default Definition</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDefaultDefinition() + * @generated + * @ordered + */ + protected Def defaultDefinition; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DefsContainerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jUtilDefsPackage.Literals.DEFS_CONTAINER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Def> getDefinitions() { + if (definitions == null) { + definitions = new EObjectContainmentEList<Def>(Def.class, this, Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS); + } + return definitions; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Def getDefaultDefinition() { + if (defaultDefinition != null && defaultDefinition.eIsProxy()) { + InternalEObject oldDefaultDefinition = (InternalEObject)defaultDefinition; + defaultDefinition = (Def)eResolveProxy(oldDefaultDefinition); + if (defaultDefinition != oldDefaultDefinition) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION, oldDefaultDefinition, defaultDefinition)); + } + } + return defaultDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Def basicGetDefaultDefinition() { + return defaultDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDefaultDefinition(Def newDefaultDefinition) { + Def oldDefaultDefinition = defaultDefinition; + defaultDefinition = newDefaultDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION, oldDefaultDefinition, defaultDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS: + return ((InternalEList<?>)getDefinitions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS: + return getDefinitions(); + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION: + if (resolve) return getDefaultDefinition(); + return basicGetDefaultDefinition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS: + getDefinitions().clear(); + getDefinitions().addAll((Collection<? extends Def>)newValue); + return; + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION: + setDefaultDefinition((Def)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS: + getDefinitions().clear(); + return; + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION: + setDefaultDefinition((Def)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFINITIONS: + return definitions != null && !definitions.isEmpty(); + case Net4jUtilDefsPackage.DEFS_CONTAINER__DEFAULT_DEFINITION: + return defaultDefinition != null; + } + return super.eIsSet(featureID); + } + +} //DefsContainerImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ExecutorServiceDefImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ExecutorServiceDefImpl.java new file mode 100644 index 0000000000..2b6e0c40cc --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ExecutorServiceDefImpl.java @@ -0,0 +1,43 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ExecutorServiceDefImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Executor Service Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class ExecutorServiceDefImpl extends DefImpl implements ExecutorServiceDef { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ExecutorServiceDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jUtilDefsPackage.Literals.EXECUTOR_SERVICE_DEF; + } + +} //ExecutorServiceDefImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsFactoryImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsFactoryImpl.java new file mode 100644 index 0000000000..3b4b103081 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsFactoryImpl.java @@ -0,0 +1,111 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsFactoryImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.net4jutildefs.DefsContainer; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsFactory; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4jUtilDefsFactoryImpl extends EFactoryImpl implements Net4jUtilDefsFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static Net4jUtilDefsFactory init() { + try { + Net4jUtilDefsFactory theNet4jUtilDefsFactory = (Net4jUtilDefsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/NET4J/util/defs/1.0.0"); + if (theNet4jUtilDefsFactory != null) { + return theNet4jUtilDefsFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new Net4jUtilDefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jUtilDefsFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case Net4jUtilDefsPackage.DEFS_CONTAINER: return createDefsContainer(); + case Net4jUtilDefsPackage.THREAD_POOL_DEF: return createThreadPoolDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DefsContainer createDefsContainer() { + DefsContainerImpl defsContainer = new DefsContainerImpl(); + return defsContainer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ThreadPoolDef createThreadPoolDef() { + ThreadPoolDefImpl threadPoolDef = new ThreadPoolDefImpl(); + return threadPoolDef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jUtilDefsPackage getNet4jUtilDefsPackage() { + return (Net4jUtilDefsPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static Net4jUtilDefsPackage getPackage() { + return Net4jUtilDefsPackage.eINSTANCE; + } + +} //Net4jUtilDefsFactoryImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsPackageImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsPackageImpl.java new file mode 100644 index 0000000000..8547a71bba --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsPackageImpl.java @@ -0,0 +1,267 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsPackageImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.DefsContainer; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsFactory; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Net4jUtilDefsPackageImpl extends EPackageImpl implements Net4jUtilDefsPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass defsContainerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass defEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass executorServiceDefEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass threadPoolDefEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage#eNS_URI + * @see #init() + * @generated + */ + private Net4jUtilDefsPackageImpl() { + super(eNS_URI, Net4jUtilDefsFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this + * model, and for any others upon which it depends. Simple + * dependencies are satisfied by calling this method on all + * dependent packages before doing anything else. This method drives + * initialization for interdependent packages directly, in parallel + * with this package, itself. + * <p>Of this package and its interdependencies, all packages which + * have not yet been registered by their URI values are first created + * and registered. The packages are then initialized in two steps: + * meta-model objects for all of the packages are created before any + * are initialized, since one package's meta-model objects may refer to + * those of another. + * <p>Invocation of this method will not affect any packages that have + * already been initialized. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static Net4jUtilDefsPackage init() { + if (isInited) return (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE.getEPackage(Net4jUtilDefsPackage.eNS_URI); + + // Obtain or create and register package + Net4jUtilDefsPackageImpl theNet4jUtilDefsPackage = (Net4jUtilDefsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Net4jUtilDefsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Net4jUtilDefsPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theNet4jUtilDefsPackage.createPackageContents(); + + // Initialize created meta-data + theNet4jUtilDefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNet4jUtilDefsPackage.freeze(); + + return theNet4jUtilDefsPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDefsContainer() { + return defsContainerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDefsContainer_Definitions() { + return (EReference)defsContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDefsContainer_DefaultDefinition() { + return (EReference)defsContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDef() { + return defEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getExecutorServiceDef() { + return executorServiceDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getThreadPoolDef() { + return threadPoolDefEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jUtilDefsFactory getNet4jUtilDefsFactory() { + return (Net4jUtilDefsFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + defsContainerEClass = createEClass(DEFS_CONTAINER); + createEReference(defsContainerEClass, DEFS_CONTAINER__DEFINITIONS); + createEReference(defsContainerEClass, DEFS_CONTAINER__DEFAULT_DEFINITION); + + defEClass = createEClass(DEF); + + executorServiceDefEClass = createEClass(EXECUTOR_SERVICE_DEF); + + threadPoolDefEClass = createEClass(THREAD_POOL_DEF); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + executorServiceDefEClass.getESuperTypes().add(this.getDef()); + threadPoolDefEClass.getESuperTypes().add(this.getExecutorServiceDef()); + + // Initialize classes and features; add operations and parameters + initEClass(defsContainerEClass, DefsContainer.class, "DefsContainer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDefsContainer_Definitions(), this.getDef(), null, "definitions", null, 1, -1, DefsContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDefsContainer_DefaultDefinition(), this.getDef(), null, "defaultDefinition", null, 0, 1, DefsContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(defEClass, Def.class, "Def", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + addEOperation(defEClass, ecorePackage.getEJavaObject(), "getInstance", 0, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(defEClass, null, "unsetInstance", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(executorServiceDefEClass, ExecutorServiceDef.class, "ExecutorServiceDef", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(threadPoolDefEClass, ThreadPoolDef.class, "ThreadPoolDef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //Net4jUtilDefsPackageImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ThreadPoolDefImpl.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ThreadPoolDefImpl.java new file mode 100644 index 0000000000..c15de7cefc --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ThreadPoolDefImpl.java @@ -0,0 +1,81 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ThreadPoolDefImpl.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.impl; + +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.ecore.EClass; + +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Thread Pool Def</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class ThreadPoolDefImpl extends ExecutorServiceDefImpl implements ThreadPoolDef { + + private static final String THREADGROUP_IDENTIFIER = "net4j"; + private ThreadGroup threadGroup; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ThreadPoolDefImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Net4jUtilDefsPackage.Literals.THREAD_POOL_DEF; + } + + /** + * Gets a executor service instance. The current implementation does not + * reuse an instance created in a former call TODO: reuse instances + * + * @return the instance + * + */ + @Override + protected Object createInstance() { + ExecutorService executorService = Executors + .newCachedThreadPool(new DaemonThreadFactory( + THREADGROUP_IDENTIFIER)); + return executorService; + } + + private static class DaemonThreadFactory implements ThreadFactory { + private ThreadGroup threadGroup; + + public DaemonThreadFactory(String threadGroupIdentifier) { + super(); + this.threadGroup = new ThreadGroup(threadGroupIdentifier); + } + + public Thread newThread(Runnable r) { + Thread thread = new Thread(threadGroup, r); + thread.setDaemon(true); + return thread; + } + } + +} //ThreadPoolDefImpl diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsAdapterFactory.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsAdapterFactory.java new file mode 100644 index 0000000000..ac1788c581 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsAdapterFactory.java @@ -0,0 +1,180 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsAdapterFactory.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.util; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.DefsContainer; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage + * @generated + */ +public class Net4jUtilDefsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4jUtilDefsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jUtilDefsAdapterFactory() { + if (modelPackage == null) { + modelPackage = Net4jUtilDefsPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Net4jUtilDefsSwitch<Adapter> modelSwitch = + new Net4jUtilDefsSwitch<Adapter>() { + @Override + public Adapter caseDefsContainer(DefsContainer object) { + return createDefsContainerAdapter(); + } + @Override + public Adapter caseDef(Def object) { + return createDefAdapter(); + } + @Override + public Adapter caseExecutorServiceDef(ExecutorServiceDef object) { + return createExecutorServiceDefAdapter(); + } + @Override + public Adapter caseThreadPoolDef(ThreadPoolDef object) { + return createThreadPoolDefAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.DefsContainer <em>Defs Container</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.DefsContainer + * @generated + */ + public Adapter createDefsContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.Def <em>Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.Def + * @generated + */ + public Adapter createDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef <em>Executor Service Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef + * @generated + */ + public Adapter createExecutorServiceDefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef <em>Thread Pool Def</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef + * @generated + */ + public Adapter createThreadPoolDefAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //Net4jUtilDefsAdapterFactory diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsSwitch.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsSwitch.java new file mode 100644 index 0000000000..878d5501cc --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsSwitch.java @@ -0,0 +1,200 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Net4jUtilDefsSwitch.java,v 1.1 2008-12-28 18:07:29 estepper Exp $ + */ +package org.eclipse.net4j.util.net4jutildefs.util; + +import org.eclipse.net4j.util.net4jutildefs.Def; +import org.eclipse.net4j.util.net4jutildefs.DefsContainer; +import org.eclipse.net4j.util.net4jutildefs.ExecutorServiceDef; +import org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage; +import org.eclipse.net4j.util.net4jutildefs.ThreadPoolDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.eclipse.net4j.util.net4jutildefs.Net4jUtilDefsPackage + * @generated + */ +public class Net4jUtilDefsSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static Net4jUtilDefsPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Net4jUtilDefsSwitch() { + if (modelPackage == null) { + modelPackage = Net4jUtilDefsPackage.eINSTANCE; + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + public T doSwitch(EObject theEObject) { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) { + if (theEClass.eContainer() == modelPackage) { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case Net4jUtilDefsPackage.DEFS_CONTAINER: { + DefsContainer defsContainer = (DefsContainer)theEObject; + T result = caseDefsContainer(defsContainer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jUtilDefsPackage.DEF: { + Def def = (Def)theEObject; + T result = caseDef(def); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jUtilDefsPackage.EXECUTOR_SERVICE_DEF: { + ExecutorServiceDef executorServiceDef = (ExecutorServiceDef)theEObject; + T result = caseExecutorServiceDef(executorServiceDef); + if (result == null) result = caseDef(executorServiceDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + case Net4jUtilDefsPackage.THREAD_POOL_DEF: { + ThreadPoolDef threadPoolDef = (ThreadPoolDef)theEObject; + T result = caseThreadPoolDef(threadPoolDef); + if (result == null) result = caseExecutorServiceDef(threadPoolDef); + if (result == null) result = caseDef(threadPoolDef); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Defs Container</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Defs Container</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDefsContainer(DefsContainer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDef(Def object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Executor Service Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Executor Service Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExecutorServiceDef(ExecutorServiceDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Thread Pool Def</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Thread Pool Def</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseThreadPoolDef(ThreadPoolDef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) { + return null; + } + +} //Net4jUtilDefsSwitch diff --git a/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsUtil.java b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsUtil.java new file mode 100644 index 0000000000..24504fc3a9 --- /dev/null +++ b/plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsUtil.java @@ -0,0 +1,157 @@ +package org.eclipse.net4j.util.net4jutildefs.util; + +import java.util.Collection; +import java.util.List; + +/** + * The Class Net4jUtilDefsUtil. + */ +public class Net4jUtilDefsUtil +{ + + /** + * Are equal. + * + * @param thisObject + * the this object + * @param thatObject + * the that object + * @return true, if successful + */ + public static boolean areEqual(Object thisObject, Object thatObject) + { + boolean areEqual = false; + if (thisObject == null && thatObject == null) + { + areEqual = true; + } + else if (thisObject != null && thisObject != null) + { + areEqual = thisObject.equals(thatObject); + } + return areEqual; + } + + /** + * Are equal. + * + * @param thisList + * the this list + * @param thatList + * the that list + * @return true, if successful + */ + public static boolean areEqual(List<?> thisList, List<?> thatList) + { + boolean areEqual = false; + if (thisList != null && thatList != null && thisList.size() == thatList.size()) + { + for (int i = 0; i < thisList.size(); i++) + { + if (!areEqual(thisList.get(i), thatList.get(i))) + { + areEqual = false; + break; + } + } + } + return areEqual; + } + + /** + * Do for all structural features. + * + * @param visitor + * the visitor + * @param structuralFeaturesList + * the structural features list + */ + public static <EStructuralFeature> void doForAllStructuralFeatures(IVisitor<EStructuralFeature> visitor, + Collection<EStructuralFeature> structuralFeatures) + { + new VisitorDelegator<EStructuralFeature>(structuralFeatures).visit(visitor); + } + + /** + * The Class VisitorDelegator. It visits all members of a Collection + */ + private static class VisitorDelegator<V> + { + + /** The visited list. */ + private Collection<V> visitedCollection; + + /** + * Instantiates a new visitor delegator. + * + * @param list + * the list + */ + private VisitorDelegator(Collection<V> collection) + { + this.visitedCollection = collection; + } + + /** + * Visit a member. + * + * @param visitor + * the visitor + */ + private void visit(IVisitor<V> visitor) + { + for (V visitedMember : visitedCollection) + { + visitor.visit(visitedMember); + } + } + + /** + * Visit a member and break the visits if the current visitor returns <code>flase</code>. + * + * @param visitor + * the visitor + */ + private void breakableVisit(IBreakingVisitor<V> visitor) + { + for (V visitedMember : visitedCollection) + { + if (!visitor.visit(visitedMember)) + { + break; + } + } + } + } + + /** + * The Interface IVisitor. + */ + public interface IVisitor<V> + { + + /** + * Visit. + * + * @param visitedMember + * the visited member + */ + public void visit(V visitedMember); + } + + /** + * The Interface IBreakingVisitor. + */ + public interface IBreakingVisitor<V> + { + + /** + * Visit. + * + * @param visitedMember + * the visited member + * @return true, if successful + */ + public boolean visit(V visitedMember); + } +} |