Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.net4j.util.defs')
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.classpath7
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.cvsignore1
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.project28
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.core.prefs266
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.settings/org.eclipse.jdt.ui.prefs112
-rw-r--r--plugins/org.eclipse.net4j.util.defs/.settings/org.moreunit.prefs6
-rw-r--r--plugins/org.eclipse.net4j.util.defs/META-INF/MANIFEST.MF16
-rw-r--r--plugins/org.eclipse.net4j.util.defs/about.html29
-rw-r--r--plugins/org.eclipse.net4j.util.defs/build.properties23
-rw-r--r--plugins/org.eclipse.net4j.util.defs/copyright.txt8
-rw-r--r--plugins/org.eclipse.net4j.util.defs/epl-v10.html319
-rw-r--r--plugins/org.eclipse.net4j.util.defs/license.html319
-rw-r--r--plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecore18
-rw-r--r--plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.ecorediag117
-rw-r--r--plugins/org.eclipse.net4j.util.defs/model/org.eclipse.net4j.util.defs.genmodel23
-rw-r--r--plugins/org.eclipse.net4j.util.defs/plugin.properties25
-rw-r--r--plugins/org.eclipse.net4j.util.defs/plugin.xml20
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Def.java39
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefException.java18
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/DefsContainer.java72
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ExecutorServiceDef.java21
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsFactory.java55
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/Net4jUtilDefsPackage.java297
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/ThreadPoolDef.java21
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefImpl.java255
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/DefsContainerImpl.java214
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ExecutorServiceDefImpl.java43
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsFactoryImpl.java111
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/Net4jUtilDefsPackageImpl.java267
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/impl/ThreadPoolDefImpl.java81
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsAdapterFactory.java180
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsSwitch.java200
-rw-r--r--plugins/org.eclipse.net4j.util.defs/src/org/eclipse/net4j/util/net4jutildefs/util/Net4jUtilDefsUtil.java157
34 files changed, 3371 insertions, 0 deletions
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 (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
+
diff --git a/plugins/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]-->&nbsp;<!--[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]-->&nbsp;<!--[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);
+ }
+}

Back to the top