diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.classpath b/bundles/org.eclipse.e4.ui.iconpacks/.classpath new file mode 100644 index 00000000000..375961e4d61 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.project b/bundles/org.eclipse.e4.ui.iconpacks/.project new file mode 100644 index 00000000000..c0c8347e4fe --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.project @@ -0,0 +1,39 @@ + + + org.eclipse.e4.ui.iconpacks + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.ds.core.builder + + + + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.api.tools.apiAnalysisNature + + diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..99f26c0203a --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.runtime.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..5a0ad22d2a7 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..969e620a027 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,431 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=21 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.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=ignore +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +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.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=21 +org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_bitwise_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0 +org.eclipse.jdt.core.formatter.alignment_for_logical_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_module_statements=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_string_concatenation=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_type_arguments=0 +org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0 +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_lambda_body=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.align_tags_descriptions_grouped=true +org.eclipse.jdt.core.formatter.comment.align_tags_names_descriptions=false +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.count_line_length_from_starting_position=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false +org.eclipse.jdt.core.formatter.comment.indent_root_tags=false +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert +org.eclipse.jdt.core.formatter.comment.line_length=80 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=false +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_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_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not 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_additive_operator=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_bitwise_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=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_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_relational_operator=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_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_additive_operator=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_bitwise_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_relational_operator=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_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=120 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines +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=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_additive_operator=true +org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false +org.eclipse.jdt.core.formatter.wrap_before_bitwise_operator=true +org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true +org.eclipse.jdt.core.formatter.wrap_before_logical_operator=true +org.eclipse.jdt.core.formatter.wrap_before_multiplicative_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_before_string_concatenation=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..88ed0693767 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,62 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=org.eclipse.jdt.ui.default.eclipse_profile +formatter_settings_version=14 +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_functional_interfaces=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=true +sp_cleanup.insert_inferred_type_arguments=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_redundant_type_arguments=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=true +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_anonymous_class_creation=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_lambda=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 +sp_cleanup.use_type_arguments=false diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.api.tools.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 00000000000..14da48bc6a9 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,104 @@ +ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error +ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error +ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error +API_USE_SCAN_FIELD_SEVERITY=Error +API_USE_SCAN_METHOD_SEVERITY=Error +API_USE_SCAN_TYPE_SEVERITY=Error +CLASS_ELEMENT_TYPE_ADDED_FIELD=Error +CLASS_ELEMENT_TYPE_ADDED_METHOD=Error +CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error +CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error +CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error +CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error +ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error +ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error +ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +FIELD_ELEMENT_TYPE_ADDED_VALUE=Error +FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error +FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error +FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error +FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error +ILLEGAL_EXTEND=Warning +ILLEGAL_IMPLEMENT=Warning +ILLEGAL_INSTANTIATE=Warning +ILLEGAL_OVERRIDE=Warning +ILLEGAL_REFERENCE=Warning +INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error +INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error +INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error +INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error +INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +INVALID_ANNOTATION=Ignore +INVALID_JAVADOC_TAG=Warning +INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Error +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +MISSING_EE_DESCRIPTIONS=Warning +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error +UNUSED_PROBLEM_FILTERS=Warning +automatically_removed_unused_problem_filters=false +changed_execution_env=Error +eclipse.preferences.version=1 +incompatible_api_component_version=Error +incompatible_api_component_version_include_major_without_breaking_change=Disabled +incompatible_api_component_version_include_minor_without_api_change=Disabled +incompatible_api_component_version_report_major_without_breaking_change=Error +incompatible_api_component_version_report_minor_without_api_change=Error +invalid_since_tag_version=Error +malformed_since_tag=Error +missing_since_tag=Error +report_api_breakage_when_major_version_incremented=Disabled +report_resolution_errors_api_component=Warning diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.ds.annotations.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.ds.annotations.prefs new file mode 100644 index 00000000000..5faf08b7d5c --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.ds.annotations.prefs @@ -0,0 +1,7 @@ +dsVersion=V1_4 +eclipse.preferences.version=1 +enabled=true +generateBundleActivationPolicyLazy=true +path=OSGI-INF +validationErrorLevel=error +validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.prefs new file mode 100644 index 00000000000..2ce50474bb3 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/.settings/org.eclipse.pde.prefs @@ -0,0 +1,32 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=2 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=1 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=1 +compilers.p.missing-version-require-bundle=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=1 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1 diff --git a/bundles/org.eclipse.e4.ui.iconpacks/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.ui.iconpacks/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3c51b8a7ffe --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-Vendor: %providerName +Bundle-SymbolicName: org.eclipse.e4.ui.iconpacks;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-21 +Bundle-ActivationPolicy: lazy +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)", + org.eclipse.jface;bundle-version="[3.41.0,4.0.0)" +Import-Package: org.osgi.framework;version="[1.10.0,2.0.0)" +Require-Capability: osgi.extender; + filter:="(&(osgi.extender=osgi.component)(version>=1.4)(!(version>=2.0)))" +Automatic-Module-Name: org.eclipse.e4.ui.iconpacks +Service-Component: OSGI-INF/org.eclipse.e4.ui.internal.iconpacks.IconPackImageURLModifier.xml, + OSGI-INF/org.eclipse.e4.ui.internal.iconpacks.IconPackPreferences.xml, + OSGI-INF/org.eclipse.e4.ui.internal.iconpacks.IconPackRegistry.xml diff --git a/bundles/org.eclipse.e4.ui.iconpacks/about.html b/bundles/org.eclipse.e4.ui.iconpacks/about.html new file mode 100755 index 00000000000..164f781a8fd --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/about.html @@ -0,0 +1,36 @@ + + + + +About + + +

About This Content

+ +

November 30, 2017

+

License

+ +

+ The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content + is provided to you under the terms and conditions of the Eclipse + Public License Version 2.0 ("EPL"). A copy of the EPL is + available at http://www.eclipse.org/legal/epl-2.0. + For purposes of the EPL, "Program" will mean the Content. +

+ +

+ If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may + apply to your use of any object code in the Content. Check the + Redistributor's license that was provided with the Content. If no such + license exists, contact the Redistributor. Unless otherwise indicated + below, the terms and conditions of the EPL still apply to any source + code in the Content and such source code may be obtained at http://www.eclipse.org. +

