mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 23:45:23 +02:00
Bug 558439: Merge launchbar history into CDT
Change-Id: Ibefebca77b9e4f87013871cd135455cb91940e48
This commit is contained in:
commit
27673104a0
217 changed files with 20279 additions and 0 deletions
11
launchbar/org.eclipse.launchbar.core.tests/.classpath
Normal file
11
launchbar/org.eclipse.launchbar.core.tests/.classpath
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="test" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
1
launchbar/org.eclipse.launchbar.core.tests/.gitignore
vendored
Normal file
1
launchbar/org.eclipse.launchbar.core.tests/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/bin/
|
28
launchbar/org.eclipse.launchbar.core.tests/.project
Normal file
28
launchbar/org.eclipse.launchbar.core.tests/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.launchbar.core.tests</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,464 @@
|
||||||
|
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.recreateModifiedClassFileInOutputFolder=ignore
|
||||||
|
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch, *.xtend
|
||||||
|
org.eclipse.jdt.core.circularClasspath=error
|
||||||
|
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.mainOnlyProjectHasTestOnlyDependency=error
|
||||||
|
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.compiler.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.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=generate
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.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.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
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=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
|
||||||
|
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=public
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||||
|
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.nonnullTypeVariableFromLegacyInvocation=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.nullReference=error
|
||||||
|
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.pessimisticNullAnalysisForFreeTypeVariables=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
|
||||||
|
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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
|
||||||
|
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.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.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=warning
|
||||||
|
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=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
|
||||||
|
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=ignore
|
||||||
|
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=ignore
|
||||||
|
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=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
|
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
|
||||||
|
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.align_variable_declarations_on_columns=false
|
||||||
|
org.eclipse.jdt.core.formatter.align_with_spaces=false
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_loops=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_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_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_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=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_header=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_html=true
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_line_comments=false
|
||||||
|
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_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=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_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
|
||||||
|
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
|
||||||
|
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_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=true
|
||||||
|
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=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
|
|
@ -0,0 +1,3 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=warning
|
||||||
|
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
|
|
@ -0,0 +1,133 @@
|
||||||
|
cleanup.add_default_serial_version_id=true
|
||||||
|
cleanup.add_generated_serial_version_id=false
|
||||||
|
cleanup.add_missing_annotations=true
|
||||||
|
cleanup.add_missing_deprecated_annotations=true
|
||||||
|
cleanup.add_missing_methods=false
|
||||||
|
cleanup.add_missing_nls_tags=false
|
||||||
|
cleanup.add_missing_override_annotations=true
|
||||||
|
cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
cleanup.add_serial_version_id=false
|
||||||
|
cleanup.always_use_blocks=true
|
||||||
|
cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
cleanup.convert_functional_interfaces=false
|
||||||
|
cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
cleanup.correct_indentation=false
|
||||||
|
cleanup.format_source_code=true
|
||||||
|
cleanup.format_source_code_changes_only=false
|
||||||
|
cleanup.insert_inferred_type_arguments=false
|
||||||
|
cleanup.make_local_variable_final=true
|
||||||
|
cleanup.make_parameters_final=false
|
||||||
|
cleanup.make_private_fields_final=true
|
||||||
|
cleanup.make_type_abstract_if_missing_method=false
|
||||||
|
cleanup.make_variable_declarations_final=false
|
||||||
|
cleanup.never_use_blocks=false
|
||||||
|
cleanup.never_use_parentheses_in_expressions=true
|
||||||
|
cleanup.organize_imports=true
|
||||||
|
cleanup.qualify_static_field_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_method_accesses_with_declaring_class=false
|
||||||
|
cleanup.remove_private_constructors=true
|
||||||
|
cleanup.remove_redundant_modifiers=false
|
||||||
|
cleanup.remove_redundant_semicolons=true
|
||||||
|
cleanup.remove_redundant_type_arguments=true
|
||||||
|
cleanup.remove_trailing_whitespaces=true
|
||||||
|
cleanup.remove_trailing_whitespaces_all=true
|
||||||
|
cleanup.remove_trailing_whitespaces_ignore_empty=false
|
||||||
|
cleanup.remove_unnecessary_casts=true
|
||||||
|
cleanup.remove_unnecessary_nls_tags=false
|
||||||
|
cleanup.remove_unused_imports=true
|
||||||
|
cleanup.remove_unused_local_variables=false
|
||||||
|
cleanup.remove_unused_private_fields=true
|
||||||
|
cleanup.remove_unused_private_members=false
|
||||||
|
cleanup.remove_unused_private_methods=true
|
||||||
|
cleanup.remove_unused_private_types=true
|
||||||
|
cleanup.sort_members=false
|
||||||
|
cleanup.sort_members_all=false
|
||||||
|
cleanup.use_anonymous_class_creation=false
|
||||||
|
cleanup.use_blocks=false
|
||||||
|
cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
cleanup.use_lambda=true
|
||||||
|
cleanup.use_parentheses_in_expressions=false
|
||||||
|
cleanup.use_this_for_non_static_field_access=false
|
||||||
|
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
|
||||||
|
cleanup.use_this_for_non_static_method_access=false
|
||||||
|
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
|
||||||
|
cleanup_profile=_CDT
|
||||||
|
cleanup_settings_version=2
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
||||||
|
formatter_profile=_CDT
|
||||||
|
formatter_settings_version=14
|
||||||
|
internal.default.compliance=user
|
||||||
|
org.eclipse.jdt.ui.exception.name=e
|
||||||
|
org.eclipse.jdt.ui.gettersetter.use.is=true
|
||||||
|
org.eclipse.jdt.ui.ignorelowercasenames=true
|
||||||
|
org.eclipse.jdt.ui.importorder=java;javax;org;com;
|
||||||
|
org.eclipse.jdt.ui.keywordthis=false
|
||||||
|
org.eclipse.jdt.ui.ondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.overrideannotation=true
|
||||||
|
org.eclipse.jdt.ui.staticondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.text.custom_code_templates=
|
||||||
|
sp_cleanup.add_default_serial_version_id=true
|
||||||
|
sp_cleanup.add_generated_serial_version_id=false
|
||||||
|
sp_cleanup.add_missing_annotations=true
|
||||||
|
sp_cleanup.add_missing_deprecated_annotations=true
|
||||||
|
sp_cleanup.add_missing_methods=false
|
||||||
|
sp_cleanup.add_missing_nls_tags=false
|
||||||
|
sp_cleanup.add_missing_override_annotations=true
|
||||||
|
sp_cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
sp_cleanup.add_serial_version_id=false
|
||||||
|
sp_cleanup.always_use_blocks=true
|
||||||
|
sp_cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
sp_cleanup.convert_functional_interfaces=false
|
||||||
|
sp_cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
sp_cleanup.correct_indentation=false
|
||||||
|
sp_cleanup.format_source_code=true
|
||||||
|
sp_cleanup.format_source_code_changes_only=false
|
||||||
|
sp_cleanup.insert_inferred_type_arguments=false
|
||||||
|
sp_cleanup.make_local_variable_final=true
|
||||||
|
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_modifiers=false
|
||||||
|
sp_cleanup.remove_redundant_semicolons=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=false
|
||||||
|
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=false
|
||||||
|
sp_cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
sp_cleanup.use_lambda=true
|
||||||
|
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
|
|
@ -0,0 +1,184 @@
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITH_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERCLASS_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_SUPERCLASS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_INTERFACE=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_TYPE_ARGUMENTS=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_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=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_MEMBER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETERS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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=Error
|
||||||
|
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning
|
||||||
|
LEAK_EXTEND=Warning
|
||||||
|
LEAK_FIELD_DECL=Warning
|
||||||
|
LEAK_IMPLEMENT=Warning
|
||||||
|
LEAK_METHOD_PARAM=Warning
|
||||||
|
LEAK_METHOD_RETURN_TYPE=Warning
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=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_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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=Warning
|
||||||
|
incompatible_api_component_version_report_minor_without_api_change=Warning
|
||||||
|
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
|
|
@ -0,0 +1,35 @@
|
||||||
|
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=2
|
||||||
|
compilers.p.build.output.library=1
|
||||||
|
compilers.p.build.source.library=1
|
||||||
|
compilers.p.build.src.includes=1
|
||||||
|
compilers.p.deprecated=1
|
||||||
|
compilers.p.discouraged-class=1
|
||||||
|
compilers.p.internal=1
|
||||||
|
compilers.p.missing-packages=2
|
||||||
|
compilers.p.missing-version-export-package=2
|
||||||
|
compilers.p.missing-version-import-package=2
|
||||||
|
compilers.p.missing-version-require-bundle=2
|
||||||
|
compilers.p.no-required-att=0
|
||||||
|
compilers.p.no.automatic.module=1
|
||||||
|
compilers.p.not-externalized-att=2
|
||||||
|
compilers.p.service.component.without.lazyactivation=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
|
||||||
|
compilers.use-project=true
|
||||||
|
eclipse.preferences.version=1
|
|
@ -0,0 +1,10 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: Launch Bar Core Tests
|
||||||
|
Bundle-SymbolicName: org.eclipse.launchbar.core.tests;singleton:=true
|
||||||
|
Bundle-Version: 1.0.0.qualifier
|
||||||
|
Fragment-Host: org.eclipse.launchbar.core;bundle-version="1.0.0"
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
|
Require-Bundle: org.junit;bundle-version="4.12.0",
|
||||||
|
org.mockito;bundle-version="2.23.0"
|
||||||
|
Automatic-Module-Name: org.eclipse.launchbar.core.tests
|
36
launchbar/org.eclipse.launchbar.core.tests/about.html
Normal file
36
launchbar/org.eclipse.launchbar.core.tests/about.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||||
|
<title>About</title>
|
||||||
|
</head>
|
||||||
|
<body lang="EN-US">
|
||||||
|
<h2>About This Content</h2>
|
||||||
|
|
||||||
|
<p>November 30, 2017</p>
|
||||||
|
<h3>License</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The Eclipse Foundation makes available all content in this plug-in
|
||||||
|
("Content"). Unless otherwise indicated below, the Content
|
||||||
|
is provided to you under the terms and conditions of the Eclipse
|
||||||
|
Public License Version 2.0 ("EPL"). A copy of the EPL is
|
||||||
|
available at <a href="http://www.eclipse.org/legal/epl-2.0">http://www.eclipse.org/legal/epl-2.0</a>.
|
||||||
|
For purposes of the EPL, "Program" will mean the Content.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you did not receive this Content directly from the Eclipse
|
||||||
|
Foundation, the Content is being redistributed by another party
|
||||||
|
("Redistributor") and different terms and conditions may
|
||||||
|
apply to your use of any object code in the Content. Check the
|
||||||
|
Redistributor's license that was provided with the Content. If no such
|
||||||
|
license exists, contact the Redistributor. Unless otherwise indicated
|
||||||
|
below, the terms and conditions of the EPL still apply to any source
|
||||||
|
code in the Content and such source code may be obtained at <a
|
||||||
|
href="http://www.eclipse.org/">http://www.eclipse.org</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,5 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
fragment.xml
|
14
launchbar/org.eclipse.launchbar.core.tests/fragment.xml
Normal file
14
launchbar/org.eclipse.launchbar.core.tests/fragment.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.4"?>
|
||||||
|
<fragment>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.debug.core.launchConfigurationTypes">
|
||||||
|
<launchConfigurationType
|
||||||
|
id="org.eclipse.launchbar.core.tests.lctype1"
|
||||||
|
modes="run, debug, xxx"
|
||||||
|
name="Launch Bar Test Launch Configuration"
|
||||||
|
public="true">
|
||||||
|
</launchConfigurationType>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
</fragment>
|
18
launchbar/org.eclipse.launchbar.core.tests/pom.xml
Normal file
18
launchbar/org.eclipse.launchbar.core.tests/pom.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>org.eclipse.launchbar</groupId>
|
||||||
|
<artifactId>parent</artifactId>
|
||||||
|
<version>2.4.1-SNAPSHOT</version>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>org.eclipse.launchbar.core.tests</artifactId>
|
||||||
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<packaging>eclipse-test-plugin</packaging>
|
||||||
|
</project>
|
|
@ -0,0 +1,309 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015, 2018 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Elena Laskavaia
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertNotEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
import static org.junit.Assert.assertSame;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.mockito.Mockito.doReturn;
|
||||||
|
import static org.mockito.Mockito.mock;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.DebugPlugin;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||||
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.FixMethodOrder;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runners.MethodSorters;
|
||||||
|
|
||||||
|
@FixMethodOrder(MethodSorters.JVM)
|
||||||
|
public class PerTargetLaunchConfigProviderTest {
|
||||||
|
private ILaunchTarget localTarget;
|
||||||
|
private String launchName;
|
||||||
|
private ILaunchTarget otherTarget;
|
||||||
|
private ILaunchConfigurationType launchConfigType;
|
||||||
|
private ILaunchDescriptorType descriptorType;
|
||||||
|
private ILaunchDescriptor descriptor;
|
||||||
|
private PerTargetLaunchConfigProvider1 provider;
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void basicSetupOnly() {
|
||||||
|
ILaunchTargetManager targetManager = mock(ILaunchTargetManager.class);
|
||||||
|
Activator.getDefault().getBundle().getBundleContext().registerService(ILaunchTargetManager.class, targetManager,
|
||||||
|
null);
|
||||||
|
|
||||||
|
localTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn("Local").when(localTarget).getId();
|
||||||
|
doReturn(ILaunchTargetManager.localLaunchTargetTypeId).when(localTarget).getTypeId();
|
||||||
|
doReturn(localTarget).when(targetManager).getLaunchTarget(ILaunchTargetManager.localLaunchTargetTypeId,
|
||||||
|
"Local");
|
||||||
|
|
||||||
|
// other mocked remote connections
|
||||||
|
otherTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn("otherTargetType").when(otherTarget).getTypeId();
|
||||||
|
doReturn("otherTarget").when(otherTarget).getId();
|
||||||
|
doReturn(otherTarget).when(targetManager).getLaunchTarget("otherTargetType", "otherTarget");
|
||||||
|
|
||||||
|
doReturn(new ILaunchTarget[] { localTarget, otherTarget }).when(targetManager).getLaunchTargets();
|
||||||
|
|
||||||
|
// launch stuff
|
||||||
|
launchName = "test";
|
||||||
|
// launch config type
|
||||||
|
launchConfigType = getLaunchManager().getLaunchConfigurationType("org.eclipse.launchbar.core.tests.lctype1");
|
||||||
|
// launch descriptor and type
|
||||||
|
descriptorType = mock(ILaunchDescriptorType.class);
|
||||||
|
descriptor = mock(ILaunchDescriptor.class);
|
||||||
|
doReturn(descriptorType).when(descriptor).getType();
|
||||||
|
doReturn(launchName).when(descriptor).getName();
|
||||||
|
// configProvider
|
||||||
|
provider = new PerTargetLaunchConfigProvider1();
|
||||||
|
}
|
||||||
|
|
||||||
|
private ILaunchManager getLaunchManager() {
|
||||||
|
return DebugPlugin.getDefault().getLaunchManager();
|
||||||
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void after() throws CoreException {
|
||||||
|
ILaunchConfiguration[] launchConfigurations = getLaunchManager().getLaunchConfigurations();
|
||||||
|
for (ILaunchConfiguration lc : launchConfigurations) {
|
||||||
|
lc.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class PerTargetLaunchConfigProvider1 extends PerTargetLaunchConfigProvider {
|
||||||
|
public static final String CONNECTION_NAME_ATTR = "connectionName";
|
||||||
|
private ILaunchBarManager manager = mock(ILaunchBarManager.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supports(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
return launchConfigType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void populateLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target,
|
||||||
|
ILaunchConfigurationWorkingCopy workingCopy) throws CoreException {
|
||||||
|
super.populateLaunchConfiguration(descriptor, target, workingCopy);
|
||||||
|
workingCopy.setAttribute(CONNECTION_NAME_ATTR, target.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchDescriptor getLaunchDescriptor(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return descriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchTarget getLaunchTarget(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
String name = configuration.getAttribute(CONNECTION_NAME_ATTR, "");
|
||||||
|
if (localTarget.getId().equals(name)) {
|
||||||
|
return localTarget;
|
||||||
|
} else if (otherTarget.getId().equals(name)) {
|
||||||
|
return otherTarget;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchBarManager getManager() {
|
||||||
|
return manager;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchConfiguration config = super.getLaunchConfiguration(descriptor, target);
|
||||||
|
// Since this provider isn't hooked in properly, need to manually
|
||||||
|
// add in the config
|
||||||
|
launchConfigurationAdded(config);
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testPopulateLaunchConfiguration() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfig = launchConfigType.newInstance(null, launchName).doSave();
|
||||||
|
ILaunchConfigurationWorkingCopy launchConfigWC = launchConfig.getWorkingCopy();
|
||||||
|
provider.populateLaunchConfiguration(descriptor, localTarget, launchConfigWC);
|
||||||
|
assertTrue(provider.ownsLaunchConfiguration(launchConfigWC));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testOwnsLaunchConfiguration() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfig = launchConfigType.newInstance(null, launchName).doSave();
|
||||||
|
assertFalse(provider.ownsLaunchConfiguration(launchConfig));
|
||||||
|
ILaunchConfiguration launchConfiguration = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertTrue(provider.ownsLaunchConfiguration(launchConfiguration));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfiguration() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, otherTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertNotEquals(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfigurationReuse() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertSame(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfigurationPersistance() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
// reset provider
|
||||||
|
provider = new PerTargetLaunchConfigProvider1();
|
||||||
|
// simulate provider initialization on startup
|
||||||
|
provider.launchConfigurationAdded(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertEquals(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetTarget() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
assertSame(localTarget, provider.getLaunchTarget(launchConfiguration1));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationRemoved() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
provider.launchConfigurationRemoved(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertNotEquals(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationChanged_NotReallyChanged() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
provider.launchConfigurationChanged(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertSame(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationChanged_Target() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
ILaunchConfigurationWorkingCopy wc = launchConfiguration1.getWorkingCopy();
|
||||||
|
wc.setAttribute(PerTargetLaunchConfigProvider1.CONNECTION_NAME_ATTR, otherTarget.getId());
|
||||||
|
wc.doSave();
|
||||||
|
provider.launchConfigurationChanged(launchConfiguration1);
|
||||||
|
// provider.launchConfigurationChanged(lc3);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertNotEquals(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationChanged_OrgName() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
ILaunchConfigurationWorkingCopy wc = launchConfiguration1.getWorkingCopy();
|
||||||
|
wc.rename("blah");
|
||||||
|
launchConfiguration1 = wc.doSave();
|
||||||
|
provider.launchConfigurationChanged(launchConfiguration1);
|
||||||
|
// we should still maintain ownership on a rename
|
||||||
|
assertTrue(provider.ownsLaunchConfiguration(launchConfiguration1));
|
||||||
|
// provider not hooked up properly to verify these.
|
||||||
|
// TODO not sure this test is valid as a result
|
||||||
|
// verify(provider.manager).launchConfigurationAdded(launchConfiguration1);
|
||||||
|
// verify(provider.manager).launchConfigurationRemoved(launchConfiguration1);
|
||||||
|
// have to fake out the remove
|
||||||
|
provider.launchConfigurationRemoved(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
assertNotEquals(launchConfiguration1, launchConfiguration2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchDescriptorRemoved() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
provider.launchDescriptorRemoved(descriptor);
|
||||||
|
assertFalse(provider.ownsLaunchConfiguration(launchConfiguration1));
|
||||||
|
assertFalse(launchConfiguration1.exists());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchDescriptorRemoved2() throws CoreException {
|
||||||
|
provider.launchDescriptorRemoved(descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchTargetRemoved() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, otherTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
provider.launchTargetRemoved(otherTarget);
|
||||||
|
assertFalse(launchConfiguration1.exists());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchTargetRemoved2() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, otherTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
ILaunchConfiguration launchConfiguration2 = provider.getLaunchConfiguration(descriptor, localTarget);
|
||||||
|
assertNotNull(launchConfiguration2);
|
||||||
|
provider.launchTargetRemoved(otherTarget);
|
||||||
|
assertFalse(launchConfiguration1.exists());
|
||||||
|
assertTrue(launchConfiguration2.exists());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchTargetRemoved3() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, otherTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
provider.launchTargetRemoved(localTarget);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLCRemoved() throws CoreException {
|
||||||
|
ILaunchConfiguration launchConfiguration1 = provider.getLaunchConfiguration(descriptor, otherTarget);
|
||||||
|
assertNotNull(launchConfiguration1);
|
||||||
|
assertTrue(provider.ownsLaunchConfiguration(launchConfiguration1));
|
||||||
|
launchConfiguration1.delete();
|
||||||
|
provider.launchConfigurationRemoved(launchConfiguration1);
|
||||||
|
assertFalse(provider.ownsLaunchConfiguration(launchConfiguration1));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,969 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2018 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Elena Laskavaia
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
|
import static org.mockito.ArgumentMatchers.anyString;
|
||||||
|
import static org.mockito.ArgumentMatchers.eq;
|
||||||
|
import static org.mockito.Mockito.doReturn;
|
||||||
|
import static org.mockito.Mockito.doThrow;
|
||||||
|
import static org.mockito.Mockito.mock;
|
||||||
|
import static org.mockito.Mockito.reset;
|
||||||
|
import static org.mockito.Mockito.times;
|
||||||
|
import static org.mockito.Mockito.verify;
|
||||||
|
import static org.mockito.Mockito.verifyZeroInteractions;
|
||||||
|
import static org.mockito.Mockito.when;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
import org.eclipse.core.internal.preferences.EclipsePreferences;
|
||||||
|
import org.eclipse.core.internal.resources.Project;
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
import org.eclipse.core.runtime.IExtension;
|
||||||
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
import org.eclipse.core.runtime.Path;
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
|
import org.eclipse.debug.core.ILaunchMode;
|
||||||
|
import org.eclipse.launchbar.core.DefaultLaunchConfigProvider;
|
||||||
|
import org.eclipse.launchbar.core.DefaultLaunchDescriptorType;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchBarListener;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchConfigurationProvider;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchDescriptor;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchDescriptorType;
|
||||||
|
import org.eclipse.launchbar.core.ProjectLaunchDescriptor;
|
||||||
|
import org.eclipse.launchbar.core.ProjectPerTargetLaunchConfigProvider;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.FixMethodOrder;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runners.MethodSorters;
|
||||||
|
|
||||||
|
@SuppressWarnings({ "restriction" })
|
||||||
|
@FixMethodOrder(MethodSorters.JVM)
|
||||||
|
public class LaunchBarManager2Test {
|
||||||
|
private LaunchBarManager manager;
|
||||||
|
private ILaunchConfigurationProvider provider;
|
||||||
|
private ILaunchDescriptor descriptor;
|
||||||
|
private ILaunchDescriptorType descriptorType;
|
||||||
|
private ILaunchConfigurationType launchConfigType;
|
||||||
|
private ILaunchConfiguration launchConfig;
|
||||||
|
private ILaunchManager lman;
|
||||||
|
private IProject aaa;
|
||||||
|
private ArrayList<ILaunchMode> globalmodes = new ArrayList<>();
|
||||||
|
IExtensionPoint point;
|
||||||
|
IEclipsePreferences store = new EclipsePreferences();
|
||||||
|
private ArrayList<IConfigurationElement> elements;
|
||||||
|
private IExtension extension;
|
||||||
|
private String descriptorTypeId;
|
||||||
|
private ILaunchTargetManager targetManager;
|
||||||
|
private ILaunchTarget localTarget;
|
||||||
|
private String launchObject;
|
||||||
|
private ILaunchTarget otherTarget;
|
||||||
|
private ILaunchTarget[] targets;
|
||||||
|
|
||||||
|
public class FixedLaunchBarManager extends LaunchBarManager {
|
||||||
|
public FixedLaunchBarManager() {
|
||||||
|
super(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IExtensionPoint getExtensionPoint() {
|
||||||
|
return point;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchManager getLaunchManager() {
|
||||||
|
return lman;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected IEclipsePreferences getPreferenceStore() {
|
||||||
|
return store;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
ILaunchTargetManager getLaunchTargetManager() {
|
||||||
|
return targetManager;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setUp() throws Exception {
|
||||||
|
basicSetup();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void mockProviderElement(String descriptorTypeId, int priority, ILaunchConfigurationProvider provider)
|
||||||
|
throws CoreException {
|
||||||
|
IConfigurationElement element = mockElementAndAdd("configProvider");
|
||||||
|
doReturn(descriptorTypeId).when(element).getAttribute("descriptorType");
|
||||||
|
doReturn(Integer.toString(priority)).when(element).getAttribute("priority");
|
||||||
|
doReturn(provider).when(element).createExecutableExtension("class");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected ILaunchConfigurationProvider mockConfigProviderElement(String descriptorTypeId, int priority,
|
||||||
|
ILaunchDescriptor descriptor, ILaunchTarget target, ILaunchConfiguration config, Object launchObj)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchConfigurationProvider provider = mock(ILaunchConfigurationProvider.class);
|
||||||
|
mockProviderElement(descriptorTypeId, priority, provider);
|
||||||
|
doReturn(config.getType()).when(provider).getLaunchConfigurationType(descriptor, target);
|
||||||
|
doReturn(config).when(provider).getLaunchConfiguration(descriptor, target);
|
||||||
|
doReturn(true).when(provider).supports(descriptor, target);
|
||||||
|
doReturn(true).when(provider).launchConfigurationAdded(config);
|
||||||
|
return provider;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected IConfigurationElement mockDescriptorTypeElement(String descriptorTypeId, int priority,
|
||||||
|
ILaunchDescriptorType descriptorType) throws CoreException {
|
||||||
|
IConfigurationElement element = mockElementAndAdd("descriptorType");
|
||||||
|
doReturn(descriptorTypeId).when(element).getAttribute("id");
|
||||||
|
doReturn(Integer.toString(priority)).when(element).getAttribute("priority");
|
||||||
|
doReturn(descriptorType).when(element).createExecutableExtension("class");
|
||||||
|
// TODO need a real enablement here, not an empty one
|
||||||
|
// mockEnablementElement(element);
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void mockSubElement(IConfigurationElement parent, IConfigurationElement... elements) {
|
||||||
|
doReturn(elements).when(parent).getChildren();
|
||||||
|
String name = elements[0].getName();
|
||||||
|
doReturn(elements).when(parent).getChildren(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IConfigurationElement mockEnablementElement(IConfigurationElement parent) {
|
||||||
|
IConfigurationElement enablement = mock(IConfigurationElement.class);
|
||||||
|
doReturn("enablement").when(enablement).getName();
|
||||||
|
mockSubElement(parent, new IConfigurationElement[] { enablement });
|
||||||
|
return enablement;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void init() throws CoreException {
|
||||||
|
doReturn(elements.toArray(new IConfigurationElement[0])).when(extension).getConfigurationElements();
|
||||||
|
doReturn(targets).when(targetManager).getLaunchTargets();
|
||||||
|
manager.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected IConfigurationElement mockElementAndAdd(final String configElement) {
|
||||||
|
IConfigurationElement element = mock(IConfigurationElement.class);
|
||||||
|
doReturn(configElement).when(element).getName();
|
||||||
|
elements.add(element);
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void mockLaunchObjectOnDescriptor(Object launchObject) throws CoreException {
|
||||||
|
doReturn(descriptor).when(descriptorType).getDescriptor(launchObject);
|
||||||
|
doReturn(launchObject.toString()).when(descriptor).getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
private ILaunchConfiguration mockLC(String string, ILaunchConfigurationType lctype2) throws CoreException {
|
||||||
|
ILaunchConfiguration lc = mock(ILaunchConfiguration.class);
|
||||||
|
doReturn(string).when(lc).getName();
|
||||||
|
doReturn(lctype2).when(lc).getType();
|
||||||
|
doReturn("").when(lc).getAttribute(eq(ATTR_ORIGINAL_NAME), eq(""));
|
||||||
|
doReturn("").when(lc).getAttribute(eq(ATTR_PROVIDER_CLASS), eq(""));
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected ILaunchConfigurationType mockLCType(String id) {
|
||||||
|
ILaunchConfigurationType lctype = mock(ILaunchConfigurationType.class);
|
||||||
|
doReturn(true).when(lctype).isPublic();
|
||||||
|
doReturn(id).when(lctype).getIdentifier();
|
||||||
|
doReturn(lctype).when(lman).getLaunchConfigurationType(id);
|
||||||
|
return lctype;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected ILaunchMode[] mockLaunchModes(ILaunchConfigurationType type, String... modes) {
|
||||||
|
ILaunchMode res[] = new ILaunchMode[modes.length];
|
||||||
|
for (int i = 0; i < modes.length; i++) {
|
||||||
|
String modeId = modes[i];
|
||||||
|
doReturn(true).when(type).supportsMode(modeId);
|
||||||
|
ILaunchMode mode = mock(ILaunchMode.class);
|
||||||
|
res[i] = mode;
|
||||||
|
doReturn(modeId).when(mode).getIdentifier();
|
||||||
|
doReturn(mode).when(lman).getLaunchMode(modeId);
|
||||||
|
globalmodes.add(mode);
|
||||||
|
}
|
||||||
|
doReturn(new HashSet<>(Arrays.asList(modes))).when(type).getSupportedModes();
|
||||||
|
doReturn(globalmodes.toArray(new ILaunchMode[globalmodes.size()])).when(lman).getLaunchModes();
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param t2
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private ILaunchTarget mockRemoteConnection(String t2) {
|
||||||
|
ILaunchTarget target = mock(ILaunchTarget.class);
|
||||||
|
doReturn(t2).when(target).getTypeId();
|
||||||
|
doReturn(t2 + ".target").when(target).getId();
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConfigBasedLaunchDescriptor extends PlatformObject implements ILaunchDescriptor {
|
||||||
|
private ILaunchConfiguration conf;
|
||||||
|
private ILaunchDescriptorType type;
|
||||||
|
|
||||||
|
public ConfigBasedLaunchDescriptor(ILaunchDescriptorType type, ILaunchConfiguration conf) {
|
||||||
|
this.conf = conf;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T getAdapter(Class<T> adapter) {
|
||||||
|
if (adapter.isInstance(conf))
|
||||||
|
return adapter.cast(conf);
|
||||||
|
return super.getAdapter(adapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return conf.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchDescriptorType getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void basicSetup() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void basicSetupOnly() throws CoreException {
|
||||||
|
globalmodes.clear();
|
||||||
|
point = mock(IExtensionPoint.class);
|
||||||
|
extension = mock(IExtension.class);
|
||||||
|
elements = new ArrayList<>();
|
||||||
|
doReturn(new IExtension[] { extension }).when(point).getExtensions();
|
||||||
|
lman = mock(ILaunchManager.class);
|
||||||
|
doReturn(globalmodes.toArray(new ILaunchMode[globalmodes.size()])).when(lman).getLaunchModes();
|
||||||
|
doReturn(new ILaunchConfiguration[] {}).when(lman).getLaunchConfigurations();
|
||||||
|
targetManager = mock(ILaunchTargetManager.class);
|
||||||
|
manager = new FixedLaunchBarManager();
|
||||||
|
localTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn(ILaunchTargetManager.localLaunchTargetTypeId).when(localTarget).getTypeId();
|
||||||
|
doReturn("Local").when(localTarget).getId();
|
||||||
|
// mock
|
||||||
|
launchObject = "test";
|
||||||
|
// remote connections
|
||||||
|
otherTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn("otherTargetType").when(otherTarget).getTypeId();
|
||||||
|
doReturn("otherTarget").when(otherTarget).getId();
|
||||||
|
targets = new ILaunchTarget[] { otherTarget, localTarget };
|
||||||
|
// lc
|
||||||
|
String launchConfigTypeId = "lctype1";
|
||||||
|
launchConfigType = mockLCType(launchConfigTypeId);
|
||||||
|
launchConfig = mockLC(launchObject, launchConfigType);
|
||||||
|
// launch config type
|
||||||
|
mockLaunchModes(launchConfigType, "run", "debug");
|
||||||
|
// launch descriptor and type
|
||||||
|
descriptorType = mock(ILaunchDescriptorType.class);
|
||||||
|
descriptorTypeId = "descType";
|
||||||
|
mockDescriptorTypeElement(descriptorTypeId, 10, descriptorType);
|
||||||
|
descriptor = mock(ILaunchDescriptor.class);
|
||||||
|
doReturn(descriptorType).when(descriptor).getType();
|
||||||
|
doReturn(descriptor).when(descriptorType).getDescriptor(launchObject);
|
||||||
|
// configProvider
|
||||||
|
provider = mockConfigProviderElement(descriptorTypeId, 10, descriptor, otherTarget, launchConfig, launchObject);
|
||||||
|
mockLaunchObjectOnDescriptor(launchObject);
|
||||||
|
// default descriptor
|
||||||
|
String defaultDescTypeId = "defaultDescType";
|
||||||
|
mockDescriptorTypeElement(defaultDescTypeId, 0, new DefaultLaunchDescriptorType());
|
||||||
|
ILaunchConfigurationProvider defaultProvider = new DefaultLaunchConfigProvider();
|
||||||
|
mockProviderElement(defaultDescTypeId, 0, defaultProvider);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testDescriptor() throws Exception {
|
||||||
|
// Create a descriptor type and inject an associated object
|
||||||
|
// Make sure the descriptor is active with the local target and proper
|
||||||
|
// mode
|
||||||
|
// Make sure the associated launch config is active too
|
||||||
|
// Mocking
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertEquals(descriptor, manager.getActiveLaunchDescriptor());
|
||||||
|
assertEquals(otherTarget, manager.getActiveLaunchTarget());
|
||||||
|
assertEquals(launchConfig, manager.getActiveLaunchConfiguration());
|
||||||
|
assertNotNull(manager.getActiveLaunchMode());
|
||||||
|
assertEquals("run", manager.getActiveLaunchMode().getIdentifier());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchBarManager() {
|
||||||
|
assertNull(manager.getActiveLaunchDescriptor());
|
||||||
|
assertNull(manager.getActiveLaunchTarget());
|
||||||
|
assertNull(manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAddConfigMappingTwo() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
ILaunchTarget target = mockRemoteConnection("t2");
|
||||||
|
mockConfigProviderElement(descriptorTypeId, 10, descriptor, target, launchConfig, launchObject);
|
||||||
|
// now create another lc type, which is not registered in config type
|
||||||
|
ILaunchConfigurationType lctype2 = mockLCType("lctypeid2");
|
||||||
|
ILaunchConfiguration lc2 = mockLC("bla2", lctype2);
|
||||||
|
ConfigBasedLaunchDescriptor desc2 = new ConfigBasedLaunchDescriptor(descriptorType, lc2);
|
||||||
|
mockConfigProviderElement(descriptorTypeId, 10, desc2, target, lc2, lc2);
|
||||||
|
init();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
// it return original lctype because we did not associate this
|
||||||
|
// dynmaically
|
||||||
|
assertEquals(launchConfigType, manager.getLaunchConfigurationType(descriptor, target));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAddConfigProviderTwo2() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
ILaunchTarget target = mockRemoteConnection("t2");
|
||||||
|
mockConfigProviderElement(descriptorTypeId, 15, descriptor, target, launchConfig, launchObject);
|
||||||
|
ILaunchConfigurationType lctype2 = mockLCType("lctypeid2");
|
||||||
|
ILaunchConfiguration lc2 = mockLC("lc2", lctype2);
|
||||||
|
mockConfigProviderElement(descriptorTypeId, 20, descriptor, target, lc2, launchObject);
|
||||||
|
init();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertEquals(lctype2, manager.getLaunchConfigurationType(descriptor, target));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchTargets() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
ILaunchTarget[] launchTargets = manager.getLaunchTargets(descriptor);
|
||||||
|
assertEquals(1, launchTargets.length);
|
||||||
|
assertEquals(otherTarget, launchTargets[0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchTargetsNoConfigMapping() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
elements.clear();
|
||||||
|
mockDescriptorTypeElement(descriptorTypeId, 10, descriptorType);
|
||||||
|
mockProviderElement(descriptorTypeId, 10, new DefaultLaunchConfigProvider());
|
||||||
|
init();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
ILaunchDescriptor desc = manager.getActiveLaunchDescriptor();
|
||||||
|
ILaunchTarget[] launchTargets = manager.getLaunchTargets(desc);
|
||||||
|
assertEquals(1, launchTargets.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchTargetsConfigMapping() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
elements.clear();
|
||||||
|
mockDescriptorTypeElement(descriptorTypeId, 10, descriptorType);
|
||||||
|
mockConfigProviderElement(descriptorTypeId, 10, descriptor, localTarget, launchConfig, launchObject);
|
||||||
|
init();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
ILaunchDescriptor desc = manager.getActiveLaunchDescriptor();
|
||||||
|
ILaunchTarget[] launchTargets = manager.getLaunchTargets(desc);
|
||||||
|
assertEquals(1, launchTargets.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchDescriptorsNull() {
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(0, launchDescriptors.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchDescriptorsNull1() throws CoreException {
|
||||||
|
init();
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(0, launchDescriptors.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchDescriptors() {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(1, launchDescriptors.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// public void testGetLaunchDescriptorsSort() {
|
||||||
|
// final ILaunchDescriptor res[] = new ILaunchDescriptor[1];
|
||||||
|
// manager.addTargetType(targetType);
|
||||||
|
// ConfigBasedLaunchDescriptorType descType1 = new
|
||||||
|
// ConfigBasedLaunchDescriptorType("id1", lctype.getIdentifier());
|
||||||
|
// ConfigBasedLaunchDescriptorType descType2 = new
|
||||||
|
// ConfigBasedLaunchDescriptorType("id2", lctype.getIdentifier()) {
|
||||||
|
// @Override
|
||||||
|
// public ILaunchDescriptor getDescriptor(Object element) {
|
||||||
|
// return res[0] = super.getDescriptor(element);
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
// ConfigBasedLaunchDescriptorType descType3 = new
|
||||||
|
// ConfigBasedLaunchDescriptorType("id3", lctype.getIdentifier());
|
||||||
|
// manager.addDescriptorType(descType1, 3);
|
||||||
|
// manager.addDescriptorType(descType2, 5);
|
||||||
|
// manager.addDescriptorType(descType3, 1);
|
||||||
|
// manager.addConfigProvider(descType1.getId(), targetType.getId(), true,
|
||||||
|
// provider);
|
||||||
|
// manager.addConfigProvider(descType2.getId(), targetType.getId(), true,
|
||||||
|
// provider);
|
||||||
|
// manager.addConfigProvider(descType3.getId(), targetType.getId(), true,
|
||||||
|
// provider);
|
||||||
|
// targetType.targets.add(mytarget);
|
||||||
|
// manager.launchObjectAdded(launchObject);
|
||||||
|
// ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
// assertEquals(1, launchDescriptors.length);
|
||||||
|
// assertNotNull(launchDescriptors[0]);
|
||||||
|
// assertSame(res[0], launchDescriptors[0]);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectAdded() throws CoreException {
|
||||||
|
mockLaunchObjectOnDescriptor(launchConfig);
|
||||||
|
doReturn(launchConfig.getName()).when(descriptor).getName();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(1, launchDescriptors.length);
|
||||||
|
assertNotNull(launchDescriptors[0]);
|
||||||
|
assertEquals(launchConfig.getName(), launchDescriptors[0].getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationAdded() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
ILaunchConfiguration lc2 = mockLC("lc2", launchConfigType);
|
||||||
|
manager.launchConfigurationAdded(lc2);
|
||||||
|
assertEquals(2, manager.getLaunchDescriptors().length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectChanged() throws CoreException {
|
||||||
|
// todo FIX me
|
||||||
|
manager.launchObjectChanged(launchObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IProject mockProject(String projectName) {
|
||||||
|
IProject project = mock(Project.class);
|
||||||
|
when(project.getAdapter(IResource.class)).thenReturn(project);
|
||||||
|
when(project.getProject()).thenReturn(project);
|
||||||
|
when(project.getName()).thenReturn(projectName);
|
||||||
|
IPath path = new Path(projectName);
|
||||||
|
when(project.getFullPath()).thenReturn(path);
|
||||||
|
when(project.getType()).thenReturn(IResource.PROJECT);
|
||||||
|
return project;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final String ATTR_PROJECT_NAME = "org.eclipse.cdt.launch" + ".PROJECT_ATTR";
|
||||||
|
public static final String ATTR_PROGRAM_NAME = "org.eclipse.cdt.launch" + ".PROGRAM_NAME";
|
||||||
|
|
||||||
|
public ILaunchConfiguration mockLCProject(ILaunchConfiguration lc, String projectName) {
|
||||||
|
mockLCAttribute(lc, ATTR_PROJECT_NAME, projectName);
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchConfiguration mockLCProject(ILaunchConfiguration lc, IProject project) {
|
||||||
|
String projectName = project.getName();
|
||||||
|
doReturn(projectName).when(lc).getName();
|
||||||
|
mockLCProject(lc, projectName);
|
||||||
|
try {
|
||||||
|
doReturn(new IResource[] { project }).when(lc).getMappedResources();
|
||||||
|
} catch (CoreException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchConfiguration mockLCBinary(ILaunchConfiguration lc, String binname) {
|
||||||
|
mockLCAttribute(lc, ATTR_PROGRAM_NAME, binname);
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchConfiguration mockLCAttribute(ILaunchConfiguration lc, String attr, String value) {
|
||||||
|
try {
|
||||||
|
doReturn(value).when(lc).getAttribute(eq(attr), anyString());
|
||||||
|
} catch (CoreException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchConfiguration mockLCAttribute(ILaunchConfiguration lc, String attr, boolean value) {
|
||||||
|
try {
|
||||||
|
doReturn(value).when(lc).getAttribute(attr, false);
|
||||||
|
} catch (CoreException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
return lc;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getProjectName(ILaunchConfiguration llc) {
|
||||||
|
try {
|
||||||
|
return llc.getAttribute(ATTR_PROJECT_NAME, "");
|
||||||
|
} catch (CoreException e) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
IProject getProjectByName(String p) {
|
||||||
|
if (p.equals("aaa"))
|
||||||
|
return aaa;
|
||||||
|
return mockProject(p);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void userDeletesLC(ILaunchConfiguration lc2) {
|
||||||
|
String string = lc2.getName();
|
||||||
|
reset(lc2);
|
||||||
|
doReturn(string).when(lc2).getName();
|
||||||
|
manager.launchConfigurationRemoved(lc2);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class ProjectBasedLaunchDescriptorType implements ILaunchDescriptorType {
|
||||||
|
@Override
|
||||||
|
public ILaunchDescriptor getDescriptor(Object launchObject) throws CoreException {
|
||||||
|
return new ProjectLaunchDescriptor(this, (IProject) launchObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return "pbtype";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final String ATTR_ORIGINAL_NAME = org.eclipse.launchbar.core.internal.Activator.PLUGIN_ID
|
||||||
|
+ ".originalName"; //$NON-NLS-1$
|
||||||
|
public static final String ATTR_PROVIDER_CLASS = org.eclipse.launchbar.core.internal.Activator.PLUGIN_ID
|
||||||
|
+ ".providerClass"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
protected void projectMappingSetup() throws CoreException {
|
||||||
|
descriptorType = new ProjectBasedLaunchDescriptorType();
|
||||||
|
descriptorTypeId = ((ProjectBasedLaunchDescriptorType) descriptorType).getId();
|
||||||
|
aaa = mockProject("aaa");
|
||||||
|
descriptor = new ProjectLaunchDescriptor(descriptorType, aaa);
|
||||||
|
// setup some stuff
|
||||||
|
mockDescriptorTypeElement(descriptorTypeId, 10, descriptorType);
|
||||||
|
// lc = provider.createLaunchConfiguration(lman,
|
||||||
|
// descType.getDescriptor(aaa));
|
||||||
|
mockLCProject(launchConfig, aaa);
|
||||||
|
mockLCAttribute(launchConfig, ATTR_ORIGINAL_NAME, aaa.getName());
|
||||||
|
assertEquals(0, manager.getLaunchDescriptors().length);
|
||||||
|
provider = new ProjectPerTargetLaunchConfigProvider() {
|
||||||
|
@Override
|
||||||
|
public ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor,
|
||||||
|
ILaunchTarget target) throws CoreException {
|
||||||
|
return launchConfigType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean ownsLaunchConfiguration(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return configuration == launchConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchDescriptor getLaunchDescriptor(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return descriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchTarget getLaunchTarget(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return localTarget;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
mockProviderElement(descriptorTypeId, 10, provider);
|
||||||
|
mockLCAttribute(launchConfig, ATTR_PROVIDER_CLASS, provider.getClass().getName());
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test duplicating a config. make sure it's default desc and same targets
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectAddedRemapping() throws CoreException {
|
||||||
|
projectMappingSetup();
|
||||||
|
// user created a project
|
||||||
|
manager.launchObjectAdded(aaa);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
assertTrue(manager.getLaunchDescriptors()[0].getName().startsWith(aaa.getName()));
|
||||||
|
// user clicked on descriptor gear to edit lc, new lc is created
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
// the project launch config should have caught this
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
assertEquals(launchConfig.getName(), manager.getLaunchDescriptors()[0].getName());
|
||||||
|
// user cloned lc and changed some settings
|
||||||
|
ILaunchConfiguration lc2 = mockLC("lc2", launchConfigType);
|
||||||
|
mockLCProject(lc2, aaa);
|
||||||
|
doReturn("name2").when(lc2).getName();
|
||||||
|
manager.launchConfigurationAdded(lc2);
|
||||||
|
assertEquals(2, manager.getLaunchDescriptors().length);
|
||||||
|
// user deleted lc
|
||||||
|
userDeletesLC(lc2);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
// user deleted last lc, now we back to project default
|
||||||
|
userDeletesLC(launchConfig);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectAddedRemapping2() throws CoreException {
|
||||||
|
projectMappingSetup();
|
||||||
|
// test unmapping
|
||||||
|
manager.launchObjectAdded(aaa);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
manager.launchObjectAdded(aaa);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
assertEquals(launchConfig.getName(), manager.getLaunchDescriptors()[0].getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectAddedBadDescriptor() throws CoreException {
|
||||||
|
doThrow(new NullPointerException()).when(descriptorType).getDescriptor(any());
|
||||||
|
// check events
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
verify(descriptorType).getDescriptor(launchObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectAddedBadDescriptor2() throws CoreException {
|
||||||
|
doThrow(new NullPointerException()).when(descriptorType).getDescriptor(any());
|
||||||
|
// check events
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
verify(descriptorType).getDescriptor(launchObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectRemoveBadDescriptor() throws CoreException {
|
||||||
|
doThrow(new NullPointerException()).when(descriptorType).getDescriptor(any());
|
||||||
|
// check events
|
||||||
|
manager.launchObjectRemoved(launchObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchObjectRemoved() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertEquals(1, manager.getLaunchDescriptors().length);
|
||||||
|
manager.launchObjectRemoved(launchObject);
|
||||||
|
assertEquals(0, manager.getLaunchDescriptors().length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetActiveLaunchDescriptor() {
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
// manager.setActiveLaunchDescriptor(desc);
|
||||||
|
assertEquals(descriptor, manager.getActiveLaunchDescriptor());
|
||||||
|
verify(lis).activeLaunchDescriptorChanged(descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchDescriptorUnkn() {
|
||||||
|
try {
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
fail();
|
||||||
|
} catch (Exception e) {
|
||||||
|
// pass
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchDescriptorNullBad() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(null);
|
||||||
|
assertEquals(descriptor, manager.getActiveLaunchDescriptor());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchDescriptorLisBad() {
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
doThrow(new NullPointerException()).when(lis).activeLaunchDescriptorChanged(any(ILaunchDescriptor.class));
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
verify(lis).activeLaunchDescriptorChanged(descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchDescriptorNull() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchObjectRemoved(launchObject);
|
||||||
|
assertEquals(null, manager.getActiveLaunchDescriptor());
|
||||||
|
manager.setActiveLaunchDescriptor(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchModes() throws CoreException {
|
||||||
|
ILaunchMode[] launchModes = manager.getLaunchModes();
|
||||||
|
assertEquals(0, launchModes.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchModesFew() throws CoreException {
|
||||||
|
globalmodes.clear();
|
||||||
|
ILaunchConfigurationType lctype2 = mockLCType("lctype2");
|
||||||
|
mockLaunchModes(lctype2, "modex");
|
||||||
|
mockLaunchModes(launchConfigType, "run", "debug", "foo");
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
ILaunchMode[] launchModes = manager.getLaunchModes();
|
||||||
|
assertEquals(3, launchModes.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchMode() throws CoreException {
|
||||||
|
ILaunchMode mode = mock(ILaunchMode.class);
|
||||||
|
doReturn("bla").when(mode).getIdentifier();
|
||||||
|
doReturn("Bla").when(mode).getLabel();
|
||||||
|
manager.setActiveLaunchMode(mode);
|
||||||
|
assertEquals(mode, manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchModeNull() throws CoreException {
|
||||||
|
manager.setActiveLaunchMode(null);
|
||||||
|
assertEquals(null, manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchModeNull2() throws CoreException {
|
||||||
|
ILaunchMode modes[] = mockLaunchModes(launchConfigType, "run", "debug", "foo");
|
||||||
|
manager.setActiveLaunchMode(modes[0]);
|
||||||
|
manager.setActiveLaunchMode(null);
|
||||||
|
assertEquals(null, manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchModeUnsupported() {
|
||||||
|
ILaunchConfigurationType lctype2 = mockLCType("lctype2");
|
||||||
|
ILaunchMode mode = mockLaunchModes(lctype2, "modex")[0];
|
||||||
|
mockLaunchModes(launchConfigType, "run", "debug", "foo");
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
try {
|
||||||
|
manager.setActiveLaunchMode(mode);
|
||||||
|
fail();
|
||||||
|
} catch (Exception e) {
|
||||||
|
// works
|
||||||
|
assertNotEquals(mode, manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchModeLis() throws CoreException {
|
||||||
|
ILaunchMode mode = mock(ILaunchMode.class);
|
||||||
|
doReturn("bla").when(mode).getIdentifier();
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
manager.setActiveLaunchMode(mode);
|
||||||
|
manager.setActiveLaunchMode(null);
|
||||||
|
verify(lis, times(1)).activeLaunchModeChanged(mode);
|
||||||
|
verify(lis, times(1)).activeLaunchModeChanged(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetActiveLaunchModeLisBad() throws CoreException {
|
||||||
|
ILaunchMode mode = mock(ILaunchMode.class);
|
||||||
|
doReturn("bla").when(mode).getIdentifier();
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
doThrow(new NullPointerException()).when(lis).activeLaunchModeChanged(mode);
|
||||||
|
manager.setActiveLaunchMode(mode);
|
||||||
|
verify(lis).activeLaunchModeChanged(mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetActiveLaunchModeFromDesc() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
ILaunchMode resmode = manager.getActiveLaunchMode();
|
||||||
|
assertNotNull(resmode);
|
||||||
|
assertEquals("run", resmode.getIdentifier());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetActiveLaunchModeFromDescDebug() throws CoreException {
|
||||||
|
globalmodes.clear();
|
||||||
|
mockLaunchModes(launchConfigType, "xrun");
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
ILaunchMode resmode = manager.getActiveLaunchMode();
|
||||||
|
assertNotNull(resmode);
|
||||||
|
assertEquals("xrun", resmode.getIdentifier());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetActiveLaunchModeFromDescActive() throws CoreException {
|
||||||
|
globalmodes.clear();
|
||||||
|
ILaunchMode mode = mockLaunchModes(launchConfigType, "foo", "run")[0];
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
manager.setActiveLaunchMode(mode);
|
||||||
|
ILaunchMode resmode = manager.getActiveLaunchMode();
|
||||||
|
assertNotNull(resmode);
|
||||||
|
assertEquals("foo", resmode.getIdentifier());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetActiveLaunchTarget() throws CoreException {
|
||||||
|
manager.setActiveLaunchTarget(localTarget);
|
||||||
|
assertEquals(localTarget, manager.getActiveLaunchTarget());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfigurationType() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertNotNull(manager.getLaunchConfigurationType(descriptor, otherTarget));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfigurationNull() throws CoreException {
|
||||||
|
assertNull(manager.getLaunchConfiguration(null, otherTarget));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfigurationNull2() throws CoreException {
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertNull(manager.getLaunchConfiguration(descriptor, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLaunchConfiguration() throws CoreException {
|
||||||
|
basicSetup();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
assertTrue(manager.supportsTarget(descriptor, otherTarget));
|
||||||
|
assertNotNull(manager.getLaunchConfiguration(descriptor, otherTarget));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAddListener() throws CoreException {
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
// check events
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
verify(lis).activeLaunchTargetChanged(any(ILaunchTarget.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAddListenerBad() throws CoreException {
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
doThrow(new NullPointerException()).when(lis).activeLaunchTargetChanged(any(ILaunchTarget.class));
|
||||||
|
// check events
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.setActiveLaunchDescriptor(descriptor);
|
||||||
|
verify(lis).activeLaunchTargetChanged(any(ILaunchTarget.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRemoveListener() {
|
||||||
|
ILaunchBarListener lis = mock(ILaunchBarListener.class);
|
||||||
|
manager.addListener(lis);
|
||||||
|
manager.removeListener(lis);
|
||||||
|
verifyZeroInteractions(lis);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationAdded2() throws CoreException {
|
||||||
|
globalmodes.clear();
|
||||||
|
ILaunchMode mode = mockLaunchModes(launchConfigType, "foo")[0];
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
verify(provider).launchConfigurationAdded(launchConfig);
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(1, launchDescriptors.length);
|
||||||
|
assertNotNull(launchDescriptors[0]);
|
||||||
|
assertEquals(launchConfig.getName(), launchDescriptors[0].getName());
|
||||||
|
manager.setActiveLaunchDescriptor(launchDescriptors[0]);
|
||||||
|
assertEquals(otherTarget, manager.getActiveLaunchTarget());
|
||||||
|
assertEquals(mode, manager.getActiveLaunchMode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationAddedDefault() throws CoreException {
|
||||||
|
// another lc not covered by provider
|
||||||
|
ILaunchConfigurationType lctype2 = mockLCType("lctype2");
|
||||||
|
ILaunchConfiguration lc2 = mockLC("lc2", lctype2);
|
||||||
|
manager.launchConfigurationAdded(lc2);
|
||||||
|
// verify(provider).launchConfigurationAdded(lc2);
|
||||||
|
ILaunchDescriptor[] launchDescriptors = manager.getLaunchDescriptors();
|
||||||
|
assertEquals(1, launchDescriptors.length);
|
||||||
|
assertNotNull(launchDescriptors[0]);
|
||||||
|
assertEquals(lc2.getName(), launchDescriptors[0].getName());
|
||||||
|
manager.setActiveLaunchDescriptor(launchDescriptors[0]);
|
||||||
|
assertEquals(localTarget, manager.getActiveLaunchTarget());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationAddedBad() throws CoreException {
|
||||||
|
doThrow(new NullPointerException()).when(provider).launchConfigurationAdded(any(ILaunchConfiguration.class));
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
verify(provider).launchConfigurationAdded(launchConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationChanged() throws CoreException {
|
||||||
|
manager.launchConfigurationChanged(launchConfig);
|
||||||
|
verify(provider).launchConfigurationChanged(launchConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationRemoved() throws CoreException {
|
||||||
|
manager.launchConfigurationRemoved(launchConfig);
|
||||||
|
verify(provider).launchConfigurationRemoved(launchConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLaunchConfigurationRemovedBad() throws CoreException {
|
||||||
|
doThrow(new NullPointerException()).when(provider).launchConfigurationRemoved(any(ILaunchConfiguration.class));
|
||||||
|
manager.launchConfigurationRemoved(launchConfig);
|
||||||
|
verify(provider).launchConfigurationRemoved(launchConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testDescriptorEnablement() throws CoreException {
|
||||||
|
basicSetupOnly();
|
||||||
|
elements.clear();
|
||||||
|
|
||||||
|
IConfigurationElement element = mockDescriptorTypeElement("type2", 10, descriptorType);
|
||||||
|
IConfigurationElement enablement = mockEnablementElement(element);
|
||||||
|
IConfigurationElement instance = mock(IConfigurationElement.class);
|
||||||
|
doReturn("instanceof").when(instance).getName();
|
||||||
|
mockSubElement(enablement, new IConfigurationElement[] { instance });
|
||||||
|
doReturn("java.lang.Integer").when(instance).getAttribute("value");
|
||||||
|
init();
|
||||||
|
// this will be refused by enablement expression
|
||||||
|
assertNull(manager.launchObjectAdded(launchObject));
|
||||||
|
// we programmatically refuse this
|
||||||
|
assertNull(manager.launchObjectAdded(1));
|
||||||
|
mockLaunchObjectOnDescriptor(1);
|
||||||
|
// now we both good programmatically and in expression in extension
|
||||||
|
assertNotNull(manager.launchObjectAdded(1));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,221 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2018 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
|
import static org.mockito.ArgumentMatchers.anyString;
|
||||||
|
import static org.mockito.ArgumentMatchers.eq;
|
||||||
|
import static org.mockito.Mockito.doAnswer;
|
||||||
|
import static org.mockito.Mockito.doReturn;
|
||||||
|
import static org.mockito.Mockito.mock;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
import org.eclipse.core.runtime.IExtension;
|
||||||
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
|
import org.eclipse.debug.core.ILaunchMode;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchConfigurationProvider;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchDescriptor;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchDescriptorType;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class LaunchBarManagerTest {
|
||||||
|
@Test
|
||||||
|
public void startupTest() throws Exception {
|
||||||
|
// Make sure the manager starts up and defaults everything to null
|
||||||
|
LaunchBarManager manager = new LaunchBarManager(false);
|
||||||
|
manager.init();
|
||||||
|
assertNull(manager.getActiveLaunchDescriptor());
|
||||||
|
assertNull(manager.getActiveLaunchMode());
|
||||||
|
assertNull(manager.getActiveLaunchTarget());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void defaultTest() throws Exception {
|
||||||
|
// Create a launch config, make sure default mode and local target are
|
||||||
|
// active
|
||||||
|
// And that that config is the active config.
|
||||||
|
|
||||||
|
// Mocking
|
||||||
|
ILaunchConfigurationType launchConfigType = mock(ILaunchConfigurationType.class);
|
||||||
|
ILaunchConfiguration launchConfig = mock(ILaunchConfiguration.class);
|
||||||
|
String launchConfigName = "launchConfig";
|
||||||
|
doReturn(launchConfigName).when(launchConfig).getName();
|
||||||
|
doReturn(launchConfigName).when(launchConfig).getAttribute(eq("org.eclipse.launchbar.core.originalName"),
|
||||||
|
anyString());
|
||||||
|
doReturn("").when(launchConfig).getAttribute(eq("org.eclipse.launchbar.core.providerClass"), anyString());
|
||||||
|
doReturn(true).when(launchConfigType).isPublic();
|
||||||
|
doReturn(launchConfigType).when(launchConfig).getType();
|
||||||
|
doReturn("launchConfigType").when(launchConfigType).getIdentifier();
|
||||||
|
doReturn(true).when(launchConfigType).supportsMode("run");
|
||||||
|
doReturn(true).when(launchConfigType).supportsMode("debug");
|
||||||
|
|
||||||
|
final ILaunchTargetManager targetManager = mock(ILaunchTargetManager.class);
|
||||||
|
ILaunchTarget localTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn(ILaunchTargetManager.localLaunchTargetTypeId).when(localTarget).getTypeId();
|
||||||
|
doReturn("Local").when(localTarget).getId();
|
||||||
|
doReturn(new ILaunchTarget[] { localTarget }).when(targetManager).getLaunchTargets();
|
||||||
|
|
||||||
|
// Inject the launch config
|
||||||
|
LaunchBarManager manager = new LaunchBarManager(false) {
|
||||||
|
@Override
|
||||||
|
ILaunchTargetManager getLaunchTargetManager() {
|
||||||
|
return targetManager;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
manager.init();
|
||||||
|
manager.launchConfigurationAdded(launchConfig);
|
||||||
|
|
||||||
|
// Verify state
|
||||||
|
assertNotNull(manager.getActiveLaunchDescriptor());
|
||||||
|
assertEquals(launchConfig, manager.getActiveLaunchDescriptor().getAdapter(ILaunchConfiguration.class));
|
||||||
|
|
||||||
|
assertNotNull(manager.getActiveLaunchTarget());
|
||||||
|
assertEquals(ILaunchTargetManager.localLaunchTargetTypeId, manager.getActiveLaunchTarget().getTypeId());
|
||||||
|
assertEquals("Local", manager.getActiveLaunchTarget().getId());
|
||||||
|
|
||||||
|
assertNotNull(manager.getActiveLaunchMode());
|
||||||
|
assertEquals("run", manager.getActiveLaunchMode().getIdentifier());
|
||||||
|
|
||||||
|
assertEquals(launchConfig, manager.getActiveLaunchConfiguration());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void descriptorTest() throws Exception {
|
||||||
|
// Create a descriptor type and inject an associated object
|
||||||
|
// Make sure the descriptor is active with the local target and proper
|
||||||
|
// mode
|
||||||
|
// Make sure the associated launch config is active too
|
||||||
|
|
||||||
|
// Mocking
|
||||||
|
final IExtensionPoint extensionPoint = mock(IExtensionPoint.class);
|
||||||
|
IExtension extension = mock(IExtension.class);
|
||||||
|
doReturn(new IExtension[] { extension }).when(extensionPoint).getExtensions();
|
||||||
|
|
||||||
|
List<IConfigurationElement> elements = new ArrayList<>();
|
||||||
|
IConfigurationElement element;
|
||||||
|
|
||||||
|
// fake launch object
|
||||||
|
String launchObject = "fakeObject";
|
||||||
|
|
||||||
|
// launch descriptor for that object
|
||||||
|
element = mock(IConfigurationElement.class);
|
||||||
|
elements.add(element);
|
||||||
|
doReturn("descriptorType").when(element).getName();
|
||||||
|
String descriptorTypeId = "fakeDescriptorType";
|
||||||
|
doReturn(descriptorTypeId).when(element).getAttribute("id");
|
||||||
|
ILaunchDescriptorType descriptorType = mock(ILaunchDescriptorType.class);
|
||||||
|
doReturn(descriptorType).when(element).createExecutableExtension("class");
|
||||||
|
ILaunchDescriptor descriptor = mock(ILaunchDescriptor.class);
|
||||||
|
doReturn(descriptor).when(descriptorType).getDescriptor(launchObject);
|
||||||
|
doReturn(descriptorType).when(descriptor).getType();
|
||||||
|
doReturn(launchObject).when(descriptor).getName();
|
||||||
|
|
||||||
|
// launch config type
|
||||||
|
final ILaunchManager launchManager = mock(ILaunchManager.class);
|
||||||
|
ILaunchMode runMode = mock(ILaunchMode.class);
|
||||||
|
String run = "run";
|
||||||
|
doReturn(run).when(runMode).getIdentifier();
|
||||||
|
doReturn(runMode).when(launchManager).getLaunchMode(run);
|
||||||
|
ILaunchMode debugMode = mock(ILaunchMode.class);
|
||||||
|
String debug = "debug";
|
||||||
|
doReturn(debug).when(debugMode).getIdentifier();
|
||||||
|
doReturn(debugMode).when(launchManager).getLaunchMode(debug);
|
||||||
|
doReturn(new ILaunchMode[] { runMode, debugMode }).when(launchManager).getLaunchModes();
|
||||||
|
ILaunchConfigurationType launchConfigType = mock(ILaunchConfigurationType.class);
|
||||||
|
String launchConfigTypeId = "fakeLaunchConfigType";
|
||||||
|
doReturn(launchConfigTypeId).when(launchConfigType).getIdentifier();
|
||||||
|
doReturn(true).when(launchConfigType).supportsMode(run);
|
||||||
|
doReturn(true).when(launchConfigType).supportsMode(debug);
|
||||||
|
doReturn(launchConfigType).when(launchManager).getLaunchConfigurationType(launchConfigTypeId);
|
||||||
|
// TODO assuming this is only called at init time when there aren't any
|
||||||
|
doReturn(new ILaunchConfiguration[0]).when(launchManager).getLaunchConfigurations();
|
||||||
|
|
||||||
|
// configProvider
|
||||||
|
element = mock(IConfigurationElement.class);
|
||||||
|
elements.add(element);
|
||||||
|
doReturn("configProvider").when(element).getName();
|
||||||
|
doReturn(descriptorTypeId).when(element).getAttribute("descriptorType");
|
||||||
|
doReturn("10").when(element).getAttribute("priority");
|
||||||
|
|
||||||
|
ILaunchConfigurationProvider configProvider = mock(ILaunchConfigurationProvider.class);
|
||||||
|
doReturn(configProvider).when(element).createExecutableExtension("class");
|
||||||
|
|
||||||
|
final ILaunchTargetManager targetManager = mock(ILaunchTargetManager.class);
|
||||||
|
ILaunchTarget localTarget = mock(ILaunchTarget.class);
|
||||||
|
doReturn(ILaunchTargetManager.localLaunchTargetTypeId).when(localTarget).getTypeId();
|
||||||
|
doReturn("Local").when(localTarget).getId();
|
||||||
|
doReturn(new ILaunchTarget[] { localTarget }).when(targetManager).getLaunchTargets();
|
||||||
|
|
||||||
|
ILaunchConfiguration launchConfig = mock(ILaunchConfiguration.class);
|
||||||
|
doReturn(launchConfig).when(configProvider).getLaunchConfiguration(eq(descriptor), any(ILaunchTarget.class));
|
||||||
|
doReturn(launchConfigType).when(configProvider).getLaunchConfigurationType(any(ILaunchDescriptor.class),
|
||||||
|
any(ILaunchTarget.class));
|
||||||
|
doAnswer(invocation -> {
|
||||||
|
ILaunchTarget target = (ILaunchTarget) invocation.getArguments()[1];
|
||||||
|
return target.getTypeId().equals(ILaunchTargetManager.localLaunchTargetTypeId);
|
||||||
|
}).when(configProvider).supports(eq(descriptor), any(ILaunchTarget.class));
|
||||||
|
|
||||||
|
doReturn(elements.toArray(new IConfigurationElement[0])).when(extension).getConfigurationElements();
|
||||||
|
|
||||||
|
// Now inject the launch object
|
||||||
|
LaunchBarManager manager = new LaunchBarManager(false) {
|
||||||
|
@Override
|
||||||
|
IExtensionPoint getExtensionPoint() throws CoreException {
|
||||||
|
return extensionPoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
ILaunchManager getLaunchManager() {
|
||||||
|
return launchManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
ILaunchTargetManager getLaunchTargetManager() {
|
||||||
|
return targetManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
manager.init();
|
||||||
|
manager.launchObjectAdded(launchObject);
|
||||||
|
|
||||||
|
assertEquals(descriptor, manager.getActiveLaunchDescriptor());
|
||||||
|
assertEquals(runMode, manager.getActiveLaunchMode());
|
||||||
|
assertEquals(ILaunchTargetManager.localLaunchTargetTypeId, manager.getActiveLaunchTarget().getTypeId());
|
||||||
|
assertEquals("Local", manager.getActiveLaunchTarget().getId());
|
||||||
|
assertEquals(launchConfig, manager.getActiveLaunchConfiguration());
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO - test that changing active target type produces a different launch
|
||||||
|
// config type
|
||||||
|
// TODO - test that settings are maintained after a restart
|
||||||
|
// TODO - test that two target types that map to the same desc type and
|
||||||
|
// config type share configs
|
||||||
|
// TODO - test duplicating a config. make sure it's default desc and same
|
||||||
|
// targets
|
||||||
|
// TODO - test project descriptors and stuff
|
||||||
|
// TODO - test descriptor takeovers (new descriptors on launchObjectChange
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,113 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2016, 2018 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertNotEquals;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.mockito.Mockito;
|
||||||
|
import org.osgi.service.prefs.Preferences;
|
||||||
|
|
||||||
|
public class LaunchTargetTest {
|
||||||
|
private org.osgi.service.prefs.Preferences pref;
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setUp() {
|
||||||
|
pref = Mockito.mock(Preferences.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRemoveLaunchTarget() {
|
||||||
|
ILaunchTargetManager manager = Activator.getLaunchTargetManager();
|
||||||
|
// Account for pre-populated targets
|
||||||
|
int baseSize = manager.getLaunchTargets().length;
|
||||||
|
ILaunchTarget target1 = manager.addLaunchTarget("mytype", "target1");
|
||||||
|
ILaunchTarget target2 = manager.addLaunchTarget("mytype", "target2");
|
||||||
|
Set<ILaunchTarget> targetSet = new HashSet<>(Arrays.asList(manager.getLaunchTargets()));
|
||||||
|
assertEquals(baseSize + 2, targetSet.size());
|
||||||
|
assertTrue(targetSet.contains(target1));
|
||||||
|
assertTrue(targetSet.contains(target2));
|
||||||
|
manager.removeLaunchTarget(target2);
|
||||||
|
targetSet = new HashSet<>(Arrays.asList(manager.getLaunchTargets()));
|
||||||
|
assertEquals(baseSize + 1, targetSet.size());
|
||||||
|
assertTrue(targetSet.contains(target1));
|
||||||
|
assertFalse(targetSet.contains(target2));
|
||||||
|
manager.removeLaunchTarget(target1);
|
||||||
|
targetSet = new HashSet<>(Arrays.asList(manager.getLaunchTargets()));
|
||||||
|
assertEquals(baseSize, targetSet.size());
|
||||||
|
assertFalse(targetSet.contains(target1));
|
||||||
|
assertFalse(targetSet.contains(target2));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEquals() {
|
||||||
|
LaunchTarget t1 = new LaunchTarget("a", "b", pref);
|
||||||
|
LaunchTarget t2 = new LaunchTarget("a", "b", pref);
|
||||||
|
assertEquals(t1, t2);
|
||||||
|
LaunchTarget t3 = new LaunchTarget("a", "a", pref);
|
||||||
|
assertNotEquals(t1, t3);
|
||||||
|
LaunchTarget t4 = new LaunchTarget("b", "a", pref);
|
||||||
|
assertNotEquals(t4, t3);
|
||||||
|
assertNotEquals(t4, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEqualsHashode() {
|
||||||
|
LaunchTarget t1 = new LaunchTarget("a", "b", pref);
|
||||||
|
LaunchTarget t2 = new LaunchTarget("a", "b", pref);
|
||||||
|
assertEquals(t1.hashCode(), t2.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testBasic() {
|
||||||
|
LaunchTarget t1 = new LaunchTarget("a", "b", pref);
|
||||||
|
ILaunchTarget save = t1.getWorkingCopy().save();
|
||||||
|
assertEquals(t1, save);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testNullTarget() {
|
||||||
|
ILaunchTarget nt = ILaunchTarget.NULL_TARGET;
|
||||||
|
assertEquals("b", nt.getAttribute("a", "b"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected = NullPointerException.class)
|
||||||
|
public void testNPEInConstrPref() {
|
||||||
|
new LaunchTarget("a", "b", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected = NullPointerException.class)
|
||||||
|
public void testNPEInConstrType() {
|
||||||
|
new LaunchTarget(null, "b", pref);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected = NullPointerException.class)
|
||||||
|
public void testNPEInConstrId() {
|
||||||
|
new LaunchTarget("type", null, pref);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test(expected = UnsupportedOperationException.class)
|
||||||
|
public void testWConNULL() {
|
||||||
|
ILaunchTarget nt = ILaunchTarget.NULL_TARGET;
|
||||||
|
nt.getWorkingCopy();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
package org.eclipse.launchbar.core.tests;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotEquals;
|
||||||
|
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetWorkingCopy;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class TargetAttributesTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAttribute() {
|
||||||
|
ILaunchTargetManager manager = Activator.getLaunchTargetManager();
|
||||||
|
String targetType = "testType";
|
||||||
|
String targetId = "testTarget";
|
||||||
|
String attributeKey = "testKey";
|
||||||
|
String attributeValue = "testValue";
|
||||||
|
// Make sure the target doesn't exist
|
||||||
|
ILaunchTarget target = manager.getLaunchTarget(targetType, targetId);
|
||||||
|
if (target != null) {
|
||||||
|
manager.removeLaunchTarget(target);
|
||||||
|
}
|
||||||
|
// Add the target
|
||||||
|
target = manager.addLaunchTarget(targetType, targetId);
|
||||||
|
// Attribute should be empty
|
||||||
|
assertEquals(target.getAttribute(attributeKey, ""), "");
|
||||||
|
// Set the attribute and make sure it's set
|
||||||
|
ILaunchTargetWorkingCopy wc = target.getWorkingCopy();
|
||||||
|
assertNotEquals(target, wc);
|
||||||
|
wc.setAttribute(attributeKey, attributeValue);
|
||||||
|
assertEquals(wc.getAttribute(attributeKey, ""), attributeValue);
|
||||||
|
ILaunchTarget savedTarget = wc.save();
|
||||||
|
// Make sure we get our original back
|
||||||
|
assertEquals(target, savedTarget);
|
||||||
|
assertEquals(target.getAttribute(attributeKey, ""), attributeValue);
|
||||||
|
// Make sure remove removes the attribute
|
||||||
|
manager.removeLaunchTarget(target);
|
||||||
|
target = manager.addLaunchTarget(targetType, targetId);
|
||||||
|
assertEquals(target.getAttribute(attributeKey, ""), "");
|
||||||
|
// Cleanup
|
||||||
|
manager.removeLaunchTarget(target);
|
||||||
|
}
|
||||||
|
}
|
7
launchbar/org.eclipse.launchbar.core/.classpath
Normal file
7
launchbar/org.eclipse.launchbar.core/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
1
launchbar/org.eclipse.launchbar.core/.gitignore
vendored
Normal file
1
launchbar/org.eclipse.launchbar.core/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/bin/
|
2
launchbar/org.eclipse.launchbar.core/.options
Normal file
2
launchbar/org.eclipse.launchbar.core/.options
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
org.eclipse.launchbar.core/debug=true
|
||||||
|
org.eclipse.launchbar.core/debug/launchbar=true
|
28
launchbar/org.eclipse.launchbar.core/.project
Normal file
28
launchbar/org.eclipse.launchbar.core/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.launchbar.core</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,464 @@
|
||||||
|
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.recreateModifiedClassFileInOutputFolder=ignore
|
||||||
|
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch, *.xtend
|
||||||
|
org.eclipse.jdt.core.circularClasspath=error
|
||||||
|
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.mainOnlyProjectHasTestOnlyDependency=error
|
||||||
|
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.compiler.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.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=generate
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.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.invalidJavadoc=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
|
||||||
|
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=public
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||||
|
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=warning
|
||||||
|
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.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.pessimisticNullAnalysisForFreeTypeVariables=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
|
||||||
|
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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
|
||||||
|
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.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.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=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.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=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
|
||||||
|
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=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
|
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
|
||||||
|
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.align_variable_declarations_on_columns=false
|
||||||
|
org.eclipse.jdt.core.formatter.align_with_spaces=false
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_loops=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_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_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_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=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_header=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_html=true
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_line_comments=false
|
||||||
|
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_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=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_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
|
||||||
|
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
|
||||||
|
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_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=true
|
||||||
|
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=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
|
|
@ -0,0 +1,3 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=warning
|
||||||
|
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
|
|
@ -0,0 +1,133 @@
|
||||||
|
cleanup.add_default_serial_version_id=true
|
||||||
|
cleanup.add_generated_serial_version_id=false
|
||||||
|
cleanup.add_missing_annotations=true
|
||||||
|
cleanup.add_missing_deprecated_annotations=true
|
||||||
|
cleanup.add_missing_methods=false
|
||||||
|
cleanup.add_missing_nls_tags=false
|
||||||
|
cleanup.add_missing_override_annotations=true
|
||||||
|
cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
cleanup.add_serial_version_id=false
|
||||||
|
cleanup.always_use_blocks=true
|
||||||
|
cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
cleanup.convert_functional_interfaces=false
|
||||||
|
cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
cleanup.correct_indentation=false
|
||||||
|
cleanup.format_source_code=true
|
||||||
|
cleanup.format_source_code_changes_only=false
|
||||||
|
cleanup.insert_inferred_type_arguments=false
|
||||||
|
cleanup.make_local_variable_final=true
|
||||||
|
cleanup.make_parameters_final=false
|
||||||
|
cleanup.make_private_fields_final=true
|
||||||
|
cleanup.make_type_abstract_if_missing_method=false
|
||||||
|
cleanup.make_variable_declarations_final=false
|
||||||
|
cleanup.never_use_blocks=false
|
||||||
|
cleanup.never_use_parentheses_in_expressions=true
|
||||||
|
cleanup.organize_imports=true
|
||||||
|
cleanup.qualify_static_field_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_method_accesses_with_declaring_class=false
|
||||||
|
cleanup.remove_private_constructors=true
|
||||||
|
cleanup.remove_redundant_modifiers=false
|
||||||
|
cleanup.remove_redundant_semicolons=true
|
||||||
|
cleanup.remove_redundant_type_arguments=true
|
||||||
|
cleanup.remove_trailing_whitespaces=true
|
||||||
|
cleanup.remove_trailing_whitespaces_all=true
|
||||||
|
cleanup.remove_trailing_whitespaces_ignore_empty=false
|
||||||
|
cleanup.remove_unnecessary_casts=true
|
||||||
|
cleanup.remove_unnecessary_nls_tags=false
|
||||||
|
cleanup.remove_unused_imports=true
|
||||||
|
cleanup.remove_unused_local_variables=false
|
||||||
|
cleanup.remove_unused_private_fields=true
|
||||||
|
cleanup.remove_unused_private_members=false
|
||||||
|
cleanup.remove_unused_private_methods=true
|
||||||
|
cleanup.remove_unused_private_types=true
|
||||||
|
cleanup.sort_members=false
|
||||||
|
cleanup.sort_members_all=false
|
||||||
|
cleanup.use_anonymous_class_creation=false
|
||||||
|
cleanup.use_blocks=false
|
||||||
|
cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
cleanup.use_lambda=true
|
||||||
|
cleanup.use_parentheses_in_expressions=false
|
||||||
|
cleanup.use_this_for_non_static_field_access=false
|
||||||
|
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
|
||||||
|
cleanup.use_this_for_non_static_method_access=false
|
||||||
|
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
|
||||||
|
cleanup_profile=_CDT
|
||||||
|
cleanup_settings_version=2
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
||||||
|
formatter_profile=_CDT
|
||||||
|
formatter_settings_version=14
|
||||||
|
internal.default.compliance=user
|
||||||
|
org.eclipse.jdt.ui.exception.name=e
|
||||||
|
org.eclipse.jdt.ui.gettersetter.use.is=true
|
||||||
|
org.eclipse.jdt.ui.ignorelowercasenames=true
|
||||||
|
org.eclipse.jdt.ui.importorder=java;javax;org;com;
|
||||||
|
org.eclipse.jdt.ui.keywordthis=false
|
||||||
|
org.eclipse.jdt.ui.ondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.overrideannotation=true
|
||||||
|
org.eclipse.jdt.ui.staticondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.text.custom_code_templates=
|
||||||
|
sp_cleanup.add_default_serial_version_id=true
|
||||||
|
sp_cleanup.add_generated_serial_version_id=false
|
||||||
|
sp_cleanup.add_missing_annotations=true
|
||||||
|
sp_cleanup.add_missing_deprecated_annotations=true
|
||||||
|
sp_cleanup.add_missing_methods=false
|
||||||
|
sp_cleanup.add_missing_nls_tags=false
|
||||||
|
sp_cleanup.add_missing_override_annotations=true
|
||||||
|
sp_cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
sp_cleanup.add_serial_version_id=false
|
||||||
|
sp_cleanup.always_use_blocks=true
|
||||||
|
sp_cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
sp_cleanup.convert_functional_interfaces=false
|
||||||
|
sp_cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
sp_cleanup.correct_indentation=false
|
||||||
|
sp_cleanup.format_source_code=true
|
||||||
|
sp_cleanup.format_source_code_changes_only=false
|
||||||
|
sp_cleanup.insert_inferred_type_arguments=false
|
||||||
|
sp_cleanup.make_local_variable_final=true
|
||||||
|
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_modifiers=false
|
||||||
|
sp_cleanup.remove_redundant_semicolons=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=false
|
||||||
|
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=false
|
||||||
|
sp_cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
sp_cleanup.use_lambda=true
|
||||||
|
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
|
|
@ -0,0 +1,184 @@
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITH_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERCLASS_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_SUPERCLASS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_INTERFACE=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_TYPE_ARGUMENTS=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_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=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_MEMBER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETERS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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=Error
|
||||||
|
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning
|
||||||
|
LEAK_EXTEND=Warning
|
||||||
|
LEAK_FIELD_DECL=Warning
|
||||||
|
LEAK_IMPLEMENT=Warning
|
||||||
|
LEAK_METHOD_PARAM=Warning
|
||||||
|
LEAK_METHOD_RETURN_TYPE=Warning
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=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_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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=Warning
|
||||||
|
incompatible_api_component_version_report_minor_without_api_change=Warning
|
||||||
|
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
|
|
@ -0,0 +1,35 @@
|
||||||
|
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=2
|
||||||
|
compilers.p.build.output.library=1
|
||||||
|
compilers.p.build.source.library=1
|
||||||
|
compilers.p.build.src.includes=1
|
||||||
|
compilers.p.deprecated=1
|
||||||
|
compilers.p.discouraged-class=1
|
||||||
|
compilers.p.internal=1
|
||||||
|
compilers.p.missing-packages=2
|
||||||
|
compilers.p.missing-version-export-package=2
|
||||||
|
compilers.p.missing-version-import-package=2
|
||||||
|
compilers.p.missing-version-require-bundle=2
|
||||||
|
compilers.p.no-required-att=0
|
||||||
|
compilers.p.no.automatic.module=1
|
||||||
|
compilers.p.not-externalized-att=1
|
||||||
|
compilers.p.service.component.without.lazyactivation=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
|
||||||
|
compilers.use-project=true
|
||||||
|
eclipse.preferences.version=1
|
17
launchbar/org.eclipse.launchbar.core/META-INF/MANIFEST.MF
Normal file
17
launchbar/org.eclipse.launchbar.core/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: LaunchBar Core
|
||||||
|
Bundle-SymbolicName: org.eclipse.launchbar.core;singleton:=true
|
||||||
|
Bundle-Version: 2.3.0.qualifier
|
||||||
|
Bundle-Activator: org.eclipse.launchbar.core.internal.Activator
|
||||||
|
Bundle-Vendor: Eclipse CDT
|
||||||
|
Require-Bundle: org.eclipse.core.runtime,
|
||||||
|
org.eclipse.debug.core,
|
||||||
|
org.eclipse.core.expressions
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Export-Package: org.eclipse.launchbar.core,
|
||||||
|
org.eclipse.launchbar.core.internal;x-friends:="org.eclipse.launchbar.core.tests,org.eclipse.launchbar.ui",
|
||||||
|
org.eclipse.launchbar.core.target,
|
||||||
|
org.eclipse.launchbar.core.target.launch
|
||||||
|
Automatic-Module-Name: org.eclipse.launchbar.core
|
36
launchbar/org.eclipse.launchbar.core/about.html
Normal file
36
launchbar/org.eclipse.launchbar.core/about.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||||
|
<title>About</title>
|
||||||
|
</head>
|
||||||
|
<body lang="EN-US">
|
||||||
|
<h2>About This Content</h2>
|
||||||
|
|
||||||
|
<p>November 30, 2017</p>
|
||||||
|
<h3>License</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The Eclipse Foundation makes available all content in this plug-in
|
||||||
|
("Content"). Unless otherwise indicated below, the Content
|
||||||
|
is provided to you under the terms and conditions of the Eclipse
|
||||||
|
Public License Version 2.0 ("EPL"). A copy of the EPL is
|
||||||
|
available at <a href="http://www.eclipse.org/legal/epl-2.0">http://www.eclipse.org/legal/epl-2.0</a>.
|
||||||
|
For purposes of the EPL, "Program" will mean the Content.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you did not receive this Content directly from the Eclipse
|
||||||
|
Foundation, the Content is being redistributed by another party
|
||||||
|
("Redistributor") and different terms and conditions may
|
||||||
|
apply to your use of any object code in the Content. Check the
|
||||||
|
Redistributor's license that was provided with the Content. If no such
|
||||||
|
license exists, contact the Redistributor. Unless otherwise indicated
|
||||||
|
below, the terms and conditions of the EPL still apply to any source
|
||||||
|
code in the Content and such source code may be obtained at <a
|
||||||
|
href="http://www.eclipse.org/">http://www.eclipse.org</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
7
launchbar/org.eclipse.launchbar.core/build.properties
Normal file
7
launchbar/org.eclipse.launchbar.core/build.properties
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
plugin.xml,\
|
||||||
|
about.html,\
|
||||||
|
schema/
|
47
launchbar/org.eclipse.launchbar.core/plugin.xml
Normal file
47
launchbar/org.eclipse.launchbar.core/plugin.xml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.4"?>
|
||||||
|
<plugin>
|
||||||
|
<extension-point id="launchBarContributions" name="Launch Bar Contributions" schema="schema/launchBarContributions.exsd"/>
|
||||||
|
<extension-point id="launchTargetTypes" name="Launch Target Types" schema="schema/launchTargetTypes.exsd"/>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.launchbar.core.launchBarContributions">
|
||||||
|
<objectProvider
|
||||||
|
class="org.eclipse.launchbar.core.internal.ProjectLaunchObjectProvider"
|
||||||
|
id="org.eclipse.launchbar.core.objectProvider.project">
|
||||||
|
</objectProvider>
|
||||||
|
<descriptorType
|
||||||
|
class="org.eclipse.launchbar.core.DefaultLaunchDescriptorType"
|
||||||
|
id="org.eclipse.launchbar.core.descriptorType.default"
|
||||||
|
priority="0">
|
||||||
|
<enablement>
|
||||||
|
<instanceof
|
||||||
|
value="org.eclipse.debug.core.ILaunchConfiguration">
|
||||||
|
</instanceof></enablement>
|
||||||
|
</descriptorType>
|
||||||
|
<configProvider
|
||||||
|
class="org.eclipse.launchbar.core.DefaultLaunchConfigProvider"
|
||||||
|
descriptorType="org.eclipse.launchbar.core.descriptorType.default"
|
||||||
|
priority="0">
|
||||||
|
<enablement>
|
||||||
|
</enablement>
|
||||||
|
</configProvider>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.launchbar.core.launchTargetTypes">
|
||||||
|
<launchTargetType
|
||||||
|
id="org.eclipse.launchbar.core.launchTargetType.local"
|
||||||
|
provider="org.eclipse.launchbar.core.internal.target.LocalLaunchTargetProvider">
|
||||||
|
</launchTargetType>
|
||||||
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.core.expressions.propertyTesters">
|
||||||
|
<propertyTester
|
||||||
|
class="org.eclipse.launchbar.core.internal.target.LaunchTargetPropertyTester"
|
||||||
|
id="org.eclipse.launchbar.core.targetPropertyTester"
|
||||||
|
namespace="org.eclipse.launchbar.core"
|
||||||
|
properties="launchTargetType"
|
||||||
|
type="org.eclipse.launchbar.core.target.ILaunchTarget">
|
||||||
|
</propertyTester>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
</plugin>
|
|
@ -0,0 +1,208 @@
|
||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!-- Schema file written by PDE -->
|
||||||
|
<schema targetNamespace="org.eclipse.launchbar.core" xmlns="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.schema plugin="org.eclipse.launchbar.core" id="launchBarContributions" name="Launch Bar Contributions"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter description of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<include schemaLocation="schema://org.eclipse.core.expressions/schema/expressionLanguage.exsd"/>
|
||||||
|
|
||||||
|
<element name="extension">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.element />
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<element ref="descriptorType"/>
|
||||||
|
<element ref="configProvider"/>
|
||||||
|
<element ref="objectProvider"/>
|
||||||
|
</sequence>
|
||||||
|
<attribute name="point" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="id" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="name" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute translatable="true"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<element name="descriptorType">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
A descriptor represents an object that can be converted into a launch configuration. The typical example is IProject. Launch configurations can be created that launch the build output of the project.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<sequence>
|
||||||
|
<element ref="enablement" minOccurs="0" maxOccurs="1"/>
|
||||||
|
</sequence>
|
||||||
|
<attribute name="id" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Global descriptor type id. I.e. com.example.mytype
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="priority" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Priority of the descriptor, values from 1 to 100.
|
||||||
|
Lower values represent lower priority.
|
||||||
|
I.e. descriptor with priority 10 will override
|
||||||
|
descriptor with priority 5. Priority 0 is reserved for default descriptor.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="class" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Class that implements ILaunchDescriptorType
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute kind="java" basedOn=":org.eclipse.launchbar.core.ILaunchDescriptorType"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<element name="configProvider">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Descriptor types and target types map to a launch configuration type. Configurations of that type knows how to launch for the desciptor on targets of that type.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<sequence>
|
||||||
|
<element ref="enablement" minOccurs="0" maxOccurs="1"/>
|
||||||
|
</sequence>
|
||||||
|
<attribute name="descriptorType" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Id of the descriptor type defined in descriptorType element (can be from another extension)
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute kind="identifier" basedOn="org.eclipse.launchbar.core.launchBarContributions/descriptorType/@id"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="priority" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Priority of the provider, values from 1 to 100.
|
||||||
|
Lower values represent lower priority.
|
||||||
|
I.e. provider with priority 10 will be checked before
|
||||||
|
provider with priority 5. Priority 0 is reserved for default provider.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="class" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Class that implements ILaunchConfigurationProvider
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute kind="java" basedOn=":org.eclipse.launchbar.core.ILaunchConfigurationProvider"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="supportsNullTarget" type="boolean">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Does the descriptor managed by this config provider support the null target.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<element name="objectProvider">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
Object providers pump launch objects into the model as they are created and removed. These are used to create descriptors for these objects.
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<attribute name="id" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="class" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute kind="java" basedOn=":org.eclipse.launchbar.core.ILaunchObjectProvider"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="since"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter the first release in which this extension point appears.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="examples"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter extension point usage example here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="apiinfo"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter API information here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="implementation"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter information about supplied implementation of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
|
||||||
|
</schema>
|
|
@ -0,0 +1,109 @@
|
||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<!-- Schema file written by PDE -->
|
||||||
|
<schema targetNamespace="org.eclipse.launchbar.core" xmlns="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.schema plugin="org.eclipse.launchbar.core" id="launchTargetTypes" name="Launch Target Types"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter description of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<element name="extension">
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.element />
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
<complexType>
|
||||||
|
<sequence>
|
||||||
|
<element ref="launchTargetType" minOccurs="1" maxOccurs="unbounded"/>
|
||||||
|
</sequence>
|
||||||
|
<attribute name="point" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="id" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="name" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute translatable="true"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<element name="launchTargetType">
|
||||||
|
<complexType>
|
||||||
|
<attribute name="id" type="string" use="required">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="provider" type="string">
|
||||||
|
<annotation>
|
||||||
|
<documentation>
|
||||||
|
|
||||||
|
</documentation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.attribute kind="java" basedOn=":org.eclipse.launchbar.core.target.ILaunchTargetProvider"/>
|
||||||
|
</appinfo>
|
||||||
|
</annotation>
|
||||||
|
</attribute>
|
||||||
|
</complexType>
|
||||||
|
</element>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="since"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter the first release in which this extension point appears.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="examples"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter extension point usage example here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="apiinfo"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter API information here.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
<annotation>
|
||||||
|
<appinfo>
|
||||||
|
<meta.section type="implementation"/>
|
||||||
|
</appinfo>
|
||||||
|
<documentation>
|
||||||
|
[Enter information about supplied implementation of this extension point.]
|
||||||
|
</documentation>
|
||||||
|
</annotation>
|
||||||
|
|
||||||
|
|
||||||
|
</schema>
|
|
@ -0,0 +1,80 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.DebugPlugin;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||||
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Common launch config provider. Manages creating launch configurations and
|
||||||
|
* ensuring duplicates are managed properly.
|
||||||
|
*/
|
||||||
|
public abstract class AbstractLaunchConfigProvider implements ILaunchConfigurationProvider {
|
||||||
|
|
||||||
|
private static final String ATTR_ORIGINAL_NAME = Activator.PLUGIN_ID + ".originalName"; //$NON-NLS-1$
|
||||||
|
private static final String ATTR_PROVIDER_CLASS = Activator.PLUGIN_ID + ".providerClass"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
protected ILaunchConfiguration createLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
|
||||||
|
String name = launchManager.generateLaunchConfigurationName(descriptor.getName());
|
||||||
|
ILaunchConfigurationType type = getLaunchConfigurationType(descriptor, target);
|
||||||
|
ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, name);
|
||||||
|
|
||||||
|
populateLaunchConfiguration(descriptor, target, workingCopy);
|
||||||
|
|
||||||
|
return workingCopy.doSave();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void populateLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target,
|
||||||
|
ILaunchConfigurationWorkingCopy workingCopy) throws CoreException {
|
||||||
|
// Leave our breadcrumb
|
||||||
|
workingCopy.setAttribute(ATTR_ORIGINAL_NAME, workingCopy.getName());
|
||||||
|
workingCopy.setAttribute(ATTR_PROVIDER_CLASS, getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchDescriptorMatches(ILaunchDescriptor descriptor, ILaunchConfiguration configuration,
|
||||||
|
ILaunchTarget target) throws CoreException {
|
||||||
|
ILaunchConfiguration lc = descriptor.getAdapter(ILaunchConfiguration.class);
|
||||||
|
if (lc == null)
|
||||||
|
return false;
|
||||||
|
return configuration.getName().equals(lc.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected boolean ownsLaunchConfiguration(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
if (!configuration.exists()) {
|
||||||
|
// can't own it if it doesn't exist
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (configuration.getAttribute(ATTR_PROVIDER_CLASS, "").equals(getClass().getName())) { //$NON-NLS-1$
|
||||||
|
// We provided the configuration but we need to check if this is a duplicate and
|
||||||
|
// not own it. Check the original name and if there is still a config with that
|
||||||
|
// name, this is the duplicate. Otherwise it's simply a rename
|
||||||
|
String origName = configuration.getAttribute(ATTR_ORIGINAL_NAME, ""); //$NON-NLS-1$
|
||||||
|
return origName.equals(configuration.getName())
|
||||||
|
|| !DebugPlugin.getDefault().getLaunchManager().isExistingLaunchConfigurationName(origName);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,82 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The launch config provider for the default descriptor which is the launch
|
||||||
|
* config itself.
|
||||||
|
*
|
||||||
|
* Override this class and register an extension if you want to support targets
|
||||||
|
* other than the local connection.
|
||||||
|
*/
|
||||||
|
public class DefaultLaunchConfigProvider implements ILaunchConfigurationProvider {
|
||||||
|
@Override
|
||||||
|
public boolean supports(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException {
|
||||||
|
// Only supports Local connection
|
||||||
|
return target != null && target.getTypeId().equals(ILaunchTargetManager.localLaunchTargetTypeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
return descriptor.getAdapter(ILaunchConfiguration.class).getType();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
return descriptor.getAdapter(ILaunchConfiguration.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationAdded(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
// return false so that the configuration can become a launch object
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationChanged(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationRemoved(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchDescriptorRemoved(ILaunchDescriptor descriptor) throws CoreException {
|
||||||
|
// nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchTargetRemoved(ILaunchTarget target) throws CoreException {
|
||||||
|
// nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchDescriptorMatches(ILaunchDescriptor descriptor, ILaunchConfiguration configuration,
|
||||||
|
ILaunchTarget target) throws CoreException {
|
||||||
|
ILaunchConfiguration lc = descriptor.getAdapter(ILaunchConfiguration.class);
|
||||||
|
if (lc == null)
|
||||||
|
return false;
|
||||||
|
return configuration.getName().equals(lc.getName());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,59 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2017 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A special launch descriptor that managed configurations that aren't owned by other
|
||||||
|
* descriptors.
|
||||||
|
*
|
||||||
|
* @since 2.3
|
||||||
|
*/
|
||||||
|
public class DefaultLaunchDescriptor extends PlatformObject implements ILaunchDescriptor {
|
||||||
|
|
||||||
|
private final ILaunchDescriptorType type;
|
||||||
|
private final ILaunchConfiguration configuration;
|
||||||
|
|
||||||
|
public DefaultLaunchDescriptor(ILaunchDescriptorType type, ILaunchConfiguration configuration) {
|
||||||
|
this.type = type;
|
||||||
|
this.configuration = configuration;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T getAdapter(Class<T> adapter) {
|
||||||
|
if (ILaunchConfiguration.class.equals(adapter)) {
|
||||||
|
return adapter.cast(configuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
T obj = configuration.getAdapter(adapter);
|
||||||
|
if (obj != null) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.getAdapter(adapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return configuration.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchDescriptorType getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,84 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchManager;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A special descriptor type that managed configurations that aren't owned by
|
||||||
|
* other descriptor types.
|
||||||
|
*
|
||||||
|
* @since 2.3
|
||||||
|
*/
|
||||||
|
public class DefaultLaunchDescriptorType implements ILaunchDescriptorType {
|
||||||
|
|
||||||
|
public static final String ID = Activator.PLUGIN_ID + ".descriptorType.default"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
private Map<ILaunchConfiguration, DefaultLaunchDescriptor> descriptors = new HashMap<>();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supportsTargets() throws CoreException {
|
||||||
|
// Old style launch configs do not support targets.
|
||||||
|
// Though if yours does, you can always subclass and override this.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to filter out private and external tools builders
|
||||||
|
*
|
||||||
|
* @param config
|
||||||
|
* @return
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
public static boolean isPublic(ILaunchConfiguration config) throws CoreException {
|
||||||
|
ILaunchConfigurationType type = config.getType();
|
||||||
|
if (type == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
String category = type.getCategory();
|
||||||
|
|
||||||
|
return type.isPublic() && !(config.getAttribute(ILaunchManager.ATTR_PRIVATE, false))
|
||||||
|
&& !("org.eclipse.ui.externaltools.builder".equals(category)); // $NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchDescriptor getDescriptor(Object launchObject) {
|
||||||
|
if (launchObject instanceof ILaunchConfiguration) {
|
||||||
|
ILaunchConfiguration config = (ILaunchConfiguration) launchObject;
|
||||||
|
try {
|
||||||
|
if (isPublic(config)) {
|
||||||
|
DefaultLaunchDescriptor descriptor = descriptors.get(config);
|
||||||
|
if (descriptor == null) {
|
||||||
|
descriptor = new DefaultLaunchDescriptor(this, config);
|
||||||
|
descriptors.put(config, descriptor);
|
||||||
|
}
|
||||||
|
return descriptor;
|
||||||
|
}
|
||||||
|
} catch (CoreException ce) {
|
||||||
|
Activator.log(ce.getStatus());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2016 QNX Software Systems 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.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.debug.core.ILaunchMode;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listener that can be installed on launch bar to listen for state changes.
|
||||||
|
* {@link ILaunchBarManager#addListener(ILaunchBarListener)}.
|
||||||
|
*
|
||||||
|
* <code>
|
||||||
|
* Activator.getService(ILaunchBarManager.class).addListener(new ILaunchBarListener(){
|
||||||
|
* public void activeLaunchTargetChanged(ILaunchTarget target) {
|
||||||
|
* // do something
|
||||||
|
* }
|
||||||
|
* });
|
||||||
|
* </code>
|
||||||
|
*/
|
||||||
|
public interface ILaunchBarListener {
|
||||||
|
default void activeLaunchDescriptorChanged(ILaunchDescriptor descriptor) {
|
||||||
|
}
|
||||||
|
|
||||||
|
default void activeLaunchModeChanged(ILaunchMode mode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
default void activeLaunchTargetChanged(ILaunchTarget target) {
|
||||||
|
}
|
||||||
|
|
||||||
|
default void launchTargetsChanged() {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,186 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationListener;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.debug.core.ILaunchMode;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface to the Launch Bar Manager.
|
||||||
|
*
|
||||||
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
|
*/
|
||||||
|
public interface ILaunchBarManager extends ILaunchConfigurationListener {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch object has been added. Create a matching launch descriptor if
|
||||||
|
* available.
|
||||||
|
*
|
||||||
|
* @param element launch object
|
||||||
|
* @return the launch descriptor that got created, null of none was
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchDescriptor launchObjectAdded(Object launchObject) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch object has been removed. Remove the associated launch descriptor if
|
||||||
|
* there is one.
|
||||||
|
*
|
||||||
|
* @param element launch object
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void launchObjectRemoved(Object launchObject) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch object has changed in some way that affects the launch bar.
|
||||||
|
*
|
||||||
|
* @param launchObject
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void launchObjectChanged(Object launchObject) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a listener that can react to launch bar changes
|
||||||
|
*
|
||||||
|
* @param listener
|
||||||
|
*/
|
||||||
|
void addListener(ILaunchBarListener listener);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a listener
|
||||||
|
*
|
||||||
|
* @param listener
|
||||||
|
*/
|
||||||
|
void removeListener(ILaunchBarListener listener);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the type id for the given launch descriptor type. This is defined in
|
||||||
|
* the extension point that defines the type.
|
||||||
|
*
|
||||||
|
* @param descType descriptor type
|
||||||
|
* @return the type id for the descriptor type
|
||||||
|
*/
|
||||||
|
String getDescriptorTypeId(ILaunchDescriptorType descType) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the active launch descriptor.
|
||||||
|
*
|
||||||
|
* @return active launch descriptor
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchDescriptor getActiveLaunchDescriptor() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the active launch mode.
|
||||||
|
*
|
||||||
|
* @return active launch mode
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchMode getActiveLaunchMode() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the active launch target.
|
||||||
|
*
|
||||||
|
* @return active launch target
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchTarget getActiveLaunchTarget() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the active launch configuration as derived from the active descriptor
|
||||||
|
* and target.
|
||||||
|
*
|
||||||
|
* @return active launch configuration
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchConfiguration getActiveLaunchConfiguration() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the launch configuration derived from the given launch descriptor and
|
||||||
|
* target.
|
||||||
|
*
|
||||||
|
* @param desc launch descriptor
|
||||||
|
* @param target launch target
|
||||||
|
* @return launch configuration
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor desc, ILaunchTarget target) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the launch configuration type used for configurations that are
|
||||||
|
* derived from the given launch descriptor and launch target without creating a
|
||||||
|
* launch configuration.
|
||||||
|
*
|
||||||
|
* @param desc launch descriptor
|
||||||
|
* @param target launch target
|
||||||
|
* @return launch configuration type
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor desc, ILaunchTarget target)
|
||||||
|
throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns all know launch descriptors.
|
||||||
|
*
|
||||||
|
* @return launch descriptors
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchDescriptor[] getLaunchDescriptors() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the active launch descriptor.
|
||||||
|
*
|
||||||
|
* @param desc launch descriptor
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void setActiveLaunchDescriptor(ILaunchDescriptor desc) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return all launch modes for the active launch descriptor and active launch target.
|
||||||
|
*
|
||||||
|
* @return launch modes
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchMode[] getLaunchModes() throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the active launch mode.
|
||||||
|
*
|
||||||
|
* @param mode launch mode
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void setActiveLaunchMode(ILaunchMode mode) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return all launch targets supported by the given launch descriptor.
|
||||||
|
*
|
||||||
|
* @param desc launch descriptor
|
||||||
|
* @return launch targets
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchTarget[] getLaunchTargets(ILaunchDescriptor desc) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the active launch target.
|
||||||
|
*
|
||||||
|
* @param target launch target
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void setActiveLaunchTarget(ILaunchTarget target) throws CoreException;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,134 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* QNX Software Systems - initial
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationType;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The provider of launch configurations of a given type for a given descriptor
|
||||||
|
* type and a given target type.
|
||||||
|
*
|
||||||
|
* It is recommended to extend {@link AbstractLaunchConfigProvider} or one of
|
||||||
|
* it's subclasses instead of implementing this directly.
|
||||||
|
*/
|
||||||
|
public interface ILaunchConfigurationProvider {
|
||||||
|
/**
|
||||||
|
* Does this config provider provide launch configurations for the
|
||||||
|
* combination of descriptor and target.
|
||||||
|
*
|
||||||
|
* Note: this is called when filtering targets for a descriptor. Processing
|
||||||
|
* should be minimal.
|
||||||
|
*
|
||||||
|
* @param descriptor
|
||||||
|
* @param target
|
||||||
|
* @return true if target is supported, false otherwise.
|
||||||
|
*/
|
||||||
|
boolean supports(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the launch configuation type for the descriptor and target.
|
||||||
|
*
|
||||||
|
* @param descriptor
|
||||||
|
* @param target
|
||||||
|
* launch configuration type or null if not supported
|
||||||
|
* @return
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a launch configuration for the descriptor to launch on the target.
|
||||||
|
*
|
||||||
|
* @param descriptor
|
||||||
|
* the descriptor to create the config for
|
||||||
|
* @param target
|
||||||
|
* the target to launch the config on
|
||||||
|
* @return launch configuration
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if given descriptor is associated with given launch configuration.
|
||||||
|
* I.e. if getLaunchConfiguration(descriptor, target) returns a launch configuration,
|
||||||
|
* calling launchDescriptorMatches(descriptor, configuration, target) should return true.
|
||||||
|
*
|
||||||
|
* This method is used to activate descriptor when launch happens, return false all the time would mean
|
||||||
|
* launch would track launches of this specific descriptor (if they occur outside of launchbar).
|
||||||
|
* @param configuration
|
||||||
|
* launch configuration in question
|
||||||
|
* @param target - target to match, it can be null if launch bar cannot determine target,
|
||||||
|
* in this case it should act as wildcard
|
||||||
|
*
|
||||||
|
* @return launch configuration
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
boolean launchDescriptorMatches(ILaunchDescriptor descriptor, ILaunchConfiguration configuration,
|
||||||
|
ILaunchTarget target) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch configuration has been added. Provider can inspect it and
|
||||||
|
* associate with internal map. Provider should make sure it owns this
|
||||||
|
* launch configuration or it can modify it to take over.
|
||||||
|
*
|
||||||
|
* @return true of provider owns this launch configuration
|
||||||
|
*/
|
||||||
|
boolean launchConfigurationAdded(ILaunchConfiguration configuration) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch configuration has been removed. This notification can be used to
|
||||||
|
* purge internal cache for example. This method is called after launch
|
||||||
|
* configuration has been removed from file system, so accessing its
|
||||||
|
* attributes won't work. If provider cannot determine if it owns it it
|
||||||
|
* should return false.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* @return true if provider owns this launch configuration
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
boolean launchConfigurationRemoved(ILaunchConfiguration configuration) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch configuration has been changed. Provider can inspect it to
|
||||||
|
* re-evaluate its internal map. Provider should make sure it owns this
|
||||||
|
* launch configuration or it can modify it to take over.
|
||||||
|
*
|
||||||
|
* @return true of provider owns this launch configuration
|
||||||
|
*/
|
||||||
|
boolean launchConfigurationChanged(ILaunchConfiguration configuration) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch descriptor has been removed. Remove any launch configurations
|
||||||
|
* that were created for it.
|
||||||
|
*
|
||||||
|
* @param descriptor
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void launchDescriptorRemoved(ILaunchDescriptor descriptor) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch target has been removed. Remove any launch configurations that
|
||||||
|
* were created for it.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void launchTargetRemoved(ILaunchTarget target) throws CoreException;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a thing that can be launched. It is good practice that the
|
||||||
|
* descriptor is adaptable to the launch object it is representing.
|
||||||
|
*/
|
||||||
|
public interface ILaunchDescriptor extends IAdaptable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name to show in the launch descriptor selector. Names must be unique for
|
||||||
|
* all descriptors of a given type.
|
||||||
|
*
|
||||||
|
* @return name of the launch descriptor
|
||||||
|
*/
|
||||||
|
String getName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of launch descriptor.
|
||||||
|
*
|
||||||
|
* @return provider
|
||||||
|
*/
|
||||||
|
ILaunchDescriptorType getType();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides mapping between launch objects and launch descriptors.
|
||||||
|
*/
|
||||||
|
public interface ILaunchDescriptorType {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a descriptor for the given launch object.
|
||||||
|
*
|
||||||
|
* May return null to essentially eat the element so no other types create a
|
||||||
|
* descriptor for it.
|
||||||
|
*
|
||||||
|
* The enablement expression for a given launch object must pass for this
|
||||||
|
* clause to be executed.
|
||||||
|
*
|
||||||
|
* @param descriptor
|
||||||
|
* launch object for descriptor
|
||||||
|
* @return the best descriptor
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
ILaunchDescriptor getDescriptor(Object launchObject) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Does this descriptor type support launching on targets other than Local?
|
||||||
|
*
|
||||||
|
* @return supports targets
|
||||||
|
* @throws CoreException
|
||||||
|
* @since 2.1
|
||||||
|
*/
|
||||||
|
default boolean supportsTargets() throws CoreException {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An extension that serves up objects to feed launch descriptors.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface ILaunchObjectProvider {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add initial launch objects and set up listeners for new ones.
|
||||||
|
*
|
||||||
|
* @param launchbar
|
||||||
|
* manager
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
void init(ILaunchBarManager manager) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shutting down, remove any listeners.
|
||||||
|
*/
|
||||||
|
void dispose();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,171 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedHashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
public abstract class PerTargetLaunchConfigProvider extends AbstractLaunchConfigProvider {
|
||||||
|
private final Map<ILaunchDescriptor, Map<ILaunchTarget, ILaunchConfiguration>> configMap = new HashMap<>();
|
||||||
|
private final Map<ILaunchDescriptor, ILaunchConfiguration> defaultConfigs = new HashMap<>();
|
||||||
|
private final Collection<ILaunchConfiguration> ownedConfigs = new LinkedHashSet<>();
|
||||||
|
|
||||||
|
protected ILaunchBarManager getManager() {
|
||||||
|
return Activator.getService(ILaunchBarManager.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
if (target != null) {
|
||||||
|
Map<ILaunchTarget, ILaunchConfiguration> targetMap = configMap.get(descriptor);
|
||||||
|
if (targetMap != null) {
|
||||||
|
ILaunchConfiguration config = targetMap.get(target);
|
||||||
|
if (config != null) {
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ILaunchConfiguration config = defaultConfigs.get(descriptor);
|
||||||
|
if (config != null) {
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The config will get added to the cache when launchConfigurationAdded
|
||||||
|
// is called when the new config is saved.
|
||||||
|
return createLaunchConfiguration(descriptor, target);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract ILaunchDescriptor getLaunchDescriptor(ILaunchConfiguration configuration) throws CoreException;
|
||||||
|
|
||||||
|
protected abstract ILaunchTarget getLaunchTarget(ILaunchConfiguration configuration) throws CoreException;
|
||||||
|
|
||||||
|
protected boolean providesForNullTarget() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean addLaunchConfiguration(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
ILaunchDescriptor desc = getLaunchDescriptor(configuration);
|
||||||
|
if (desc == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
ILaunchTarget target = getLaunchTarget(configuration);
|
||||||
|
if (target == null) {
|
||||||
|
if (providesForNullTarget()) {
|
||||||
|
defaultConfigs.put(desc, configuration);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Map<ILaunchTarget, ILaunchConfiguration> targetMap = configMap.get(desc);
|
||||||
|
if (targetMap == null) {
|
||||||
|
targetMap = new HashMap<>();
|
||||||
|
configMap.put(desc, targetMap);
|
||||||
|
}
|
||||||
|
targetMap.put(target, configuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
ownedConfigs.add(configuration);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationAdded(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
if (ownsLaunchConfiguration(configuration)) {
|
||||||
|
return addLaunchConfiguration(configuration);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationChanged(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
if (ownsLaunchConfiguration(configuration)) {
|
||||||
|
// clear cache, target could have changed
|
||||||
|
launchConfigurationRemoved(configuration);
|
||||||
|
return addLaunchConfiguration(configuration);
|
||||||
|
} else if (ownedConfigs.contains(configuration)) {
|
||||||
|
// something changed that will cause us to loose ownership of this
|
||||||
|
// configuration. Remove and add it back in.
|
||||||
|
ILaunchBarManager manager = getManager();
|
||||||
|
manager.launchConfigurationRemoved(configuration);
|
||||||
|
manager.launchConfigurationAdded(configuration);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationRemoved(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
ownedConfigs.remove(configuration);
|
||||||
|
for (Entry<ILaunchDescriptor, Map<ILaunchTarget, ILaunchConfiguration>> descEntry : configMap.entrySet()) {
|
||||||
|
for (Entry<ILaunchTarget, ILaunchConfiguration> targetEntry : descEntry.getValue().entrySet()) {
|
||||||
|
if (targetEntry.getValue().equals(configuration)) {
|
||||||
|
descEntry.getValue().remove(targetEntry.getKey());
|
||||||
|
if (descEntry.getValue().isEmpty()) {
|
||||||
|
configMap.remove(descEntry.getKey());
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchDescriptorRemoved(ILaunchDescriptor descriptor) throws CoreException {
|
||||||
|
Map<ILaunchTarget, ILaunchConfiguration> map = configMap.remove(descriptor);
|
||||||
|
if (map != null) {
|
||||||
|
for (ILaunchConfiguration config : map.values()) {
|
||||||
|
ownedConfigs.remove(config);
|
||||||
|
// remove all auto-configs associated with descriptor
|
||||||
|
config.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ILaunchConfiguration config = defaultConfigs.remove(descriptor);
|
||||||
|
if (config != null) {
|
||||||
|
ownedConfigs.remove(config);
|
||||||
|
config.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchTargetRemoved(ILaunchTarget target) throws CoreException {
|
||||||
|
for (Iterator<Entry<ILaunchDescriptor, Map<ILaunchTarget, ILaunchConfiguration>>> iterator = configMap
|
||||||
|
.entrySet().iterator(); iterator.hasNext();) {
|
||||||
|
Entry<ILaunchDescriptor, Map<ILaunchTarget, ILaunchConfiguration>> descEntry = iterator.next();
|
||||||
|
Map<ILaunchTarget, ILaunchConfiguration> map = descEntry.getValue();
|
||||||
|
ILaunchConfiguration config = map.remove(target);
|
||||||
|
if (config != null) {
|
||||||
|
// remove all auto-configs associated with target
|
||||||
|
config.delete();
|
||||||
|
}
|
||||||
|
if (map.isEmpty()) {
|
||||||
|
iterator.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,93 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
public abstract class ProjectLaunchConfigProvider extends AbstractLaunchConfigProvider {
|
||||||
|
|
||||||
|
private Map<IProject, ILaunchConfiguration> configs = new HashMap<>();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchConfiguration config = null;
|
||||||
|
IProject project = descriptor.getAdapter(IProject.class);
|
||||||
|
if (project != null) {
|
||||||
|
config = configs.get(project);
|
||||||
|
if (config == null) {
|
||||||
|
config = createLaunchConfiguration(descriptor, target);
|
||||||
|
// launch config added will get called below to add it to the
|
||||||
|
// configs map
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void populateLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target,
|
||||||
|
ILaunchConfigurationWorkingCopy workingCopy) throws CoreException {
|
||||||
|
super.populateLaunchConfiguration(descriptor, target, workingCopy);
|
||||||
|
|
||||||
|
// Set the project
|
||||||
|
workingCopy.setMappedResources(new IResource[] { descriptor.getAdapter(IProject.class) });
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationAdded(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
if (ownsLaunchConfiguration(configuration)) {
|
||||||
|
IProject project = configuration.getMappedResources()[0].getProject();
|
||||||
|
configs.put(project, configuration);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationRemoved(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
for (Entry<IProject, ILaunchConfiguration> entry : configs.entrySet()) {
|
||||||
|
if (configuration.equals(entry.getValue())) {
|
||||||
|
configs.remove(entry.getKey());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean launchConfigurationChanged(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchDescriptorRemoved(ILaunchDescriptor descriptor) throws CoreException {
|
||||||
|
IProject project = descriptor.getAdapter(IProject.class);
|
||||||
|
if (project != null) {
|
||||||
|
configs.remove(project);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchTargetRemoved(ILaunchTarget target) throws CoreException {
|
||||||
|
// nothing to do since this provider isn't associated with a single
|
||||||
|
// target.
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,87 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A reusable descriptor for wrapping projects that can be used by descriptor
|
||||||
|
* types that map to projects.
|
||||||
|
*/
|
||||||
|
public class ProjectLaunchDescriptor extends PlatformObject implements ILaunchDescriptor {
|
||||||
|
|
||||||
|
private final ILaunchDescriptorType type;
|
||||||
|
private final IProject project;
|
||||||
|
|
||||||
|
public ProjectLaunchDescriptor(ILaunchDescriptorType type, IProject project) {
|
||||||
|
this.type = type;
|
||||||
|
this.project = project;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> T getAdapter(Class<T> adapter) {
|
||||||
|
if (IProject.class.equals(adapter)) {
|
||||||
|
return adapter.cast(project);
|
||||||
|
}
|
||||||
|
return super.getAdapter(adapter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return project.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchDescriptorType getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return getName(); // for debugging purposes
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((project == null) ? 0 : project.hashCode());
|
||||||
|
result = prime * result + ((type == null) ? 0 : type.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
ProjectLaunchDescriptor other = (ProjectLaunchDescriptor) obj;
|
||||||
|
if (project == null) {
|
||||||
|
if (other.project != null)
|
||||||
|
return false;
|
||||||
|
} else if (!project.equals(other.project))
|
||||||
|
return false;
|
||||||
|
if (type == null) {
|
||||||
|
if (other.type != null)
|
||||||
|
return false;
|
||||||
|
} else if (!type.equals(other.type))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* QNX Software Systems - Initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
public abstract class ProjectPerTargetLaunchConfigProvider extends PerTargetLaunchConfigProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean supports(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException {
|
||||||
|
return (descriptor.getAdapter(IProject.class) != null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void populateLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target,
|
||||||
|
ILaunchConfigurationWorkingCopy workingCopy) throws CoreException {
|
||||||
|
super.populateLaunchConfiguration(descriptor, target, workingCopy);
|
||||||
|
|
||||||
|
// Add our project to the mapped resources
|
||||||
|
IProject project = descriptor.getAdapter(IProject.class);
|
||||||
|
IResource[] mappedResources = workingCopy.getMappedResources();
|
||||||
|
if (mappedResources == null || mappedResources.length == 0) {
|
||||||
|
workingCopy.setMappedResources(new IResource[] { project });
|
||||||
|
} else {
|
||||||
|
IResource[] newResources = new IResource[mappedResources.length + 1];
|
||||||
|
System.arraycopy(mappedResources, 0, newResources, 0, mappedResources.length);
|
||||||
|
newResources[mappedResources.length] = project;
|
||||||
|
workingCopy.setMappedResources(newResources);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected ILaunchDescriptor getLaunchDescriptor(ILaunchConfiguration configuration) throws CoreException {
|
||||||
|
IResource[] mappedResources = configuration.getMappedResources();
|
||||||
|
if (mappedResources == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
IProject project = null;
|
||||||
|
for (IResource resource : mappedResources) {
|
||||||
|
if (resource instanceof IProject)
|
||||||
|
project = (IProject) resource;
|
||||||
|
}
|
||||||
|
if (project == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
ILaunchBarManager manager = Activator.getService(ILaunchBarManager.class);
|
||||||
|
return manager.launchObjectAdded(project);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,105 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IStatus;
|
||||||
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
import org.eclipse.core.runtime.Plugin;
|
||||||
|
import org.eclipse.core.runtime.Status;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchBarManager;
|
||||||
|
import org.eclipse.launchbar.core.internal.target.LaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
import org.osgi.framework.ServiceReference;
|
||||||
|
|
||||||
|
public class Activator extends Plugin {
|
||||||
|
|
||||||
|
public static final String PLUGIN_ID = "org.eclipse.launchbar.core"; //$NON-NLS-1$
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
private static LaunchTargetManager launchTargetManager;
|
||||||
|
private static LaunchBarManager launchBarManager;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start(BundleContext bundleContext) throws Exception {
|
||||||
|
super.start(bundleContext);
|
||||||
|
plugin = this;
|
||||||
|
|
||||||
|
launchTargetManager = new LaunchTargetManager();
|
||||||
|
bundleContext.registerService(ILaunchTargetManager.class, launchTargetManager, null);
|
||||||
|
|
||||||
|
launchBarManager = new LaunchBarManager();
|
||||||
|
bundleContext.registerService(ILaunchBarManager.class, launchBarManager, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop(BundleContext bundleContext) throws Exception {
|
||||||
|
super.stop(bundleContext);
|
||||||
|
plugin = null;
|
||||||
|
launchTargetManager = null;
|
||||||
|
launchBarManager = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static LaunchBarManager getLaunchBarManager() {
|
||||||
|
return launchBarManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static LaunchTargetManager getLaunchTargetManager() {
|
||||||
|
return launchTargetManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the OSGi service with the given service interface.
|
||||||
|
*
|
||||||
|
* @param service
|
||||||
|
* service interface
|
||||||
|
* @return the specified service or null if it's not registered
|
||||||
|
*/
|
||||||
|
public static <T> T getService(Class<T> service) {
|
||||||
|
BundleContext context = plugin.getBundle().getBundleContext();
|
||||||
|
ServiceReference<T> ref = context.getServiceReference(service);
|
||||||
|
return ref != null ? context.getService(ref) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void throwCoreException(Exception e) throws CoreException {
|
||||||
|
throw new CoreException(new Status(IStatus.ERROR, PLUGIN_ID, e.getLocalizedMessage(), e));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void log(IStatus status) {
|
||||||
|
if (plugin != null)
|
||||||
|
plugin.getLog().log(status);
|
||||||
|
else
|
||||||
|
System.err.println(status.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void log(Throwable exception) {
|
||||||
|
if (exception instanceof CoreException) {
|
||||||
|
log(((CoreException) exception).getStatus());
|
||||||
|
} else {
|
||||||
|
log(new Status(IStatus.ERROR, PLUGIN_ID, exception.getLocalizedMessage(), exception));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final String DEBUG_ONE = PLUGIN_ID + "/debug/launchbar"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
public static void trace(String str) {
|
||||||
|
if (plugin == null || (plugin.isDebugging() && "true".equalsIgnoreCase(Platform.getDebugOption(DEBUG_ONE)))) //$NON-NLS-1$
|
||||||
|
System.out.println("launchbar: " + str); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,68 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A wrapper class that delays instantiation of classes until they're needed
|
||||||
|
* to prevent early plug-in loading.
|
||||||
|
*
|
||||||
|
* @param <T> the type of the object created
|
||||||
|
*/
|
||||||
|
public class ExecutableExtension<T> {
|
||||||
|
|
||||||
|
private IConfigurationElement element;
|
||||||
|
private String propertyName;
|
||||||
|
private T object;
|
||||||
|
|
||||||
|
public ExecutableExtension(IConfigurationElement element, String propertyName) {
|
||||||
|
this.element = element;
|
||||||
|
this.propertyName = propertyName;
|
||||||
|
}
|
||||||
|
|
||||||
|
// For testing, pre-populate the object
|
||||||
|
public ExecutableExtension(T object) {
|
||||||
|
this.object = object;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the object instantiating it if necessary.
|
||||||
|
* @return object
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public T get() throws CoreException {
|
||||||
|
if (element != null) {
|
||||||
|
object = (T) element.createExecutableExtension(propertyName);
|
||||||
|
element = null;
|
||||||
|
propertyName = null;
|
||||||
|
}
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new object. Can't be done if you've done a get already.
|
||||||
|
* @return a new object from the extension or null if get was called earlier
|
||||||
|
* @throws CoreException
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public T create() throws CoreException {
|
||||||
|
if (element != null) {
|
||||||
|
return (T) element.createExecutableExtension(propertyName);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,116 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.expressions.EvaluationContext;
|
||||||
|
import org.eclipse.core.expressions.EvaluationResult;
|
||||||
|
import org.eclipse.core.expressions.Expression;
|
||||||
|
import org.eclipse.core.expressions.ExpressionConverter;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
import org.eclipse.core.runtime.Status;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchConfigurationProvider;
|
||||||
|
|
||||||
|
public class LaunchConfigProviderInfo {
|
||||||
|
private final String descriptorTypeId;
|
||||||
|
private final int priority;
|
||||||
|
private final boolean supportsNullTarget;
|
||||||
|
private IConfigurationElement element;
|
||||||
|
private ILaunchConfigurationProvider provider;
|
||||||
|
private Expression expression;
|
||||||
|
|
||||||
|
public LaunchConfigProviderInfo(IConfigurationElement element) {
|
||||||
|
this.descriptorTypeId = element.getAttribute("descriptorType"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
String priorityStr = element.getAttribute("priority"); //$NON-NLS-1$
|
||||||
|
int priorityNum;
|
||||||
|
try {
|
||||||
|
priorityNum = Integer.parseInt(priorityStr);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
priorityNum = 0;
|
||||||
|
}
|
||||||
|
priority = priorityNum;
|
||||||
|
|
||||||
|
String nullTargetString = element.getAttribute("supportsNullTarget"); //$NON-NLS-1$
|
||||||
|
if (nullTargetString != null) {
|
||||||
|
supportsNullTarget = Boolean.parseBoolean(nullTargetString);
|
||||||
|
} else {
|
||||||
|
supportsNullTarget = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.element = element;
|
||||||
|
|
||||||
|
IConfigurationElement[] enabledExpressions = element.getChildren("enablement");//$NON-NLS-1$
|
||||||
|
if (enabledExpressions == null || enabledExpressions.length == 0) {
|
||||||
|
Activator.log(new Status(Status.WARNING, Activator.PLUGIN_ID,
|
||||||
|
"Enablement expression is missing for config provider for " + descriptorTypeId)); //$NON-NLS-1$
|
||||||
|
} else if (enabledExpressions.length > 1) {
|
||||||
|
Activator.log(new Status(Status.WARNING, Activator.PLUGIN_ID,
|
||||||
|
"Multiple enablement expressions are detected for config provider for "//$NON-NLS-1$
|
||||||
|
+ descriptorTypeId));
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
expression = ExpressionConverter.getDefault().perform(enabledExpressions[0]);
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
if (expression == null) {
|
||||||
|
Activator.log(new Status(Status.ERROR, Activator.PLUGIN_ID,
|
||||||
|
"Cannot parse enablement expression defined in config provider for " + descriptorTypeId)); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescriptorTypeId() {
|
||||||
|
return descriptorTypeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPriority() {
|
||||||
|
return priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean supportsNullTarget() {
|
||||||
|
return supportsNullTarget;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchConfigurationProvider getProvider() {
|
||||||
|
if (provider == null) {
|
||||||
|
try {
|
||||||
|
provider = (ILaunchConfigurationProvider) element.createExecutableExtension("class"); //$NON-NLS-1$
|
||||||
|
element = null;
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return provider;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean enabled(Object element) {
|
||||||
|
if (expression == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (element == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
EvaluationResult result = expression.evaluate(new EvaluationContext(null, element));
|
||||||
|
return (result == EvaluationResult.TRUE);
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,99 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2015 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.expressions.EvaluationContext;
|
||||||
|
import org.eclipse.core.expressions.EvaluationResult;
|
||||||
|
import org.eclipse.core.expressions.Expression;
|
||||||
|
import org.eclipse.core.expressions.ExpressionConverter;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
import org.eclipse.core.runtime.Status;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchDescriptorType;
|
||||||
|
|
||||||
|
public class LaunchDescriptorTypeInfo {
|
||||||
|
private final String id;
|
||||||
|
private int priority;
|
||||||
|
private IConfigurationElement element;
|
||||||
|
private ILaunchDescriptorType type;
|
||||||
|
private Expression expression;
|
||||||
|
|
||||||
|
public LaunchDescriptorTypeInfo(IConfigurationElement element) {
|
||||||
|
this.id = element.getAttribute("id"); //$NON-NLS-1$
|
||||||
|
String priorityStr = element.getAttribute("priority"); //$NON-NLS-1$
|
||||||
|
this.priority = 1;
|
||||||
|
if (priorityStr != null) {
|
||||||
|
try {
|
||||||
|
priority = Integer.parseInt(priorityStr);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
// Log it but keep going with the default
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.element = element;
|
||||||
|
|
||||||
|
IConfigurationElement[] enabledExpressions = element.getChildren("enablement");//$NON-NLS-1$
|
||||||
|
if (enabledExpressions == null || enabledExpressions.length == 0) {
|
||||||
|
Activator.log(new Status(Status.WARNING, Activator.PLUGIN_ID,
|
||||||
|
"Enablement expression is missing for descriptor type " + id));//$NON-NLS-1$
|
||||||
|
} else if (enabledExpressions.length > 1) {
|
||||||
|
Activator.log(new Status(Status.WARNING, Activator.PLUGIN_ID,
|
||||||
|
"Multiple enablement expressions are detected for descriptor type "//$NON-NLS-1$
|
||||||
|
+ id));
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
expression = ExpressionConverter.getDefault().perform(enabledExpressions[0]);
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
if (expression == null) {
|
||||||
|
Activator.log(new Status(Status.ERROR, Activator.PLUGIN_ID,
|
||||||
|
"Cannot parse enablement expression defined in descriptor type " + id)); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Used for testing
|
||||||
|
LaunchDescriptorTypeInfo(String id, int priority, ILaunchDescriptorType type) {
|
||||||
|
this.id = id;
|
||||||
|
this.priority = priority;
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPriority() {
|
||||||
|
return priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ILaunchDescriptorType getType() throws CoreException {
|
||||||
|
if (type == null) {
|
||||||
|
type = (ILaunchDescriptorType) element.createExecutableExtension("class"); //$NON-NLS-1$
|
||||||
|
element = null;
|
||||||
|
}
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean enabled(Object launchObject) throws CoreException {
|
||||||
|
if (expression == null)
|
||||||
|
return true;
|
||||||
|
EvaluationContext context = new EvaluationContext(null, launchObject);
|
||||||
|
context.setAllowPluginActivation(true);
|
||||||
|
EvaluationResult result = expression.evaluate(context);
|
||||||
|
return (result == EvaluationResult.TRUE);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.osgi.util.NLS;
|
||||||
|
|
||||||
|
public class Messages extends NLS {
|
||||||
|
private static final String BUNDLE_NAME = "org.eclipse.launchbar.core.internal.messages"; //$NON-NLS-1$
|
||||||
|
public static String ILaunchTarget_notSupported;
|
||||||
|
public static String LaunchBarManager_0;
|
||||||
|
public static String LaunchBarManager_1;
|
||||||
|
public static String LaunchBarManager_2;
|
||||||
|
public static String LocalTarget_name;
|
||||||
|
public static String OK;
|
||||||
|
|
||||||
|
static {
|
||||||
|
// initialize resource bundle
|
||||||
|
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Messages() {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,74 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Yet another implementation for Pair. You'd figure Java would have this out of the box.
|
||||||
|
* Used in the launch bar mainly for modeling descriptor and target id's which includ both
|
||||||
|
* type id and the object name.
|
||||||
|
*
|
||||||
|
* @param <S> first element
|
||||||
|
* @param <T> second element
|
||||||
|
*/
|
||||||
|
public class Pair<S, T> {
|
||||||
|
|
||||||
|
private final S first;
|
||||||
|
private final T second;
|
||||||
|
|
||||||
|
public Pair(S first, T second) {
|
||||||
|
this.first = first;
|
||||||
|
this.second = second;
|
||||||
|
}
|
||||||
|
|
||||||
|
public S getFirst() {
|
||||||
|
return first;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T getSecond() {
|
||||||
|
return second;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((first == null) ? 0 : first.hashCode());
|
||||||
|
result = prime * result + ((second == null) ? 0 : second.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
Pair<S, T> other = (Pair<S, T>) obj;
|
||||||
|
if (first == null) {
|
||||||
|
if (other.first != null)
|
||||||
|
return false;
|
||||||
|
} else if (!first.equals(other.first))
|
||||||
|
return false;
|
||||||
|
if (second == null) {
|
||||||
|
if (other.second != null)
|
||||||
|
return false;
|
||||||
|
} else if (!second.equals(other.second))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,81 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2014, 2018 QNX Software Systems 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
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Doug Schaefer - Initial API and implementation
|
||||||
|
* Alena Laskavaia
|
||||||
|
*******************************************************************************/
|
||||||
|
package org.eclipse.launchbar.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.resources.IFile;
|
||||||
|
import org.eclipse.core.resources.IFolder;
|
||||||
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.resources.IResourceChangeEvent;
|
||||||
|
import org.eclipse.core.resources.IResourceChangeListener;
|
||||||
|
import org.eclipse.core.resources.IResourceDelta;
|
||||||
|
import org.eclipse.core.resources.ResourcesPlugin;
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchBarManager;
|
||||||
|
import org.eclipse.launchbar.core.ILaunchObjectProvider;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Injects IProject objects from platform resources into the launch bar model
|
||||||
|
* for potential project descriptors.
|
||||||
|
*/
|
||||||
|
public class ProjectLaunchObjectProvider implements ILaunchObjectProvider, IResourceChangeListener {
|
||||||
|
private ILaunchBarManager manager;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(ILaunchBarManager manager) throws CoreException {
|
||||||
|
this.manager = manager;
|
||||||
|
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
|
||||||
|
if (project.isOpen()) {
|
||||||
|
manager.launchObjectAdded(project);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void dispose() {
|
||||||
|
ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resourceChanged(IResourceChangeEvent event) {
|
||||||
|
try {
|
||||||
|
event.getDelta().accept(delta -> {
|
||||||
|
IResource res = delta.getResource();
|
||||||
|
if (res instanceof IProject) {
|
||||||
|
IProject project = (IProject) res;
|
||||||
|
int kind = delta.getKind();
|
||||||
|
if ((kind & IResourceDelta.ADDED) != 0) {
|
||||||
|
manager.launchObjectAdded(project);
|
||||||
|
} else if ((kind & IResourceDelta.REMOVED) != 0) {
|
||||||
|
manager.launchObjectRemoved(project);
|
||||||
|
} else if ((kind & IResourceDelta.CHANGED) != 0) {
|
||||||
|
int flags = delta.getFlags();
|
||||||
|
// Right now, only care about nature changes
|
||||||
|
if ((flags & IResourceDelta.DESCRIPTION) != 0) {
|
||||||
|
manager.launchObjectChanged(project);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
} else if (res instanceof IFile || res instanceof IFolder) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e.getStatus());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
################################################################################
|
||||||
|
# Copyright (c) 2014 QNX Software Systems 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
|
||||||
|
#
|
||||||
|
# Contributors:
|
||||||
|
# Doug Schaefer
|
||||||
|
################################################################################
|
||||||
|
ILaunchTarget_notSupported=getWorkingCopy is not supported for NULL_TARGET
|
||||||
|
LaunchBarManager_0=Launch Bar Initialization
|
||||||
|
LaunchBarManager_1=Active descriptor must be in the map of descriptors
|
||||||
|
LaunchBarManager_2=Mode is not supported by descriptor
|
||||||
|
LocalTarget_name=Local
|
||||||
|
OK=OK
|
|
@ -0,0 +1,112 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetWorkingCopy;
|
||||||
|
import org.osgi.service.prefs.BackingStoreException;
|
||||||
|
import org.osgi.service.prefs.Preferences;
|
||||||
|
|
||||||
|
public class LaunchTarget extends PlatformObject implements ILaunchTarget {
|
||||||
|
private final String typeId;
|
||||||
|
private final String id;
|
||||||
|
final Preferences attributes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This should only be used to create the null target. There are no attributes supported on the
|
||||||
|
* null target.
|
||||||
|
*/
|
||||||
|
public LaunchTarget(String typeId, String id) {
|
||||||
|
this.typeId = typeId;
|
||||||
|
this.id = id;
|
||||||
|
this.attributes = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LaunchTarget(String typeId, String id, Preferences attributes) {
|
||||||
|
if (typeId == null || id == null || attributes == null)
|
||||||
|
throw new NullPointerException();
|
||||||
|
this.typeId = typeId;
|
||||||
|
this.id = id;
|
||||||
|
this.attributes = attributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTypeId() {
|
||||||
|
return typeId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTargetWorkingCopy getWorkingCopy() {
|
||||||
|
return new LaunchTargetWorkingCopy(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getAttribute(String key, String defValue) {
|
||||||
|
if (attributes != null) {
|
||||||
|
return attributes.get(key, defValue);
|
||||||
|
} else {
|
||||||
|
return defValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, String> getAttributes() {
|
||||||
|
Map<String, String> attrs = new HashMap<>();
|
||||||
|
if (attributes != null) {
|
||||||
|
try {
|
||||||
|
for (String key : attributes.keys()) {
|
||||||
|
String value = attributes.get(key, null);
|
||||||
|
if (value != null) {
|
||||||
|
attrs.put(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return attrs;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + id.hashCode();
|
||||||
|
result = prime * result + typeId.hashCode();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
if (getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
LaunchTarget other = (LaunchTarget) obj;
|
||||||
|
if (!id.equals(other.id))
|
||||||
|
return false;
|
||||||
|
if (!typeId.equals(other.typeId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,309 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
import org.eclipse.core.runtime.IExtension;
|
||||||
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
|
import org.eclipse.core.runtime.IExtensionRegistry;
|
||||||
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
import org.eclipse.core.runtime.preferences.InstanceScope;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetListener;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager2;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetProvider;
|
||||||
|
import org.eclipse.launchbar.core.target.TargetStatus;
|
||||||
|
import org.osgi.service.prefs.BackingStoreException;
|
||||||
|
import org.osgi.service.prefs.Preferences;
|
||||||
|
|
||||||
|
public class LaunchTargetManager implements ILaunchTargetManager, ILaunchTargetManager2 {
|
||||||
|
|
||||||
|
private Map<String, Map<String, ILaunchTarget>> targets;
|
||||||
|
private Map<String, IConfigurationElement> typeElements;
|
||||||
|
private Map<String, ILaunchTargetProvider> typeProviders = new LinkedHashMap<>();
|
||||||
|
private List<ILaunchTargetListener> listeners = Collections.synchronizedList(new LinkedList<>());
|
||||||
|
|
||||||
|
private static final String DELIMETER1 = ","; //$NON-NLS-1$
|
||||||
|
private static final String DELIMETER2 = ":"; //$NON-NLS-1$
|
||||||
|
private static final String SLASH = "/"; //$NON-NLS-1$
|
||||||
|
private static final String SLASH_REPLACER = ";"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
private Preferences getTargetsPref() {
|
||||||
|
return InstanceScope.INSTANCE.getNode(Activator.getDefault().getBundle().getSymbolicName())
|
||||||
|
.node(getClass().getSimpleName());
|
||||||
|
}
|
||||||
|
|
||||||
|
private synchronized void initTargets() {
|
||||||
|
if (targets == null) {
|
||||||
|
// load target type elements from registry
|
||||||
|
typeElements = new LinkedHashMap<>();
|
||||||
|
IExtensionRegistry registry = Platform.getExtensionRegistry();
|
||||||
|
IExtensionPoint point = registry
|
||||||
|
.getExtensionPoint(Activator.getDefault().getBundle().getSymbolicName() + ".launchTargetTypes"); //$NON-NLS-1$
|
||||||
|
for (IExtension extension : point.getExtensions()) {
|
||||||
|
for (IConfigurationElement element : extension.getConfigurationElements()) {
|
||||||
|
String id = element.getAttribute("id"); //$NON-NLS-1$
|
||||||
|
if (id != null) {
|
||||||
|
typeElements.put(id, element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// load targets from preference store
|
||||||
|
targets = new LinkedHashMap<>();
|
||||||
|
Preferences prefs = getTargetsPref();
|
||||||
|
try {
|
||||||
|
for (String childName : prefs.childrenNames()) {
|
||||||
|
String[] segments = childName.split(DELIMETER1);
|
||||||
|
if (segments.length == 2) {
|
||||||
|
String typeId = segments[0];
|
||||||
|
// Bug 536889 - we need to restore any slashes we changed when creating
|
||||||
|
// the target node so the name will appear correct to the end-user
|
||||||
|
String name = segments[1].replaceAll(SLASH_REPLACER, SLASH);
|
||||||
|
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type == null) {
|
||||||
|
type = new LinkedHashMap<>();
|
||||||
|
targets.put(typeId, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
type.put(name, new LaunchTarget(typeId, name, prefs.node(childName)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// convert old type keys
|
||||||
|
if (prefs.keys().length > 0) {
|
||||||
|
for (String typeId : prefs.keys()) {
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type == null) {
|
||||||
|
type = new LinkedHashMap<>();
|
||||||
|
targets.put(typeId, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (String name : prefs.get(typeId, "").split(DELIMETER1)) { //$NON-NLS-1$
|
||||||
|
if (!type.containsKey(name)) {
|
||||||
|
type.put(name, new LaunchTarget(typeId, name, prefs.node(typeId + DELIMETER1 + name)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use children going forward
|
||||||
|
prefs.remove(typeId);
|
||||||
|
}
|
||||||
|
|
||||||
|
prefs.flush();
|
||||||
|
}
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Call the provider's init
|
||||||
|
// TODO check enablement so we don't call them if we don't need to
|
||||||
|
for (String typeId : typeElements.keySet()) {
|
||||||
|
ILaunchTargetProvider provider = getProvider(typeId);
|
||||||
|
if (provider != null) {
|
||||||
|
provider.init(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ILaunchTargetProvider getProvider(String typeId) {
|
||||||
|
initTargets();
|
||||||
|
ILaunchTargetProvider provider = typeProviders.get(typeId);
|
||||||
|
if (provider == null) {
|
||||||
|
IConfigurationElement element = typeElements.get(typeId);
|
||||||
|
if (element != null) {
|
||||||
|
try {
|
||||||
|
provider = (ILaunchTargetProvider) element.createExecutableExtension("provider"); //$NON-NLS-1$
|
||||||
|
} catch (CoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (provider == null) {
|
||||||
|
provider = new ILaunchTargetProvider() {
|
||||||
|
@Override
|
||||||
|
public void init(ILaunchTargetManager targetManager) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TargetStatus getStatus(ILaunchTarget target) {
|
||||||
|
return TargetStatus.OK_STATUS;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
typeProviders.put(typeId, provider);
|
||||||
|
}
|
||||||
|
return provider;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget[] getLaunchTargets() {
|
||||||
|
initTargets();
|
||||||
|
List<ILaunchTarget> targetList = new ArrayList<>();
|
||||||
|
for (Map<String, ILaunchTarget> type : targets.values()) {
|
||||||
|
targetList.addAll(type.values());
|
||||||
|
}
|
||||||
|
return targetList.toArray(new ILaunchTarget[targetList.size()]);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget[] getLaunchTargetsOfType(String typeId) {
|
||||||
|
initTargets();
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type != null) {
|
||||||
|
return type.values().toArray(new ILaunchTarget[type.size()]);
|
||||||
|
}
|
||||||
|
return new ILaunchTarget[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget getLaunchTarget(String typeId, String id) {
|
||||||
|
initTargets();
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type != null) {
|
||||||
|
return type.get(id);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TargetStatus getStatus(ILaunchTarget target) {
|
||||||
|
return getProvider(target.getTypeId()).getStatus(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget addLaunchTargetNoNotify(String typeId, String id) {
|
||||||
|
initTargets();
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type == null) {
|
||||||
|
type = new LinkedHashMap<>();
|
||||||
|
targets.put(typeId, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Preferences prefs = getTargetsPref();
|
||||||
|
// Bug 536889 - replace any slashes in the id with a replacement character
|
||||||
|
// for the child node name but still leave the id intact for the launch target
|
||||||
|
String childName = typeId + DELIMETER1 + id.replaceAll(SLASH, SLASH_REPLACER);
|
||||||
|
Preferences child;
|
||||||
|
if (prefs.nodeExists(childName)) {
|
||||||
|
child = prefs.node(childName);
|
||||||
|
} else {
|
||||||
|
child = prefs.node(childName);
|
||||||
|
// set the id so we have at least one attribute to save
|
||||||
|
child.put("name", id); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
ILaunchTarget target = new LaunchTarget(typeId, id, child);
|
||||||
|
type.put(id, target);
|
||||||
|
prefs.flush();
|
||||||
|
return target;
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget addLaunchTarget(String typeId, String id) {
|
||||||
|
ILaunchTarget target = addLaunchTargetNoNotify(typeId, id);
|
||||||
|
if (target != null) {
|
||||||
|
synchronized (listeners) {
|
||||||
|
for (ILaunchTargetListener listener : listeners) {
|
||||||
|
listener.launchTargetAdded(target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeLaunchTarget(ILaunchTarget target) {
|
||||||
|
initTargets();
|
||||||
|
String typeId = target.getTypeId();
|
||||||
|
Map<String, ILaunchTarget> type = targets.get(typeId);
|
||||||
|
if (type != null) {
|
||||||
|
type.remove(target.getId());
|
||||||
|
if (type.isEmpty()) {
|
||||||
|
targets.remove(target.getTypeId());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the attribute node
|
||||||
|
try {
|
||||||
|
// Bug 536889 - calculate the node name to remove, replacing slashes with a replacement character
|
||||||
|
getTargetsPref().node(typeId + DELIMETER1 + target.getId().replaceAll(SLASH, SLASH_REPLACER))
|
||||||
|
.removeNode();
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
synchronized (listeners) {
|
||||||
|
for (ILaunchTargetListener listener : listeners) {
|
||||||
|
listener.launchTargetRemoved(target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void targetStatusChanged(ILaunchTarget target) {
|
||||||
|
synchronized (listeners) {
|
||||||
|
for (ILaunchTargetListener listener : listeners) {
|
||||||
|
listener.launchTargetStatusChanged(target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget getDefaultLaunchTarget(ILaunchConfiguration configuration) {
|
||||||
|
Preferences prefs = getTargetsPref().node("configs"); //$NON-NLS-1$
|
||||||
|
String targetId = prefs.get(configuration.getName(), null);
|
||||||
|
if (targetId != null) {
|
||||||
|
String[] parts = targetId.split(DELIMETER2);
|
||||||
|
return getLaunchTarget(parts[0], parts[1]);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setDefaultLaunchTarget(ILaunchConfiguration configuration, ILaunchTarget target) {
|
||||||
|
Preferences prefs = getTargetsPref().node("configs"); //$NON-NLS-1$
|
||||||
|
String targetId = String.join(DELIMETER2, target.getTypeId(), target.getId());
|
||||||
|
prefs.put(configuration.getName(), targetId);
|
||||||
|
try {
|
||||||
|
prefs.flush();
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addListener(ILaunchTargetListener listener) {
|
||||||
|
listeners.add(listener);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removeListener(ILaunchTargetListener listener) {
|
||||||
|
listeners.remove(listener);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2016 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import org.eclipse.core.expressions.PropertyTester;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
public class LaunchTargetPropertyTester extends PropertyTester {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
|
||||||
|
if (receiver instanceof ILaunchTarget) {
|
||||||
|
if (property.equals("launchTargetType")) { //$NON-NLS-1$
|
||||||
|
return ((ILaunchTarget) receiver).getTypeId().equals(expectedValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,113 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2016 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetWorkingCopy;
|
||||||
|
import org.osgi.service.prefs.BackingStoreException;
|
||||||
|
|
||||||
|
public class LaunchTargetWorkingCopy extends PlatformObject implements ILaunchTargetWorkingCopy {
|
||||||
|
|
||||||
|
private final LaunchTarget original;
|
||||||
|
private final Map<String, String> changes = new HashMap<>();
|
||||||
|
private String newId;
|
||||||
|
|
||||||
|
public LaunchTargetWorkingCopy(LaunchTarget original) {
|
||||||
|
this.original = original;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget getOriginal() {
|
||||||
|
return original;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getTypeId() {
|
||||||
|
return original.getTypeId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return newId != null ? newId : original.getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setId(String id) {
|
||||||
|
newId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTargetWorkingCopy getWorkingCopy() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getAttribute(String key, String defValue) {
|
||||||
|
if (changes.containsKey(key)) {
|
||||||
|
return changes.get(key);
|
||||||
|
} else {
|
||||||
|
return original.getAttribute(key, defValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, String> getAttributes() {
|
||||||
|
Map<String, String> attrs = original.getAttributes();
|
||||||
|
attrs.putAll(changes);
|
||||||
|
return attrs;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAttribute(String key, String value) {
|
||||||
|
changes.put(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget save() {
|
||||||
|
try {
|
||||||
|
LaunchTarget target;
|
||||||
|
if (newId == null || newId.equals(original.getId())) {
|
||||||
|
target = original;
|
||||||
|
} else {
|
||||||
|
// make a new one and remove the old one
|
||||||
|
ILaunchTargetManager manager = Activator.getLaunchTargetManager();
|
||||||
|
target = (LaunchTarget) manager.addLaunchTarget(original.getTypeId(), newId);
|
||||||
|
for (String key : original.attributes.keys()) {
|
||||||
|
target.attributes.put(key, original.getAttribute(key, "")); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
manager.removeLaunchTarget(original);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the changed attributes
|
||||||
|
for (Map.Entry<String, String> entry : changes.entrySet()) {
|
||||||
|
String key = entry.getKey();
|
||||||
|
String value = entry.getValue();
|
||||||
|
if (value != null) {
|
||||||
|
target.attributes.put(key, value);
|
||||||
|
} else {
|
||||||
|
target.attributes.remove(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
target.attributes.flush();
|
||||||
|
return target;
|
||||||
|
} catch (BackingStoreException e) {
|
||||||
|
Activator.log(e);
|
||||||
|
return original;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.internal.target;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
import org.eclipse.launchbar.core.internal.Messages;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetProvider;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetWorkingCopy;
|
||||||
|
import org.eclipse.launchbar.core.target.TargetStatus;
|
||||||
|
|
||||||
|
public class LocalLaunchTargetProvider implements ILaunchTargetProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(ILaunchTargetManager targetManager) {
|
||||||
|
if (targetManager.getLaunchTarget(ILaunchTargetManager.localLaunchTargetTypeId,
|
||||||
|
Messages.LocalTarget_name) == null) {
|
||||||
|
ILaunchTarget target = targetManager.addLaunchTarget(ILaunchTargetManager.localLaunchTargetTypeId,
|
||||||
|
Messages.LocalTarget_name);
|
||||||
|
ILaunchTargetWorkingCopy wc = target.getWorkingCopy();
|
||||||
|
wc.setAttribute(ILaunchTarget.ATTR_OS, Platform.getOS());
|
||||||
|
wc.setAttribute(ILaunchTarget.ATTR_ARCH, Platform.getOSArch());
|
||||||
|
wc.save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TargetStatus getStatus(ILaunchTarget target) {
|
||||||
|
return TargetStatus.OK_STATUS;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015, 2016 QNX Software Systems 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.launchbar.core.target;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
import org.eclipse.launchbar.core.internal.Messages;
|
||||||
|
import org.eclipse.launchbar.core.internal.target.LaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch target is a thing that a launch will run on. Launch targets are simple objects with the
|
||||||
|
* intention that the launch delegates and launches will adapt this object to an object that will
|
||||||
|
* assist in performing the launch.
|
||||||
|
*
|
||||||
|
* @noimplement not to be implemented by clients
|
||||||
|
*/
|
||||||
|
public interface ILaunchTarget extends IAdaptable {
|
||||||
|
|
||||||
|
// Standard attributes
|
||||||
|
public static final String ATTR_OS = "os"; //$NON-NLS-1$
|
||||||
|
public static final String ATTR_ARCH = "arch"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The null target, which is the default when no other target is available.
|
||||||
|
*/
|
||||||
|
public static final ILaunchTarget NULL_TARGET = new LaunchTarget("null", "---") { //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
@Override
|
||||||
|
public ILaunchTargetWorkingCopy getWorkingCopy() {
|
||||||
|
throw new UnsupportedOperationException(Messages.ILaunchTarget_notSupported);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The id for the target. It is unique for each type.
|
||||||
|
*
|
||||||
|
* @return id for the target.
|
||||||
|
*/
|
||||||
|
String getId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The user consumable name of the target.
|
||||||
|
*
|
||||||
|
* @deprecated this will be the same as the id
|
||||||
|
* @return name of the target
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
default String getName() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the target.
|
||||||
|
*
|
||||||
|
* @return type of the target
|
||||||
|
*/
|
||||||
|
String getTypeId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a string attribute of this target
|
||||||
|
*
|
||||||
|
* @param key
|
||||||
|
* key
|
||||||
|
* @param defValue
|
||||||
|
* default value
|
||||||
|
* @return value of attribute
|
||||||
|
*/
|
||||||
|
String getAttribute(String key, String defValue);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a read-only map of the attributes.
|
||||||
|
*
|
||||||
|
* @return the attributes for this target
|
||||||
|
* @since 2.1
|
||||||
|
*/
|
||||||
|
Map<String, String> getAttributes();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a working copy of this launch target to allow setting of attributes. It also allows
|
||||||
|
* changing the id, which results in a new launch target when saved.
|
||||||
|
*
|
||||||
|
* @return launch target working copy
|
||||||
|
*/
|
||||||
|
ILaunchTargetWorkingCopy getWorkingCopy();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A listener to changes in the list and status of launch targets.
|
||||||
|
*/
|
||||||
|
public interface ILaunchTargetListener {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch target was added.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the new launch target
|
||||||
|
*/
|
||||||
|
default void launchTargetAdded(ILaunchTarget target) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch target was removed.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the target about to be removed.
|
||||||
|
*/
|
||||||
|
default void launchTargetRemoved(ILaunchTarget target) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The status of a target has changed. Query the target to find out what the
|
||||||
|
* new status is.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the target whose status has changed
|
||||||
|
*/
|
||||||
|
default void launchTargetStatusChanged(ILaunchTarget target) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,125 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target;
|
||||||
|
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The manager for the launch targets. It is registered as an OSGi service.
|
||||||
|
*
|
||||||
|
* @noimplement not to be implemented by clients
|
||||||
|
*/
|
||||||
|
public interface ILaunchTargetManager {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type id for the local launch target type. It is the default launch
|
||||||
|
* target type. It represents launching on the underlying machine on which
|
||||||
|
* we are running. There is only one launch target of this type which
|
||||||
|
* represents that machine.
|
||||||
|
*/
|
||||||
|
final String localLaunchTargetTypeId = "org.eclipse.launchbar.core.launchTargetType.local"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list of all launch targets.
|
||||||
|
*
|
||||||
|
* @return list of launch targets
|
||||||
|
*/
|
||||||
|
ILaunchTarget[] getLaunchTargets();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list of launch targets with a given type id.
|
||||||
|
*
|
||||||
|
* @param typeId
|
||||||
|
* the launch target type id
|
||||||
|
* @return list of launch targets
|
||||||
|
*/
|
||||||
|
ILaunchTarget[] getLaunchTargetsOfType(String typeId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the launch target with the given typeId and name
|
||||||
|
*
|
||||||
|
* @param typeId
|
||||||
|
* type of the launch target
|
||||||
|
* @param id
|
||||||
|
* id of the launch target
|
||||||
|
* @return the launch target
|
||||||
|
*/
|
||||||
|
ILaunchTarget getLaunchTarget(String typeId, String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the status of the launch target.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the launch target
|
||||||
|
* @return status
|
||||||
|
*/
|
||||||
|
TargetStatus getStatus(ILaunchTarget target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a launch target with the given typeId, id, and name.
|
||||||
|
*
|
||||||
|
* @param typeId
|
||||||
|
* type id of the launch target
|
||||||
|
* @param id
|
||||||
|
* id for the target.
|
||||||
|
* @return the created launch target
|
||||||
|
*/
|
||||||
|
ILaunchTarget addLaunchTarget(String typeId, String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a launch target.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the launch target to remove
|
||||||
|
*/
|
||||||
|
void removeLaunchTarget(ILaunchTarget target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The status of the launch target has changed.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
*/
|
||||||
|
void targetStatusChanged(ILaunchTarget target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* What is the default target to use for this launch configuration.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* launch configuration or null if not set
|
||||||
|
* @return default target for this launch configuration
|
||||||
|
*/
|
||||||
|
ILaunchTarget getDefaultLaunchTarget(ILaunchConfiguration configuration);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the default target for the given launch configuration.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* launch configuration
|
||||||
|
* @param target
|
||||||
|
* default target for this launch configuration
|
||||||
|
*/
|
||||||
|
void setDefaultLaunchTarget(ILaunchConfiguration configuration, ILaunchTarget target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a listener.
|
||||||
|
*
|
||||||
|
* @param listener
|
||||||
|
*/
|
||||||
|
void addListener(ILaunchTargetListener listener);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a listener.
|
||||||
|
*
|
||||||
|
* @param listener
|
||||||
|
*/
|
||||||
|
void removeListener(ILaunchTargetListener listener);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2019 Red Hat Inc. 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.launchbar.core.target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Launch target manager extensions.
|
||||||
|
*
|
||||||
|
* @noimplement not to be implemented by clients
|
||||||
|
*/
|
||||||
|
public interface ILaunchTargetManager2 {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a launch target with the given typeId, id, and name but no notification.
|
||||||
|
*
|
||||||
|
* @param typeId
|
||||||
|
* type id of the launch target
|
||||||
|
* @param id
|
||||||
|
* id for the target.
|
||||||
|
* @return the created launch target
|
||||||
|
*/
|
||||||
|
ILaunchTarget addLaunchTargetNoNotify(String typeId, String id);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package org.eclipse.launchbar.core.target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch target provider is responsible for managing the list and status of
|
||||||
|
* launch targets. Providers are associated with launch target types in the
|
||||||
|
* launchTargetTypes extension point.
|
||||||
|
*/
|
||||||
|
public interface ILaunchTargetProvider {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called by the launch target manager when it first sees a target of the
|
||||||
|
* type. Or on startup if the provider is enabled. It is expected the
|
||||||
|
* provider will sync the list of targets with it's internal list and alert
|
||||||
|
* the manager of any non-OK statuses.
|
||||||
|
*
|
||||||
|
* @param targetManager
|
||||||
|
*/
|
||||||
|
void init(ILaunchTargetManager targetManager);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetch the status for the launch target.
|
||||||
|
*
|
||||||
|
* @param target
|
||||||
|
* the launch target
|
||||||
|
* @return status of the launch target
|
||||||
|
*/
|
||||||
|
TargetStatus getStatus(ILaunchTarget target);
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2016 QNX Software Systems 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.launchbar.core.target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Working copy to set attributes on a target and then save them.
|
||||||
|
*/
|
||||||
|
public interface ILaunchTargetWorkingCopy extends ILaunchTarget {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the original launch target.
|
||||||
|
*
|
||||||
|
* @return the original launch target
|
||||||
|
*/
|
||||||
|
ILaunchTarget getOriginal();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives the target a new ID. The save method will return a new target with the given name.e
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* new target ID
|
||||||
|
*/
|
||||||
|
void setId(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set an attribute.
|
||||||
|
*
|
||||||
|
* @param key
|
||||||
|
* key
|
||||||
|
* @param value
|
||||||
|
* value
|
||||||
|
*/
|
||||||
|
void setAttribute(String key, String value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save the changes to the original working copy.
|
||||||
|
*
|
||||||
|
* @return original launch target unless the id was changed in which case returns a new target
|
||||||
|
*/
|
||||||
|
ILaunchTarget save();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
package org.eclipse.launchbar.core.target;
|
||||||
|
|
||||||
|
import org.eclipse.launchbar.core.internal.Messages;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The status for a launch target.
|
||||||
|
*/
|
||||||
|
public class TargetStatus {
|
||||||
|
|
||||||
|
public enum Code {
|
||||||
|
OK, WARNING, ERROR
|
||||||
|
}
|
||||||
|
|
||||||
|
private final TargetStatus.Code code;
|
||||||
|
private final String message;
|
||||||
|
|
||||||
|
public static final TargetStatus OK_STATUS = new TargetStatus(Code.OK, Messages.OK);
|
||||||
|
|
||||||
|
public TargetStatus(TargetStatus.Code code, String message) {
|
||||||
|
this.code = code;
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TargetStatus.Code getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMessage() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,133 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target.launch;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An ILaunchConfigurationDelegate2 converted to take ILaunchTarget as an
|
||||||
|
* additional parameter.
|
||||||
|
*/
|
||||||
|
public interface ILaunchConfigurationTargetedDelegate extends ILaunchConfigurationDelegate {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a launch object to use when launching the given launch
|
||||||
|
* configuration in the given mode, or <code>null</code> if a new default
|
||||||
|
* launch object should be created by the debug platform. If a launch object
|
||||||
|
* is returned, its launch mode must match that of the mode specified in
|
||||||
|
* this method call.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* the configuration being launched
|
||||||
|
* @param mode
|
||||||
|
* the mode the configuration is being launched in
|
||||||
|
* @return a launch object or <code>null</code>
|
||||||
|
* @throws CoreException
|
||||||
|
* if unable to launch
|
||||||
|
*/
|
||||||
|
public ITargetedLaunch getLaunch(ILaunchConfiguration configuration, String mode, ILaunchTarget target)
|
||||||
|
throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optionally performs any required building before launching the given
|
||||||
|
* configuration in the specified mode, and returns whether the debug
|
||||||
|
* platform should perform an incremental workspace build before the launch
|
||||||
|
* continues. If <code>false</code> is returned the launch will proceed
|
||||||
|
* without further building, and if <code>true</code> is returned an
|
||||||
|
* incremental build will be performed on the workspace before launching.
|
||||||
|
* <p>
|
||||||
|
* This method is only called if the launch is invoked with flag indicating
|
||||||
|
* building should take place before the launch. This is done via the method
|
||||||
|
* <code>ILaunchConfiguration.launch(String mode, IProgressMonitor monitor, boolean build)</code>
|
||||||
|
* .
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* the configuration being launched
|
||||||
|
* @param mode
|
||||||
|
* the mode the configuration is being launched in
|
||||||
|
* @param monitor
|
||||||
|
* progress monitor, or <code>null</code>. A cancelable progress
|
||||||
|
* monitor is provided by the Job framework. It should be noted
|
||||||
|
* that the setCanceled(boolean) method should never be called on
|
||||||
|
* the provided monitor or the monitor passed to any delegates
|
||||||
|
* from this method; due to a limitation in the progress monitor
|
||||||
|
* framework using the setCanceled method can cause entire
|
||||||
|
* workspace batch jobs to be canceled, as the canceled flag is
|
||||||
|
* propagated up the top-level parent monitor. The provided
|
||||||
|
* monitor is not guaranteed to have been started.
|
||||||
|
* @return whether the debug platform should perform an incremental
|
||||||
|
* workspace build before the launch
|
||||||
|
* @throws CoreException
|
||||||
|
* if an exception occurs while building
|
||||||
|
*/
|
||||||
|
public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether a launch should proceed. This method is called after
|
||||||
|
* <code>preLaunchCheck()</code> and <code>buildForLaunch()</code> providing
|
||||||
|
* a final chance for this launch delegate to abort a launch if required.
|
||||||
|
* For example, a delegate could cancel a launch if it discovered
|
||||||
|
* compilation errors that would prevent the launch from succeeding.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* the configuration being launched
|
||||||
|
* @param mode
|
||||||
|
* launch mode
|
||||||
|
* @param monitor
|
||||||
|
* progress monitor, or <code>null</code>. A cancelable progress
|
||||||
|
* monitor is provided by the Job framework. It should be noted
|
||||||
|
* that the setCanceled(boolean) method should never be called on
|
||||||
|
* the provided monitor or the monitor passed to any delegates
|
||||||
|
* from this method; due to a limitation in the progress monitor
|
||||||
|
* framework using the setCanceled method can cause entire
|
||||||
|
* workspace batch jobs to be canceled, as the canceled flag is
|
||||||
|
* propagated up the top-level parent monitor. The provided
|
||||||
|
* monitor is not guaranteed to have been started.
|
||||||
|
* @return whether the launch should proceed
|
||||||
|
* @throws CoreException
|
||||||
|
* if an exception occurs during final checks
|
||||||
|
*/
|
||||||
|
public boolean finalLaunchCheck(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether a launch should proceed. This method is called first in
|
||||||
|
* the launch sequence providing an opportunity for this launch delegate to
|
||||||
|
* abort the launch.
|
||||||
|
*
|
||||||
|
* @param configuration
|
||||||
|
* configuration being launched
|
||||||
|
* @param mode
|
||||||
|
* launch mode
|
||||||
|
* @param monitor
|
||||||
|
* progress monitor, or <code>null</code>. A cancelable progress
|
||||||
|
* monitor is provided by the Job framework. It should be noted
|
||||||
|
* that the setCanceled(boolean) method should never be called on
|
||||||
|
* the provided monitor or the monitor passed to any delegates
|
||||||
|
* from this method; due to a limitation in the progress monitor
|
||||||
|
* framework using the setCanceled method can cause entire
|
||||||
|
* workspace batch jobs to be canceled, as the canceled flag is
|
||||||
|
* propagated up the top-level parent monitor. The provided
|
||||||
|
* monitor is not guaranteed to have been started.
|
||||||
|
* @return whether the launch should proceed
|
||||||
|
* @throws CoreException
|
||||||
|
* if an exception occurs while performing pre-launch checks
|
||||||
|
*/
|
||||||
|
public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target.launch;
|
||||||
|
|
||||||
|
import org.eclipse.debug.core.ILaunch;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A launch that knows what target it's running on.
|
||||||
|
*/
|
||||||
|
public interface ITargetedLaunch extends ILaunch {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The target this launch will or is running on.
|
||||||
|
*
|
||||||
|
* @return launch target
|
||||||
|
*/
|
||||||
|
ILaunchTarget getLaunchTarget();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,90 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target.launch;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
import org.eclipse.debug.core.ILaunch;
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.model.LaunchConfigurationDelegate;
|
||||||
|
import org.eclipse.launchbar.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An implementation of the ILaunchConfigurationTargetedDelegate.
|
||||||
|
*
|
||||||
|
* Implements the ILaunchConfigurationDelegate2 interfaces to pick out the
|
||||||
|
* default target and pass it the targeted delegate methods.
|
||||||
|
*
|
||||||
|
* The default for the targeted delegate methods is to call the non targeted
|
||||||
|
* methods in the super class.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public abstract class LaunchConfigurationTargetedDelegate extends LaunchConfigurationDelegate
|
||||||
|
implements ILaunchConfigurationTargetedDelegate {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunch getLaunch(ILaunchConfiguration configuration, String mode) throws CoreException {
|
||||||
|
ILaunchTarget target = Activator.getLaunchTargetManager().getDefaultLaunchTarget(configuration);
|
||||||
|
return getLaunch(configuration, mode, target);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ITargetedLaunch getLaunch(ILaunchConfiguration configuration, String mode, ILaunchTarget target)
|
||||||
|
throws CoreException {
|
||||||
|
return new TargetedLaunch(configuration, mode, target, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchTarget target = Activator.getLaunchTargetManager().getDefaultLaunchTarget(configuration);
|
||||||
|
return buildForLaunch(configuration, mode, target, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException {
|
||||||
|
return super.buildForLaunch(configuration, mode, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean superBuildForLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)
|
||||||
|
throws CoreException {
|
||||||
|
return super.buildForLaunch(configuration, mode, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchTarget target = Activator.getLaunchTargetManager().getDefaultLaunchTarget(configuration);
|
||||||
|
return preLaunchCheck(configuration, mode, target, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException {
|
||||||
|
return super.preLaunchCheck(configuration, mode, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean finalLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)
|
||||||
|
throws CoreException {
|
||||||
|
ILaunchTarget target = Activator.getLaunchTargetManager().getDefaultLaunchTarget(configuration);
|
||||||
|
return finalLaunchCheck(configuration, mode, target, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean finalLaunchCheck(ILaunchConfiguration configuration, String mode, ILaunchTarget target,
|
||||||
|
IProgressMonitor monitor) throws CoreException {
|
||||||
|
return super.finalLaunchCheck(configuration, mode, monitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.core.target.launch;
|
||||||
|
|
||||||
|
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||||
|
import org.eclipse.debug.core.Launch;
|
||||||
|
import org.eclipse.debug.core.model.ISourceLocator;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A ITargetedLaunch implementation that simply extends the standard Launch
|
||||||
|
* class to store the launch target.
|
||||||
|
*/
|
||||||
|
public class TargetedLaunch extends Launch implements ITargetedLaunch {
|
||||||
|
|
||||||
|
private final ILaunchTarget launchTarget;
|
||||||
|
|
||||||
|
public TargetedLaunch(ILaunchConfiguration launchConfiguration, String mode, ILaunchTarget launchTarget,
|
||||||
|
ISourceLocator locator) {
|
||||||
|
super(launchConfiguration, mode, locator);
|
||||||
|
this.launchTarget = launchTarget;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ILaunchTarget getLaunchTarget() {
|
||||||
|
return launchTarget;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
7
launchbar/org.eclipse.launchbar.remote.core/.classpath
Normal file
7
launchbar/org.eclipse.launchbar.remote.core/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
28
launchbar/org.eclipse.launchbar.remote.core/.project
Normal file
28
launchbar/org.eclipse.launchbar.remote.core/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.launchbar.remote.core</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,464 @@
|
||||||
|
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.recreateModifiedClassFileInOutputFolder=ignore
|
||||||
|
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch, *.xtend
|
||||||
|
org.eclipse.jdt.core.circularClasspath=error
|
||||||
|
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.mainOnlyProjectHasTestOnlyDependency=error
|
||||||
|
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.compiler.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.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=generate
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.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.invalidJavadoc=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
|
||||||
|
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=public
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||||
|
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=warning
|
||||||
|
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.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.pessimisticNullAnalysisForFreeTypeVariables=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
|
||||||
|
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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
|
||||||
|
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.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.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=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.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=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
|
||||||
|
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=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
|
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
|
||||||
|
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.align_variable_declarations_on_columns=false
|
||||||
|
org.eclipse.jdt.core.formatter.align_with_spaces=false
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_loops=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_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_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_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=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_header=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_html=true
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_line_comments=false
|
||||||
|
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_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=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_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
|
||||||
|
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
|
||||||
|
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_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=true
|
||||||
|
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=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
|
|
@ -0,0 +1,3 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=warning
|
||||||
|
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
|
|
@ -0,0 +1,133 @@
|
||||||
|
cleanup.add_default_serial_version_id=true
|
||||||
|
cleanup.add_generated_serial_version_id=false
|
||||||
|
cleanup.add_missing_annotations=true
|
||||||
|
cleanup.add_missing_deprecated_annotations=true
|
||||||
|
cleanup.add_missing_methods=false
|
||||||
|
cleanup.add_missing_nls_tags=false
|
||||||
|
cleanup.add_missing_override_annotations=true
|
||||||
|
cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
cleanup.add_serial_version_id=false
|
||||||
|
cleanup.always_use_blocks=true
|
||||||
|
cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
cleanup.convert_functional_interfaces=false
|
||||||
|
cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
cleanup.correct_indentation=false
|
||||||
|
cleanup.format_source_code=true
|
||||||
|
cleanup.format_source_code_changes_only=false
|
||||||
|
cleanup.insert_inferred_type_arguments=false
|
||||||
|
cleanup.make_local_variable_final=true
|
||||||
|
cleanup.make_parameters_final=false
|
||||||
|
cleanup.make_private_fields_final=true
|
||||||
|
cleanup.make_type_abstract_if_missing_method=false
|
||||||
|
cleanup.make_variable_declarations_final=false
|
||||||
|
cleanup.never_use_blocks=false
|
||||||
|
cleanup.never_use_parentheses_in_expressions=true
|
||||||
|
cleanup.organize_imports=true
|
||||||
|
cleanup.qualify_static_field_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_method_accesses_with_declaring_class=false
|
||||||
|
cleanup.remove_private_constructors=true
|
||||||
|
cleanup.remove_redundant_modifiers=false
|
||||||
|
cleanup.remove_redundant_semicolons=true
|
||||||
|
cleanup.remove_redundant_type_arguments=true
|
||||||
|
cleanup.remove_trailing_whitespaces=true
|
||||||
|
cleanup.remove_trailing_whitespaces_all=true
|
||||||
|
cleanup.remove_trailing_whitespaces_ignore_empty=false
|
||||||
|
cleanup.remove_unnecessary_casts=true
|
||||||
|
cleanup.remove_unnecessary_nls_tags=false
|
||||||
|
cleanup.remove_unused_imports=true
|
||||||
|
cleanup.remove_unused_local_variables=false
|
||||||
|
cleanup.remove_unused_private_fields=true
|
||||||
|
cleanup.remove_unused_private_members=false
|
||||||
|
cleanup.remove_unused_private_methods=true
|
||||||
|
cleanup.remove_unused_private_types=true
|
||||||
|
cleanup.sort_members=false
|
||||||
|
cleanup.sort_members_all=false
|
||||||
|
cleanup.use_anonymous_class_creation=false
|
||||||
|
cleanup.use_blocks=false
|
||||||
|
cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
cleanup.use_lambda=true
|
||||||
|
cleanup.use_parentheses_in_expressions=false
|
||||||
|
cleanup.use_this_for_non_static_field_access=false
|
||||||
|
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
|
||||||
|
cleanup.use_this_for_non_static_method_access=false
|
||||||
|
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
|
||||||
|
cleanup_profile=_CDT
|
||||||
|
cleanup_settings_version=2
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
||||||
|
formatter_profile=_CDT
|
||||||
|
formatter_settings_version=14
|
||||||
|
internal.default.compliance=user
|
||||||
|
org.eclipse.jdt.ui.exception.name=e
|
||||||
|
org.eclipse.jdt.ui.gettersetter.use.is=true
|
||||||
|
org.eclipse.jdt.ui.ignorelowercasenames=true
|
||||||
|
org.eclipse.jdt.ui.importorder=java;javax;org;com;
|
||||||
|
org.eclipse.jdt.ui.keywordthis=false
|
||||||
|
org.eclipse.jdt.ui.ondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.overrideannotation=true
|
||||||
|
org.eclipse.jdt.ui.staticondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.text.custom_code_templates=
|
||||||
|
sp_cleanup.add_default_serial_version_id=true
|
||||||
|
sp_cleanup.add_generated_serial_version_id=false
|
||||||
|
sp_cleanup.add_missing_annotations=true
|
||||||
|
sp_cleanup.add_missing_deprecated_annotations=true
|
||||||
|
sp_cleanup.add_missing_methods=false
|
||||||
|
sp_cleanup.add_missing_nls_tags=false
|
||||||
|
sp_cleanup.add_missing_override_annotations=true
|
||||||
|
sp_cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
sp_cleanup.add_serial_version_id=false
|
||||||
|
sp_cleanup.always_use_blocks=true
|
||||||
|
sp_cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
sp_cleanup.convert_functional_interfaces=false
|
||||||
|
sp_cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
sp_cleanup.correct_indentation=false
|
||||||
|
sp_cleanup.format_source_code=true
|
||||||
|
sp_cleanup.format_source_code_changes_only=false
|
||||||
|
sp_cleanup.insert_inferred_type_arguments=false
|
||||||
|
sp_cleanup.make_local_variable_final=true
|
||||||
|
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_modifiers=false
|
||||||
|
sp_cleanup.remove_redundant_semicolons=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=false
|
||||||
|
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=false
|
||||||
|
sp_cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
sp_cleanup.use_lambda=true
|
||||||
|
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
|
|
@ -0,0 +1,184 @@
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITH_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERCLASS_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_SUPERCLASS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_INTERFACE=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_TYPE_ARGUMENTS=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_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=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_MEMBER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETERS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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=Error
|
||||||
|
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning
|
||||||
|
LEAK_EXTEND=Warning
|
||||||
|
LEAK_FIELD_DECL=Warning
|
||||||
|
LEAK_IMPLEMENT=Warning
|
||||||
|
LEAK_METHOD_PARAM=Warning
|
||||||
|
LEAK_METHOD_RETURN_TYPE=Warning
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=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_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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=Warning
|
||||||
|
incompatible_api_component_version_report_minor_without_api_change=Warning
|
||||||
|
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
|
|
@ -0,0 +1,35 @@
|
||||||
|
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=2
|
||||||
|
compilers.p.build.output.library=1
|
||||||
|
compilers.p.build.source.library=1
|
||||||
|
compilers.p.build.src.includes=1
|
||||||
|
compilers.p.deprecated=1
|
||||||
|
compilers.p.discouraged-class=1
|
||||||
|
compilers.p.internal=1
|
||||||
|
compilers.p.missing-packages=2
|
||||||
|
compilers.p.missing-version-export-package=2
|
||||||
|
compilers.p.missing-version-import-package=2
|
||||||
|
compilers.p.missing-version-require-bundle=2
|
||||||
|
compilers.p.no-required-att=0
|
||||||
|
compilers.p.no.automatic.module=1
|
||||||
|
compilers.p.not-externalized-att=1
|
||||||
|
compilers.p.service.component.without.lazyactivation=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
|
||||||
|
compilers.use-project=true
|
||||||
|
eclipse.preferences.version=1
|
|
@ -0,0 +1,15 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: LaunchBar Remote Core
|
||||||
|
Bundle-SymbolicName: org.eclipse.launchbar.remote.core;singleton:=true
|
||||||
|
Bundle-Version: 1.0.2.qualifier
|
||||||
|
Bundle-Activator: org.eclipse.launchbar.remote.core.internal.Activator
|
||||||
|
Require-Bundle: org.eclipse.ui,
|
||||||
|
org.eclipse.core.runtime,
|
||||||
|
org.eclipse.launchbar.core;bundle-version="2.0.0",
|
||||||
|
org.eclipse.remote.core;bundle-version="2.0.0"
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Export-Package: org.eclipse.launchbar.remote.core,
|
||||||
|
org.eclipse.launchbar.remote.core.internal;x-friends:="org.eclipse.launchbar.remote.ui"
|
||||||
|
Automatic-Module-Name: org.eclipse.launchbar.remote.core
|
36
launchbar/org.eclipse.launchbar.remote.core/about.html
Normal file
36
launchbar/org.eclipse.launchbar.remote.core/about.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||||
|
<title>About</title>
|
||||||
|
</head>
|
||||||
|
<body lang="EN-US">
|
||||||
|
<h2>About This Content</h2>
|
||||||
|
|
||||||
|
<p>November 30, 2017</p>
|
||||||
|
<h3>License</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The Eclipse Foundation makes available all content in this plug-in
|
||||||
|
("Content"). Unless otherwise indicated below, the Content
|
||||||
|
is provided to you under the terms and conditions of the Eclipse
|
||||||
|
Public License Version 2.0 ("EPL"). A copy of the EPL is
|
||||||
|
available at <a href="http://www.eclipse.org/legal/epl-2.0">http://www.eclipse.org/legal/epl-2.0</a>.
|
||||||
|
For purposes of the EPL, "Program" will mean the Content.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you did not receive this Content directly from the Eclipse
|
||||||
|
Foundation, the Content is being redistributed by another party
|
||||||
|
("Redistributor") and different terms and conditions may
|
||||||
|
apply to your use of any object code in the Content. Check the
|
||||||
|
Redistributor's license that was provided with the Content. If no such
|
||||||
|
license exists, contact the Redistributor. Unless otherwise indicated
|
||||||
|
below, the terms and conditions of the EPL still apply to any source
|
||||||
|
code in the Content and such source code may be obtained at <a
|
||||||
|
href="http://www.eclipse.org/">http://www.eclipse.org</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,6 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
about.html,\
|
||||||
|
plugin.xml
|
15
launchbar/org.eclipse.launchbar.remote.core/plugin.xml
Normal file
15
launchbar/org.eclipse.launchbar.remote.core/plugin.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.4"?>
|
||||||
|
<plugin>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.core.runtime.adapters">
|
||||||
|
<factory
|
||||||
|
adaptableType="org.eclipse.launchbar.core.target.ILaunchTarget"
|
||||||
|
class="org.eclipse.launchbar.remote.core.internal.RemoteTargetAdapterFactory">
|
||||||
|
<adapter
|
||||||
|
type="org.eclipse.remote.core.IRemoteConnection">
|
||||||
|
</adapter>
|
||||||
|
</factory>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
</plugin>
|
|
@ -0,0 +1,108 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.core;
|
||||||
|
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetManager;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTargetProvider;
|
||||||
|
import org.eclipse.launchbar.core.target.TargetStatus;
|
||||||
|
import org.eclipse.launchbar.core.target.TargetStatus.Code;
|
||||||
|
import org.eclipse.launchbar.remote.core.internal.Activator;
|
||||||
|
import org.eclipse.launchbar.remote.core.internal.Messages;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnection;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnectionChangeListener;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnectionType;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnectionWorkingCopy;
|
||||||
|
import org.eclipse.remote.core.IRemoteServicesManager;
|
||||||
|
import org.eclipse.remote.core.RemoteConnectionChangeEvent;
|
||||||
|
|
||||||
|
public abstract class RemoteLaunchTargetProvider implements ILaunchTargetProvider, IRemoteConnectionChangeListener {
|
||||||
|
|
||||||
|
private static final TargetStatus CLOSED = new TargetStatus(Code.ERROR, Messages.RemoteLaunchTargetProvider_Closed);
|
||||||
|
|
||||||
|
private ILaunchTargetManager targetManager;
|
||||||
|
|
||||||
|
protected abstract String getTypeId();
|
||||||
|
|
||||||
|
protected void initLaunchTarget(ILaunchTarget target) {
|
||||||
|
// default nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(ILaunchTargetManager targetManager) {
|
||||||
|
this.targetManager = targetManager;
|
||||||
|
String typeId = getTypeId();
|
||||||
|
|
||||||
|
IRemoteServicesManager remoteManager = Activator.getService(IRemoteServicesManager.class);
|
||||||
|
|
||||||
|
// Remove missing ones
|
||||||
|
for (ILaunchTarget target : targetManager.getLaunchTargetsOfType(typeId)) {
|
||||||
|
IRemoteConnection connection = target.getAdapter(IRemoteConnection.class);
|
||||||
|
if (connection == null) {
|
||||||
|
targetManager.removeLaunchTarget(target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add new ones
|
||||||
|
IRemoteConnectionType remoteType = remoteManager.getConnectionType(typeId);
|
||||||
|
for (IRemoteConnection remote : remoteType.getConnections()) {
|
||||||
|
String id = remote.getName();
|
||||||
|
if (targetManager.getLaunchTarget(typeId, id) == null) {
|
||||||
|
initLaunchTarget(targetManager.addLaunchTarget(typeId, id));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
remoteManager.addRemoteConnectionChangeListener(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TargetStatus getStatus(ILaunchTarget target) {
|
||||||
|
IRemoteConnection connection = target.getAdapter(IRemoteConnection.class);
|
||||||
|
if (connection != null) {
|
||||||
|
if (connection.isOpen()) {
|
||||||
|
return TargetStatus.OK_STATUS;
|
||||||
|
} else {
|
||||||
|
return CLOSED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return new TargetStatus(Code.ERROR, Messages.RemoteLaunchTargetProvider_Missing);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void connectionChanged(RemoteConnectionChangeEvent event) {
|
||||||
|
IRemoteConnection connection = event.getConnection();
|
||||||
|
if (connection.getConnectionType().getId().equals(getTypeId())) {
|
||||||
|
switch (event.getType()) {
|
||||||
|
case RemoteConnectionChangeEvent.CONNECTION_ADDED:
|
||||||
|
initLaunchTarget(targetManager.addLaunchTarget(getTypeId(), connection.getName()));
|
||||||
|
break;
|
||||||
|
case RemoteConnectionChangeEvent.CONNECTION_REMOVED:
|
||||||
|
ILaunchTarget target = targetManager.getLaunchTarget(getTypeId(), connection.getName());
|
||||||
|
if (target != null) {
|
||||||
|
targetManager.removeLaunchTarget(target);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case RemoteConnectionChangeEvent.CONNECTION_RENAMED:
|
||||||
|
if (connection instanceof IRemoteConnectionWorkingCopy) {
|
||||||
|
IRemoteConnectionWorkingCopy wc = (IRemoteConnectionWorkingCopy) connection;
|
||||||
|
IRemoteConnection original = ((IRemoteConnectionWorkingCopy) connection).getOriginal();
|
||||||
|
target = targetManager.getLaunchTarget(getTypeId(), original.getName());
|
||||||
|
if (target != null) {
|
||||||
|
targetManager.removeLaunchTarget(target);
|
||||||
|
}
|
||||||
|
initLaunchTarget(targetManager.addLaunchTarget(getTypeId(), wc.getName()));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
import org.osgi.framework.ServiceReference;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class Activator extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
// The plug-in ID
|
||||||
|
public static final String PLUGIN_ID = "org.eclipse.launchbar.remote.core"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
// The shared instance
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> T getService(Class<T> service) {
|
||||||
|
BundleContext context = plugin.getBundle().getBundleContext();
|
||||||
|
ServiceReference<T> ref = context.getServiceReference(service);
|
||||||
|
return ref != null ? context.getService(ref) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.osgi.util.NLS;
|
||||||
|
|
||||||
|
public class Messages extends NLS {
|
||||||
|
private static final String BUNDLE_NAME = "org.eclipse.launchbar.remote.core.internal.messages"; //$NON-NLS-1$
|
||||||
|
public static String RemoteLaunchTargetProvider_Closed;
|
||||||
|
public static String RemoteLaunchTargetProvider_Missing;
|
||||||
|
static {
|
||||||
|
// initialize resource bundle
|
||||||
|
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Messages() {
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.core.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IAdapterFactory;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnection;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnectionType;
|
||||||
|
import org.eclipse.remote.core.IRemoteServicesManager;
|
||||||
|
|
||||||
|
public class RemoteTargetAdapterFactory implements IAdapterFactory {
|
||||||
|
|
||||||
|
private static final IRemoteServicesManager remoteManager = Activator.getService(IRemoteServicesManager.class);
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) {
|
||||||
|
if (adaptableObject instanceof ILaunchTarget) {
|
||||||
|
ILaunchTarget target = (ILaunchTarget) adaptableObject;
|
||||||
|
IRemoteConnectionType remoteType = remoteManager.getConnectionType(target.getTypeId());
|
||||||
|
if (remoteType != null) {
|
||||||
|
return (T) remoteType.getConnection(target.getId());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<?>[] getAdapterList() {
|
||||||
|
return new Class[] { IRemoteConnection.class };
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
#******************************************************************************
|
||||||
|
# Copyright (c) 2015 QNX Software Systems 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
|
||||||
|
#******************************************************************************
|
||||||
|
RemoteLaunchTargetProvider_Closed=Closed
|
||||||
|
RemoteLaunchTargetProvider_Missing=Connection missing
|
7
launchbar/org.eclipse.launchbar.remote.ui/.classpath
Normal file
7
launchbar/org.eclipse.launchbar.remote.ui/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
28
launchbar/org.eclipse.launchbar.remote.ui/.project
Normal file
28
launchbar/org.eclipse.launchbar.remote.ui/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.launchbar.remote.ui</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,464 @@
|
||||||
|
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.recreateModifiedClassFileInOutputFolder=ignore
|
||||||
|
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch, *.xtend
|
||||||
|
org.eclipse.jdt.core.circularClasspath=error
|
||||||
|
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.mainOnlyProjectHasTestOnlyDependency=error
|
||||||
|
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
|
||||||
|
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.fieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.localSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
||||||
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
||||||
|
org.eclipse.jdt.core.compiler.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.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=generate
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.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.invalidJavadoc=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error
|
||||||
|
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=public
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||||
|
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=warning
|
||||||
|
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.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.pessimisticNullAnalysisForFreeTypeVariables=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
|
||||||
|
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=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
|
||||||
|
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.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.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=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.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=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
|
||||||
|
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=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
||||||
|
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
|
||||||
|
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.align_variable_declarations_on_columns=false
|
||||||
|
org.eclipse.jdt.core.formatter.align_with_spaces=false
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
|
||||||
|
org.eclipse.jdt.core.formatter.alignment_for_compact_loops=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_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_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_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=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_header=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_html=true
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=false
|
||||||
|
org.eclipse.jdt.core.formatter.comment.format_line_comments=false
|
||||||
|
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_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=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_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
|
||||||
|
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
|
||||||
|
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
|
||||||
|
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_do_while_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_for_body_on_same_line=false
|
||||||
|
org.eclipse.jdt.core.formatter.keep_simple_while_body_on_same_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=true
|
||||||
|
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_assignment_operator=false
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_conditional_operator=true
|
||||||
|
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=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
|
|
@ -0,0 +1,3 @@
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=warning
|
||||||
|
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
|
|
@ -0,0 +1,133 @@
|
||||||
|
cleanup.add_default_serial_version_id=true
|
||||||
|
cleanup.add_generated_serial_version_id=false
|
||||||
|
cleanup.add_missing_annotations=true
|
||||||
|
cleanup.add_missing_deprecated_annotations=true
|
||||||
|
cleanup.add_missing_methods=false
|
||||||
|
cleanup.add_missing_nls_tags=false
|
||||||
|
cleanup.add_missing_override_annotations=true
|
||||||
|
cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
cleanup.add_serial_version_id=false
|
||||||
|
cleanup.always_use_blocks=true
|
||||||
|
cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
cleanup.convert_functional_interfaces=false
|
||||||
|
cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
cleanup.correct_indentation=false
|
||||||
|
cleanup.format_source_code=true
|
||||||
|
cleanup.format_source_code_changes_only=false
|
||||||
|
cleanup.insert_inferred_type_arguments=false
|
||||||
|
cleanup.make_local_variable_final=true
|
||||||
|
cleanup.make_parameters_final=false
|
||||||
|
cleanup.make_private_fields_final=true
|
||||||
|
cleanup.make_type_abstract_if_missing_method=false
|
||||||
|
cleanup.make_variable_declarations_final=false
|
||||||
|
cleanup.never_use_blocks=false
|
||||||
|
cleanup.never_use_parentheses_in_expressions=true
|
||||||
|
cleanup.organize_imports=true
|
||||||
|
cleanup.qualify_static_field_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
|
||||||
|
cleanup.qualify_static_member_accesses_with_declaring_class=false
|
||||||
|
cleanup.qualify_static_method_accesses_with_declaring_class=false
|
||||||
|
cleanup.remove_private_constructors=true
|
||||||
|
cleanup.remove_redundant_modifiers=false
|
||||||
|
cleanup.remove_redundant_semicolons=true
|
||||||
|
cleanup.remove_redundant_type_arguments=true
|
||||||
|
cleanup.remove_trailing_whitespaces=true
|
||||||
|
cleanup.remove_trailing_whitespaces_all=true
|
||||||
|
cleanup.remove_trailing_whitespaces_ignore_empty=false
|
||||||
|
cleanup.remove_unnecessary_casts=true
|
||||||
|
cleanup.remove_unnecessary_nls_tags=false
|
||||||
|
cleanup.remove_unused_imports=true
|
||||||
|
cleanup.remove_unused_local_variables=false
|
||||||
|
cleanup.remove_unused_private_fields=true
|
||||||
|
cleanup.remove_unused_private_members=false
|
||||||
|
cleanup.remove_unused_private_methods=true
|
||||||
|
cleanup.remove_unused_private_types=true
|
||||||
|
cleanup.sort_members=false
|
||||||
|
cleanup.sort_members_all=false
|
||||||
|
cleanup.use_anonymous_class_creation=false
|
||||||
|
cleanup.use_blocks=false
|
||||||
|
cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
cleanup.use_lambda=true
|
||||||
|
cleanup.use_parentheses_in_expressions=false
|
||||||
|
cleanup.use_this_for_non_static_field_access=false
|
||||||
|
cleanup.use_this_for_non_static_field_access_only_if_necessary=true
|
||||||
|
cleanup.use_this_for_non_static_method_access=false
|
||||||
|
cleanup.use_this_for_non_static_method_access_only_if_necessary=true
|
||||||
|
cleanup_profile=_CDT
|
||||||
|
cleanup_settings_version=2
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
||||||
|
formatter_profile=_CDT
|
||||||
|
formatter_settings_version=14
|
||||||
|
internal.default.compliance=user
|
||||||
|
org.eclipse.jdt.ui.exception.name=e
|
||||||
|
org.eclipse.jdt.ui.gettersetter.use.is=true
|
||||||
|
org.eclipse.jdt.ui.ignorelowercasenames=true
|
||||||
|
org.eclipse.jdt.ui.importorder=java;javax;org;com;
|
||||||
|
org.eclipse.jdt.ui.keywordthis=false
|
||||||
|
org.eclipse.jdt.ui.ondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.overrideannotation=true
|
||||||
|
org.eclipse.jdt.ui.staticondemandthreshold=1000
|
||||||
|
org.eclipse.jdt.ui.text.custom_code_templates=
|
||||||
|
sp_cleanup.add_default_serial_version_id=true
|
||||||
|
sp_cleanup.add_generated_serial_version_id=false
|
||||||
|
sp_cleanup.add_missing_annotations=true
|
||||||
|
sp_cleanup.add_missing_deprecated_annotations=true
|
||||||
|
sp_cleanup.add_missing_methods=false
|
||||||
|
sp_cleanup.add_missing_nls_tags=false
|
||||||
|
sp_cleanup.add_missing_override_annotations=true
|
||||||
|
sp_cleanup.add_missing_override_annotations_interface_methods=true
|
||||||
|
sp_cleanup.add_serial_version_id=false
|
||||||
|
sp_cleanup.always_use_blocks=true
|
||||||
|
sp_cleanup.always_use_parentheses_in_expressions=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_field_access=false
|
||||||
|
sp_cleanup.always_use_this_for_non_static_method_access=false
|
||||||
|
sp_cleanup.convert_functional_interfaces=false
|
||||||
|
sp_cleanup.convert_to_enhanced_for_loop=false
|
||||||
|
sp_cleanup.correct_indentation=false
|
||||||
|
sp_cleanup.format_source_code=true
|
||||||
|
sp_cleanup.format_source_code_changes_only=false
|
||||||
|
sp_cleanup.insert_inferred_type_arguments=false
|
||||||
|
sp_cleanup.make_local_variable_final=true
|
||||||
|
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_modifiers=false
|
||||||
|
sp_cleanup.remove_redundant_semicolons=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=false
|
||||||
|
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=false
|
||||||
|
sp_cleanup.use_blocks_only_for_return_and_throw=false
|
||||||
|
sp_cleanup.use_lambda=true
|
||||||
|
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
|
|
@ -0,0 +1,184 @@
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITHOUT_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD_WITH_DEFAULT_VALUE=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_METHOD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERCLASS_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_SUPERCLASS=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TO_INTERFACE=Error
|
||||||
|
CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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
|
||||||
|
CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
ENUM_ELEMENT_TYPE_CHANGED_TO_INTERFACE=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_TYPE_ARGUMENTS=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_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_DEFAULT_METHOD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=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_MEMBER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETERS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_INTERFACE_BOUNDS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_RESTRICTIONS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ANNOTATION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_CLASS=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TO_ENUM=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
INTERFACE_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=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=Error
|
||||||
|
INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Warning
|
||||||
|
LEAK_EXTEND=Warning
|
||||||
|
LEAK_FIELD_DECL=Warning
|
||||||
|
LEAK_IMPLEMENT=Warning
|
||||||
|
LEAK_METHOD_PARAM=Warning
|
||||||
|
LEAK_METHOD_RETURN_TYPE=Warning
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=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_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_INTERFACE_BOUNDS=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
|
||||||
|
METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETERS=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=Warning
|
||||||
|
incompatible_api_component_version_report_minor_without_api_change=Warning
|
||||||
|
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
|
|
@ -0,0 +1,35 @@
|
||||||
|
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=2
|
||||||
|
compilers.p.build.output.library=1
|
||||||
|
compilers.p.build.source.library=1
|
||||||
|
compilers.p.build.src.includes=1
|
||||||
|
compilers.p.deprecated=1
|
||||||
|
compilers.p.discouraged-class=1
|
||||||
|
compilers.p.internal=1
|
||||||
|
compilers.p.missing-packages=2
|
||||||
|
compilers.p.missing-version-export-package=2
|
||||||
|
compilers.p.missing-version-import-package=2
|
||||||
|
compilers.p.missing-version-require-bundle=2
|
||||||
|
compilers.p.no-required-att=0
|
||||||
|
compilers.p.no.automatic.module=1
|
||||||
|
compilers.p.not-externalized-att=1
|
||||||
|
compilers.p.service.component.without.lazyactivation=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
|
||||||
|
compilers.use-project=true
|
||||||
|
eclipse.preferences.version=1
|
|
@ -0,0 +1,18 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: Remote Launch Target UI
|
||||||
|
Bundle-SymbolicName: org.eclipse.launchbar.remote.ui;singleton:=true
|
||||||
|
Bundle-Version: 1.0.1.qualifier
|
||||||
|
Bundle-Activator: org.eclipse.launchbar.remote.ui.internal.Activator
|
||||||
|
Bundle-Vendor: Eclipse CDT
|
||||||
|
Require-Bundle: org.eclipse.ui,
|
||||||
|
org.eclipse.core.runtime,
|
||||||
|
org.eclipse.remote.core;bundle-version="2.0.0",
|
||||||
|
org.eclipse.remote.ui;bundle-version="2.0.0",
|
||||||
|
org.eclipse.launchbar.core;bundle-version="2.0.0",
|
||||||
|
org.eclipse.launchbar.ui;bundle-version="2.0.0",
|
||||||
|
org.eclipse.launchbar.remote.core;bundle-version="1.0.0"
|
||||||
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Export-Package: org.eclipse.launchbar.remote.ui
|
||||||
|
Automatic-Module-Name: org.eclipse.launchbar.remote.ui
|
|
@ -0,0 +1,4 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.
|
|
@ -0,0 +1,51 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.ui;
|
||||||
|
|
||||||
|
import org.eclipse.jface.viewers.LabelProvider;
|
||||||
|
import org.eclipse.launchbar.core.target.ILaunchTarget;
|
||||||
|
import org.eclipse.remote.core.IRemoteConnection;
|
||||||
|
import org.eclipse.remote.ui.IRemoteUIConnectionService;
|
||||||
|
import org.eclipse.swt.graphics.Image;
|
||||||
|
|
||||||
|
public class RemoteLaunchTargetLabelProvider extends LabelProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getText(Object element) {
|
||||||
|
if (element instanceof ILaunchTarget) {
|
||||||
|
IRemoteConnection connection = ((ILaunchTarget) element).getAdapter(IRemoteConnection.class);
|
||||||
|
if (connection != null) {
|
||||||
|
IRemoteUIConnectionService uiService = connection.getConnectionType()
|
||||||
|
.getService(IRemoteUIConnectionService.class);
|
||||||
|
if (uiService != null) {
|
||||||
|
return uiService.getLabelProvider().getText(connection);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.getText(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Image getImage(Object element) {
|
||||||
|
if (element instanceof ILaunchTarget) {
|
||||||
|
IRemoteConnection connection = ((ILaunchTarget) element).getAdapter(IRemoteConnection.class);
|
||||||
|
if (connection != null) {
|
||||||
|
IRemoteUIConnectionService uiService = connection.getConnectionType()
|
||||||
|
.getService(IRemoteUIConnectionService.class);
|
||||||
|
if (uiService != null) {
|
||||||
|
return uiService.getLabelProvider().getImage(connection);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return super.getImage(element);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright (c) 2015 QNX Software Systems 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.launchbar.remote.ui.internal;
|
||||||
|
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
import org.osgi.framework.ServiceReference;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class Activator extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
// The plug-in ID
|
||||||
|
public static final String PLUGIN_ID = "org.eclipse.launchbar.remote.ui"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
// The shared instance
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static <T> T getService(Class<T> service) {
|
||||||
|
BundleContext context = plugin.getBundle().getBundleContext();
|
||||||
|
ServiceReference<T> ref = context.getServiceReference(service);
|
||||||
|
return ref != null ? context.getService(ref) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
17
launchbar/org.eclipse.launchbar.remote/.project
Normal file
17
launchbar/org.eclipse.launchbar.remote/.project
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.launchbar.remote-feature</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue