Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.classpath7
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.project23
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs382
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.ui.prefs119
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.tasks.ui.prefs4
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.team.ui.prefs3
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.api.tools.prefs94
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.prefs31
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable1.launch33
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable2.launch33
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/META-INF/MANIFEST.MF12
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/about.html28
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/build.properties28
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table1.properties5
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table2.properties5
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/copyright.txt11
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/add.gifbin318 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_16.gifbin637 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_32.gifbin1192 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/cancel.pngbin4647 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/delete.gifbin351 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/down.pngbin2832 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/menucard.pngbin2151 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/order.pngbin4095 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/payment.pngbin3911 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/send.pngbin3354 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/service.pngbin5859 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/up.pngbin2935 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-1.pngbin25489 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-2.pngbin20823 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-3.pngbin32042 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-4.pngbin18500 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-5.pngbin16021 -> 0 bytes
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/plugin.xml34
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/ResourceManager.java522
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java513
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java87
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TablePerspective.java31
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java810
41 files changed, 0 insertions, 2821 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.classpath b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.classpath
deleted file mode 100644
index 64c5e31b7a..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.project b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.project
deleted file mode 100644
index 9473cb35e6..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.gastro.rcp.table</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>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index d52ecb07ed..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Mon Jul 04 12:58:02 CEST 2011
-eclipse.preferences.version=1
-encoding//model/org.eclipse.emf.cdo.defs.ecorediag=UTF-8
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b28293508e..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,382 +0,0 @@
-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.codeComplete.staticFinalFieldPrefixes=
-org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled
-org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH,LOW,LOW,LOW,LOW,LOW
-org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX,PERF,MEM,POLISH,@generated NOT,@ADDED
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=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=false
-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.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=2
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=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_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=true
-org.eclipse.jdt.core.formatter.join_wrapped_lines=true
-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_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 4343e2f963..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,119 +0,0 @@
-cleanup.add_default_serial_version_id=true
-cleanup.add_generated_serial_version_id=false
-cleanup.add_missing_annotations=true
-cleanup.add_missing_deprecated_annotations=true
-cleanup.add_missing_methods=false
-cleanup.add_missing_nls_tags=false
-cleanup.add_missing_override_annotations=true
-cleanup.add_missing_override_annotations_interface_methods=true
-cleanup.add_serial_version_id=true
-cleanup.always_use_blocks=true
-cleanup.always_use_parentheses_in_expressions=false
-cleanup.always_use_this_for_non_static_field_access=false
-cleanup.always_use_this_for_non_static_method_access=false
-cleanup.convert_to_enhanced_for_loop=false
-cleanup.correct_indentation=true
-cleanup.format_source_code=true
-cleanup.format_source_code_changes_only=false
-cleanup.make_local_variable_final=true
-cleanup.make_parameters_final=false
-cleanup.make_private_fields_final=true
-cleanup.make_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=true
-cleanup.qualify_static_field_accesses_with_declaring_class=false
-cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-cleanup.qualify_static_member_accesses_with_declaring_class=false
-cleanup.qualify_static_method_accesses_with_declaring_class=false
-cleanup.remove_private_constructors=true
-cleanup.remove_trailing_whitespaces=true
-cleanup.remove_trailing_whitespaces_all=true
-cleanup.remove_trailing_whitespaces_ignore_empty=false
-cleanup.remove_unnecessary_casts=true
-cleanup.remove_unnecessary_nls_tags=true
-cleanup.remove_unused_imports=true
-cleanup.remove_unused_local_variables=false
-cleanup.remove_unused_private_fields=true
-cleanup.remove_unused_private_members=false
-cleanup.remove_unused_private_methods=true
-cleanup.remove_unused_private_types=true
-cleanup.sort_members=false
-cleanup.sort_members_all=false
-cleanup.use_blocks=true
-cleanup.use_blocks_only_for_return_and_throw=false
-cleanup.use_parentheses_in_expressions=true
-cleanup.use_this_for_non_static_field_access=true
-cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-cleanup.use_this_for_non_static_method_access=true
-cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-cleanup_profile=_EMFT
-cleanup_settings_version=2
-eclipse.preferences.version=1
-editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
-formatter_profile=_EMFT
-formatter_settings_version=12
-org.eclipse.jdt.ui.exception.name=ex
-org.eclipse.jdt.ui.gettersetter.use.is=true
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java;
-org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.keywordthis=false
-org.eclipse.jdt.ui.ondemandthreshold=99
-org.eclipse.jdt.ui.overrideannotation=true
-org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
-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_missing_override_annotations_interface_methods=false
-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=true
-sp_cleanup.format_source_code=true
-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=false
-sp_cleanup.never_use_blocks=false
-sp_cleanup.never_use_parentheses_in_expressions=true
-sp_cleanup.on_save_use_additional_actions=true
-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=true
-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=true
-sp_cleanup.remove_unused_imports=true
-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=true
-sp_cleanup.use_blocks_only_for_return_and_throw=false
-sp_cleanup.use_parentheses_in_expressions=true
-sp_cleanup.use_this_for_non_static_field_access=true
-sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-sp_cleanup.use_this_for_non_static_method_access=true
-sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.ltk.core.refactoring.prefs
deleted file mode 100644
index 864e30fe5d..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.ltk.core.refactoring.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Feb 04 09:44:24 CET 2010
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.tasks.ui.prefs
deleted file mode 100644
index b050639a54..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.tasks.ui.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#Thu Feb 04 09:44:24 CET 2010
-eclipse.preferences.version=1
-project.repository.kind=bugzilla
-project.repository.url=https\://bugs.eclipse.org/bugs
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.team.ui.prefs
deleted file mode 100644
index 2f50f36c0c..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.mylyn.team.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Feb 04 09:44:24 CET 2010
-commit.comment.template=[${task.id}] ${task.description} \r\n${task.url}
-eclipse.preferences.version=1
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.api.tools.prefs
deleted file mode 100644
index f8d0a0660e..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.api.tools.prefs
+++ /dev/null
@@ -1,94 +0,0 @@
-#Thu Feb 04 09:44:24 CET 2010
-ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
-ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
-ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error
-API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error
-CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
-CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
-CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
-CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
-CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
-CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
-CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
-CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error
-CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error
-CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
-CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
-ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
-ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error
-ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error
-ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error
-ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-FIELD_ELEMENT_TYPE_ADDED_VALUE=Error
-FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error
-FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
-FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
-FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error
-FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error
-FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error
-FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error
-ILLEGAL_EXTEND=Warning
-ILLEGAL_IMPLEMENT=Warning
-ILLEGAL_INSTANTIATE=Warning
-ILLEGAL_OVERRIDE=Warning
-ILLEGAL_REFERENCE=Warning
-INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
-INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error
-INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
-INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error
-INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
-INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
-INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-INVALID_JAVADOC_TAG=Ignore
-INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore
-LEAK_EXTEND=Warning
-LEAK_FIELD_DECL=Warning
-LEAK_IMPLEMENT=Warning
-LEAK_METHOD_PARAM=Warning
-LEAK_METHOD_RETURN_TYPE=Warning
-METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
-METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
-METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
-METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
-METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
-METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
-METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
-METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
-TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
-TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
-TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
-TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
-TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
-TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
-UNUSED_PROBLEM_FILTERS=Ignore
-automatically_removed_unused_problem_filters=Disabled
-eclipse.preferences.version=1
-incompatible_api_component_version=Error
-incompatible_api_component_version_include_major_without_breaking_change=Disabled
-incompatible_api_component_version_include_minor_without_api_change=Disabled
-invalid_since_tag_version=Error
-malformed_since_tag=Error
-missing_since_tag=Error
-report_api_breakage_when_major_version_incremented=Disabled
-report_resolution_errors_api_component=Warning
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index c6b96bb45e..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,31 +0,0 @@
-#Thu Feb 04 09:44:24 CET 2010
-compilers.f.unresolved-features=1
-compilers.f.unresolved-plugins=1
-compilers.incompatible-environment=1
-compilers.p.build=1
-compilers.p.build.bin.includes=1
-compilers.p.build.java.compliance=1
-compilers.p.build.missing.output=2
-compilers.p.build.output.library=1
-compilers.p.build.source.library=1
-compilers.p.build.src.includes=1
-compilers.p.deprecated=1
-compilers.p.discouraged-class=1
-compilers.p.internal=1
-compilers.p.missing-packages=1
-compilers.p.missing-version-export-package=1
-compilers.p.missing-version-import-package=1
-compilers.p.missing-version-require-bundle=1
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=2
-compilers.p.unknown-attribute=1
-compilers.p.unknown-class=1
-compilers.p.unknown-element=1
-compilers.p.unknown-identifier=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.s.create-docs=false
-compilers.s.doc-folder=doc
-compilers.s.open-tags=1
-eclipse.preferences.version=1
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable1.launch b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable1.launch
deleted file mode 100644
index d96bff10ac..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable1.launch
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="true"/>
-<booleanAttribute key="automaticAdd" value="false"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="org.eclipse.emf.cdo,org.eclipse.emf.cdo.common,org.eclipse.net4j,org.eclipse.net4j.tcp,org.eclipse.net4j.util"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="false"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/GastroTable1"/>
-<booleanAttribute key="default" value="false"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../gastro.table1.rt"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}&#13;&#10;-debug&#13;&#10;-console&#13;&#10;-consolelog"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Ddebug=true&#13;&#10;-Dgastro.config=${workspace_loc:/org.gastro.rcp.table/config/table1.properties}&#13;&#10;-Dosgi.console.enable.builtin=true"/>
-<booleanAttribute key="pde.generated.config" value="false"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.gastro.rcp.product"/>
-<stringAttribute key="selectedPlugin" value="org.eclipse.net4j.util"/>
-<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,javax.servlet@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86_64@default:false,org.eclipse.equinox.security@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.nebula.widgets.gallery@default:default,org.eclipse.nebula.widgets.pshelf@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.eclipse.text@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:false,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default"/>
-<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default,org.gastro.business.edit@default:default,org.gastro.business@default:default,org.gastro.inventory.edit@default:default,org.gastro.inventory@default:default,org.gastro.rcp.table@default:default,org.gastro.rcp@default:default"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="true"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="true"/>
-<booleanAttribute key="useProduct" value="true"/>
-<booleanAttribute key="usefeatures" value="false"/>
-</launchConfiguration>
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable2.launch b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable2.launch
deleted file mode 100644
index 80c30774f4..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/GastroTable2.launch
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="true"/>
-<booleanAttribute key="automaticAdd" value="false"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="org.eclipse.emf.cdo,org.eclipse.emf.cdo.common,org.eclipse.net4j,org.eclipse.net4j.tcp,org.eclipse.net4j.util"/>
-<booleanAttribute key="clearConfig" value="false"/>
-<booleanAttribute key="clearws" value="false"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/GastroTable2"/>
-<booleanAttribute key="default" value="false"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../gastro.table2.rt"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}&#13;&#10;-debug&#13;&#10;-console&#13;&#10;-consolelog"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Ddebug=true&#13;&#10;-Dgastro.config=${workspace_loc:/org.gastro.rcp.table/config/table2.properties}&#13;&#10;-Dosgi.console.enable.builtin=true"/>
-<booleanAttribute key="pde.generated.config" value="false"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.gastro.rcp.product"/>
-<stringAttribute key="selectedPlugin" value="org.eclipse.net4j.util"/>
-<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,javax.servlet@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86_64@default:false,org.eclipse.equinox.security@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.nebula.widgets.gallery@default:default,org.eclipse.nebula.widgets.pshelf@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.eclipse.text@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:false,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default"/>
-<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default,org.gastro.business.edit@default:default,org.gastro.business@default:default,org.gastro.inventory.edit@default:default,org.gastro.inventory@default:default,org.gastro.rcp.table@default:default,org.gastro.rcp@default:default"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="true"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="true"/>
-<booleanAttribute key="useProduct" value="true"/>
-<booleanAttribute key="usefeatures" value="false"/>
-</launchConfiguration>
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/META-INF/MANIFEST.MF
deleted file mode 100644
index 9243810c53..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,12 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: CDO Electronic Restaurant Example RCP Table
-Bundle-SymbolicName: org.gastro.rcp.table; singleton:=true
-Bundle-Version: 4.0.200.qualifier
-Bundle-Activator: org.gastro.rcp.internal.table.Activator
-Require-Bundle: org.gastro.rcp;bundle-version="[4.0.0,5.0.0)";visibility:=reexport
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: Eclipse Modeling Project
-Export-Package: com.swtdesigner;version="4.0.200";x-internal:=true,
- org.gastro.rcp.internal.table;version="4.0.200";x-internal:=true
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/about.html b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/about.html
deleted file mode 100644
index d35d5aed64..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&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.emf.cdo.examples.installer/examples/gastro.rcp.table/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/build.properties
deleted file mode 100644
index a576d17d19..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/build.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Eike Stepper - initial API and implementation
-
-source.. = src/
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- icons/,\
- images/,\
- copyright.txt,\
- about.html,\
- config/,\
- GastroTable1.launch,\
- GastroTable2.launch
-src.includes = about.html,\
- copyright.txt,\
- config/,\
- GastroTable1.launch,\
- GastroTable2.launch
-
-generateSourceReferences = true
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table1.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table1.properties
deleted file mode 100644
index 3ba1c9ec71..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table1.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-perspective = table
-station = Tisch 1
-server = localhost:2036
-repository = gastro
-restaurant = eDine
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table2.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table2.properties
deleted file mode 100644
index 127d016216..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/config/table2.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-perspective = table
-station = Tisch 2
-server = localhost:2036
-repository = gastro
-restaurant = eDine
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/copyright.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/copyright.txt
deleted file mode 100644
index dfbc61810a..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/copyright.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Eclipse Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
-
-Contributors:
- Eike Stepper - initial API and implementation
-
-Initial Publication:
- Eclipse Magazin - http://www.eclipse-magazin.de \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/add.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/add.gif
deleted file mode 100644
index 252d7ebcb8..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/add.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_16.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_16.gif
deleted file mode 100644
index 05626b17d8..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_16.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_32.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_32.gif
deleted file mode 100644
index b432f88339..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/alt_window_32.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/cancel.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/cancel.png
deleted file mode 100644
index 8f47c56f1f..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/cancel.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/delete.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/delete.gif
deleted file mode 100644
index b6922ac11c..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/delete.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/down.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/down.png
deleted file mode 100644
index 9a2e36c09d..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/down.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/menucard.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/menucard.png
deleted file mode 100644
index a81523bd60..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/menucard.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/order.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/order.png
deleted file mode 100644
index 78a164736a..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/order.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/payment.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/payment.png
deleted file mode 100644
index 2880fca9a6..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/payment.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/send.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/send.png
deleted file mode 100644
index 809824625f..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/send.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/service.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/service.png
deleted file mode 100644
index d2b8073c76..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/service.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/up.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/up.png
deleted file mode 100644
index 96960bf2de..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/icons/up.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-1.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-1.png
deleted file mode 100644
index 7d6ab23c11..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-1.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-2.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-2.png
deleted file mode 100644
index 783f6275f4..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-2.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-3.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-3.png
deleted file mode 100644
index 537a8b494f..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-3.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-4.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-4.png
deleted file mode 100644
index a1f5f7fcf9..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-4.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-5.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-5.png
deleted file mode 100644
index 83e7fab3b2..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/images/meal-5.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/plugin.xml b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/plugin.xml
deleted file mode 100644
index 9d77327055..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/plugin.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<!--
- Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
-
- Contributors:
- Eike Stepper - initial API and implementation
--->
-
-<plugin>
-
- <extension
- point="org.eclipse.ui.perspectives">
- <perspective
- name="Table Perspective"
- class="org.gastro.rcp.internal.table.TablePerspective"
- id="org.gastro.rcp.table.perspective">
- </perspective>
- </extension>
-
- <extension
- point="org.eclipse.ui.views">
- <view
- name="Table View"
- class="org.gastro.rcp.internal.table.TableView"
- id="org.gastro.rcp.table.view">
- </view>
- </extension>
-
-</plugin>
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/ResourceManager.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
deleted file mode 100644
index 5c23fb04fd..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/ResourceManager.java
+++ /dev/null
@@ -1,522 +0,0 @@
-package com.swtdesigner;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jface.resource.CompositeImageDescriptor;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.graphics.Rectangle;
-
-import org.osgi.framework.Bundle;
-
-import java.io.File;
-import java.io.InputStream;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Method;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * Utility class for managing OS resources associated with SWT/JFace controls such as colors, fonts, images, etc. !!!
- * IMPORTANT !!! Application code must explicitly invoke the <code>dispose()</code> method to release the operating
- * system resources managed by cached objects when those objects and OS resources are no longer needed (e.g. on
- * application shutdown) This class may be freely distributed as part of any application or plugin.
- * <p>
- * Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
- * All Rights Reserved
- *
- * @author scheglov_ke
- * @author Dan Rubel
- */
-@SuppressWarnings({ "rawtypes", "unchecked" })
-public class ResourceManager extends SWTResourceManager
-{
- // //////////////////////////////////////////////////////////////////////////
- //
- // Image
- //
- // //////////////////////////////////////////////////////////////////////////
- private static Map/* <ImageDescriptor,Image> */m_descriptorImageMap = new HashMap();
-
- /**
- * Returns an {@link ImageDescriptor} stored in the file at the specified path relative to the specified class.
- *
- * @param clazz
- * the {@link Class} relative to which to find the image descriptor.
- * @param path
- * the path to the image file.
- * @return the {@link ImageDescriptor} stored in the file at the specified path.
- */
- public static ImageDescriptor getImageDescriptor(Class clazz, String path)
- {
- return ImageDescriptor.createFromFile(clazz, path);
- }
-
- /**
- * Returns an {@link ImageDescriptor} stored in the file at the specified path.
- *
- * @param path
- * the path to the image file.
- * @return the {@link ImageDescriptor} stored in the file at the specified path.
- */
- public static ImageDescriptor getImageDescriptor(String path)
- {
- try
- {
- return ImageDescriptor.createFromURL(new File(path).toURI().toURL());
- }
- catch (MalformedURLException e)
- {
- return null;
- }
- }
-
- /**
- * Returns an {@link Image} based on the specified {@link ImageDescriptor}.
- *
- * @param descriptor
- * the {@link ImageDescriptor} for the {@link Image}.
- * @return the {@link Image} based on the specified {@link ImageDescriptor}.
- */
- public static Image getImage(ImageDescriptor descriptor)
- {
- if (descriptor == null)
- {
- return null;
- }
-
- Image image = (Image)m_descriptorImageMap.get(descriptor);
- if (image == null)
- {
- image = descriptor.createImage();
- m_descriptorImageMap.put(descriptor, image);
- }
-
- return image;
- }
-
- /**
- * Maps images to decorated images.
- */
- private static Map[]/* <Image,Map<Image,Image>> */m_decoratedImageMap = new Map[LAST_CORNER_KEY];
-
- /**
- * Returns an {@link Image} composed of a base image decorated by another image.
- *
- * @param baseImage
- * the base {@link Image} that should be decorated.
- * @param decorator
- * the {@link Image} to decorate the base image.
- * @return {@link Image} The resulting decorated image.
- */
- public static Image decorateImage(Image baseImage, Image decorator)
- {
- return decorateImage(baseImage, decorator, BOTTOM_RIGHT);
- }
-
- /**
- * Returns an {@link Image} composed of a base image decorated by another image.
- *
- * @param baseImage
- * the base {@link Image} that should be decorated.
- * @param decorator
- * the {@link Image} to decorate the base image.
- * @param corner
- * the corner to place decorator image.
- * @return the resulting decorated {@link Image}.
- */
- public static Image decorateImage(final Image baseImage, final Image decorator, final int corner)
- {
- if (corner <= 0 || corner >= LAST_CORNER_KEY)
- {
- throw new IllegalArgumentException("Wrong decorate corner");
- }
-
- Map cornerDecoratedImageMap = m_decoratedImageMap[corner];
- if (cornerDecoratedImageMap == null)
- {
- cornerDecoratedImageMap = new HashMap();
- m_decoratedImageMap[corner] = cornerDecoratedImageMap;
- }
-
- Map decoratedMap = (Map)cornerDecoratedImageMap.get(baseImage);
- if (decoratedMap == null)
- {
- decoratedMap = new HashMap();
- cornerDecoratedImageMap.put(baseImage, decoratedMap);
- }
-
- Image result = (Image)decoratedMap.get(decorator);
- if (result == null)
- {
- final Rectangle bib = baseImage.getBounds();
- final Rectangle dib = decorator.getBounds();
- final Point baseImageSize = new Point(bib.width, bib.height);
- CompositeImageDescriptor compositImageDesc = new CompositeImageDescriptor()
- {
- @Override
- protected void drawCompositeImage(int width, int height)
- {
- drawImage(baseImage.getImageData(), 0, 0);
- if (corner == TOP_LEFT)
- {
- drawImage(decorator.getImageData(), 0, 0);
- }
- else if (corner == TOP_RIGHT)
- {
- drawImage(decorator.getImageData(), bib.width - dib.width, 0);
- }
- else if (corner == BOTTOM_LEFT)
- {
- drawImage(decorator.getImageData(), 0, bib.height - dib.height);
- }
- else if (corner == BOTTOM_RIGHT)
- {
- drawImage(decorator.getImageData(), bib.width - dib.width, bib.height - dib.height);
- }
- }
-
- @Override
- protected Point getSize()
- {
- return baseImageSize;
- }
- };
-
- result = compositImageDesc.createImage();
- decoratedMap.put(decorator, result);
- }
-
- return result;
- }
-
- /**
- * Dispose all of the cached images.
- */
- public static void disposeImages()
- {
- SWTResourceManager.disposeImages();
- // dispose ImageDescriptor images
-
- {
- for (Iterator I = m_descriptorImageMap.values().iterator(); I.hasNext();)
- {
- ((Image)I.next()).dispose();
- }
-
- m_descriptorImageMap.clear();
- }
-
- // dispose decorated images
- for (int i = 0; i < m_decoratedImageMap.length; i++)
- {
- Map cornerDecoratedImageMap = m_decoratedImageMap[i];
- if (cornerDecoratedImageMap != null)
- {
- for (Iterator I = cornerDecoratedImageMap.values().iterator(); I.hasNext();)
- {
- Map decoratedMap = (Map)I.next();
- for (Iterator J = decoratedMap.values().iterator(); J.hasNext();)
- {
- Image image = (Image)J.next();
- image.dispose();
- }
-
- decoratedMap.clear();
- }
-
- cornerDecoratedImageMap.clear();
- }
- }
-
- // dispose plugin images
- {
- for (Iterator I = m_URLImageMap.values().iterator(); I.hasNext();)
- {
- ((Image)I.next()).dispose();
- }
-
- m_URLImageMap.clear();
- }
- }
-
- // //////////////////////////////////////////////////////////////////////////
- //
- // Plugin images support
- //
- // //////////////////////////////////////////////////////////////////////////
- /**
- * Maps URL to images.
- */
- private static Map/* <URL,Image> */m_URLImageMap = new HashMap();
-
- /**
- * Provider for plugin resources, used by WindowBuilder at design time.
- */
- public interface PluginResourceProvider
- {
- URL getEntry(String symbolicName, String path);
- }
-
- /**
- * Instance of {@link PluginResourceProvider}, used by WindowBuilder at design time.
- */
- private static PluginResourceProvider m_designTimePluginResourceProvider;
-
- /**
- * Returns an {@link Image} based on a plugin and file path.
- *
- * @param plugin
- * the plugin {@link Object} containing the image
- * @param name
- * the path to the image within the plugin
- * @return the {@link Image} stored in the file at the specified path
- * @deprecated Use {@link #getPluginImage(String, String)} instead.
- */
- @Deprecated
- public static Image getPluginImage(Object plugin, String name)
- {
- try
- {
- URL url = getPluginImageURL(plugin, name);
- if (url != null)
- {
- return getPluginImageFromUrl(url);
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- return null;
- }
-
- /**
- * Returns an {@link Image} based on a {@link Bundle} and resource entry path.
- *
- * @param symbolicName
- * the symbolic name of the {@link Bundle}.
- * @param path
- * the path of the resource entry.
- * @return the {@link Image} stored in the file at the specified path.
- */
- public static Image getPluginImage(String symbolicName, String path)
- {
- try
- {
- URL url = getPluginImageURL(symbolicName, path);
- if (url != null)
- {
- return getPluginImageFromUrl(url);
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- return null;
- }
-
- /**
- * Returns an {@link Image} based on given {@link URL}.
- */
- private static Image getPluginImageFromUrl(URL url)
- {
- try
- {
- try
- {
- if (m_URLImageMap.containsKey(url))
- {
- return (Image)m_URLImageMap.get(url);
- }
-
- InputStream stream = url.openStream();
- Image image;
-
- try
- {
- image = getImage(stream);
- m_URLImageMap.put(url, image);
- }
- finally
- {
- stream.close();
- }
-
- return image;
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- return null;
- }
-
- /**
- * Returns an {@link ImageDescriptor} based on a plugin and file path.
- *
- * @param plugin
- * the plugin {@link Object} containing the image.
- * @param name
- * the path to th eimage within the plugin.
- * @return the {@link ImageDescriptor} stored in the file at the specified path.
- * @deprecated Use {@link #getPluginImageDescriptor(String, String)} instead.
- */
- @Deprecated
- public static ImageDescriptor getPluginImageDescriptor(Object plugin, String name)
- {
- try
- {
- try
- {
- URL url = getPluginImageURL(plugin, name);
- return ImageDescriptor.createFromURL(url);
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- return null;
- }
-
- /**
- * Returns an {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
- *
- * @param symbolicName
- * the symbolic name of the {@link Bundle}.
- * @param path
- * the path of the resource entry.
- * @return the {@link ImageDescriptor} based on a {@link Bundle} and resource entry path.
- */
- public static ImageDescriptor getPluginImageDescriptor(String symbolicName, String path)
- {
- try
- {
- URL url = getPluginImageURL(symbolicName, path);
- if (url != null)
- {
- return ImageDescriptor.createFromURL(url);
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- return null;
- }
-
- /**
- * Returns an {@link URL} based on a {@link Bundle} and resource entry path.
- */
- private static URL getPluginImageURL(String symbolicName, String path)
- {
- // try runtime plugins
- {
- Bundle bundle = Platform.getBundle(symbolicName);
- if (bundle != null)
- {
- return bundle.getEntry(path);
- }
- }
-
- // try design time provider
- if (m_designTimePluginResourceProvider != null)
- {
- return m_designTimePluginResourceProvider.getEntry(symbolicName, path);
- }
-
- // no such resource
- return null;
- }
-
- /**
- * Returns an {@link URL} based on a plugin and file path.
- *
- * @param plugin
- * the plugin {@link Object} containing the file path.
- * @param name
- * the file path.
- * @return the {@link URL} representing the file at the specified path.
- * @throws Exception
- */
- private static URL getPluginImageURL(Object plugin, String name) throws Exception
- {
- // try to work with 'plugin' as with OSGI BundleContext
- try
- {
- Class BundleClass = Class.forName("org.osgi.framework.Bundle"); //$NON-NLS-1$
- Class BundleContextClass = Class.forName("org.osgi.framework.BundleContext"); //$NON-NLS-1$
- if (BundleContextClass.isAssignableFrom(plugin.getClass()))
- {
- Method getBundleMethod = BundleContextClass.getMethod("getBundle", new Class[0]); //$NON-NLS-1$
- Object bundle = getBundleMethod.invoke(plugin, new Object[0]);
-
- Class PathClass = Class.forName("org.eclipse.core.runtime.Path"); //$NON-NLS-1$
- Constructor pathConstructor = PathClass.getConstructor(new Class[] { String.class });
- Object path = pathConstructor.newInstance(new Object[] { name });
-
- Class IPathClass = Class.forName("org.eclipse.core.runtime.IPath"); //$NON-NLS-1$
- Class PlatformClass = Class.forName("org.eclipse.core.runtime.Platform"); //$NON-NLS-1$
- Method findMethod = PlatformClass.getMethod("find", new Class[] { BundleClass, IPathClass }); //$NON-NLS-1$
- return (URL)findMethod.invoke(null, new Object[] { bundle, path });
- }
- }
- catch (Throwable e)
- {
- // Ignore any exceptions
- }
-
- // else work with 'plugin' as with usual Eclipse plugin
-
- {
- Class PluginClass = Class.forName("org.eclipse.core.runtime.Plugin"); //$NON-NLS-1$
- if (PluginClass.isAssignableFrom(plugin.getClass()))
- {
- Class PathClass = Class.forName("org.eclipse.core.runtime.Path"); //$NON-NLS-1$
- Constructor pathConstructor = PathClass.getConstructor(new Class[] { String.class });
- Object path = pathConstructor.newInstance(new Object[] { name });
-
- Class IPathClass = Class.forName("org.eclipse.core.runtime.IPath"); //$NON-NLS-1$
- Method findMethod = PluginClass.getMethod("find", new Class[] { IPathClass }); //$NON-NLS-1$
- return (URL)findMethod.invoke(plugin, new Object[] { path });
- }
- }
-
- return null;
- }
-
- // //////////////////////////////////////////////////////////////////////////
- //
- // General
- //
- // //////////////////////////////////////////////////////////////////////////
- /**
- * Dispose of cached objects and their underlying OS resources. This should only be called when the cached objects are
- * no longer needed (e.g. on application shutdown).
- */
- public static void dispose()
- {
- disposeColors();
- disposeFonts();
- disposeImages();
- }
-}
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java
deleted file mode 100644
index d00071980f..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/com/swtdesigner/SWTResourceManager.java
+++ /dev/null
@@ -1,513 +0,0 @@
-package com.swtdesigner;
-
-import org.eclipse.net4j.util.io.IOUtil;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.ImageData;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.graphics.Rectangle;
-import org.eclipse.swt.widgets.Display;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * Utility class for managing OS resources associated with SWT controls such as colors, fonts, images, etc.
- * <p>
- * !!! IMPORTANT !!! Application code must explicitly invoke the <code>dispose()</code> method to release the operating
- * system resources managed by cached objects when those objects and OS resources are no longer needed (e.g. on
- * application shutdown)
- * <p>
- * This class may be freely distributed as part of any application or plugin.
- * <p>
- * Copyright (c) 2003 - 2007, Instantiations, Inc. <br>
- * All Rights Reserved
- *
- * @author scheglov_ke
- * @author Dan Rubel
- */
-@SuppressWarnings({ "rawtypes", "unchecked" })
-public class SWTResourceManager
-{
- // //////////////////////////////////////////////////////////////////////////
- //
- // Color
- //
- // //////////////////////////////////////////////////////////////////////////
- private static Map/* <RGB,Color> */m_colorMap = new HashMap();
-
- /**
- * Returns the system {@link Color} matching the specific ID.
- *
- * @param systemColorID
- * the ID value for the color
- * @return the system {@link Color} matching the specific ID
- */
- public static Color getColor(int systemColorID)
- {
- Display display = Display.getCurrent();
- return display.getSystemColor(systemColorID);
- }
-
- /**
- * Returns a {@link Color} given its red, green and blue component values.
- *
- * @param r
- * the red component of the color
- * @param g
- * the green component of the color
- * @param b
- * the blue component of the color
- * @return the {@link Color} matching the given red, green and blue component values
- */
- public static Color getColor(int r, int g, int b)
- {
- return getColor(new RGB(r, g, b));
- }
-
- /**
- * Returns a {@link Color} given its RGB value.
- *
- * @param rgb
- * the {@link RGB} value of the color
- * @return the {@link Color} matching the RGB value
- */
- public static Color getColor(RGB rgb)
- {
- Color color = (Color)m_colorMap.get(rgb);
- if (color == null)
- {
- Display display = Display.getCurrent();
- color = new Color(display, rgb);
- m_colorMap.put(rgb, color);
- }
-
- return color;
- }
-
- /**
- * Dispose of all the cached {@link Color}'s.
- */
- public static void disposeColors()
- {
- for (Iterator I = m_colorMap.values().iterator(); I.hasNext();)
- {
- ((Color)I.next()).dispose();
- }
-
- m_colorMap.clear();
- }
-
- // //////////////////////////////////////////////////////////////////////////
- //
- // Image
- //
- // //////////////////////////////////////////////////////////////////////////
- /**
- * Maps image paths to images.
- */
- private static Map/* <String,Image> */m_imageMap = new HashMap();
-
- /**
- * Returns an {@link Image} encoded by the specified {@link InputStream}.
- *
- * @param stream
- * the {@link InputStream} encoding the image data
- * @return the {@link Image} encoded by the specified input stream
- */
- protected static Image getImage(InputStream stream) throws IOException
- {
- try
- {
- Display display = Display.getCurrent();
- ImageData data = new ImageData(stream);
- if (data.transparentPixel > 0)
- {
- return new Image(display, data, data.getTransparencyMask());
- }
-
- return new Image(display, data);
- }
- finally
- {
- stream.close();
- }
- }
-
- /**
- * Returns an {@link Image} stored in the file at the specified path.
- *
- * @param path
- * the path to the image file
- * @return the {@link Image} stored in the file at the specified path
- */
- public static Image getImage(String path)
- {
- Image image = (Image)m_imageMap.get(path);
- if (image == null)
- {
- try
- {
- image = getImage(new FileInputStream(path));
- m_imageMap.put(path, image);
- }
- catch (Exception e)
- {
- image = getMissingImage();
- m_imageMap.put(path, image);
- }
- }
-
- return image;
- }
-
- /**
- * Returns an {@link Image} stored in the file at the specified path relative to the specified class.
- *
- * @param clazz
- * the {@link Class} relative to which to find the image
- * @param path
- * the path to the image file, if starts with <code>'/'</code>
- * @return the {@link Image} stored in the file at the specified path
- */
- public static Image getImage(Class clazz, String path)
- {
- String key = clazz.getName() + '|' + path;
- Image image = (Image)m_imageMap.get(key);
- if (image == null)
- {
- try
- {
- image = getImage(clazz.getResourceAsStream(path));
- m_imageMap.put(key, image);
- }
- catch (Exception e)
- {
- image = getMissingImage();
- m_imageMap.put(key, image);
- }
- }
-
- return image;
- }
-
- private static final int MISSING_IMAGE_SIZE = 10;
-
- /**
- * @return the small {@link Image} that can be used as placeholder for missing image.
- */
- private static Image getMissingImage()
- {
- Image image = new Image(Display.getCurrent(), MISSING_IMAGE_SIZE, MISSING_IMAGE_SIZE);
-
- GC gc = new GC(image);
- gc.setBackground(getColor(SWT.COLOR_RED));
- gc.fillRectangle(0, 0, MISSING_IMAGE_SIZE, MISSING_IMAGE_SIZE);
- gc.dispose();
-
- return image;
- }
-
- /**
- * Style constant for placing decorator image in top left corner of base image.
- */
- public static final int TOP_LEFT = 1;
-
- /**
- * Style constant for placing decorator image in top right corner of base image.
- */
- public static final int TOP_RIGHT = 2;
-
- /**
- * Style constant for placing decorator image in bottom left corner of base image.
- */
- public static final int BOTTOM_LEFT = 3;
-
- /**
- * Style constant for placing decorator image in bottom right corner of base image.
- */
- public static final int BOTTOM_RIGHT = 4;
-
- /**
- * Internal value.
- */
- protected static final int LAST_CORNER_KEY = 5;
-
- /**
- * Maps images to decorated images.
- */
- private static Map[]/* <Image,Map<Image,Image>> */m_decoratedImageMap = new Map[LAST_CORNER_KEY];
-
- /**
- * Returns an {@link Image} composed of a base image decorated by another image.
- *
- * @param baseImage
- * the base {@link Image} that should be decorated
- * @param decorator
- * the {@link Image} to decorate the base image
- * @return {@link Image} The resulting decorated image
- */
- public static Image decorateImage(Image baseImage, Image decorator)
- {
- return decorateImage(baseImage, decorator, BOTTOM_RIGHT);
- }
-
- /**
- * Returns an {@link Image} composed of a base image decorated by another image.
- *
- * @param baseImage
- * the base {@link Image} that should be decorated
- * @param decorator
- * the {@link Image} to decorate the base image
- * @param corner
- * the corner to place decorator image
- * @return the resulting decorated {@link Image}
- */
- public static Image decorateImage(final Image baseImage, final Image decorator, final int corner)
- {
- if (corner <= 0 || corner >= LAST_CORNER_KEY)
- {
- throw new IllegalArgumentException("Wrong decorate corner");
- }
-
- Map cornerDecoratedImageMap = m_decoratedImageMap[corner];
- if (cornerDecoratedImageMap == null)
- {
- cornerDecoratedImageMap = new HashMap();
- m_decoratedImageMap[corner] = cornerDecoratedImageMap;
- }
-
- Map decoratedMap = (Map)cornerDecoratedImageMap.get(baseImage);
- if (decoratedMap == null)
- {
- decoratedMap = new HashMap();
- cornerDecoratedImageMap.put(baseImage, decoratedMap);
- }
-
- Image result = (Image)decoratedMap.get(decorator);
- if (result == null)
- {
- Rectangle bib = baseImage.getBounds();
- Rectangle dib = decorator.getBounds();
-
- result = new Image(Display.getCurrent(), bib.width, bib.height);
-
- GC gc = new GC(result);
- gc.drawImage(baseImage, 0, 0);
- if (corner == TOP_LEFT)
- {
- gc.drawImage(decorator, 0, 0);
- }
- else if (corner == TOP_RIGHT)
- {
- gc.drawImage(decorator, bib.width - dib.width, 0);
- }
- else if (corner == BOTTOM_LEFT)
- {
- gc.drawImage(decorator, 0, bib.height - dib.height);
- }
- else if (corner == BOTTOM_RIGHT)
- {
- gc.drawImage(decorator, bib.width - dib.width, bib.height - dib.height);
- }
-
- gc.dispose();
-
- decoratedMap.put(decorator, result);
- }
-
- return result;
- }
-
- /**
- * Dispose all of the cached {@link Image}'s.
- */
- public static void disposeImages()
- {
- // dispose loaded images
-
- {
- for (Iterator I = m_imageMap.values().iterator(); I.hasNext();)
- {
- ((Image)I.next()).dispose();
- }
-
- m_imageMap.clear();
- }
-
- // dispose decorated images
- for (int i = 0; i < m_decoratedImageMap.length; i++)
- {
- Map cornerDecoratedImageMap = m_decoratedImageMap[i];
- if (cornerDecoratedImageMap != null)
- {
- for (Iterator I = cornerDecoratedImageMap.values().iterator(); I.hasNext();)
- {
- Map decoratedMap = (Map)I.next();
- for (Iterator J = decoratedMap.values().iterator(); J.hasNext();)
- {
- Image image = (Image)J.next();
- image.dispose();
- }
-
- decoratedMap.clear();
- }
-
- cornerDecoratedImageMap.clear();
- }
- }
- }
-
- // //////////////////////////////////////////////////////////////////////////
- //
- // Font
- //
- // //////////////////////////////////////////////////////////////////////////
- /**
- * Maps font names to fonts.
- */
- private static Map/* <String,Font> */m_fontMap = new HashMap();
-
- /**
- * Maps fonts to their bold versions.
- */
- private static Map/* <Font,Font> */m_fontToBoldFontMap = new HashMap();
-
- /**
- * Returns a {@link Font} based on its name, height and style.
- *
- * @param name
- * the name of the font
- * @param height
- * the height of the font
- * @param style
- * the style of the font
- * @return {@link Font} The font matching the name, height and style
- */
- public static Font getFont(String name, int height, int style)
- {
- return getFont(name, height, style, false, false);
- }
-
- /**
- * Returns a {@link Font} based on its name, height and style. Windows-specific strikeout and underline flags are also
- * supported.
- *
- * @param name
- * the name of the font
- * @param size
- * the size of the font
- * @param style
- * the style of the font
- * @param strikeout
- * the strikeout flag (warning: Windows only)
- * @param underline
- * the underline flag (warning: Windows only)
- * @return {@link Font} The font matching the name, height, style, strikeout and underline
- */
- public static Font getFont(String name, int size, int style, boolean strikeout, boolean underline)
- {
- String fontName = name + '|' + size + '|' + style + '|' + strikeout + '|' + underline;
- Font font = (Font)m_fontMap.get(fontName);
- if (font == null)
- {
- FontData fontData = new FontData(name, size, style);
- if (strikeout || underline)
- {
- try
- {
- Class logFontClass = Class.forName("org.eclipse.swt.internal.win32.LOGFONT"); //$NON-NLS-1$
- Object logFont = FontData.class.getField("data").get(fontData); //$NON-NLS-1$
- if (logFont != null && logFontClass != null)
- {
- if (strikeout)
- {
- logFontClass.getField("lfStrikeOut").set(logFont, new Byte((byte)1)); //$NON-NLS-1$
- }
-
- if (underline)
- {
- logFontClass.getField("lfUnderline").set(logFont, new Byte((byte)1)); //$NON-NLS-1$
- }
- }
- }
- catch (Throwable e)
- {
- IOUtil.ERR().println("Unable to set underline or strikeout" + " (probably on a non-Windows platform). " + e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- font = new Font(Display.getCurrent(), fontData);
- m_fontMap.put(fontName, font);
- }
-
- return font;
- }
-
- /**
- * Returns a bold version of the given {@link Font}.
- *
- * @param baseFont
- * the {@link Font} for which a bold version is desired
- * @return the bold version of the given {@link Font}
- */
- public static Font getBoldFont(Font baseFont)
- {
- Font font = (Font)m_fontToBoldFontMap.get(baseFont);
- if (font == null)
- {
- FontData fontDatas[] = baseFont.getFontData();
- FontData data = fontDatas[0];
- font = new Font(Display.getCurrent(), data.getName(), data.getHeight(), SWT.BOLD);
- m_fontToBoldFontMap.put(baseFont, font);
- }
-
- return font;
- }
-
- /**
- * Dispose all of the cached {@link Font}'s.
- */
- public static void disposeFonts()
- {
- // clear fonts
- for (Iterator iter = m_fontMap.values().iterator(); iter.hasNext();)
- {
- ((Font)iter.next()).dispose();
- }
-
- m_fontMap.clear();
- // clear bold fonts
- for (Iterator iter = m_fontToBoldFontMap.values().iterator(); iter.hasNext();)
- {
- ((Font)iter.next()).dispose();
- }
-
- m_fontToBoldFontMap.clear();
- }
-
- // //////////////////////////////////////////////////////////////////////////
- //
- // General
- //
- // //////////////////////////////////////////////////////////////////////////
- /**
- * Dispose of cached objects and their underlying OS resources. This should only be called when the cached objects are
- * no longer needed (e.g. on application shutdown).
- */
- public static void dispose()
- {
- disposeColors();
- disposeImages();
- disposeFonts();
- }
-}
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java
deleted file mode 100644
index 2bdd989413..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/Activator.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- *
- * Initial Publication:
- * Eclipse Magazin - http://www.eclipse-magazin.de
- */
-package org.gastro.rcp.internal.table;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-import com.swtdesigner.ResourceManager;
-
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- *
- * @author Eike Stepper
- */
-public class Activator extends AbstractUIPlugin
-{
- // The plug-in ID
- public static final String PLUGIN_ID = "org.gastro.rcp.table";
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator()
- {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception
- {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception
- {
- ResourceManager.dispose();
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault()
- {
- return plugin;
- }
-
- /**
- * Returns an image descriptor for the image file at the given plug-in relative path
- *
- * @param path
- * the path
- * @return the image descriptor
- */
- public static ImageDescriptor getImageDescriptor(String path)
- {
- return imageDescriptorFromPlugin(PLUGIN_ID, path);
- }
-}
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TablePerspective.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TablePerspective.java
deleted file mode 100644
index 897eac1b70..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TablePerspective.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- *
- * Initial Publication:
- * Eclipse Magazin - http://www.eclipse-magazin.de
- */
-package org.gastro.rcp.internal.table;
-
-import org.eclipse.ui.IPageLayout;
-import org.eclipse.ui.IPerspectiveFactory;
-
-/**
- * @author Eike Stepper
- */
-public class TablePerspective implements IPerspectiveFactory
-{
- public void createInitialLayout(IPageLayout layout)
- {
- String editorArea = layout.getEditorArea();
- layout.setEditorAreaVisible(false);
- layout.setFixed(true);
- layout.addStandaloneView(TableView.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
- }
-}
diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java
deleted file mode 100644
index 9b179c3a47..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/gastro.rcp.table/src/org/gastro/rcp/internal/table/TableView.java
+++ /dev/null
@@ -1,810 +0,0 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- *
- * Initial Publication:
- * Eclipse Magazin - http://www.eclipse-magazin.de
- */
-package org.gastro.rcp.internal.table;
-
-import org.eclipse.net4j.util.StringUtil;
-import org.eclipse.net4j.util.ref.ReferenceValueMap;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.impl.AdapterImpl;
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
-
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.nebula.widgets.pshelf.PShelf;
-import org.eclipse.nebula.widgets.pshelf.PShelfItem;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.part.ViewPart;
-
-import com.swtdesigner.ResourceManager;
-import com.swtdesigner.SWTResourceManager;
-
-import org.gastro.business.BusinessDay;
-import org.gastro.business.BusinessFactory;
-import org.gastro.business.Order;
-import org.gastro.business.OrderDetail;
-import org.gastro.inventory.MenuCard;
-import org.gastro.inventory.Offering;
-import org.gastro.inventory.Section;
-import org.gastro.rcp.IModel;
-import org.gastro.rcp.IModel.ITransactionalOperation;
-
-import java.text.NumberFormat;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * @author Eike Stepper
- */
-public class TableView extends ViewPart
-{
- public static final String ID = "org.gastro.rcp.table.view";
-
- private static final AdapterFactory FACTORY = IModel.INSTANCE.getAdapterFactory();
-
- private static final Map<String, String> fakeImages = new ReferenceValueMap.Soft<String, String>();
-
- private static int fakeImageID;
-
- private TreeViewer menuViewer;
-
- private Label menuTitle;
-
- private Label menuDescription;
-
- private Label menuImage;
-
- private Label menuPrice;
-
- private Label quantity;
-
- private Button buttonDelete;
-
- private Button buttonAdd;
-
- private EObject currentItem;
-
- private Adapter currentItemAdapter = new AdapterImpl()
- {
- @Override
- public void notifyChanged(Notification msg)
- {
- try
- {
- menuViewer.getTree().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- try
- {
- showMenuCard();
- }
- catch (Exception ex)
- {
- }
- }
- });
- }
- catch (Exception ex)
- {
- }
- }
- };
-
- private Order order;
-
- private OrderDetail orderDetail;
-
- private Adapter businessDayAdapter = new AdapterImpl()
- {
- @Override
- public void notifyChanged(Notification msg)
- {
- try
- {
- menuViewer.getTree().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- try
- {
- menuViewer.setInput(IModel.INSTANCE.getBusinessDay().getMenuCard());
- }
- catch (Exception ex)
- {
- }
- }
- });
- }
- catch (Exception ex)
- {
- }
- }
- };
-
- private TableViewer orderViewer;
-
- public TableView()
- {
- }
-
- /**
- * Passing the focus request to the viewer's control.
- */
- @Override
- public void setFocus()
- {
- // Do nothing
- }
-
- @Override
- public void dispose()
- {
- IModel.INSTANCE.getBusinessDay().eAdapters().remove(businessDayAdapter);
- if (currentItem != null)
- {
- currentItem.eAdapters().remove(currentItemAdapter);
- }
-
- super.dispose();
- }
-
- /**
- * This is a callback that will allow us to create the viewer and initialize it.
- */
- @Override
- public void createPartControl(Composite parent)
- {
- BusinessDay businessDay = IModel.INSTANCE.getBusinessDay();
- businessDay.eAdapters().add(businessDayAdapter);
-
- parent.setLayout(new FillLayout(SWT.VERTICAL));
- {
- PShelf shelf = new PShelf(parent, SWT.NONE);
- shelf.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_SELECTION));
- shelf.setBackground(SWTResourceManager.getColor(SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));
- shelf.setFont(SWTResourceManager.getFont("Comic Sans MS", 24, SWT.BOLD));
- shelf.setRenderer(new org.eclipse.nebula.widgets.pshelf.RedmondShelfRenderer());
- {
- PShelfItem shelfItem = new PShelfItem(shelf, SWT.NONE);
- GridLayout gridLayout = new GridLayout(3, false);
- gridLayout.horizontalSpacing = 0;
- gridLayout.marginHeight = 0;
- gridLayout.verticalSpacing = 0;
- gridLayout.marginWidth = 0;
- shelfItem.getBody().setLayout(gridLayout);
- {
- menuViewer = new TreeViewer(shelfItem.getBody(), SWT.NONE);
- menuViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- EObject item = (EObject)((IStructuredSelection)event.getSelection()).getFirstElement();
- if (item != currentItem)
- {
- if (currentItem != null)
- {
- currentItem.eAdapters().remove(currentItemAdapter);
- }
-
- if (item != null)
- {
- item.eAdapters().add(currentItemAdapter);
- }
-
- currentItem = item;
- showMenuCard();
- }
- }
- });
-
- menuViewer.setContentProvider(new AdapterFactoryContentProvider(FACTORY));
- menuViewer.setLabelProvider(new AdapterFactoryLabelProvider(FACTORY)
- {
- @Override
- public Image getImage(Object object)
- {
- return null;
- }
- });
-
- menuViewer.setInput(businessDay.getMenuCard());
-
- Tree tree = menuViewer.getTree();
- tree.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- tree.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- {
- GridData gridData = new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1);
- gridData.widthHint = 300;
- tree.setLayoutData(gridData);
- }
- }
-
- {
- Composite composite = new Composite(shelfItem.getBody(), SWT.NONE);
- composite.setLayout(new GridLayout(1, false));
- composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
- {
- menuTitle = new Label(composite, SWT.NONE);
- menuTitle.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- menuTitle.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- menuTitle.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- menuTitle.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
- menuTitle.setText("Titel");
- }
-
- {
- Label label = new Label(composite, SWT.SEPARATOR);
- {
- GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
- gridData.heightHint = 2;
- label.setLayoutData(gridData);
- }
- }
-
- {
- menuDescription = new Label(composite, SWT.WRAP);
- menuDescription.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- menuDescription.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- menuDescription.setText("Beschreibung");
- menuDescription.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
- menuDescription.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- }
-
- {
- Composite composite_1 = new Composite(composite, SWT.NONE);
- composite_1.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, false, 1, 1));
- composite_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- GridLayout gridLayout_1 = new GridLayout(2, false);
- gridLayout_1.marginWidth = 0;
- gridLayout_1.marginHeight = 0;
- composite_1.setLayout(gridLayout_1);
- {
- menuImage = new Label(composite_1, SWT.NONE);
- menuImage.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));
- menuImage.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- menuImage.setText("Bild");
- menuImage.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- menuImage.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- }
-
- {
- menuPrice = new Label(composite_1, SWT.NONE);
- menuPrice.setLayoutData(new GridData(SWT.LEFT, SWT.BOTTOM, true, false, 1, 1));
- menuPrice.setAlignment(SWT.RIGHT);
- menuPrice.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- menuPrice.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- menuPrice.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
- menuPrice.setText("Preis");
- }
- }
- }
-
- {
- Composite composite = new Composite(shelfItem.getBody(), SWT.NONE);
- composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
- GridLayout gridLayout_1 = new GridLayout(1, false);
- gridLayout_1.marginHeight = 0;
- gridLayout_1.marginWidth = 0;
- composite.setLayout(gridLayout_1);
- composite.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1));
- {
- Button buttonPrev = new Button(composite, SWT.NONE);
- buttonPrev.setToolTipText("Voriger Eintrag");
- buttonPrev.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- prevMenu();
- }
- });
-
- buttonPrev.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/up.png"));
- }
-
- {
- Label label = new Label(composite, SWT.NONE);
- label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1));
- }
-
- {
- quantity = new Label(composite, SWT.NONE);
- quantity.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- quantity.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
- quantity.setAlignment(SWT.CENTER);
- quantity.setFont(SWTResourceManager.getFont("Comic Sans MS", 32, SWT.BOLD));
- quantity.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, false, 1, 1));
- quantity.setText("0");
- }
-
- {
- Composite composite_1 = new Composite(composite, SWT.NONE);
- composite_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
- composite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
- FillLayout fillLayout = new FillLayout(SWT.HORIZONTAL);
- fillLayout.spacing = 5;
- composite_1.setLayout(fillLayout);
- {
- buttonDelete = new Button(composite_1, SWT.NONE);
- buttonDelete.setToolTipText("Weniger bestellen");
- buttonDelete.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- deleteOrder();
- }
- });
-
- buttonDelete.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/delete.gif"));
- }
-
- {
- buttonAdd = new Button(composite_1, SWT.NONE);
- buttonAdd.setToolTipText("Mehr bestellen");
- buttonAdd.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/add.gif"));
- buttonAdd.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- addOrder();
- }
- });
- }
- }
-
- {
- Label label = new Label(composite, SWT.NONE);
- label.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1));
- }
-
- {
- Button buttonNext = new Button(composite, SWT.NONE);
- buttonNext.setToolTipText("N\u00E4chster Eintrag");
- buttonNext.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- nextMenu();
- }
- });
-
- buttonNext.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/down.png"));
- }
- }
-
- shelfItem.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/menucard.png"));
- shelfItem.setText(" Speisen und Getr\u00E4nke");
- }
-
- {
- PShelfItem shelfItem = new PShelfItem(shelf, SWT.NONE);
- GridLayout gridLayout = new GridLayout(2, false);
- gridLayout.horizontalSpacing = 0;
- gridLayout.verticalSpacing = 0;
- gridLayout.marginWidth = 0;
- gridLayout.marginHeight = 0;
- shelfItem.getBody().setLayout(gridLayout);
- {
- orderViewer = new TableViewer(shelfItem.getBody(), SWT.HIDE_SELECTION);
-
- Table table = orderViewer.getTable();
- table.setLinesVisible(true);
- table.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
- table.setFont(SWTResourceManager.getFont("Comic Sans MS", 16, SWT.BOLD));
- {
- GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
- gridData.widthHint = 300;
- table.setLayoutData(gridData);
- }
-
- {
- TableViewerColumn tableViewerColumn = new TableViewerColumn(orderViewer, SWT.NONE);
- TableColumn tblclmnQuantity = tableViewerColumn.getColumn();
- tblclmnQuantity.setResizable(false);
- tblclmnQuantity.setAlignment(SWT.RIGHT);
- tblclmnQuantity.setWidth(70);
- tblclmnQuantity.setText("Quantity");
- }
-
- {
- TableViewerColumn tableViewerColumn = new TableViewerColumn(orderViewer, SWT.NONE);
- TableColumn tblclmnOffering = tableViewerColumn.getColumn();
- tblclmnOffering.setWidth(410);
- tblclmnOffering.setText("Offering");
- }
-
- {
- TableViewerColumn tableViewerColumn = new TableViewerColumn(orderViewer, SWT.NONE);
- TableColumn tblclmnPrice = tableViewerColumn.getColumn();
- tblclmnPrice.setResizable(false);
- tblclmnPrice.setAlignment(SWT.RIGHT);
- tblclmnPrice.setWidth(100);
- tblclmnPrice.setText("Price");
- }
-
- {
- TableViewerColumn tableViewerColumn = new TableViewerColumn(orderViewer, SWT.NONE);
- TableColumn tblclmnSum = tableViewerColumn.getColumn();
- tblclmnSum.setResizable(false);
- tblclmnSum.setAlignment(SWT.RIGHT);
- tblclmnSum.setWidth(117);
- tblclmnSum.setText("Sum");
- }
-
- orderViewer.setContentProvider(new AdapterFactoryContentProvider(FACTORY));
- orderViewer.setLabelProvider(new AdapterFactoryLabelProvider(FACTORY)
- {
- @Override
- public String getColumnText(Object object, int columnIndex)
- {
- switch (columnIndex)
- {
- case 0:
- return "" + ((OrderDetail)object).getQuantity() + "x";
- case 1:
- return ((OrderDetail)object).getOffering().getName();
- case 2:
- return formatPrice(((OrderDetail)object).getOffering().getPrice());
- case 3:
- return formatPrice(((OrderDetail)object).getPrice());
-
- default:
- return super.getColumnText(object, columnIndex);
- }
- }
-
- @Override
- public Image getColumnImage(Object object, int columnIndex)
- {
- return null;
- }
- });
- }
-
- {
- Composite composite = new Composite(shelfItem.getBody(), SWT.NONE);
- composite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
- composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));
- GridLayout gridLayout_1 = new GridLayout(1, false);
- gridLayout_1.marginHeight = 0;
- gridLayout_1.marginWidth = 0;
- composite.setLayout(gridLayout_1);
- composite.setBounds(0, 0, 64, 64);
- {
- Button buttonCancel = new Button(composite, SWT.NONE);
- buttonCancel.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- cancelOrder();
- }
- });
-
- buttonCancel.setToolTipText("Bestellung abbrechen");
- buttonCancel.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/cancel.png"));
- }
-
- {
- Label labelTotalPrice = new Label(composite, SWT.NONE);
- labelTotalPrice.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
- labelTotalPrice.setAlignment(SWT.CENTER);
- labelTotalPrice.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, true, 1, 1));
- }
-
- {
- Button buttonSend = new Button(composite, SWT.NONE);
- buttonSend.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sendOrder();
- }
- });
-
- buttonSend.setToolTipText("Bestellung absenden");
- buttonSend.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/send.png"));
- }
- }
-
- shelfItem.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/order.png"));
- shelfItem.setText(" Bestellung");
- }
-
- {
- PShelfItem shelfItem = new PShelfItem(shelf, SWT.NONE);
- shelfItem.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/payment.png"));
- shelfItem.setText(" Bezahlung");
- }
-
- {
- PShelfItem shelfItem = new PShelfItem(shelf, SWT.NONE);
- shelfItem.setImage(ResourceManager.getPluginImage("org.gastro.rcp.table", "icons/service.png"));
- shelfItem.setText(" Service");
- }
-
- shelf.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- orderViewer.refresh(true);
- }
- });
-
- createNewOrder();
- }
- }
-
- protected void nextMenu()
- {
- EList<EObject> menuItems = getAllMenuItems();
- int index = menuItems.indexOf(currentItem);
- if (index >= 0 && index < menuItems.size() - 1)
- {
- menuViewer.setSelection(new StructuredSelection(menuItems.get(index + 1)));
- }
- }
-
- protected void prevMenu()
- {
- EList<EObject> menuItems = getAllMenuItems();
- int index = menuItems.indexOf(currentItem);
- if (index > 0)
- {
- menuViewer.setSelection(new StructuredSelection(menuItems.get(index - 1)));
- }
- }
-
- protected void showMenuCard()
- {
- OrderDetail oldOrderDetail = orderDetail;
- if (currentItem instanceof Section)
- {
- Section section = (Section)currentItem;
- updateMenuDetail( //
- section.getTitle(), //
- section.getText(), //
- null, //
- false);
- orderDetail = null;
- }
- else if (currentItem instanceof Offering)
- {
- Offering offering = (Offering)currentItem;
- updateMenuDetail( //
- offering.getName(), //
- offering.getDescription(), //
- formatPrice(offering.getPrice()), //
- true);
- orderDetail = getOrderDetail(offering);
- }
-
- if (oldOrderDetail != null && oldOrderDetail != orderDetail)
- {
- if (oldOrderDetail.getQuantity() == 0)
- {
- order.getOrderDetails().remove(oldOrderDetail);
- }
- }
-
- updateOrderDetail();
- }
-
- protected void addOrder()
- {
- if (orderDetail == null)
- {
- orderDetail = BusinessFactory.eINSTANCE.createOrderDetail();
- orderDetail.setOffering((Offering)currentItem);
- orderDetail.setQuantity(1);
- order.getOrderDetails().add(orderDetail);
- }
- else
- {
- orderDetail.setQuantity(orderDetail.getQuantity() + 1);
- }
-
- updateOrderDetail();
- }
-
- protected void deleteOrder()
- {
- int quantity = orderDetail.getQuantity();
- if (quantity == 1)
- {
- order.getOrderDetails().remove(orderDetail);
- orderDetail = null;
- }
- else
- {
- orderDetail.setQuantity(quantity - 1);
- }
-
- updateOrderDetail();
- }
-
- protected void sendOrder()
- {
- ITransactionalOperation<BusinessDay> operation = new ITransactionalOperation<BusinessDay>()
- {
- public Object execute(BusinessDay businessDay)
- {
- businessDay.cdoWriteLock().lock();
- EList<Order> orders = businessDay.getOrders();
- order.setNumber(getNextOrderNumber(orders));
- orders.add(order);
- return null;
- }
- };
-
- IModel.INSTANCE.modify(IModel.INSTANCE.getBusinessDay(), operation);
- createNewOrder();
- }
-
- protected void cancelOrder()
- {
- createNewOrder();
- }
-
- private EList<EObject> getAllMenuItems()
- {
- MenuCard menuCard = (MenuCard)menuViewer.getInput();
- EList<EObject> result = new BasicEList<EObject>();
- for (Iterator<EObject> it = menuCard.eAllContents(); it.hasNext();)
- {
- result.add(it.next());
- }
-
- return result;
- }
-
- private void createNewOrder()
- {
- order = BusinessFactory.eINSTANCE.createOrder();
- order.setTable((org.gastro.inventory.Table)IModel.INSTANCE.getStation());
- orderViewer.setInput(order);
-
- orderDetail = null;
- updateOrderDetail();
- }
-
- private int getNextOrderNumber(EList<Order> orders)
- {
- int count = orders.size();
- if (count > 0)
- {
- return orders.get(count - 1).getNumber() + 1;
- }
-
- return 1;
- }
-
- private OrderDetail getOrderDetail(Offering offering)
- {
- for (OrderDetail orderDetail : order.getOrderDetails())
- {
- if (orderDetail.getOffering() == offering)
- {
- return orderDetail;
- }
- }
-
- return null;
- }
-
- private void updateMenuDetail(String title, String description, String price, boolean withImage)
- {
- menuTitle.setText(StringUtil.safe(title));
- menuDescription.setText(StringUtil.safe(description));
- menuPrice.setText(StringUtil.safe(price));
-
- if (title == null || !withImage)
- {
- menuImage.setImage(null);
- }
- else
- {
- String name = fakeImages.get(title);
- if (name == null)
- {
- for (;;)
- {
- name = "meal-" + ++fakeImageID;
- Image image = getCachedImage(name);
- if (image != null)
- {
- fakeImages.put(title, name);
- menuImage.setImage(getCachedImage(name));
- break;
- }
-
- fakeImageID = 0;
- }
- }
- else
- {
- menuImage.setImage(getCachedImage(name));
- }
- }
-
- menuImage.getParent().getParent().layout(true);
- }
-
- private void updateOrderDetail()
- {
- if (currentItem instanceof Offering)
- {
- if (orderDetail != null)
- {
- quantity.setText("" + orderDetail.getQuantity());
- buttonDelete.setEnabled(true);
- }
- else
- {
- quantity.setText("0");
- buttonDelete.setEnabled(false);
- }
-
- quantity.setVisible(true);
- buttonAdd.setVisible(true);
- buttonDelete.setVisible(true);
- }
- else
- {
- quantity.setVisible(false);
- buttonAdd.setVisible(false);
- buttonDelete.setVisible(false);
- }
- }
-
- private Image getCachedImage(String name)
- {
- return ResourceManager.getPluginImage("org.gastro.rcp.table", "images/" + name + ".png");
- }
-
- private String formatPrice(float price)
- {
- return NumberFormat.getCurrencyInstance().format(price);
- }
-}

Back to the top