+ + + \ No newline at end of file diff --git a/bundles/org.eclipse.e4.ui.iconpacks/build.properties b/bundles/org.eclipse.e4.ui.iconpacks/build.properties new file mode 100644 index 00000000000..d87e89676ba --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/build.properties @@ -0,0 +1,21 @@ +############################################################################### +# Copyright (c) 2026 Vector Informatik GmbH and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + plugin.properties,\ + OSGI-INF/,\ + about.html,\ + schema/ +src.includes = schema/,\ + about.html diff --git a/bundles/org.eclipse.e4.ui.iconpacks/plugin.properties b/bundles/org.eclipse.e4.ui.iconpacks/plugin.properties new file mode 100644 index 00000000000..248e4d4c6ee --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/plugin.properties @@ -0,0 +1,14 @@ +############################################################################### +# Copyright (c) 2026 Vector Informatik GmbH and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +############################################################################### +pluginName = Eclipse Icon Pack Support +providerName = Eclipse.org + +extension-point.iconPacks.name = Icon Packs diff --git a/bundles/org.eclipse.e4.ui.iconpacks/plugin.xml b/bundles/org.eclipse.e4.ui.iconpacks/plugin.xml new file mode 100644 index 00000000000..0779b2d318f --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/plugin.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/bundles/org.eclipse.e4.ui.iconpacks/schema/iconPacks.exsd b/bundles/org.eclipse.e4.ui.iconpacks/schema/iconPacks.exsd new file mode 100644 index 00000000000..538e118e71a --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/schema/iconPacks.exsd @@ -0,0 +1,160 @@ + + + + + + + + + <p> +<b>This extension point is internal and not API. It may change or be removed in any release without notice.</b> +</p> +<p> +Defines icon packs that replace icons of installed bundles without changing these bundles. An icon pack replaces each icon it contains for a specific original icon, which is identified by the symbolic name of the bundle containing it and its path inside that bundle. A pack may replace icons of any number of bundles. +</p> +<p> +Which of the installed icon packs are enabled, and in which order, is defined by the preference <code>enabledIconPacks</code> of the node <code>org.eclipse.e4.ui.iconpacks</code>, which a product can set in its <code>plugin_customization.ini</code>. If more than one enabled pack replaces the same icon, the pack that comes first in that order wins. Icons that no enabled pack replaces are shown as the original icons. Changes to the enabled packs take effect after a restart. +</p> +<p> +Icons are replaced when they are loaded through a JFace <code>ImageDescriptor</code> created from a URL or from a file relative to a class, as for example done for icons of commands, views, editors and the E4 application model. HiDPI variants (<code>@2x</code>, <code>@1.5x</code>) of a replacement icon are found next to it in the icon pack bundle. +</p> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An icon pack consisting of replacement icons contained in the contributing bundle. + + + + + + + The unique ID of the icon pack. It is listed in that preference to enable the pack. + + + + + + + + + + The name of the icon pack as shown to the user. + + + + + + + + + + An optional description of the icon pack as shown to the user, e.g., which bundles or which kind of icons it covers. + + + + + + + + + + <p> +The path of the mapping file inside the contributing bundle. The mapping file is in Java properties format (UTF-8). Each key identifies an original icon as <code>&lt;bundle symbolic name&gt;/&lt;path in bundle&gt;</code> and each value is the path of the replacement icon inside the contributing bundle. One replacement icon may be used for several original icons, and the replacement may have a different file format than the original icon. A key preferably omits the file extension of the original icon, so that it matches the icon in all formats its bundle provides it in; a key with file extension matches only that file and takes precedence within the pack. As keys are written in properties format, the characters <code>:</code>, <code>=</code> and whitespace in a path must be escaped with a backslash. +</p> +<pre> +org.eclipse.ui/icons/full/etool16/copy_edit = icons/copy.svg +org.eclipse.jface/icons/full/message_error = icons/error.svg +</pre> +<p> +For icons loaded relative to a class, the path is relative to the bundle class path, which for most bundles is the bundle root. +</p> + + + + + + + + + + + + + + + 4.43 + + + + + + + + + <pre> +<extension point="org.eclipse.e4.ui.iconpacks.iconPacks"> + <iconPack + id="org.example.iconpack.flat" + name="Flat Icons" + description="Flat icons for the Eclipse Platform UI" + mapping="iconpack.properties"> + </iconPack> +</extension> +</pre> + + + + + + + + + Copyright (c) 2026 Vector Informatik GmbH and others.<br> + +This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-2.0</a>/ + +SPDX-License-Identifier: EPL-2.0 + + + + diff --git a/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconKeys.java b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconKeys.java new file mode 100644 index 00000000000..87140f581a0 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconKeys.java @@ -0,0 +1,166 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.e4.ui.internal.iconpacks; + +import java.net.URL; +import java.util.Arrays; +import java.util.Locale; +import java.util.Set; +import java.util.function.LongFunction; +import java.util.stream.Collectors; + +/** + * Computes the keys that identify original icons independently of the URL they + * are loaded from. A key has the form + * <bundle symbolic name>/<path in bundle>, which is + * what platform:/plugin/<bundle>/<path> expresses. + * Without the image file extension, see {@link #stem(String)}, a key identifies + * an icon in all the formats a bundle provides it in, e.g., a.png + * and a.svg. + */ +public final class IconKeys { + + private static final String PLATFORM_PLUGIN_PREFIX = "/plugin/"; //$NON-NLS-1$ + private static final String PLATFORM_FRAGMENT_PREFIX = "/fragment/"; //$NON-NLS-1$ + private static final String FRAMEWORK_ID_SEPARATOR = ".fwk"; //$NON-NLS-1$ + private static final Set PATH_VARIABLES = Set.of("$nl$", "$os$", "$ws$", "$arch$"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + private static final Set IMAGE_EXTENSIONS = Set.of("png", "gif", "svg", "jpg", "jpeg", "bmp", "ico", "tif", "tiff"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ + + private IconKeys() { + } + + /** + * Computes the key of the icon loaded from the given URL. Supported are + * platform:/plugin/, platform:/fragment/, + * bundleentry: and bundleresource: URLs. + *

+ * For bundleresource: URLs, as created by + * {@link Class#getResource(String)}, the path is relative to the bundle class + * path entry, which for most bundles is the bundle root. + *

+ *

+ * Path variables such as $nl$ in platform: URLs are + * dropped, so that an icon declared as $nl$/icons/a.svg has the + * same key as icons/a.svg. + *

+ * + * @param url the URL an image is loaded from + * @param bundleIdToSymbolicName resolves the ID of an installed bundle to its + * symbolic name, returns null for + * unknown IDs + * @return the key of the icon, or null if the URL does not + * denote a resource of a bundle + */ + public static String fromURL(URL url, LongFunction bundleIdToSymbolicName) { + String protocol = url.getProtocol(); + String path = url.getPath(); + if (path == null) { + return null; + } + switch (protocol) { + case "platform": //$NON-NLS-1$ + if (path.startsWith(PLATFORM_PLUGIN_PREFIX)) { + return normalizeKey(path.substring(PLATFORM_PLUGIN_PREFIX.length())); + } + if (path.startsWith(PLATFORM_FRAGMENT_PREFIX)) { + return normalizeKey(path.substring(PLATFORM_FRAGMENT_PREFIX.length())); + } + return null; + case "bundleentry": //$NON-NLS-1$ + case "bundleresource": //$NON-NLS-1$ + long bundleId = parseBundleId(url.getHost()); + if (bundleId < 0) { + return null; + } + String symbolicName = bundleIdToSymbolicName.apply(bundleId); + return symbolicName == null ? null : toKey(symbolicName, path); + default: + return null; + } + } + + /** + * @param symbolicName the symbolic name of the bundle containing the icon + * @param path the path of the icon inside the bundle + * @return the key of the icon + */ + public static String toKey(String symbolicName, String path) { + return symbolicName + '/' + stripLeadingSlashes(path); + } + + /** + * Normalizes a key as written in an icon pack mapping file by removing + * surrounding whitespace, leading slashes and path variables such as + * $nl$. + * + * @param key the key to normalize + * @return the normalized key, or null if it does not consist of a + * bundle symbolic name and a path + */ + public static String normalizeKey(String key) { + String result = stripLeadingSlashes(removePathVariables(key.trim())); + int separator = result.indexOf('/'); + if (separator <= 0 || separator == result.length() - 1) { + return null; + } + return toKey(result.substring(0, separator), result.substring(separator + 1)); + } + + /** + * @param key the key of an icon + * @return the key without the image file extension, e.g., + * org.eclipse.ui/icons/a for + * org.eclipse.ui/icons/a.svg, or the given key if it + * has no image file extension + */ + public static String stem(String key) { + int dot = key.lastIndexOf('.'); + if (dot <= key.lastIndexOf('/') + 1) { + return key; + } + String extension = key.substring(dot + 1).toLowerCase(Locale.ROOT); + return IMAGE_EXTENSIONS.contains(extension) ? key.substring(0, dot) : key; + } + + /** + * Parses the bundle ID from the host of a bundleentry: or + * bundleresource: URL, which has the form + * <bundle id>.fwk<framework hash>. + */ + private static long parseBundleId(String host) { + if (host == null || host.isEmpty()) { + return -1; + } + int separator = host.indexOf(FRAMEWORK_ID_SEPARATOR); + String id = separator < 0 ? host : host.substring(0, separator); + try { + return Long.parseLong(id); + } catch (NumberFormatException e) { + return -1; + } + } + + private static String removePathVariables(String path) { + if (path.indexOf('$') < 0) { + return path; + } + return Arrays.stream(path.split("/", -1)).filter(segment -> !PATH_VARIABLES.contains(segment)) //$NON-NLS-1$ + .collect(Collectors.joining("/")); //$NON-NLS-1$ + } + + private static String stripLeadingSlashes(String path) { + int start = 0; + while (start < path.length() && path.charAt(start) == '/') { + start++; + } + return path.substring(start); + } +} diff --git a/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPack.java b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPack.java new file mode 100644 index 00000000000..91f4644a959 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPack.java @@ -0,0 +1,145 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.e4.ui.internal.iconpacks; + +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.Reader; +import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Properties; + +import org.eclipse.core.runtime.ILog; +import org.osgi.framework.Bundle; + +/** + * An icon pack contributed via the org.eclipse.e4.ui.iconpacks.iconPacks + * extension point. It replaces original icons, identified by + * <bundle symbolic name>/<path in bundle>, with icons + * contained in the contributing bundle. + *

+ * The replacements are defined in a mapping file in properties format, whose + * keys are the original icons and whose values are the paths of the + * replacement icons inside the contributing bundle: + *

+ * + *
+ * org.eclipse.ui/icons/full/etool16/copy_edit.svg = icons/copy.svg
+ * 
+ */ +public final class IconPack { + + private final String id; + private final String name; + private final String description; + private final Bundle bundle; + private final String mappingPath; + + /** + * @param id the unique ID of the pack + * @param name the name of the pack as shown to the user + * @param description the description of the pack, or null + * @param bundle the bundle containing the mapping file and the + * replacement icons + * @param mappingPath the path of the mapping file inside the bundle + */ + public IconPack(String id, String name, String description, Bundle bundle, String mappingPath) { + this.id = Objects.requireNonNull(id); + this.name = Objects.requireNonNull(name); + this.description = description; + this.bundle = Objects.requireNonNull(bundle); + this.mappingPath = Objects.requireNonNull(mappingPath); + } + + public String getId() { + return id; + } + + public String getName() { + return name; + } + + /** + * @return the description of the pack, or null if it has none + */ + public String getDescription() { + return description; + } + + /** + * @return the symbolic name of the bundle providing the pack + */ + public String getContributorName() { + return bundle.getSymbolicName(); + } + + /** + * Reads the mapping file of this pack. Entries whose replacement icon is empty, + * ends with a slash or does not exist are logged and skipped, as is a + * malformed mapping file. + * + * @return the replacement URLs by normalized original icon key, with or + * without image file extension, see {@link IconKeys} + */ + public Map loadReplacements() { + URL mappingURL = bundle.getEntry(mappingPath); + if (mappingURL == null) { + log().error("Mapping file '" + mappingPath + "' of icon pack '" + id + "' not found in bundle " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + + bundle.getSymbolicName()); + return Collections.emptyMap(); + } + Properties mapping = new Properties(); + try (InputStream in = mappingURL.openStream(); + Reader reader = new InputStreamReader(in, StandardCharsets.UTF_8)) { + mapping.load(reader); + } catch (IOException | IllegalArgumentException e) { + log().error("Cannot read mapping file of icon pack '" + id + "'", e); //$NON-NLS-1$ //$NON-NLS-2$ + return Collections.emptyMap(); + } + Map replacements = new HashMap<>(); + for (String original : mapping.stringPropertyNames()) { + String replacementPath = mapping.getProperty(original).trim(); + String key = IconKeys.normalizeKey(original); + if (key == null) { + log().warn("Ignoring invalid original icon '" + original + "' in icon pack '" + id + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + continue; + } + if (replacementPath.isEmpty() || replacementPath.endsWith("/")) { //$NON-NLS-1$ + log().warn("Ignoring invalid replacement icon '" + replacementPath + "' for '" + original //$NON-NLS-1$ //$NON-NLS-2$ + + "' in icon pack '" + id + "'"); //$NON-NLS-1$ //$NON-NLS-2$ + continue; + } + URL replacement = bundle.getEntry(replacementPath); + if (replacement == null) { + log().warn("Replacement icon '" + replacementPath + "' of icon pack '" + id + "' not found"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + continue; + } + if (replacements.put(key, replacement) != null) { + log().warn("Icon '" + key + "' is mapped more than once in icon pack '" + id + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + } + } + return replacements; + } + + private static ILog log() { + return ILog.of(IconPack.class); + } + + @Override + public String toString() { + return "IconPack[" + id + "]"; //$NON-NLS-1$ //$NON-NLS-2$ + } +} diff --git a/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackImageURLModifier.java b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackImageURLModifier.java new file mode 100644 index 00000000000..e37cc3b45c9 --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackImageURLModifier.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.e4.ui.internal.iconpacks; + +import java.net.URL; + +import org.eclipse.jface.internal.provisional.resource.IImageURLModifier; +import org.osgi.framework.Bundle; +import org.osgi.framework.BundleContext; +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * Replaces image URLs with the icons of the enabled icon packs. The E4 + * workbench installs this service in JFace. + *

+ * The service is only registered once the workspace has been chosen, as it + * depends on the {@link IconPackRegistry}, which depends on the + * {@link IconPackPreferences}. The enabled packs are read on the first image + * load after that. Images loaded + * before, e.g., in the workspace selection dialog, are not reloaded and keep + * their original icons at the zoom levels already rendered. Changing the + * enabled packs takes effect after a restart. + *

+ */ +@Component(service = IImageURLModifier.class) +public class IconPackImageURLModifier implements IImageURLModifier { + + private final BundleContext bundleContext; + private final IconPackRegistry iconPacks; + + @Activate + public IconPackImageURLModifier(BundleContext context, @Reference IconPackRegistry iconPacks) { + this.bundleContext = context; + this.iconPacks = iconPacks; + } + + @Override + public URL modifyURL(URL originalURL) { + String key = IconKeys.fromURL(originalURL, this::getSymbolicName); + return key == null ? null : iconPacks.findReplacement(key); + } + + private String getSymbolicName(long bundleId) { + Bundle bundle = bundleContext.getBundle(bundleId); + return bundle == null ? null : bundle.getSymbolicName(); + } +} diff --git a/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackPreferences.java b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackPreferences.java new file mode 100644 index 00000000000..1553ffe933c --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackPreferences.java @@ -0,0 +1,84 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.e4.ui.internal.iconpacks; + +import java.util.Collections; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; + +import org.eclipse.core.runtime.preferences.IPreferencesService; +import org.eclipse.core.runtime.preferences.IScopeContext; +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * Access to the preference that stores the enabled icon packs in the order of + * their precedence. The preference is stored in the instance (workspace) scope; + * products can define a default in their plugin_customization.ini: + * + *
+ * org.eclipse.e4.ui.iconpacks/enabledIconPacks=first.pack.id,second.pack.id
+ * 
+ *

+ * The service is only available once the instance location is set, as Equinox + * registers the referenced bundle scope only then. + *

+ */ +@Component(service = IconPackPreferences.class) +public final class IconPackPreferences { + + /** Qualifier of the preference node. */ + public static final String QUALIFIER = "org.eclipse.e4.ui.iconpacks"; //$NON-NLS-1$ + + /** Key of the comma-separated list of enabled icon pack IDs. */ + public static final String ENABLED_ICON_PACKS = "enabledIconPacks"; //$NON-NLS-1$ + + private static final String SEPARATOR = ","; //$NON-NLS-1$ + + private final IPreferencesService service; + + /** + * @param instanceLocationSet not used: reading the preferences requires the + * instance location to be set + */ + @Activate + public IconPackPreferences(@Reference IPreferencesService service, + @Reference(target = IScopeContext.BUNDLE_SCOPE_FILTER) IScopeContext instanceLocationSet) { + this.service = service; + } + + /** + * @return the IDs of the enabled icon packs, ordered by precedence + */ + public List getEnabledIconPackIds() { + return parse(service.getString(QUALIFIER, ENABLED_ICON_PACKS, "", null)); //$NON-NLS-1$ + } + + /** + * @param value a comma-separated list of icon pack IDs + * @return the distinct, non-empty IDs in the order of their first occurrence + */ + static List parse(String value) { + if (value == null || value.isBlank()) { + return Collections.emptyList(); + } + Set ids = new LinkedHashSet<>(); + for (String id : value.split(SEPARATOR)) { + String trimmed = id.trim(); + if (!trimmed.isEmpty()) { + ids.add(trimmed); + } + } + return List.copyOf(ids); + } +} diff --git a/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackRegistry.java b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackRegistry.java new file mode 100644 index 00000000000..0b4c0ded8fc --- /dev/null +++ b/bundles/org.eclipse.e4.ui.iconpacks/src/org/eclipse/e4/ui/internal/iconpacks/IconPackRegistry.java @@ -0,0 +1,182 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.e4.ui.internal.iconpacks; + +import java.net.URL; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.Set; + +import org.eclipse.core.runtime.ContributorFactoryOSGi; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.core.runtime.IExtensionRegistry; +import org.eclipse.core.runtime.ILog; +import org.osgi.framework.Bundle; +import org.osgi.service.component.annotations.Activate; +import org.osgi.service.component.annotations.Component; +import org.osgi.service.component.annotations.Reference; + +/** + * Reads the icon packs contributed to the + * org.eclipse.e4.ui.iconpacks.iconPacks extension point and finds + * the replacements of the icon packs enabled in the preferences. The enabled + * packs are read on the first lookup, not on construction: SCR may create this + * component inside the instance location's service event, while the location's + * monitor is held. + */ +@Component(service = IconPackRegistry.class) +public final class IconPackRegistry { + + /** ID of the icon packs extension point. */ + public static final String EXTENSION_POINT_ID = "org.eclipse.e4.ui.iconpacks.iconPacks"; //$NON-NLS-1$ + + private static final String ELEMENT_ICON_PACK = "iconPack"; //$NON-NLS-1$ + private static final String ATTRIBUTE_ID = "id"; //$NON-NLS-1$ + private static final String ATTRIBUTE_NAME = "name"; //$NON-NLS-1$ + private static final String ATTRIBUTE_DESCRIPTION = "description"; //$NON-NLS-1$ + private static final String ATTRIBUTE_MAPPING = "mapping"; //$NON-NLS-1$ + + private final IExtensionRegistry registry; + private final IconPackPreferences preferences; + + /** The enabled packs in order of precedence. */ + private volatile List enabledPacks; + + @Activate + public IconPackRegistry(@Reference IExtensionRegistry registry, @Reference IconPackPreferences preferences) { + this.registry = registry; + this.preferences = preferences; + } + + /** + * @return all contributed icon packs, sorted by name + */ + public List getIconPacks() { + return readIconPacks(registry.getConfigurationElementsFor(EXTENSION_POINT_ID)); + } + + /** + * @param key the key of the original icon including its file extension, see + * {@link IconKeys} + * @return the URL of the replacement icon, or null if no enabled + * pack replaces the icon. The first enabled pack replacing the icon + * wins; within a pack, the key with extension wins over the key + * without. + */ + public URL findReplacement(String key) { + List packs = getEnabledPacks(); + if (packs.isEmpty()) { + return null; + } + String stem = IconKeys.stem(key); + for (IconPackReplacements pack : packs) { + URL replacement = pack.find(key, stem); + if (replacement != null) { + return replacement; + } + } + return null; + } + + private List getEnabledPacks() { + List result = enabledPacks; + if (result == null) { + result = loadEnabledPacks(); + enabledPacks = result; + } + return result; + } + + private List loadEnabledPacks() { + List available = getIconPacks(); + List result = new ArrayList<>(); + for (String id : preferences.getEnabledIconPackIds()) { + Optional iconPack = available.stream().filter(pack -> pack.getId().equals(id)).findFirst(); + if (iconPack.isPresent()) { + result.add(new IconPackReplacements(iconPack.get().loadReplacements())); + } else { + log().warn("Enabled icon pack '" + id + "' in preference " + IconPackPreferences.QUALIFIER + '/' //$NON-NLS-1$ //$NON-NLS-2$ + + IconPackPreferences.ENABLED_ICON_PACKS + " is not installed"); //$NON-NLS-1$ + } + } + return List.copyOf(result); + } + + /** + * The loaded replacements of an enabled icon pack, by the key of the original + * icon with or without file extension. + */ + private record IconPackReplacements(Map byKey) { + + URL find(String key, String stem) { + URL replacement = byKey.get(key); + return replacement != null ? replacement : byKey.get(stem); + } + } + + /** + * @param elements the configuration elements contributed to the icon packs + * extension point + * @return the valid icon packs defined by the elements, sorted by name; for + * duplicate IDs only the first pack is kept + */ + static List readIconPacks(IConfigurationElement[] elements) { + List iconPacks = new ArrayList<>(); + Set ids = new HashSet<>(); + for (IConfigurationElement element : elements) { + if (!ELEMENT_ICON_PACK.equals(element.getName())) { + continue; + } + IconPack iconPack = readIconPack(element); + if (iconPack == null) { + continue; + } + if (!ids.add(iconPack.getId())) { + log().warn("Ignoring icon pack with duplicate ID '" + iconPack.getId() + "' contributed by " //$NON-NLS-1$ //$NON-NLS-2$ + + iconPack.getContributorName()); + continue; + } + iconPacks.add(iconPack); + } + iconPacks.sort(Comparator.comparing(IconPack::getName, String.CASE_INSENSITIVE_ORDER)); + return iconPacks; + } + + private static IconPack readIconPack(IConfigurationElement element) { + String contributor = element.getContributor().getName(); + String id = element.getAttribute(ATTRIBUTE_ID); + String name = element.getAttribute(ATTRIBUTE_NAME); + String mapping = element.getAttribute(ATTRIBUTE_MAPPING); + if (isBlank(id) || isBlank(name) || isBlank(mapping)) { + log().error("Ignoring icon pack without id, name or mapping contributed by " + contributor); //$NON-NLS-1$ + return null; + } + Bundle bundle = ContributorFactoryOSGi.resolve(element.getContributor()); + if (bundle == null) { + log().error("Ignoring icon pack '" + id + "' because its bundle cannot be resolved: " + contributor); //$NON-NLS-1$ //$NON-NLS-2$ + return null; + } + return new IconPack(id.trim(), name.trim(), element.getAttribute(ATTRIBUTE_DESCRIPTION), bundle, + mapping.trim()); + } + + private static boolean isBlank(String value) { + return value == null || value.isBlank(); + } + + private static ILog log() { + return ILog.of(IconPackRegistry.class); + } +} diff --git a/bundles/org.eclipse.jface/META-INF/MANIFEST.MF b/bundles/org.eclipse.jface/META-INF/MANIFEST.MF index 4eb25fea6ea..e2a7a90b160 100644 --- a/bundles/org.eclipse.jface/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.jface/META-INF/MANIFEST.MF @@ -20,7 +20,7 @@ Export-Package: org.eclipse.jface, org.eclipse.jface.images, org.eclipse.jface.internal;x-friends:="org.eclipse.ui.workbench,org.eclipse.e4.ui.workbench.renderers.swt,org.eclipse.jface.tests", org.eclipse.jface.internal.provisional.action;x-friends:="org.eclipse.ui.workbench,org.eclipse.ui.ide", - org.eclipse.jface.internal.provisional.resource;x-friends:="org.eclipse.e4.ui.workbench.swt,org.eclipse.e4.ui.tests,org.eclipse.jface.tests", + org.eclipse.jface.internal.provisional.resource;x-friends:="org.eclipse.e4.ui.iconpacks,org.eclipse.e4.ui.workbench.swt,org.eclipse.e4.ui.tests,org.eclipse.jface.tests", org.eclipse.jface.layout, org.eclipse.jface.menus, org.eclipse.jface.operation, diff --git a/docs/IconPacks.md b/docs/IconPacks.md new file mode 100644 index 00000000000..7d5352ff450 --- /dev/null +++ b/docs/IconPacks.md @@ -0,0 +1,106 @@ +# Icon Packs + +> **Internal:** icon pack support is a first increment and not API. +> The extension point, the mapping format and the preference may change or be removed in any release without notice. + +Icon packs replace icons of installed bundles without changing these bundles. +They can be provided by the providers of the bundles themselves or by third parties, and they can be combined. +The concept is discussed in [eclipse.platform.ui#2870](https://github.com/eclipse-platform/eclipse.platform.ui/discussions/2870). + +## Using icon packs + +Icon packs are enabled by the preference `enabledIconPacks` of the node `org.eclipse.e4.ui.iconpacks`, a +comma-separated list of icon pack IDs ordered by precedence. Changes take effect after a restart. + +- If more than one enabled pack replaces the same icon, the pack that comes first in the list wins. +- Icons that no enabled pack replaces keep their original appearance. +- Packs do not need to know each other, so a user can, for example, combine a pack for the Platform with a pack in a + different style for an extension for which no pack in the Platform's style exists. + +The preference is stored per workspace. +A product can enable icon packs by default via its `plugin_customization.ini`: + +```properties +org.eclipse.e4.ui.iconpacks/enabledIconPacks=org.example.iconpack.flat,org.example.iconpack.pink +``` + +## Providing an icon pack + +An icon pack is an ordinary bundle containing the replacement icons, a mapping file and an extension to +`org.eclipse.e4.ui.iconpacks.iconPacks`: + +```xml + + + + +``` + +The mapping file is in properties format. +Each key identifies an original icon by the symbolic name of the bundle containing it and its path inside that bundle, +preferably without the file extension. +Each value is the path of the replacement icon inside the icon pack bundle: + +```properties +org.eclipse.ui/icons/full/etool16/copy_edit = icons/copy.svg +org.eclipse.ui/icons/full/etool16/paste_edit = icons/paste.svg +org.eclipse.jface/icons/full/message_error = icons/error.svg +``` + +- One pack may replace icons of any number of bundles, and one bundle may define several packs. +- One replacement icon may be used for several original icons. +- The replacement may have a different format than the original icon, e.g., an SVG icon may replace a PNG icon. +- A key without file extension matches the icon in all formats its bundle provides, e.g., both `copy_edit.png` and + `copy_edit.svg`, and keeps matching when the bundle changes the format of an icon. + A key with file extension matches only that file, e.g., to replace one format of an icon differently. + Within a pack, it takes precedence over the key without extension, while across packs the first enabled pack that + replaces an icon wins either way. +- HiDPI variants of PNG replacements (`@2x`, `@1.5x`) are found next to the replacement icon. +- For icons that are loaded relative to a class, e.g., with `ImageDescriptor.createFromFile(Class, String)`, the path + is relative to the bundle class path, which for most bundles is the bundle root. +- Keys are written in properties syntax, so `:`, `=` and whitespace in paths must be escaped with a backslash. + +To try out how icon packs are combined, see the three small packs with overlapping icons in +`examples/org.eclipse.ui.examples.iconpacks`. + +## How it works + +The `org.eclipse.e4.ui.iconpacks` bundle registers an `IImageURLModifier` service, which the E4 workbench installs in +JFace. +Whenever JFace loads an image from a URL, the service maps the URL to the original icon and returns the replacement +of the first enabled pack that replaces it. +`platform:/plugin/`, `platform:/fragment/`, `bundleentry:` and `bundleresource:` URLs are supported, which covers +icons of commands, views, editors, the E4 application model and images created with +`ImageDescriptor.createFromFile(Class, String)`. +As the workbench installs only the highest ranked `IImageURLModifier`, a bundle that registers its own modifier with a +higher ranking than the default replaces this service, and icon packs are then not applied. + +## Design decisions + +- [ADR 2: contribution via an extension point](adr/0002-icon-packs-extension-point.md) +- [ADR 3: mapping of replacement icons in a properties file](adr/0003-icon-packs-mapping-file.md) + +## Limitations + +- Changes take effect after a restart, as images that have already been created are not reloaded. +- Images that are not loaded via a JFace `ImageDescriptor` from a URL are not replaced. + This applies, for example, to images created directly with SWT and images in help and documentation pages. +- Images that are loaded before a workspace is selected keep their original appearance. + Shared images created then, e.g., JFace dialog images shown in the workspace launcher, are not reloaded, but may + show the replacement at zoom levels at which they are first rendered later, e.g., on a monitor with a different + scaling. +- The enabled packs are only read once the workspace location is set, so applications that define a workspace location + but never set it, or that run without one (`-data @none`), do not apply icon packs. +- Icons are identified by the bundle named in the URL they are loaded from. + Icons of a fragment are identified by the fragment when they are loaded via `FileLocator`, `Bundle.getEntry` or + `platform:/fragment/`, and by the host when they are loaded via `platform:/plugin//` (e.g., icons located + with `ResourceLocator.imageDescriptorFromBundle(String, String)` or `AbstractUIPlugin.imageDescriptorFromPlugin`) + or relative to a class. + A pack that replaces icons of a fragment therefore lists both keys. + +For products that fully control their content, replacing resources with the Equinox transforms hook remains an +alternative, see `examples/org.eclipse.ui.examples.iconpack`. diff --git a/docs/adr/0002-icon-packs-extension-point.md b/docs/adr/0002-icon-packs-extension-point.md new file mode 100644 index 00000000000..262af6284d3 --- /dev/null +++ b/docs/adr/0002-icon-packs-extension-point.md @@ -0,0 +1,81 @@ +# 2. Icon packs: contribution via an extension point + +How a bundle declares that it provides an icon pack, so that the platform can list the installed +packs and apply the enabled ones. This decision covers the mechanism by which packs are +contributed, not how a pack assigns its icons. + +## Status + +Accepted. + +## Context + +Icon packs replace icons of installed bundles without changing these bundles. As agreed in +[discussion #2870](https://github.com/eclipse-platform/eclipse.platform.ui/discussions/2870#discussioncomment-18747788), +packs come from different providers, such as the Platform, other projects or third parties, and +the user enables some of them and orders them by precedence. The +[`IImageURLModifier` hook](https://github.com/eclipse-platform/eclipse.platform.ui/pull/4399) +lets one service rewrite every image URL that JFace loads, and the icon pack runtime is that +service. It needs to know which packs are installed, and the user needs to see them by name to +choose among them. + +The requirements on the contribution mechanism are: + +1. A pack bundle needs no code, so that contributors who create icons can provide a pack without + writing Java. +2. The installed packs can be listed, e.g., on a preference page, without activating the pack + bundles or loading classes from them. +3. What the user sees of a pack can be translated. + +## Decision + +Bundles declare icon packs as contributions to an extension point, and the runtime reads them +from the extension registry. + +### Alternatives + +**OSGi services, e.g., declarative services components.** Each pack registers a service that +describes it and provides its replacements, as +[proposed in the discussion](https://github.com/eclipse-platform/eclipse.platform.ui/discussions/2870#discussioncomment-18799936). +This works without the Equinox extension registry and supports packs coming and going at runtime. + +A component always needs an implementation class, though, so a pack bundle would either contain +code, against requirement 1, or reference a generic implementation of the runtime bundle, which +makes that implementation part of the contract between the runtime and every pack bundle. +Listing the packs requires the service component runtime to activate every pack bundle, against +requirement 2, and component properties have no localization of their own, against +requirement 3. Packs coming and going at runtime are of no use yet either, as images that +already exist are not reloaded, so packs only take effect after a restart. + +**Manifest headers (OSGi extender pattern).** A pack bundle declares its pack by manifest headers: +its symbolic name as the ID, its localized name and description, and a custom header naming the +mapping file, as +[proposed in the review](https://github.com/eclipse-platform/eclipse.platform.ui/pull/4603#discussion_r4809583352). +This meets requirements 1 to 3, works without the Equinox extension registry and needs no +`plugin.xml`. It ties a pack to its bundle, though: + +- A bundle can provide only one pack, while the example bundle provides three. +- Renaming the bundle changes the pack ID stored in the preference and silently disables the pack. +- The bundle name doubles as the name by which users choose the pack. +- Further structure, such as a + [light or dark variant](https://github.com/eclipse-platform/eclipse.platform.ui/pull/4603#issuecomment-7280400949), + a pack [extending another one](https://github.com/eclipse-platform/eclipse.platform.ui/pull/4603#issuecomment-7334817195) + or icon themes combining packs, would need custom header syntax that PDE does not validate, + instead of optional attributes and elements in the schema. + +## Consequences + +- An icon pack bundle consists of an extension, a mapping file and icons, without any code. +- PDE validates contributions against the schema of the extension point. +- Icon packs depend on the Equinox extension registry. OSGi applications without it cannot + contribute packs. +- OSGi services or manifest headers can be added as further sources of packs later, without + changing how users enable and order packs. + +## Related + +- `IconPackRegistry` and `schema/iconPacks.exsd` in `org.eclipse.e4.ui.iconpacks` +- [docs/IconPacks.md](../IconPacks.md) +- Discussion +- Pull request , the + `IImageURLModifier` hook diff --git a/docs/adr/0003-icon-packs-mapping-file.md b/docs/adr/0003-icon-packs-mapping-file.md new file mode 100644 index 00000000000..34fb56523fc --- /dev/null +++ b/docs/adr/0003-icon-packs-mapping-file.md @@ -0,0 +1,108 @@ +# 3. Icon packs: mapping of replacement icons in a properties file + +How an icon pack assigns its replacement icons to the original icons they replace. This decision +covers the format of that assignment, not how a pack is contributed. + +## Status + +Accepted. + +## Context + +An original icon is identified by the symbolic name of the bundle containing it and its path +inside that bundle, as `platform:/plugin//` expresses. The runtime maps every image +URL it sees to such a key, so a pack needs to state, for each key it replaces, which of its own +icons to use instead. +[Discussion #2870](https://github.com/eclipse-platform/eclipse.platform.ui/discussions/2870#discussioncomment-18747788) +left open whether this is done by a path convention or by an explicit mapping. The requirements +are: + +1. A replacement can have a different file name and format than the original, e.g., an SVG icon + replacing a GIF icon. +2. One replacement can replace several originals, as different bundles often contain their own + copies of icons for the same concept, such as delete or search. +3. A pack can replace icons of any number of bundles and can have hundreds of entries. +4. The mapping can be generated, e.g., from the data of the project designing the icons, and + reviewed as text. +5. Reading it needs no additional dependencies in the runtime. + +## Decision + +The `mapping` attribute of an icon pack names a file in Java properties format inside the pack +bundle. Each key is an original icon as `/`, and each value +is the path of the replacement icon inside the pack bundle: + +```properties +org.eclipse.ui/icons/full/etool16/copy_edit = icons/copy.svg +org.eclipse.ui/icons/full/etool16/paste_edit = icons/paste.svg +``` + +A key without the file extension of the original icon, as recommended and shown above, matches the +icon in every format, so `copy_edit` covers both `copy_edit.png` and `copy_edit.svg`. Bundles often +provide an icon in several formats side by side, e.g., the PNG icons kept next to the SVG icons +added later, and code outside the bundle may still load an older format, so a key including the +extension would replace the icon only where it is loaded in that format, and would silently stop +matching when the bundle changes the format of an icon. A key with extension remains possible for +replacing one format of an icon differently. Within a pack, it takes precedence over the key +without extension; across packs, the first enabled pack that replaces an icon wins either way, so +that the order of the packs alone decides between them. + +Keys of icons loaded relative to a class are relative to the bundle class path, as that is the +path in the URL JFace loads them from. + +### Alternatives + +**A path convention.** The pack bundle contains each replacement at a path that encodes the +original, e.g., `res//`, so no mapping has to be maintained. A replacement then +has to have the same name and format as the original, against requirement 1, and has to be +duplicated for every original it replaces, against requirement 2. + +**JSON.** A JSON file can structure the mapping more freely, e.g., by listing for each +replacement the originals it replaces, which suits requirement 2. No bundle of the Platform UI +parses JSON, so the runtime would need a parser such as Gson as a new dependency, against +requirement 5. Mappings that icon projects keep as JSON can instead be converted into the chosen +format by a script. + +**Elements in the extension.** Each replacement is an `` +element of the `iconPack` element. PDE would validate the entries against the schema, but +`plugin.xml` would grow by hundreds of elements per pack, against requirement 3, and the +extension point would have to be changed to change the format. + +**Keys always including the file extension.** Each format of an icon is mapped separately. Hundreds +of icons exist in several formats in the Platform repositories, so a pack would have to list every +format to replace an icon consistently, and would miss formats added later. + +**File extension always ignored.** Keys with and without extension match all formats. This needs a +rule for a pack listing both `copy_edit.png` and `copy_edit.svg` with different replacements, and +makes replacing one format differently impossible. + +**Java objects.** Bundles declare their icons as Java objects, and a pack defines its replacements +as Java objects referencing these icons, as +[proposed in the discussion](https://github.com/eclipse-platform/eclipse.platform.ui/discussions/2870#discussioncomment-18799936). +This gives compile-time references to icons and would allow replacing icons on widgets at +runtime. It requires code in every pack bundle, so that providing a pack needs Java and not +only icons, and new public API in every bundle whose icons are replaced. Icons not declared this +way would still need the mapping by bundle and path, so this is a separate topic of its own +rather than a replacement of the mapping. + +## Consequences + +- An entry is one line, so a mapping can be generated, diffed and reviewed easily. +- A pack has at most one replacement per original and format. If a key occurs more than once, + the properties format silently keeps the last value. +- A key copied with its extension from where an icon is declared matches only that format. The + documentation and examples therefore use keys without extension. +- `:`, `=` and whitespace separate keys from values in properties syntax, so they have to be + escaped with a backslash in paths. In particular, keys cannot be written as + `platform:/plugin/...` URLs. +- Paths of class-relative icons differ from their paths in the source tree, e.g., + `org.eclipse.jface/org/eclipse/jface/action/images/stop.svg` instead of a path below + `src/`. +- Entries whose replacement icon does not exist are logged and ignored, so the pack's key without + extension, if any, the next enabled pack or the original icon is used. + +## Related + +- `IconPack#loadReplacements`, `IconKeys` in `org.eclipse.e4.ui.iconpacks` +- [docs/IconPacks.md](../IconPacks.md) +- Discussion diff --git a/examples/org.eclipse.ui.examples.iconpack/README.MD b/examples/org.eclipse.ui.examples.iconpack/README.MD index dad461074f7..59cf56fdf0e 100644 --- a/examples/org.eclipse.ui.examples.iconpack/README.MD +++ b/examples/org.eclipse.ui.examples.iconpack/README.MD @@ -2,6 +2,10 @@ This example demonstrate how to create an icon pack for the Eclipse IDE or a custom RCP application. +> This example replaces resources with the Equinox transforms hook, which suits products that fully control their +> content. To provide icon packs that products can enable and combine via a preference, see the +> `org.eclipse.e4.ui.iconpacks.iconPacks` extension point and the `org.eclipse.ui.examples.iconpacks` example. + An icon pack on a technical level is a simple bundle that can be installed like any other piece of software and ships one or more alternative representations of an existing icon resource to one or more bundles already installed in the system. This allows an icon pack to customize the look and feel of Eclipse RCP Applications even further diff --git a/examples/org.eclipse.ui.examples.iconpacks/.classpath b/examples/org.eclipse.ui.examples.iconpacks/.classpath new file mode 100644 index 00000000000..e722ea97158 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/.project b/examples/org.eclipse.ui.examples.iconpacks/.project new file mode 100644 index 00000000000..51dfefec9eb --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/.project @@ -0,0 +1,28 @@ + + + org.eclipse.ui.examples.iconpacks + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.resources.prefs b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..99f26c0203a --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.runtime.prefs b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..5a0ad22d2a7 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..843b8fd6a6e --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=21 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=21 diff --git a/examples/org.eclipse.ui.examples.iconpacks/META-INF/MANIFEST.MF b/examples/org.eclipse.ui.examples.iconpacks/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..0821c301455 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.eclipse.ui.examples.iconpacks;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-21 +Bundle-ActivationPolicy: lazy +Require-Bundle: org.eclipse.e4.ui.iconpacks;bundle-version="[0.1.0,1.0.0)", + org.eclipse.ui;bundle-version="3.208.0", + org.eclipse.core.runtime;bundle-version="3.32.100" +Automatic-Module-Name: org.eclipse.ui.examples.iconpacks diff --git a/examples/org.eclipse.ui.examples.iconpacks/README.md b/examples/org.eclipse.ui.examples.iconpacks/README.md new file mode 100644 index 00000000000..873c4acabb7 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/README.md @@ -0,0 +1,81 @@ +# Example for combining icon packs + +This example contributes three small icon packs via the `org.eclipse.e4.ui.iconpacks.iconPacks` extension point. They +deliberately replace overlapping sets of icons so that you can try out how enabled icon packs are combined and how +conflicts between them are resolved. + +| Icon | Example: Red | Example: Green | Example: Blue | +|-----------------|:------------:|:--------------:|:-------------:| +| Save | x | | | +| Copy | x | x | | +| Paste | x | x | x | +| Search | x | | x | +| Problems view | | x | | +| Outline view | | x | x | +| Properties view | | | x | + +The icons are recolored versions of the +[eclipse-dual-tone](https://github.com/eclipse-platform/ui-best-practices/tree/main/iconpacks/eclipse-dual-tone) +icons, so it is easy to spot which pack an icon comes from. + +## Trying it out + +1. Launch an Eclipse application that includes this bundle, e.g., a runtime workbench from your IDE. +2. Open the drop-down of the _Example Icon Packs_ button in the main toolbar, the one with three overlapping colored + squares, and select a combination of the example packs. The workbench restarts, as icon packs take effect at + startup. Clicking the button itself switches to the next combination. + +For each icon, the first enabled pack in the combination that replaces it wins. Icons that no enabled pack replaces +keep their original appearance. For example: + +- _Red, Green, Blue_: Save, Copy, Paste and Search are red, the Problems and Outline views are green, and the + Properties view is blue. +- _Blue, Green, Red_: Paste, Search and the Outline and Properties views are blue, Copy and the Problems view are + green, and Save is red. +- _Green_ only: Copy, Paste and the Problems and Outline views are green, all other icons are original. + +The drop-down stores the enabled packs in the workspace preference that the icon pack runtime reads. Without it, you +can enable the packs by launching with the program argument `-pluginCustomization `, where the file +contains the enabled packs in the order of their precedence: + +```properties +org.eclipse.e4.ui.iconpacks/enabledIconPacks=org.eclipse.ui.examples.iconpacks.red,org.eclipse.ui.examples.iconpacks.green,org.eclipse.ui.examples.iconpacks.blue +``` + +The packs can also be combined with any other installed icon pack. Put an example pack in front of it to see that the +example's icons override the other pack's icons, while all other icons still come from the other pack. + +## Defining an icon pack + +An icon pack is a bundle that contains the replacement icons, a mapping file and an extension. It needs no code: the +Java code of this example only implements the drop-down to switch between the packs. + +```xml + + + + +``` + +The mapping file is in properties format. Each key identifies an original icon by the symbolic name of the bundle +containing it and its path inside that bundle, without file extension so that it matches all formats of the icon, and +each value is the path of the replacement icon inside the icon pack bundle: + +```properties +org.eclipse.ui/icons/full/etool16/save_edit = icons/red/save.svg +``` + +One bundle can define several icon packs, and one icon pack can replace icons of any number of bundles. + +A product can enable icon packs by default via its `plugin_customization.ini`: + +```properties +org.eclipse.e4.ui.iconpacks/enabledIconPacks=org.eclipse.ui.examples.iconpacks.red,org.eclipse.ui.examples.iconpacks.blue +``` + +For products that fully control their content, replacing icons with the Equinox transforms hook remains an +alternative, see the `org.eclipse.ui.examples.iconpack` example. diff --git a/examples/org.eclipse.ui.examples.iconpacks/about.html b/examples/org.eclipse.ui.examples.iconpacks/about.html new file mode 100644 index 00000000000..164f781a8fd --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/about.html @@ -0,0 +1,36 @@ + + + + +About + + +

About This Content

+ +

November 30, 2017

+

License

+ +

+ The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content + is provided to you under the terms and conditions of the Eclipse + Public License Version 2.0 ("EPL"). A copy of the EPL is + available at http://www.eclipse.org/legal/epl-2.0. + For purposes of the EPL, "Program" will mean the Content. +

+ +

+ If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may + apply to your use of any object code in the Content. Check the + Redistributor's license that was provided with the Content. If no such + license exists, contact the Redistributor. Unless otherwise indicated + below, the terms and conditions of the EPL still apply to any source + code in the Content and such source code may be obtained at http://www.eclipse.org. +

+ + + \ No newline at end of file diff --git a/examples/org.eclipse.ui.examples.iconpacks/blue.properties b/examples/org.eclipse.ui.examples.iconpacks/blue.properties new file mode 100644 index 00000000000..947f0d354d7 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/blue.properties @@ -0,0 +1,11 @@ +# Example icon pack "Blue", see README.md +org.eclipse.ui/icons/full/etool16/paste_edit = icons/blue/paste.svg +org.eclipse.ui/icons/full/etool16/search = icons/blue/search.svg +org.eclipse.search/icons/full/etool16/search = icons/blue/search.svg +org.eclipse.search/icons/full/eview16/searchres = icons/blue/search.svg +org.eclipse.ui.ide/icons/full/etool16/search_src = icons/blue/search.svg +org.eclipse.ui/icons/full/etool16/help_search = icons/blue/search.svg +org.eclipse.ui/icons/full/eview16/outline_co = icons/blue/outline.svg +org.eclipse.ui.views/icons/full/eview16/outline_co = icons/blue/outline.svg +org.eclipse.ui/icons/full/eview16/prop_ps = icons/blue/properties.svg +org.eclipse.ui.views/icons/full/eview16/prop_ps = icons/blue/properties.svg diff --git a/examples/org.eclipse.ui.examples.iconpacks/build.properties b/examples/org.eclipse.ui.examples.iconpacks/build.properties new file mode 100644 index 00000000000..3732ac0b590 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/build.properties @@ -0,0 +1,22 @@ +############################################################################### +# Copyright (c) 2026 Vector Informatik GmbH and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + plugin.properties,\ + about.html,\ + red.properties,\ + green.properties,\ + blue.properties,\ + icons/ +src.includes = about.html diff --git a/examples/org.eclipse.ui.examples.iconpacks/green.properties b/examples/org.eclipse.ui.examples.iconpacks/green.properties new file mode 100644 index 00000000000..c6c4d0c8b38 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/green.properties @@ -0,0 +1,7 @@ +# Example icon pack "Green", see README.md +org.eclipse.ui/icons/full/etool16/copy_edit = icons/green/copy.svg +org.eclipse.ui/icons/full/etool16/paste_edit = icons/green/paste.svg +org.eclipse.ui/icons/full/eview16/problems_view = icons/green/problems_view.svg +org.eclipse.ui.ide/icons/full/eview16/problems_view = icons/green/problems_view.svg +org.eclipse.ui/icons/full/eview16/outline_co = icons/green/outline.svg +org.eclipse.ui.views/icons/full/eview16/outline_co = icons/green/outline.svg diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/blue/outline.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/outline.svg new file mode 100644 index 00000000000..7edae3ec780 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/outline.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/blue/paste.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/paste.svg new file mode 100644 index 00000000000..f7bb3151616 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/paste.svg @@ -0,0 +1,2 @@ + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/blue/properties.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/properties.svg new file mode 100644 index 00000000000..957012eba68 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/properties.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/blue/search.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/search.svg new file mode 100644 index 00000000000..322dcdaed77 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/blue/search.svg @@ -0,0 +1,4 @@ + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/green/copy.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/green/copy.svg new file mode 100644 index 00000000000..1691289c130 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/green/copy.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/green/outline.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/green/outline.svg new file mode 100644 index 00000000000..7caa3d0cff5 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/green/outline.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/green/paste.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/green/paste.svg new file mode 100644 index 00000000000..25f8d3e906b --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/green/paste.svg @@ -0,0 +1,2 @@ + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/green/problems_view.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/green/problems_view.svg new file mode 100644 index 00000000000..b4d23f4c8b8 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/green/problems_view.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/presets.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/presets.svg new file mode 100644 index 00000000000..45ce0723fc5 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/presets.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/red/copy.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/red/copy.svg new file mode 100644 index 00000000000..9b659876374 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/red/copy.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/red/paste.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/red/paste.svg new file mode 100644 index 00000000000..78570773209 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/red/paste.svg @@ -0,0 +1,2 @@ + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/red/save.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/red/save.svg new file mode 100644 index 00000000000..42edb318723 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/red/save.svg @@ -0,0 +1,2 @@ + +image/svg+xml diff --git a/examples/org.eclipse.ui.examples.iconpacks/icons/red/search.svg b/examples/org.eclipse.ui.examples.iconpacks/icons/red/search.svg new file mode 100644 index 00000000000..bc42b252f12 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/icons/red/search.svg @@ -0,0 +1,4 @@ + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/plugin.properties b/examples/org.eclipse.ui.examples.iconpacks/plugin.properties new file mode 100644 index 00000000000..fb5f896e008 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/plugin.properties @@ -0,0 +1,30 @@ +############################################################################### +# Copyright (c) 2026 Vector Informatik GmbH and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +############################################################################### +Bundle-Name = Icon Packs Example +Bundle-Vendor = Eclipse.org + +iconPack.red.name = Example: Red +iconPack.red.description = Red icons for Save, Copy, Paste and Search +iconPack.green.name = Example: Green +iconPack.green.description = Green icons for Copy, Paste, Problems view and Outline view +iconPack.blue.name = Example: Blue +iconPack.blue.description = Blue icons for Paste, Search, Outline view and Properties view + +command.switchPreset.name = Switch Example Icon Packs +command.switchPreset.description = Enables a combination of the example icon packs and restarts +command.switchPreset.preset = Combination of example icon packs +command.switchPreset.tooltip = Switch to the next combination of example icon packs and restart +toolbar.label = Example Icon Packs + +preset.redGreenBlue = Red, Green, Blue (Restart) +preset.blueGreenRed = Blue, Green, Red (Restart) +preset.greenOnly = Green Only (Restart) +preset.none = No Icon Packs (Restart) diff --git a/examples/org.eclipse.ui.examples.iconpacks/plugin.xml b/examples/org.eclipse.ui.examples.iconpacks/plugin.xml new file mode 100644 index 00000000000..4435b44f27b --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/plugin.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/org.eclipse.ui.examples.iconpacks/red.properties b/examples/org.eclipse.ui.examples.iconpacks/red.properties new file mode 100644 index 00000000000..f86ec24996a --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/red.properties @@ -0,0 +1,9 @@ +# Example icon pack "Red", see README.md +org.eclipse.ui/icons/full/etool16/save_edit = icons/red/save.svg +org.eclipse.ui/icons/full/etool16/copy_edit = icons/red/copy.svg +org.eclipse.ui/icons/full/etool16/paste_edit = icons/red/paste.svg +org.eclipse.ui/icons/full/etool16/search = icons/red/search.svg +org.eclipse.search/icons/full/etool16/search = icons/red/search.svg +org.eclipse.search/icons/full/eview16/searchres = icons/red/search.svg +org.eclipse.ui.ide/icons/full/etool16/search_src = icons/red/search.svg +org.eclipse.ui/icons/full/etool16/help_search = icons/red/search.svg diff --git a/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/IconPackPreset.java b/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/IconPackPreset.java new file mode 100644 index 00000000000..055cfe3a843 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/IconPackPreset.java @@ -0,0 +1,90 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.ui.examples.iconpacks; + +import java.util.Arrays; +import java.util.List; + +import org.eclipse.core.runtime.Platform; +import org.eclipse.core.runtime.preferences.IEclipsePreferences; +import org.eclipse.core.runtime.preferences.InstanceScope; +import org.osgi.service.prefs.BackingStoreException; + +/** + * Combinations of the example icon packs, each showing how packs are combined + * and which pack wins for overlapping icons. A preset is applied by storing the + * enabled icon packs in the preference read by the icon pack runtime, see + * docs/IconPacks.md. + */ +enum IconPackPreset { + + RED_GREEN_BLUE("redGreenBlue", Packs.RED, Packs.GREEN, Packs.BLUE), //$NON-NLS-1$ + BLUE_GREEN_RED("blueGreenRed", Packs.BLUE, Packs.GREEN, Packs.RED), //$NON-NLS-1$ + GREEN_ONLY("greenOnly", Packs.GREEN), //$NON-NLS-1$ + NONE("none"); //$NON-NLS-1$ + + private static final class Packs { + static final String RED = "org.eclipse.ui.examples.iconpacks.red"; //$NON-NLS-1$ + static final String GREEN = "org.eclipse.ui.examples.iconpacks.green"; //$NON-NLS-1$ + static final String BLUE = "org.eclipse.ui.examples.iconpacks.blue"; //$NON-NLS-1$ + } + + private static final String PREFERENCE_QUALIFIER = "org.eclipse.e4.ui.iconpacks"; //$NON-NLS-1$ + private static final String ENABLED_ICON_PACKS = "enabledIconPacks"; //$NON-NLS-1$ + + private final String id; + private final List iconPackIds; + + IconPackPreset(String id, String... iconPackIds) { + this.id = id; + this.iconPackIds = List.of(iconPackIds); + } + + /** + * @param id the ID of a preset as used in the command parameter + * @return the preset with the given ID, or null if there is none + */ + static IconPackPreset fromId(String id) { + return Arrays.stream(values()).filter(preset -> preset.id.equals(id)).findFirst().orElse(null); + } + + /** + * @return the preset matching the enabled icon packs, or null if + * the enabled icon packs match no preset + */ + static IconPackPreset getCurrent() { + String value = Platform.getPreferencesService().getString(PREFERENCE_QUALIFIER, ENABLED_ICON_PACKS, "", //$NON-NLS-1$ + null); + List enabledIds = Arrays.stream(value.split(",")).map(String::trim).filter(s -> !s.isEmpty()) //$NON-NLS-1$ + .toList(); + return Arrays.stream(values()).filter(preset -> preset.iconPackIds.equals(enabledIds)).findFirst() + .orElse(null); + } + + /** + * @return the preset following this one, wrapping around after the last one + */ + IconPackPreset next() { + IconPackPreset[] presets = values(); + return presets[(ordinal() + 1) % presets.length]; + } + + /** + * Enables the icon packs of this preset. They take effect after a restart. + * + * @throws BackingStoreException if the preference cannot be stored + */ + void store() throws BackingStoreException { + IEclipsePreferences preferences = InstanceScope.INSTANCE.getNode(PREFERENCE_QUALIFIER); + preferences.put(ENABLED_ICON_PACKS, String.join(",", iconPackIds)); //$NON-NLS-1$ + preferences.flush(); + } +} diff --git a/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/SwitchIconPackPresetHandler.java b/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/SwitchIconPackPresetHandler.java new file mode 100644 index 00000000000..fdf55dd3b49 --- /dev/null +++ b/examples/org.eclipse.ui.examples.iconpacks/src/org/eclipse/ui/examples/iconpacks/SwitchIconPackPresetHandler.java @@ -0,0 +1,64 @@ +/******************************************************************************* + * Copyright (c) 2026 Vector Informatik GmbH and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.ui.examples.iconpacks; + +import java.util.Map; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.commands.IElementUpdater; +import org.eclipse.ui.menus.UIElement; +import org.osgi.service.prefs.BackingStoreException; + +/** + * Applies a preset of example icon packs and restarts the workbench, as icon + * packs take effect at startup. Without a preset parameter, it switches to the + * preset following the current one. + */ +public class SwitchIconPackPresetHandler extends AbstractHandler implements IElementUpdater { + + static final String PRESET_PARAMETER = "org.eclipse.ui.examples.iconpacks.preset"; //$NON-NLS-1$ + + @Override + public Object execute(ExecutionEvent event) throws ExecutionException { + IconPackPreset current = IconPackPreset.getCurrent(); + String presetId = event.getParameter(PRESET_PARAMETER); + IconPackPreset preset; + if (presetId == null) { + preset = current == null ? IconPackPreset.values()[0] : current.next(); + } else { + preset = IconPackPreset.fromId(presetId); + if (preset == null) { + throw new ExecutionException("Unknown icon pack preset: " + presetId); //$NON-NLS-1$ + } + } + if (preset == current) { + return null; + } + try { + preset.store(); + } catch (BackingStoreException e) { + throw new ExecutionException("Cannot store the enabled icon packs", e); //$NON-NLS-1$ + } + PlatformUI.getWorkbench().restart(); + return null; + } + + @Override + public void updateElement(UIElement element, @SuppressWarnings("rawtypes") Map parameters) { + Object presetId = parameters.get(PRESET_PARAMETER); + if (presetId != null) { + element.setChecked(IconPackPreset.fromId(presetId.toString()) == IconPackPreset.getCurrent()); + } + } +} diff --git a/examples/pom.xml b/examples/pom.xml index 6c3ae34855e..6e9494fa1e9 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -28,6 +28,7 @@ org.eclipse.ui.examples.adapterservice org.eclipse.ui.examples.contributions org.eclipse.ui.examples.fieldassist + org.eclipse.ui.examples.iconpacks org.eclipse.ui.examples.javaeditor org.eclipse.ui.examples.job org.eclipse.ui.examples.markerHelp diff --git a/features/org.eclipse.e4.rcp/feature.xml b/features/org.eclipse.e4.rcp/feature.xml index 53a9391898d..b512d01bdb6 100644 --- a/features/org.eclipse.e4.rcp/feature.xml +++ b/features/org.eclipse.e4.rcp/feature.xml @@ -47,6 +47,10 @@ id="org.eclipse.e4.ui.workbench.swt" version="0.0.0"/> + + diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.classpath b/tests/org.eclipse.e4.ui.iconpacks.tests/.classpath new file mode 100644 index 00000000000..1aa9eca95a0 --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.project b/tests/org.eclipse.e4.ui.iconpacks.tests/.project new file mode 100644 index 00000000000..ac37d29b436 --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.project @@ -0,0 +1,28 @@ + + + org.eclipse.e4.ui.iconpacks.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000000..99f26c0203a --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.runtime.prefs b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..5a0ad22d2a7 --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..ba326186592 --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,468 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.cleanOutputFolder=clean +org.eclipse.jdt.core.builder.duplicateResourceTask=warning +org.eclipse.jdt.core.builder.invalidClasspath=abort +org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch +org.eclipse.jdt.core.circularClasspath=error +org.eclipse.jdt.core.classpath.exclusionPatterns=enabled +org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= +org.eclipse.jdt.core.compiler.annotation.nonnullisdefault=disabled +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullable.secondary= +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=21 +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.maxProblemPerUnit=100 +org.eclipse.jdt.core.compiler.problem.APILeak=warning +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=ignore +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning +org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore +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.includeNullInfoFromAsserts=disabled +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=disabled +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.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=no_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=error +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=error +org.eclipse.jdt.core.compiler.problem.nullSpecInsufficientInfo=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=error +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=enabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled +org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info +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.unsafeTypeOperation=warning +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.unusedExceptionParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedImport=error +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=error +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +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=error +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=21 +org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_bitwise_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header=0 +org.eclipse.jdt.core.formatter.alignment_for_logical_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_module_statements=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_multiplicative_operator=16 +org.eclipse.jdt.core.formatter.alignment_for_parameterized_type_references=0 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_string_concatenation=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_type_arguments=0 +org.eclipse.jdt.core.formatter.alignment_for_type_parameters=0 +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_lambda_body=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.align_tags_descriptions_grouped=true +org.eclipse.jdt.core.formatter.comment.align_tags_names_descriptions=false +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.count_line_length_from_starting_position=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false +org.eclipse.jdt.core.formatter.comment.indent_root_tags=false +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert +org.eclipse.jdt.core.formatter.comment.line_length=80 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=false +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_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_after_type_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not 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_additive_operator=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_bitwise_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=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_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_after_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_relational_operator=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_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_additive_operator=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_bitwise_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert +org.eclipse.jdt.core.formatter.insert_space_before_logical_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_multiplicative_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_relational_operator=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_shift_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_string_concatenation=insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=120 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.parentheses_positions_in_annotation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_catch_clause=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_enum_constant_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_if_while_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_lambda_declaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_delcaration=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_method_invocation=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_switch_statement=common_lines +org.eclipse.jdt.core.formatter.parentheses_positions_in_try_clause=common_lines +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=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_additive_operator=true +org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false +org.eclipse.jdt.core.formatter.wrap_before_bitwise_operator=true +org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true +org.eclipse.jdt.core.formatter.wrap_before_logical_operator=true +org.eclipse.jdt.core.formatter.wrap_before_multiplicative_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_before_string_concatenation=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.incompatibleJDKLevel=ignore +org.eclipse.jdt.core.incompleteClasspath=error +org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter diff --git a/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000000..fd9ef68096e --- /dev/null +++ b/tests/org.eclipse.e4.ui.iconpacks.tests/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,64 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=org.eclipse.jdt.ui.default.eclipse_profile +formatter_settings_version=14 +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.text.custom_code_templates=