From a12062e51e76f3e3d4fed62e2210bd0edd5fc6fa Mon Sep 17 00:00:00 2001 From: Florian Hoelzl <hoelzl@fortiss.org> Date: Thu, 24 May 2018 15:15:00 +0200 Subject: [PATCH] YELLOW. Signed-off-by: Florian Hoelzl <hoelzl@fortiss.org> --- .../org.eclipse.core.resources.prefs | 5 + .../.settings/org.eclipse.jdt.core.prefs | 366 ++++++++++++++++++ .../.settings/org.eclipse.jdt.ui.prefs | 58 +++ .../.settings/org.eclipse.m2e.core.prefs | 4 + .../plugin.xml | 2 +- .../af3/platform/raspberry/ui/.ratings | 1 + .../ui/AF3PlatformRaspberryUIActivator.java | 19 +- .../platform/raspberry/ui/editpart/.ratings | 1 + ...y.java => RaspberryPiEditPartFactory.java} | 17 +- .../platform/raspberry/ui/handler/.ratings | 13 + .../raspberry/ui/handler/BrickletHandler.java | 28 +- .../ui/handler/CameraInputHandler.java | 30 +- .../raspberry/ui/handler/CanBusHandler.java | 15 +- .../ui/handler/CanConnectorHandler.java | 15 +- .../ui/handler/ConsoleOutputHandler.java | 29 +- .../ui/handler/GamepadReceiverHandler.java | 29 +- .../handler/IconModelElementHandlerBase.java | 40 ++ .../ui/handler/MotorControlInputHandler.java | 29 +- .../ui/handler/MotorControlOutputHandler.java | 29 +- .../ui/handler/PWMActuatorHandler.java | 29 +- .../ui/handler/RaspberryPiHandler.java | 15 +- .../ui/handler/RumblepadReceiverHandler.java | 29 +- .../RumblepadSimpleRumbleFeatureHandler.java | 28 +- .../platform/raspberry/ui/properties/.ratings | 5 + .../ActuatorDigitsPropertySection.java | 15 +- .../ActuatorPWMPropertySection.java | 15 +- .../BoundedIntPositiveZeroValidator.java | 27 +- ...spberryPiExecutionUnitPropertySection.java | 15 +- .../ui/properties/UIDUnitPropertySection.java | 17 +- .../platform/raspberry/ui/prototype/.ratings | 1 + .../ui/prototype/ProtoypeProvider.java | 259 +++++++------ .../org.eclipse.core.resources.prefs | 5 + .../.settings/org.eclipse.jdt.core.prefs | 366 ++++++++++++++++++ .../.settings/org.eclipse.jdt.ui.prefs | 58 +++ .../.settings/org.eclipse.m2e.core.prefs | 4 + .../fortiss/af3/platform/raspberry/.ratings | 1 + .../AF3PlatformRaspberryActivator.java | 22 +- .../af3/platform/raspberry/compose/.ratings | 4 + .../raspberry/compose/CanBusCompositor.java | 18 +- .../compose/CanToRaspberryCompositor.java | 17 +- .../compose/RaspberryPiCompositor.java | 15 +- .../compose/RaspberryToCanCompositor.java | 15 +- .../af3/platform/raspberry/util/.ratings | 1 + .../util/RaspberryModelElementFactory.java | 16 +- 44 files changed, 1211 insertions(+), 516 deletions(-) create mode 100644 org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.core.resources.prefs create mode 100644 org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.core.prefs create mode 100644 org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.ui.prefs create mode 100644 org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.m2e.core.prefs create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/.ratings create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/.ratings rename org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/{EditPartFactory.java => RaspberryPiEditPartFactory.java} (92%) create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/.ratings create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/IconModelElementHandlerBase.java create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/.ratings create mode 100644 org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/.ratings create mode 100644 org.fortiss.af3.platform.raspberry/.settings/org.eclipse.core.resources.prefs create mode 100644 org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.core.prefs create mode 100644 org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.ui.prefs create mode 100644 org.fortiss.af3.platform.raspberry/.settings/org.eclipse.m2e.core.prefs create mode 100644 org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/.ratings create mode 100644 org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/.ratings create mode 100644 org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/.ratings diff --git a/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.core.resources.prefs b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..26473c05 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//html/external_tools.html=UTF-8 +encoding//model/conti.ecorediag=UTF-8 +encoding//uml/exploration.ecorediag=UTF-8 +encoding/<project>=US-ASCII diff --git a/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.core.prefs b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..b020bcf4 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,366 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +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=disabled +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=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +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=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private +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=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +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.missingSerialVersion=ignore +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=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=warning +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=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=warning +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.8 +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=48 +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=16 +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=16 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=48 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=100 +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=@CodeFormatterOff +org.eclipse.jdt.core.formatter.enabling_tag=@CodeFormatterOn +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=true +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not 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=do not 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=do not 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=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=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=100 +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=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=true +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=false +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=false +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.ui.prefs b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..8c3a03f5 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,58 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_fortiss +formatter_settings_version=12 +org.eclipse.jdt.ui.javadoc=true +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">/** Returns ${bare_field_name}. */</template><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">/** Sets ${bare_field_name}. */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><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">/*-------------------------------------------------------------------------+\n| Copyright ${year} fortiss GmbH |\n| |\n| Licensed under the Apache License, Version 2.0 (the "License"); |\n| you may not use this file except in compliance with the License. |\n| You may obtain a copy of the License at |\n| |\n| http\://www.apache.org/licenses/LICENSE-2.0 |\n| |\n| Unless required by applicable law or agreed to in writing, software |\n| distributed under the License is distributed on an "AS IS" BASIS, |\n| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |\n| See the License for the specific language governing permissions and |\n| limitations under the License. |\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">/**\n * \n * @author ${user}\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">\n/** */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><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">/** {@inheritDoc} */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><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}\n${package_declaration}\n\n${typecomment}\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">\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">\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">\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">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" 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}\n// ${todo} Auto-generated constructor stub</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><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.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.wst.jsdt.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=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=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=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=false +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.m2e.core.prefs b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 00000000..f897a7f1 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/org.fortiss.af3.platform.raspberry.ui/plugin.xml b/org.fortiss.af3.platform.raspberry.ui/plugin.xml index 5ab2713d..12a1e64d 100644 --- a/org.fortiss.af3.platform.raspberry.ui/plugin.xml +++ b/org.fortiss.af3.platform.raspberry.ui/plugin.xml @@ -38,7 +38,7 @@ <extension point="org.fortiss.tooling.kernel.ui.editPartFactory"> <editPartFactory - factory="org.fortiss.af3.platform.raspberry.ui.editpart.EditPartFactory"> + factory="org.fortiss.af3.platform.raspberry.ui.editpart.RaspberryPiEditPartFactory"> <modelElementClass modelElementClass="org.fortiss.af3.platform.raspberry.model.RaspberryPi"> </modelElementClass> diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/.ratings b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/.ratings new file mode 100644 index 00000000..6bdafa60 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/.ratings @@ -0,0 +1 @@ +AF3PlatformRaspberryUIActivator.java 1721759ccc700c437c2975e43326f06d9a0c4aae YELLOW diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java index 5e791e1a..1721759c 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/AF3PlatformRaspberryUIActivator.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: AF3PlatformRaspberryUIActivator.java 16069 2016-03-04 13:51:41Z zverlov $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -21,18 +19,11 @@ import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; -/** - * The activator class controls the plug-in life cycle. - * - * @author hoelzl - * @author $Author: zverlov $ - * @version $Rev: 16069 $ - * @ConQAT.Rating RED Hash: 250D9EED7E36588B51D8F1B3F968B2FB - */ +/** The activator class controls the plug-in life cycle. */ public class AF3PlatformRaspberryUIActivator extends AbstractUIPlugin { - /** The plug-in ID. */ - public static final String PLUGIN_ID = AF3PlatformRaspberryUIActivator.class.getPackage().getName(); //$NON-NLS-1$ + public static final String PLUGIN_ID = AF3PlatformRaspberryUIActivator.class.getPackage() + .getName(); //$NON-NLS-1$ /** The shared instance. */ private static AF3PlatformRaspberryUIActivator plugin; diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/.ratings b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/.ratings new file mode 100644 index 00000000..ee85a7a3 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/.ratings @@ -0,0 +1 @@ +RaspberryPiEditPartFactory.java f0997ba41908982c13eaeddf10d83a74d52dc570 YELLOW diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/EditPartFactory.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/RaspberryPiEditPartFactory.java similarity index 92% rename from org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/EditPartFactory.java rename to org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/RaspberryPiEditPartFactory.java index edc2c63c..f0997ba4 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/EditPartFactory.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/editpart/RaspberryPiEditPartFactory.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -44,15 +42,8 @@ import org.fortiss.af3.platform.ui.editpart.generic.StickyPlatformConnectorUnitE import org.fortiss.af3.platform.ui.editpart.generic.TransmissionUnitDefaultEditPart; import org.fortiss.tooling.kernel.ui.extension.IEditPartFactory; -/** - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ -public class EditPartFactory implements IEditPartFactory { - +/** {@link IEditPartFactory} for {@link RaspberryPi} model elements. */ +public class RaspberryPiEditPartFactory implements IEditPartFactory { /** {@inheritDoc} */ @Override public EditPart createEditPart(EditPart context, Object model) { diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/.ratings b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/.ratings new file mode 100644 index 00000000..e6f1269f --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/.ratings @@ -0,0 +1,13 @@ +BrickletHandler.java b3154bd30ccad9ab5aceb6ed3e60feeff911fe89 YELLOW +CameraInputHandler.java fd5eb60cc1b56cb8f3662c2207dc0ba37e20cb5f YELLOW +CanBusHandler.java 5d4dbf229daec81e5eecc4ebfb8f8bc2680f2992 YELLOW +CanConnectorHandler.java 3eb2adf8ec6336269d66395025b7ac2050876a79 YELLOW +ConsoleOutputHandler.java 364124b954ab0429425e9de71dbe0f7a99e499f9 YELLOW +GamepadReceiverHandler.java ff81c9f3e941ba8a2b880b3982f63f71f698569b YELLOW +IconModelElementHandlerBase.java 1ebc38a537ec2c87fb7b031df5ddd53f10072af2 YELLOW +MotorControlInputHandler.java b5d0f0627c7c14c1ed4cc1e36a761e938a5a4c9e YELLOW +MotorControlOutputHandler.java e837a92a595a90adb375f2fe906eb8531c71c4d8 YELLOW +PWMActuatorHandler.java e1bc705e0a57ec11109d309be50ec5ac7ab6cad1 YELLOW +RaspberryPiHandler.java d503b2bd802ff3ff4ced8391e83fb39452546d86 YELLOW +RumblepadReceiverHandler.java 337e65150193a7d66bd69669c7dd5977010259d3 YELLOW +RumblepadSimpleRumbleFeatureHandler.java 92a2be8449163cf68763cb83d6571b0eee1a04c5 YELLOW diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/BrickletHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/BrickletHandler.java index cd5240ab..b3154bd3 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/BrickletHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/BrickletHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: BrickletHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,24 +15,12 @@ $Id: BrickletHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link UIDUnit}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class BrickletHandler extends NamedCommentedModelElementHandlerBase<UIDUnit> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/unknown.png"); +/** Handler for {@link UIDUnit}s. */ +public class BrickletHandler extends IconModelElementHandlerBase<UIDUnit> { + /** Constructor. */ + public BrickletHandler() { + super("icons/unknown.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CameraInputHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CameraInputHandler.java index d10c0ac6..fd5eb60c 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CameraInputHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CameraInputHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: CameraInputHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,26 +15,12 @@ $Id: CameraInputHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.RaspberryPiReceiverBase; -import org.fortiss.af3.platform.raspberry.model.camera.CameraDistanceLeft; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link CameraDistanceLeft}s and other camera model elements. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class CameraInputHandler extends - NamedCommentedModelElementHandlerBase<RaspberryPiReceiverBase> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/unknown.png"); +/** Model element handler for camera model elements. */ +public class CameraInputHandler extends IconModelElementHandlerBase<RaspberryPiReceiverBase> { + /** Constructor. */ + public CameraInputHandler() { + super("icons/unknown.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java index 6abb6989..5d4dbf22 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -27,14 +25,7 @@ import org.fortiss.af3.platform.raspberry.model.CanBus; import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; -/** - * {@link IModelElementHandler} for {@link CanBus}. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** {@link IModelElementHandler} for {@link CanBus}. */ @SuppressWarnings({"unchecked", "rawtypes"}) public class CanBusHandler extends ModelElementHandlerBase<CanBus> { /** {@inheritDoc} */ diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java index d3a100a4..3eb2adf8 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -24,14 +22,7 @@ import org.fortiss.af3.platform.raspberry.model.CanConnector; import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; -/** - * {@link IModelElementHandler} for {@link CanConnector}. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** {@link IModelElementHandler} for {@link CanConnector}. */ public class CanConnectorHandler extends ModelElementHandlerBase<CanConnector> { /** {@inheritDoc} */ @Override diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/ConsoleOutputHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/ConsoleOutputHandler.java index 4c1bf53f..364124b9 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/ConsoleOutputHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/ConsoleOutputHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: ConsoleOutputHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,24 +15,13 @@ $Id: ConsoleOutputHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.ConsoleOutput; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; +import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; -/** - * Handler for {@link ConsoleOutput}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class ConsoleOutputHandler extends NamedCommentedModelElementHandlerBase<ConsoleOutput> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/console.png"); +/** {@link IModelElementHandler} for {@link ConsoleOutput}s. */ +public class ConsoleOutputHandler extends IconModelElementHandlerBase<ConsoleOutput> { + /** Constructor. */ + public ConsoleOutputHandler() { + super("icons/console.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/GamepadReceiverHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/GamepadReceiverHandler.java index ce08ca3e..ff81c9f3 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/GamepadReceiverHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/GamepadReceiverHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: GamepadReceiverHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,12 @@ $Id: GamepadReceiverHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.gamepad.GamepadReceiverBase; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link GamepadReceiverBase}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class GamepadReceiverHandler extends - NamedCommentedModelElementHandlerBase<GamepadReceiverBase> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/gamepad.png"); +/** Handler for {@link GamepadReceiverBase}s. */ +public class GamepadReceiverHandler extends IconModelElementHandlerBase<GamepadReceiverBase> { + /** Constructor. */ + public GamepadReceiverHandler() { + super("icons/gamepad.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/IconModelElementHandlerBase.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/IconModelElementHandlerBase.java new file mode 100644 index 00000000..1ebc38a5 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/IconModelElementHandlerBase.java @@ -0,0 +1,40 @@ +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ +package org.fortiss.af3.platform.raspberry.ui.handler; + +import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.fortiss.tooling.kernel.model.INamedCommentedElement; +import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; + +/** Base class for {@link NamedCommentedModelElementHandlerBase}s . */ +abstract class IconModelElementHandlerBase<T extends INamedCommentedElement> extends + NamedCommentedModelElementHandlerBase<T> { + /** Static icon image descriptor. */ + private final ImageDescriptor iconDescriptor; + + /** Constructor. */ + public IconModelElementHandlerBase(String icon) { + iconDescriptor = getImageDescriptor(icon); + } + + /** {@inheritDoc} */ + @Override + public final ImageDescriptor getIconImageDescriptor() { + return iconDescriptor; + } +} diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlInputHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlInputHandler.java index 5b594be5..b5d0f062 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlInputHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlInputHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: MotorControlInputHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,12 @@ $Id: MotorControlInputHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.motorcontrol.MotorControlInput; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link MotorControlInput}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class MotorControlInputHandler extends - NamedCommentedModelElementHandlerBase<MotorControlInput> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/unknown.png"); +/** {@link IconModelElementHandlerBase} for {@link MotorControlInput}s. */ +public class MotorControlInputHandler extends IconModelElementHandlerBase<MotorControlInput> { + /** Constructor. */ + public MotorControlInputHandler() { + super("icons/unknown.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlOutputHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlOutputHandler.java index d5e36ceb..e837a92a 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlOutputHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/MotorControlOutputHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: MotorControlOutputHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,12 @@ $Id: MotorControlOutputHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.motorcontrol.MotorControlOutput; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link MotorControlOutput}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class MotorControlOutputHandler extends - NamedCommentedModelElementHandlerBase<MotorControlOutput> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/unknown.png"); +/** {@link IconModelElementHandlerBase} for {@link MotorControlOutput}s. */ +public class MotorControlOutputHandler extends IconModelElementHandlerBase<MotorControlOutput> { + /** Constructor. */ + public MotorControlOutputHandler() { + super("icons/unknown.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/PWMActuatorHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/PWMActuatorHandler.java index db4eca88..e1bc705e 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/PWMActuatorHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/PWMActuatorHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: PWMActuatorHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,12 @@ $Id: PWMActuatorHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.fortiss.af3.platform.model.generic.GenericReceiver; import org.fortiss.af3.platform.raspberry.model.ActuatorPWM; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link GenericReceiver}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class PWMActuatorHandler extends NamedCommentedModelElementHandlerBase<ActuatorPWM> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/unknown.png"); +/** {@link IconModelElementHandlerBase} for {@link ActuatorPWM}s. */ +public class PWMActuatorHandler extends IconModelElementHandlerBase<ActuatorPWM> { + /** Constructor. */ + public PWMActuatorHandler() { + super("icons/unknown.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java index 470c2a5c..d503b2bd 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -27,14 +25,7 @@ import org.fortiss.af3.platform.raspberry.model.RaspberryPi; import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; -/** - * {@link IModelElementHandler} for {@link RaspberryPi}. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** {@link IModelElementHandler} for {@link RaspberryPi}. */ @SuppressWarnings({"unchecked", "rawtypes"}) public class RaspberryPiHandler extends ModelElementHandlerBase<RaspberryPi> { /** {@inheritDoc} */ diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadReceiverHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadReceiverHandler.java index be83410e..337e6515 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadReceiverHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadReceiverHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: RumblepadReceiverHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,12 @@ $Id: RumblepadReceiverHandler.java 23956 2018-04-11 14:15:25Z barner $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.rumblepad.RumblepadReceiverBase; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link RumblepadReceiverBase}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ -public class RumblepadReceiverHandler extends - NamedCommentedModelElementHandlerBase<RumblepadReceiverBase> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/gamepad.png"); +/** {@link IconModelElementHandlerBase} for {@link RumblepadReceiverBase}s. */ +public class RumblepadReceiverHandler extends IconModelElementHandlerBase<RumblepadReceiverBase> { + /** Constructor. */ + public RumblepadReceiverHandler() { + super("icons/gamepad.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadSimpleRumbleFeatureHandler.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadSimpleRumbleFeatureHandler.java index 8ae512b5..92a2be84 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadSimpleRumbleFeatureHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/handler/RumblepadSimpleRumbleFeatureHandler.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: RumblepadSimpleRumbleFeatureHandler.java 23956 2018-04-11 14:15:25Z barner $ -| | -| Copyright 2011 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,25 +15,13 @@ $Id: RumblepadSimpleRumbleFeatureHandler.java 23956 2018-04-11 14:15:25Z barner +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; -import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor; - -import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.rumblepad.SimpleRumbleFeature; -import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase; -/** - * Handler for {@link SimpleRumbleFeature}s. - * - * @author hoelzl - * @author $Author: barner $ - * @version $Rev: 23956 $ - * @ConQAT.Rating GREEN Hash: D80CF94CBBADB4627AAEDA1F34ABF0A5 - */ +/** {@link IconModelElementHandlerBase} for {@link SimpleRumbleFeature}s. */ public class RumblepadSimpleRumbleFeatureHandler extends - NamedCommentedModelElementHandlerBase<SimpleRumbleFeature> { - /** {@inheritDoc} */ - @Override - public ImageDescriptor getIconImageDescriptor() { - return getImageDescriptor("icons/gamepad.png"); + IconModelElementHandlerBase<SimpleRumbleFeature> { + /** Constructor. */ + public RumblepadSimpleRumbleFeatureHandler() { + super("icons/gamepad.png"); } } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/.ratings b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/.ratings new file mode 100644 index 00000000..c3f728b5 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/.ratings @@ -0,0 +1,5 @@ +ActuatorDigitsPropertySection.java c7cc5c1c4a9ef4077b2f4e3cdbae4928596df1ae YELLOW +ActuatorPWMPropertySection.java 8a299c2096332c452dab56b703fb773c4b686667 YELLOW +BoundedIntPositiveZeroValidator.java b788927873db6f8f17f1affe45dc9877b8ec40aa YELLOW +RaspberryPiExecutionUnitPropertySection.java b045a64d71975fe006699fd28833aa6a08fed1ec YELLOW +UIDUnitPropertySection.java 93f1dfea011f61f42e284593169905b9c60abb22 YELLOW diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorDigitsPropertySection.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorDigitsPropertySection.java index 8cdbb8a5..c7cc5c1c 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorDigitsPropertySection.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorDigitsPropertySection.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: ActuatorDigitsPropertySection.java 22342 2017-11-30 13:18:55Z hoelzl $ -| | -| Copyright 2013 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -29,14 +27,7 @@ import org.fortiss.af3.platform.raspberry.model.brick.ActuatorDigits; import org.fortiss.af3.platform.raspberry.model.brick.BrickPackage; import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; -/** - * Property section for {@link ActuatorDigits}s. - * - * @author hoelzl - * @author $Author: hoelzl $ - * @version $Rev: 22342 $ - * @ConQAT.Rating GREEN Hash: 9E768B733BD37201F97399293FA0DFA7 - */ +/** {@link PropertySectionBase} for {@link ActuatorDigits}s. */ public class ActuatorDigitsPropertySection extends PropertySectionBase { /** The actuator model element. */ private ActuatorDigits actuator; diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorPWMPropertySection.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorPWMPropertySection.java index 04ce6f1e..8a299c20 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorPWMPropertySection.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/ActuatorPWMPropertySection.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: ActuatorPWMPropertySection.java 21071 2017-10-09 13:06:34Z hoelzl $ -| | -| Copyright 2013 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -31,14 +29,7 @@ import org.fortiss.af3.platform.raspberry.model.ActuatorPWM; import org.fortiss.af3.platform.raspberry.model.RaspberryPiModelPackage; import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; -/** - * Property section for {@link ActuatorPWM}s. - * - * @author hoelzl - * @author $Author: hoelzl $ - * @version $Rev: 21071 $ - * @ConQAT.Rating GREEN Hash: 9E768B733BD37201F97399293FA0DFA7 - */ +/** {@link PropertySectionBase} for {@link ActuatorPWM}s. */ public class ActuatorPWMPropertySection extends PropertySectionBase { /** The actuator. */ private ActuatorPWM actuator; diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/BoundedIntPositiveZeroValidator.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/BoundedIntPositiveZeroValidator.java index 8eda208d..b7889278 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/BoundedIntPositiveZeroValidator.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/BoundedIntPositiveZeroValidator.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: BoundedIntPositiveZeroValidator.java 21071 2017-10-09 13:06:34Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -17,18 +15,13 @@ $Id: BoundedIntPositiveZeroValidator.java 21071 2017-10-09 13:06:34Z hoelzl $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.properties; -import org.eclipse.core.databinding.validation.ValidationStatus; +import static org.eclipse.core.databinding.validation.ValidationStatus.cancel; +import static org.eclipse.core.databinding.validation.ValidationStatus.ok; + import org.eclipse.core.runtime.IStatus; import org.fortiss.tooling.base.ui.databinding.NumberPositiveZeroValidator; -/** - * A {@link NumberPositiveZeroValidator} with boundary checking for int values. - * - * @author hoelzl - * @author $Author: hoelzl $ - * @version $Rev: 21071 $ - * @ConQAT.Rating RED Hash: - */ +/** A {@link NumberPositiveZeroValidator} with boundary checking for integer values. */ public class BoundedIntPositiveZeroValidator extends NumberPositiveZeroValidator { /** The lower bound. */ private final int lowerBound; @@ -45,13 +38,11 @@ public class BoundedIntPositiveZeroValidator extends NumberPositiveZeroValidator @Override public IStatus validate(Object value) { IStatus status = super.validate(value); - if(status == ValidationStatus.ok()) { + if(status == ok()) { double dval = ((Number)value).doubleValue(); - if(dval >= lowerBound && dval <= upperBound) { - return ValidationStatus.ok(); + if(dval < lowerBound || dval > upperBound) { + return cancel("Value must be between " + lowerBound + " and " + upperBound + "!"); } - return ValidationStatus.cancel("Value must be between " + lowerBound + " and " + - upperBound + "!"); } return status; } diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/RaspberryPiExecutionUnitPropertySection.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/RaspberryPiExecutionUnitPropertySection.java index bd503478..b045a64d 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/RaspberryPiExecutionUnitPropertySection.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/RaspberryPiExecutionUnitPropertySection.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: RaspberryPiExecutionUnitPropertySection.java 22964 2018-01-26 12:22:51Z hoelzl $ -| | -| Copyright 2013 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -35,14 +33,7 @@ import org.fortiss.af3.platform.raspberry.model.RaspberryPi; import org.fortiss.af3.platform.raspberry.model.RaspberryPiModelPackage; import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; -/** - * Property section for {@link RaspberryPi}s. - * - * @author hoelzl - * @author $Author: hoelzl $ - * @version $Rev: 22964 $ - * @ConQAT.Rating GREEN Hash: 9E768B733BD37201F97399293FA0DFA7 - */ +/** {@link PropertySectionBase} for {@link RaspberryPi}s. */ public class RaspberryPiExecutionUnitPropertySection extends PropertySectionBase { /** The execution unit. */ private RaspberryPi unit; diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/UIDUnitPropertySection.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/UIDUnitPropertySection.java index 908e1a9d..93f1dfea 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/UIDUnitPropertySection.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/properties/UIDUnitPropertySection.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: UIDUnitPropertySection.java 22342 2017-11-30 13:18:55Z hoelzl $ -| | -| Copyright 2013 ForTISS GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -29,16 +27,9 @@ import org.fortiss.af3.platform.raspberry.model.brick.BrickPackage; import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit; import org.fortiss.tooling.kernel.ui.extension.base.PropertySectionBase; -/** - * Property section for {@link UIDUnit}s. - * - * @author hoelzl - * @author $Author: hoelzl $ - * @version $Rev: 22342 $ - * @ConQAT.Rating GREEN Hash: 9E768B733BD37201F97399293FA0DFA7 - */ +/** {@link PropertySectionBase} for {@link UIDUnit}s. */ public class UIDUnitPropertySection extends PropertySectionBase { - /** The unit. */ + /** The {@link UIDUnit}. */ private UIDUnit unit; /** The unique ID widget. */ private Text uidText; diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/.ratings b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/.ratings new file mode 100644 index 00000000..28e5cabb --- /dev/null +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/.ratings @@ -0,0 +1 @@ +ProtoypeProvider.java e718d04dddfc52ce41ea66ff98696e2aa1b5ea3f YELLOW diff --git a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java index e3186e53..e718d04d 100644 --- a/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java +++ b/org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -82,15 +80,8 @@ import org.fortiss.af3.platform.raspberry.util.RaspberryModelElementFactory; import org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase; import org.fortiss.tooling.kernel.extension.data.PrototypeCategory; -/** - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** {@link PrototypeProviderBase} for {@link RaspberryPi} model elements. */ public class ProtoypeProvider extends PrototypeProviderBase { - /** Stores the category to display for these prototypes. */ protected final static String CATEGORY_NAME = "RaspberryPI Platform"; /** Category for gamepad elements. */ @@ -136,6 +127,15 @@ public class ProtoypeProvider extends PrototypeProviderBase { setConnectorPosition(printf, 0, 0); registerPrototype("Console_Output", printf, CATEGORY_NAME); + registerBrickElements(); + registerRumblepadElements(); + registerMotorControlElements(); + registerCameraElements(); + registerGamepadElements(); + } + + /** Register brick actuators and sensors. */ + private void registerBrickElements() { ActuatorDigits digits = RaspberryModelElementFactory.createActuatorDigits(); setNodePosition(digits, 0, 0); setConnectorPosition(digits, 0, 0); @@ -154,66 +154,6 @@ public class ProtoypeProvider extends PrototypeProviderBase { setConnectorPosition(ledBButton, 0, 0); registerPrototype("LED_Button_blue", ledBButton, BRICK); - Button1 button1 = RaspberryModelElementFactory.createButton1(); - setNodePosition(button1, 0, 0); - setConnectorPosition(button1, 0, 0); - registerPrototype(button1.getName(), button1, GAMEPAD); - - Button2 button2 = RaspberryModelElementFactory.createButton2(); - setNodePosition(button2, 0, 0); - setConnectorPosition(button2, 0, 0); - registerPrototype(button2.getName(), button2, GAMEPAD); - - Button3 button3 = RaspberryModelElementFactory.createButton3(); - setNodePosition(button3, 0, 0); - setConnectorPosition(button3, 0, 0); - registerPrototype(button3.getName(), button3, GAMEPAD); - - Button4 button4 = RaspberryModelElementFactory.createButton4(); - setNodePosition(button4, 0, 0); - setConnectorPosition(button4, 0, 0); - registerPrototype(button4.getName(), button4, GAMEPAD); - - ButtonL1 buttonL1 = RaspberryModelElementFactory.createButtonL1(); - setNodePosition(buttonL1, 0, 0); - setConnectorPosition(buttonL1, 0, 0); - registerPrototype(buttonL1.getName(), buttonL1, GAMEPAD); - - ButtonL2 buttonL2 = RaspberryModelElementFactory.createButtonL2(); - setNodePosition(buttonL2, 0, 0); - setConnectorPosition(buttonL2, 0, 0); - registerPrototype(buttonL2.getName(), buttonL2, GAMEPAD); - - ButtonR1 buttonR1 = RaspberryModelElementFactory.createButtonR1(); - setNodePosition(buttonR1, 0, 0); - setConnectorPosition(buttonR1, 0, 0); - registerPrototype(buttonR1.getName(), buttonR1, GAMEPAD); - - ButtonR2 buttonR2 = RaspberryModelElementFactory.createButtonR2(); - setNodePosition(buttonR2, 0, 0); - setConnectorPosition(buttonR2, 0, 0); - registerPrototype(buttonR2.getName(), buttonR2, GAMEPAD); - - Left_StickX_Position Left_StickX = RaspberryModelElementFactory.createLeftStickX(); - setNodePosition(Left_StickX, 0, 0); - setConnectorPosition(Left_StickX, 0, 0); - registerPrototype(Left_StickX.getName(), Left_StickX, GAMEPAD); - - Left_StickY_Position Left_StickY = RaspberryModelElementFactory.createLeftStickY(); - setNodePosition(Left_StickY, 0, 0); - setConnectorPosition(Left_StickY, 0, 0); - registerPrototype(Left_StickY.getName(), Left_StickY, GAMEPAD); - - Right_StickX_Position Right_StickX = RaspberryModelElementFactory.createRightStickX(); - setNodePosition(Right_StickX, 0, 0); - setConnectorPosition(Right_StickX, 0, 0); - registerPrototype(Right_StickX.getName(), Right_StickX, GAMEPAD); - - Right_StickY_Position Right_StickY = RaspberryModelElementFactory.createRightStickY(); - setNodePosition(Right_StickY, 0, 0); - setConnectorPosition(Right_StickY, 0, 0); - registerPrototype(Right_StickY.getName(), Right_StickY, GAMEPAD); - UltraSonicSensor uss = RaspberryModelElementFactory.createUltraSonicSensor(); setNodePosition(uss, 0, 0); setConnectorPosition(uss, 0, 0); @@ -253,31 +193,22 @@ public class ProtoypeProvider extends PrototypeProviderBase { setNodePosition(avZ, 0, 0); setConnectorPosition(avZ, 0, 0); registerPrototype(avZ.getName(), avZ, BRICK); + } + /** Register rumblepad elements. */ + private void registerRumblepadElements() { org.fortiss.af3.platform.raspberry.model.rumblepad.Left_StickX_Position rplsx = RaspberryModelElementFactory.createRumbleLeftStickX(); setNodePosition(rplsx, 0, 0); setConnectorPosition(rplsx, 0, 0); registerPrototype(rplsx.getName(), rplsx, RUMBLEPAD); - org.fortiss.af3.platform.raspberry.model.rumblepad.Left_StickY_Position rplsy = - RaspberryModelElementFactory.createRumbleLeftStickY(); - setNodePosition(rplsy, 0, 0); - setConnectorPosition(rplsy, 0, 0); - registerPrototype(rplsy.getName(), rplsy, RUMBLEPAD); - - org.fortiss.af3.platform.raspberry.model.rumblepad.Right_StickX_Position rprsx = - RaspberryModelElementFactory.createRumbleRightStickX(); - setNodePosition(rprsx, 0, 0); - setConnectorPosition(rprsx, 0, 0); - registerPrototype(rprsx.getName(), rprsx, RUMBLEPAD); - - org.fortiss.af3.platform.raspberry.model.rumblepad.Right_StickY_Position rprsy = - RaspberryModelElementFactory.createRumbleRightStickY(); - setNodePosition(rprsy, 0, 0); - setConnectorPosition(rprsy, 0, 0); - registerPrototype(rprsy.getName(), rprsy, RUMBLEPAD); + registerRumblepadSticks(); + registerRumblepadButtons(); + } + /** Register rumblepad buttons. */ + private void registerRumblepadButtons() { org.fortiss.af3.platform.raspberry.model.rumblepad.ButtonL1 rpl1 = RaspberryModelElementFactory.createRumbleButtonL1(); setNodePosition(rpl1, 0, 0); @@ -300,36 +231,6 @@ public class ProtoypeProvider extends PrototypeProviderBase { setConnectorPosition(rpr2, 0, 0); registerPrototype(rpr2.getName(), rpr2, RUMBLEPAD); - ButtonL3 rpl3 = RaspberryModelElementFactory.createRumbleButtonL3(); - setNodePosition(rpl3, 0, 0); - setConnectorPosition(rpl3, 0, 0); - registerPrototype(rpl3.getName(), rpl3, RUMBLEPAD); - - ButtonR3 rpr3 = RaspberryModelElementFactory.createRumbleButtonR3(); - setNodePosition(rpr3, 0, 0); - setConnectorPosition(rpr3, 0, 0); - registerPrototype(rpr3.getName(), rpr3, RUMBLEPAD); - - DPadUp rpdpu = RaspberryModelElementFactory.createRumbleDPadUp(); - setNodePosition(rpdpu, 0, 0); - setConnectorPosition(rpdpu, 0, 0); - registerPrototype(rpdpu.getName(), rpdpu, RUMBLEPAD); - - DPadDown rpdpd = RaspberryModelElementFactory.createRumbleDPadDown(); - setNodePosition(rpdpd, 0, 0); - setConnectorPosition(rpdpd, 0, 0); - registerPrototype(rpdpd.getName(), rpdpd, RUMBLEPAD); - - DPadLeft rpdpl = RaspberryModelElementFactory.createRumbleDPadLeft(); - setNodePosition(rpdpl, 0, 0); - setConnectorPosition(rpdpl, 0, 0); - registerPrototype(rpdpl.getName(), rpdpl, RUMBLEPAD); - - DPadRight rpdpr = RaspberryModelElementFactory.createRumbleDPadRight(); - setNodePosition(rpdpr, 0, 0); - setConnectorPosition(rpdpr, 0, 0); - registerPrototype(rpdpr.getName(), rpdpr, RUMBLEPAD); - ButtonA rpba = RaspberryModelElementFactory.createRumbleButtonA(); setNodePosition(rpba, 0, 0); setConnectorPosition(rpba, 0, 0); @@ -380,7 +281,61 @@ public class ProtoypeProvider extends PrototypeProviderBase { setNodePosition(rmw, 0, 0); setConnectorPosition(rmw, 0, 0); registerPrototype(rmw.getName(), rmw, RUMBLEPAD); + } + + /** Register rumblepad sticks and D-pad. */ + private void registerRumblepadSticks() { + org.fortiss.af3.platform.raspberry.model.rumblepad.Left_StickY_Position rplsy = + RaspberryModelElementFactory.createRumbleLeftStickY(); + setNodePosition(rplsy, 0, 0); + setConnectorPosition(rplsy, 0, 0); + registerPrototype(rplsy.getName(), rplsy, RUMBLEPAD); + + org.fortiss.af3.platform.raspberry.model.rumblepad.Right_StickX_Position rprsx = + RaspberryModelElementFactory.createRumbleRightStickX(); + setNodePosition(rprsx, 0, 0); + setConnectorPosition(rprsx, 0, 0); + registerPrototype(rprsx.getName(), rprsx, RUMBLEPAD); + + org.fortiss.af3.platform.raspberry.model.rumblepad.Right_StickY_Position rprsy = + RaspberryModelElementFactory.createRumbleRightStickY(); + setNodePosition(rprsy, 0, 0); + setConnectorPosition(rprsy, 0, 0); + registerPrototype(rprsy.getName(), rprsy, RUMBLEPAD); + + DPadUp rpdpu = RaspberryModelElementFactory.createRumbleDPadUp(); + setNodePosition(rpdpu, 0, 0); + setConnectorPosition(rpdpu, 0, 0); + registerPrototype(rpdpu.getName(), rpdpu, RUMBLEPAD); + + DPadDown rpdpd = RaspberryModelElementFactory.createRumbleDPadDown(); + setNodePosition(rpdpd, 0, 0); + setConnectorPosition(rpdpd, 0, 0); + registerPrototype(rpdpd.getName(), rpdpd, RUMBLEPAD); + + DPadLeft rpdpl = RaspberryModelElementFactory.createRumbleDPadLeft(); + setNodePosition(rpdpl, 0, 0); + setConnectorPosition(rpdpl, 0, 0); + registerPrototype(rpdpl.getName(), rpdpl, RUMBLEPAD); + + DPadRight rpdpr = RaspberryModelElementFactory.createRumbleDPadRight(); + setNodePosition(rpdpr, 0, 0); + setConnectorPosition(rpdpr, 0, 0); + registerPrototype(rpdpr.getName(), rpdpr, RUMBLEPAD); + + ButtonL3 rpl3 = RaspberryModelElementFactory.createRumbleButtonL3(); + setNodePosition(rpl3, 0, 0); + setConnectorPosition(rpl3, 0, 0); + registerPrototype(rpl3.getName(), rpl3, RUMBLEPAD); + + ButtonR3 rpr3 = RaspberryModelElementFactory.createRumbleButtonR3(); + setNodePosition(rpr3, 0, 0); + setConnectorPosition(rpr3, 0, 0); + registerPrototype(rpr3.getName(), rpr3, RUMBLEPAD); + } + /** Register motor controller elements. */ + private void registerMotorControlElements() { MotorControlInput mci = RaspberryModelElementFactory.createMotorControlInput(); setNodePosition(mci, 0, 0); setConnectorPosition(mci, 0, 0); @@ -390,7 +345,10 @@ public class ProtoypeProvider extends PrototypeProviderBase { setNodePosition(mco, 0, 0); setConnectorPosition(mco, 0, 0); registerPrototype(mco.getName(), mco, MOTOR_CONTROL); + } + /** Register camera elements. */ + private void registerCameraElements() { CameraDistanceLeft cdl = RaspberryModelElementFactory.createCameraDistanceLeft(); setNodePosition(cdl, 0, 0); setConnectorPosition(cdl, 0, 0); @@ -418,4 +376,67 @@ public class ProtoypeProvider extends PrototypeProviderBase { setConnectorPosition(cya, 0, 0); registerPrototype(cya.getName(), cya, CAMERA_SERVER); } + + /** Register gamepad elements. */ + private void registerGamepadElements() { + Button1 button1 = RaspberryModelElementFactory.createButton1(); + setNodePosition(button1, 0, 0); + setConnectorPosition(button1, 0, 0); + registerPrototype(button1.getName(), button1, GAMEPAD); + + Button2 button2 = RaspberryModelElementFactory.createButton2(); + setNodePosition(button2, 0, 0); + setConnectorPosition(button2, 0, 0); + registerPrototype(button2.getName(), button2, GAMEPAD); + + Button3 button3 = RaspberryModelElementFactory.createButton3(); + setNodePosition(button3, 0, 0); + setConnectorPosition(button3, 0, 0); + registerPrototype(button3.getName(), button3, GAMEPAD); + + Button4 button4 = RaspberryModelElementFactory.createButton4(); + setNodePosition(button4, 0, 0); + setConnectorPosition(button4, 0, 0); + registerPrototype(button4.getName(), button4, GAMEPAD); + + ButtonL1 buttonL1 = RaspberryModelElementFactory.createButtonL1(); + setNodePosition(buttonL1, 0, 0); + setConnectorPosition(buttonL1, 0, 0); + registerPrototype(buttonL1.getName(), buttonL1, GAMEPAD); + + ButtonL2 buttonL2 = RaspberryModelElementFactory.createButtonL2(); + setNodePosition(buttonL2, 0, 0); + setConnectorPosition(buttonL2, 0, 0); + registerPrototype(buttonL2.getName(), buttonL2, GAMEPAD); + + ButtonR1 buttonR1 = RaspberryModelElementFactory.createButtonR1(); + setNodePosition(buttonR1, 0, 0); + setConnectorPosition(buttonR1, 0, 0); + registerPrototype(buttonR1.getName(), buttonR1, GAMEPAD); + + ButtonR2 buttonR2 = RaspberryModelElementFactory.createButtonR2(); + setNodePosition(buttonR2, 0, 0); + setConnectorPosition(buttonR2, 0, 0); + registerPrototype(buttonR2.getName(), buttonR2, GAMEPAD); + + Left_StickX_Position Left_StickX = RaspberryModelElementFactory.createLeftStickX(); + setNodePosition(Left_StickX, 0, 0); + setConnectorPosition(Left_StickX, 0, 0); + registerPrototype(Left_StickX.getName(), Left_StickX, GAMEPAD); + + Left_StickY_Position Left_StickY = RaspberryModelElementFactory.createLeftStickY(); + setNodePosition(Left_StickY, 0, 0); + setConnectorPosition(Left_StickY, 0, 0); + registerPrototype(Left_StickY.getName(), Left_StickY, GAMEPAD); + + Right_StickX_Position Right_StickX = RaspberryModelElementFactory.createRightStickX(); + setNodePosition(Right_StickX, 0, 0); + setConnectorPosition(Right_StickX, 0, 0); + registerPrototype(Right_StickX.getName(), Right_StickX, GAMEPAD); + + Right_StickY_Position Right_StickY = RaspberryModelElementFactory.createRightStickY(); + setNodePosition(Right_StickY, 0, 0); + setConnectorPosition(Right_StickY, 0, 0); + registerPrototype(Right_StickY.getName(), Right_StickY, GAMEPAD); + } } diff --git a/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.core.resources.prefs b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..26473c05 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//html/external_tools.html=UTF-8 +encoding//model/conti.ecorediag=UTF-8 +encoding//uml/exploration.ecorediag=UTF-8 +encoding/<project>=US-ASCII diff --git a/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.core.prefs b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..b020bcf4 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,366 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +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=disabled +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=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +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=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private +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=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +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.missingSerialVersion=ignore +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=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=warning +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=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=warning +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.8 +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=48 +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=16 +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=16 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=48 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=100 +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=@CodeFormatterOff +org.eclipse.jdt.core.formatter.enabling_tag=@CodeFormatterOn +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=true +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not 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=do not 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=do not 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=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=do not 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=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=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=100 +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=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=true +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=false +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=false +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.ui.prefs b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..8c3a03f5 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,58 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_fortiss +formatter_settings_version=12 +org.eclipse.jdt.ui.javadoc=true +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">/** Returns ${bare_field_name}. */</template><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">/** Sets ${bare_field_name}. */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><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">/*-------------------------------------------------------------------------+\n| Copyright ${year} fortiss GmbH |\n| |\n| Licensed under the Apache License, Version 2.0 (the "License"); |\n| you may not use this file except in compliance with the License. |\n| You may obtain a copy of the License at |\n| |\n| http\://www.apache.org/licenses/LICENSE-2.0 |\n| |\n| Unless required by applicable law or agreed to in writing, software |\n| distributed under the License is distributed on an "AS IS" BASIS, |\n| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |\n| See the License for the specific language governing permissions and |\n| limitations under the License. |\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">/**\n * \n * @author ${user}\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">\n/** */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><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">/** {@inheritDoc} */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><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}\n${package_declaration}\n\n${typecomment}\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">\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">\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">\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">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" 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}\n// ${todo} Auto-generated constructor stub</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><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.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.wst.jsdt.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=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=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=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=false +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.m2e.core.prefs b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 00000000..f897a7f1 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/.ratings b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/.ratings new file mode 100644 index 00000000..603bc175 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/.ratings @@ -0,0 +1 @@ +AF3PlatformRaspberryActivator.java d7dd6081db72262935aa4aba9ad2f3478ef6d0cd YELLOW diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/AF3PlatformRaspberryActivator.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/AF3PlatformRaspberryActivator.java index 8a4cd244..d7dd6081 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/AF3PlatformRaspberryActivator.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/AF3PlatformRaspberryActivator.java @@ -1,15 +1,29 @@ +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry; import org.eclipse.core.runtime.Plugin; import org.osgi.framework.BundleContext; -/** - * The activator class controls the plug-in life cycle. - */ +/** The activator class controls the plug-in life cycle. */ public class AF3PlatformRaspberryActivator extends Plugin { /** The plug-in ID. */ - public static final String PLUGIN_ID = AF3PlatformRaspberryActivator.class.getPackage().getName(); //$NON-NLS-1$ + public static final String PLUGIN_ID = AF3PlatformRaspberryActivator.class.getPackage() + .getName(); //$NON-NLS-1$ /** The shared instance. */ private static AF3PlatformRaspberryActivator plugin; diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/.ratings b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/.ratings new file mode 100644 index 00000000..6401645b --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/.ratings @@ -0,0 +1,4 @@ +CanBusCompositor.java 04d8d8b5276fe06dfd1222b54de90ead680d4b6c YELLOW +CanToRaspberryCompositor.java 269e6b0dcfbbb5d0da72e199704e768f50651073 YELLOW +RaspberryPiCompositor.java 64e7a786367efbec47ee9af65cebaf98fed2db3f YELLOW +RaspberryToCanCompositor.java 2552acc59eb5a7381c60b3c40d32978c96f409b0 YELLOW diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanBusCompositor.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanBusCompositor.java index 1a3e29f9..04d8d8b5 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanBusCompositor.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanBusCompositor.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -25,13 +23,7 @@ import org.fortiss.af3.platform.model.IPlatformArchitectureElement; import org.fortiss.af3.platform.raspberry.model.CanBus; import org.fortiss.af3.platform.raspberry.model.CanConnector; -/** - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** Compositor for {@link CanConnector} on {@link CanBus}. */ public class CanBusCompositor extends PlatformArchitectureElementCompositorBase<IPlatformArchitectureElement> { @@ -42,10 +34,8 @@ public class CanBusCompositor extends final boolean instanceOfAny = isInstanceOfAny(contained, CanConnector.class); if(container != null) { final boolean instanceOfAny2 = isInstanceOfAny(container, CanBus.class); - return instanceOfAny2 && - instanceOfAny; + return instanceOfAny2 && instanceOfAny; } return instanceOfAny; } - } diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanToRaspberryCompositor.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanToRaspberryCompositor.java index ef580fef..269e6b0d 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanToRaspberryCompositor.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/CanToRaspberryCompositor.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -29,16 +27,10 @@ import org.fortiss.tooling.kernel.extension.IConnectionCompositor; import org.fortiss.tooling.kernel.extension.data.IConnectionCompositionContext; /** - * Connection compositor for {@link RaspberryPi} to {@link CanBus} connections. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: + * Connection compositor for {@link CanBus} to {@link RaspberryPi} connections. */ public class CanToRaspberryCompositor implements IConnectionCompositor<IHierarchicElement, CanConnector, CanConnector> { - /** {@inheritDoc} */ @Override public boolean canConnect(CanConnector source, CanConnector target, IHierarchicElement parent, @@ -61,7 +53,6 @@ public class CanToRaspberryCompositor implements @Override public boolean canReconnect(EObject connection, CanConnector source, CanConnector target, IConnectionCompositionContext context) { - // TODO Auto-generated method stub return false; } @@ -69,7 +60,6 @@ public class CanToRaspberryCompositor implements @Override public boolean reconnect(EObject connection, CanConnector source, CanConnector target, IConnectionCompositionContext context) { - // TODO Auto-generated method stub return false; } @@ -95,5 +85,4 @@ public class CanToRaspberryCompositor implements } return false; } - } diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryPiCompositor.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryPiCompositor.java index a6381f98..64e7a786 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryPiCompositor.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryPiCompositor.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -53,16 +51,9 @@ import org.fortiss.af3.platform.raspberry.model.rumblepad.SimpleRumbleFeature; import org.fortiss.tooling.kernel.extension.data.IElementCompositionContext; import org.fortiss.tooling.kernel.extension.data.Prototype; -/** - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** Compositor for the {@link RaspberryPi}. */ public class RaspberryPiCompositor extends PlatformArchitectureElementCompositorBase<IPlatformArchitectureElement> { - /** {@inheritDoc} */ @Override public boolean canComposePrototype(Prototype prototype) { diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryToCanCompositor.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryToCanCompositor.java index 7c18a6de..2552acc5 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryToCanCompositor.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/compose/RaspberryToCanCompositor.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -30,15 +28,9 @@ import org.fortiss.tooling.kernel.extension.data.IConnectionCompositionContext; /** * Connection compositor for {@link RaspberryPi} to {@link CanBus} connections. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: */ public class RaspberryToCanCompositor implements IConnectionCompositor<IHierarchicElement, CanConnector, CanConnector> { - /** {@inheritDoc} */ @Override public boolean canConnect(CanConnector source, CanConnector target, IHierarchicElement parent, @@ -61,7 +53,6 @@ public class RaspberryToCanCompositor implements @Override public boolean canReconnect(EObject connection, CanConnector source, CanConnector target, IConnectionCompositionContext context) { - // TODO Auto-generated method stub return false; } @@ -69,7 +60,6 @@ public class RaspberryToCanCompositor implements @Override public boolean reconnect(EObject connection, CanConnector source, CanConnector target, IConnectionCompositionContext context) { - // TODO Auto-generated method stub return false; } @@ -95,5 +85,4 @@ public class RaspberryToCanCompositor implements } return false; } - } diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/.ratings b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/.ratings new file mode 100644 index 00000000..2680873f --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/.ratings @@ -0,0 +1 @@ +RaspberryModelElementFactory.java 9b7ade7589599a68300771aa0f7304f0ea358ff0 YELLOW diff --git a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/RaspberryModelElementFactory.java b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/RaspberryModelElementFactory.java index 0e7705ee..9b7ade75 100644 --- a/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/RaspberryModelElementFactory.java +++ b/org.fortiss.af3.platform.raspberry/src/org/fortiss/af3/platform/raspberry/util/RaspberryModelElementFactory.java @@ -1,7 +1,5 @@ -/*--------------------------------------------------------------------------+ -$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ -| | -| Copyright 2017 fortiss GmbH | +/*-------------------------------------------------------------------------+ +| Copyright 2018 fortiss GmbH | | | | Licensed under the Apache License, Version 2.0 (the "License"); | | you may not use this file except in compliance with the License. | @@ -81,16 +79,8 @@ import org.fortiss.af3.platform.raspberry.model.rumblepad.RumblepadFactory; import org.fortiss.af3.platform.raspberry.model.rumblepad.SimpleRumbleFeature; import org.fortiss.tooling.base.utils.LayoutModelElementFactory; -/** - * Model Element for RaspberryPi and related models. - * - * @author eder - * @author $Author: hoelzl $ - * @version $Rev: 18709 $ - * @ConQAT.Rating RED Hash: - */ +/** Model Element for {@link RaspberryPi} and related model elements. */ public class RaspberryModelElementFactory { - /** Creates a {@link RaspberryPi}. */ public static RaspberryPi createRaspberryPi() { final RaspberryPi pi = RaspberryPiModelFactory.eINSTANCE.createRaspberryPi(); -- GitLab