diff options
author | Lars Vogel | 2014-02-27 10:33:43 +0000 |
---|---|---|
committer | Lars Vogel | 2014-03-07 20:17:23 +0000 |
commit | 39565e295e93832024b05b4eb7516a1441290986 (patch) | |
tree | 3a3e4d841669c7d87dfdd3a16ca01ab856cf3c70 | |
parent | 4334d9f14e9f2a5b54cd42624f6b68cc8a87e487 (diff) | |
download | eclipse.platform.ui-39565e295e93832024b05b4eb7516a1441290986.tar.gz eclipse.platform.ui-39565e295e93832024b05b4eb7516a1441290986.tar.xz eclipse.platform.ui-39565e295e93832024b05b4eb7516a1441290986.zip |
Bug 429218 - Retire org.eclipse.e4.core.contexts.debug
Change-Id: Ie53630305441e8a57c6d07b5dfe1fdcbc1fe21d1
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
34 files changed, 0 insertions, 2318 deletions
diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.classpath b/bundles/org.eclipse.e4.core.contexts.debug/.classpath deleted file mode 100644 index 64c5e31b7a2..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="src" path="src"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.project b/bundles/org.eclipse.e4.core.contexts.debug/.project deleted file mode 100644 index 1f6feec4638..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.e4.core.contexts.debug</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> diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.core.runtime.prefs b/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.core.runtime.prefs deleted file mode 100644 index c522e1f4ae2..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.core.runtime.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1
-line.separator=\n
diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 9219b0ecfda..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,360 +0,0 @@ -#Tue Oct 19 10:07:55 EDT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.builder.cleanOutputFolder=clean -org.eclipse.jdt.core.builder.duplicateResourceTask=warning -org.eclipse.jdt.core.builder.invalidClasspath=abort -org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch -org.eclipse.jdt.core.circularClasspath=error -org.eclipse.jdt.core.classpath.exclusionPatterns=enabled -org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.doc.comment.support=enabled -org.eclipse.jdt.core.compiler.maxProblemPerUnit=1000 -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning -org.eclipse.jdt.core.compiler.problem.deadCode=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=warning -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning -org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error -org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -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.missingJavadocTagsOverriding=disabled -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=warning -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled -org.eclipse.jdt.core.compiler.problem.unusedImport=error -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=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=enabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.source=1.5 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=0 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=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.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true -org.eclipse.jdt.core.formatter.indentation.size=4 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=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=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_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=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=true -org.eclipse.jdt.core.formatter.join_wrapped_lines=true -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=800 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=false -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.incompatibleJDKLevel=ignore -org.eclipse.jdt.core.incompleteClasspath=error diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 0313bef5866..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,58 +0,0 @@ -#Thu Apr 15 10:37:54 EDT 2010 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -formatter_profile=_core -formatter_settings_version=11 -internal.default.compliance=user -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=; -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 -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_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=false -sp_cleanup.format_source_code=true -sp_cleanup.make_local_variable_final=false -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_variable_declarations_final=true -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=false -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_trailing_whitespaces=false -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=false -sp_cleanup.remove_unused_imports=false -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_blocks=false -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_parentheses_in_expressions=false -sp_cleanup.use_this_for_non_static_field_access=false -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=false -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 486a796cd56..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,35 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=1 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=0 -compilers.p.discouraged-class=1 -compilers.p.illegal-att-value=0 -compilers.p.internal=1 -compilers.p.missing-packages=1 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.not-externalized-att=0 -compilers.p.unknown-attribute=0 -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.p.unused-element-or-attribute=1 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -compilers.use-project=true -eclipse.preferences.version=1 diff --git a/bundles/org.eclipse.e4.core.contexts.debug/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.core.contexts.debug/META-INF/MANIFEST.MF deleted file mode 100644 index 00320f40d14..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/META-INF/MANIFEST.MF +++ /dev/null @@ -1,25 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.e4.core.contexts.debug;singleton:=true -Bundle-Version: 0.1.100.qualifier -Bundle-Vendor: %providerName -Bundle-Activator: org.eclipse.e4.core.internal.contexts.debug.ui.Activator -Bundle-Localization: plugin -Require-Bundle: org.eclipse.ui;bundle-version="[3.102.0,4.0.0)", - org.eclipse.core.runtime;bundle-version="[3.8.0,4.0.0)", - org.eclipse.e4.core.contexts;bundle-version="0.9.0", - org.eclipse.e4.core.di;bundle-version="0.9.0", - org.eclipse.e4.core.di.extensions;bundle-version="0.9.0", - org.eclipse.e4.ui.workbench;bundle-version="0.9.1", - org.eclipse.e4.ui.di;bundle-version="0.9.0", - org.eclipse.osgi.services;bundle-version="[3.3.0,4.0.0)", - org.eclipse.e4.ui.workbench.swt;bundle-version="0.10.0", - org.eclipse.e4.ui.model.workbench;bundle-version="1.0.0" -Bundle-ActivationPolicy: lazy -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Import-Package: javax.annotation;version="1.0.0", - javax.inject;version="1.0.0" -Export-Package: org.eclipse.e4.core.internal.contexts.debug.ui;x-internal:=true, - org.eclipse.e4.core.internal.contexts.debug.ui.e4;x-internal:=true -Service-Component: OSGI-INF/debugger.xml diff --git a/bundles/org.eclipse.e4.core.contexts.debug/OSGI-INF/debugger.xml b/bundles/org.eclipse.e4.core.contexts.debug/OSGI-INF/debugger.xml deleted file mode 100644 index a65c168d9ea..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/OSGI-INF/debugger.xml +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.eclipse.e4.core.contexts.debugger"> - <implementation class="org.eclipse.e4.core.internal.contexts.debug.ui.ContextTreeProvider"/> - <service> - <provide interface="org.eclipse.e4.core.internal.contexts.IEclipseContextDebugger"/> - </service> -</scr:component> diff --git a/bundles/org.eclipse.e4.core.contexts.debug/about.html b/bundles/org.eclipse.e4.core.contexts.debug/about.html deleted file mode 100644 index 460233046ee..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> -<title>About</title> -</head> -<body lang="EN-US"> -<h2>About This Content</h2> - -<p>June 2, 2006</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 1.0 ("EPL"). A copy of the EPL is available -at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. -For purposes of the EPL, "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>
\ No newline at end of file diff --git a/bundles/org.eclipse.e4.core.contexts.debug/build.properties b/bundles/org.eclipse.e4.core.contexts.debug/build.properties deleted file mode 100644 index c05d179bdcc..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2013 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml,\ - OSGI-INF/,\ - plugin.properties,\ - about.html,\ - icons/ -src.includes = icons/,\ - about.html diff --git a/bundles/org.eclipse.e4.core.contexts.debug/forceQualifierUpdate.txt b/bundles/org.eclipse.e4.core.contexts.debug/forceQualifierUpdate.txt deleted file mode 100644 index 56f1032a8a4..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/forceQualifierUpdate.txt +++ /dev/null @@ -1,2 +0,0 @@ -# To force a version qualifier update add the bug here -Bug 403352 - Update all parent versions to match our build stream diff --git a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/contexts.gif b/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/contexts.gif Binary files differdeleted file mode 100644 index 0a997f30ba3..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/contexts.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/refresh.gif b/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/refresh.gif Binary files differdeleted file mode 100644 index 3ca04d06ff9..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/refresh.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/target.gif b/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/target.gif Binary files differdeleted file mode 100644 index 17960c96b95..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/icons/full/obj16/target.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.core.contexts.debug/plugin.properties b/bundles/org.eclipse.e4.core.contexts.debug/plugin.properties deleted file mode 100644 index a099b0cdef7..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/plugin.properties +++ /dev/null @@ -1,16 +0,0 @@ -############################################################################### -# Copyright (c) 2010, 2012 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### - -pluginName = Eclipse Context Trace and Debug -providerName = Eclipse.org -traceView = Contexts Trace and Debug - -extension.contextdebugmodel.name = Context Trace and Debug diff --git a/bundles/org.eclipse.e4.core.contexts.debug/plugin.xml b/bundles/org.eclipse.e4.core.contexts.debug/plugin.xml deleted file mode 100644 index 4198b735403..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/plugin.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.4"?> -<plugin> - <extension - id="ContextDebug" - name="%extension.contextdebugmodel.name" - point="org.eclipse.e4.workbench.model"> - <processor - beforefragment="true" - class="org.eclipse.e4.core.internal.contexts.debug.ui.e4.ContextsDebugProcessor"> - </processor> - </extension> - <extension - point="org.eclipse.ui.views"> - <view - category="org.eclipse.debug.ui" - class="org.eclipse.e4.core.internal.contexts.debug.ui.legacy.ContextTraceLegacyView" - id="org.eclipse.e4.core.contexts.debug.view.legacy" - name="%traceView" - restorable="true"> - </view> - </extension> -</plugin> diff --git a/bundles/org.eclipse.e4.core.contexts.debug/pom.xml b/bundles/org.eclipse.e4.core.contexts.debug/pom.xml deleted file mode 100644 index 37228e36dac..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (c) 2012, 2013 Eclipse Foundation and others. - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Distribution License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/org/documents/edl-v10.php - - Contributors: - Igor Fedorenko - initial implementation ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <artifactId>eclipse.platform.ui</artifactId> - <groupId>eclipse.platform.ui</groupId> - <version>4.4.0-SNAPSHOT</version> - <relativePath>../../</relativePath> - </parent> - <groupId>org.eclipse.e4</groupId> - <artifactId>org.eclipse.e4.core.contexts.debug</artifactId> - <version>0.1.100-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> -</project> diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/Activator.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/Activator.java deleted file mode 100644 index 8ac82bb6457..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/Activator.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * 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.e4.core.contexts.debug"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - public Activator() { - } - - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - public static Activator getDefault() { - return plugin; - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/AllocationRecorder.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/AllocationRecorder.java deleted file mode 100644 index d91aefe3cb5..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/AllocationRecorder.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.Collections; -import java.util.Map; -import java.util.Set; -import java.util.WeakHashMap; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.internal.contexts.EclipseContext; - -public class AllocationRecorder { - - static private AllocationRecorder defaultRecorder; - - private Map<EclipseContext, Throwable> traces = Collections.synchronizedMap(new WeakHashMap<EclipseContext, Throwable>()); - - static public AllocationRecorder getDefault() { - if (defaultRecorder == null) - defaultRecorder = new AllocationRecorder(); - return defaultRecorder; - } - - public AllocationRecorder() { - // placeholder - } - - public void allocated(EclipseContext context, Throwable exception) { - traces.put(context, exception); - } - - public void disposed(IEclipseContext context) { - traces.remove(context); - } - - public Throwable getTrace(IEclipseContext context) { - return traces.get(context); - } - - public Set<EclipseContext> getContexts() { - return traces.keySet(); - } -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextAllocation.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextAllocation.java deleted file mode 100644 index 42d3d80049d..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextAllocation.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.TabFolder; -import org.eclipse.swt.widgets.TabItem; -import org.eclipse.swt.widgets.Text; - -public class ContextAllocation { - static private final String EMPTY = ""; //$NON-NLS-1$ - static private final String NEW_LINE = System.getProperty("line.separator"); //$NON-NLS-1$ - - final private TabFolder folder; - - private TabItem tabData; - private Text text; - private IEclipseContext selectedContext; - - public ContextAllocation(TabFolder folder) { - this.folder = folder; - } - - public void createControls() { - tabData = new TabItem(folder, SWT.NONE, 1); - tabData.setText(ContextMessages.allocationsTab); - - Composite pageData = new Composite(folder, SWT.NONE); - tabData.setControl(pageData); - - new Label(pageData, SWT.NONE).setText(ContextMessages.allocationsLabel); - text = new Text(pageData, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.READ_ONLY); - text.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); - - GridLayout rightPaneLayout = new GridLayout(); - rightPaneLayout.marginHeight = 0; - rightPaneLayout.marginWidth = 0; - pageData.setLayout(rightPaneLayout); - } - - public void setInput(IEclipseContext newContext) { - if (newContext == selectedContext) - return; - selectedContext = newContext; - if (selectedContext == null) { - text.setText(EMPTY); - return; - } - Throwable t = AllocationRecorder.getDefault().getTrace(selectedContext); - String traceText; - if (t == null) - traceText = EMPTY; - else { - StackTraceElement[] elements = t.getStackTrace(); - StringBuffer tmp = new StringBuffer(); - for (int i = 1; i < elements.length; i++) { // skip 1st element - that's debug class - StackTraceElement stackTraceElement = elements[i]; - tmp.append(stackTraceElement.toString()); - tmp.append(NEW_LINE); - } - traceText = tmp.toString(); - } - text.setText(traceText); - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextData.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextData.java deleted file mode 100644 index 85d2de05d29..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextData.java +++ /dev/null @@ -1,384 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.HashSet; -import java.util.LinkedList; -import java.util.Map; -import java.util.Set; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.jface.resource.FontRegistry; -import org.eclipse.jface.viewers.ITableFontProvider; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerComparator; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.graphics.Font; -import org.eclipse.swt.graphics.FontData; -import org.eclipse.swt.graphics.Image; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.TabFolder; -import org.eclipse.swt.widgets.TabItem; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.swt.widgets.TreeColumn; -import org.eclipse.ui.dialogs.FilteredTree; -import org.eclipse.ui.dialogs.PatternFilter; - -// Normal - locally defined simple data -// Bold - locally defined computed functions -// Italic - locally cached values for the computed functions - -public class ContextData { - - private final static String EMPTY_STRING = ""; //$NON-NLS-1$ - - static private class ContextDataElement { - - public enum DataType { - NORMAL, CALCULATED, CALCULATED_INHERITED - } - - private String key; - private Object value; - private DataType type; - - public ContextDataElement(String key, Object value, DataType type) { - this.key = key; - this.value = value; - this.type = type; - } - - public String getKey() { - return key; - } - - public Object getValue() { - return value; - } - - public DataType getType() { - return type; - } - } - - private class ContextDataContentProvider implements ITreeContentProvider { - - private EclipseContext selectedContext; - - public ContextDataContentProvider() { - // placeholder - } - - public void dispose() { - selectedContext = null; - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - selectedContext = (EclipseContext) newInput; - } - - public Object[] getElements(Object inputElement) { - if (selectedContext == null) - return new Object[0]; - Map<String, Object> localData = selectedContext.localData(); - Map<String, Object> localContextFunction = selectedContext.localContextFunction(); - Map<String, Object> cachedCachedContextFunctions = selectedContext.cachedCachedContextFunctions(); - - int size = localData.size() + localContextFunction.size() + cachedCachedContextFunctions.size(); - Set<ContextDataElement> result = new HashSet<ContextDataElement>(size); - for (String key : localData.keySet()) { - result.add(new ContextDataElement(key, localData.get(key), ContextDataElement.DataType.NORMAL)); - } - if (showFunctions) { - for (String key : localContextFunction.keySet()) { - result.add(new ContextDataElement(key, localContextFunction.get(key), ContextDataElement.DataType.CALCULATED)); - } - } - if (showCached) { - for (String key : cachedCachedContextFunctions.keySet()) { - result.add(new ContextDataElement(key, cachedCachedContextFunctions.get(key), ContextDataElement.DataType.CALCULATED_INHERITED)); - } - } - return result.toArray(); - } - - public Object[] getChildren(Object parentElement) { - return null; - } - - public Object getParent(Object element) { - return null; - } - - public boolean hasChildren(Object element) { - return false; - } - } - - private class ContextDataLabelProvider extends LabelProvider implements ITableLabelProvider, ITableFontProvider { - - public ContextDataLabelProvider() { - // placeholder - } - - public String getColumnText(Object obj, int index) { - if (obj == null) - return null; - if (!(obj instanceof ContextDataElement)) - return obj.toString(); - switch (index) { - case 0 : - return ((ContextDataElement) obj).getKey(); - case 1 : - Object value = ((ContextDataElement) obj).getValue(); - if (value == null) - return EMPTY_STRING; - return value.toString(); - default : - return obj.toString(); - } - } - - public String getText(Object element) { - return getColumnText(element, 0); - } - - public Image getColumnImage(Object obj, int index) { - return null; - } - - public Image getImage(Object obj) { - return null; - } - - public Font getFont(Object element, int columnIndex) { - ContextDataElement.DataType type = ((ContextDataElement) element).getType(); - switch (type) { - case NORMAL : - return null; - case CALCULATED : { - return getBold(); - } - case CALCULATED_INHERITED : { - return getItalic(); - } - } - return null; - } - } - - static private class ContextDataComparator extends ViewerComparator { - final ContextDataLabelProvider labelProvider; - private LinkedList<Integer> sortColumns = new LinkedList<Integer>(); - private boolean ascending = true; - - public ContextDataComparator(ContextDataLabelProvider labelProvider) { - this.labelProvider = labelProvider; - for (int i = 0; i < NUM_OF_COLUMNS; i++) { - sortColumns.add(i); - } - } - - public final int compare(final Viewer viewer, final Object a, final Object b) { - int result = 0; - for (int column : sortColumns) { - String labelA = labelProvider.getColumnText(a, column); - String labelB = labelProvider.getColumnText(b, column); - if (labelA == null || labelB == null) - continue; - result = getComparator().compare(labelA, labelB); - if (result != 0) - break; - } - return (ascending) ? result : -result; - } - - public int getSortColumn() { - return sortColumns.getFirst(); - } - - public void setSortColumn(int column) { - if (column == getSortColumn()) - return; - sortColumns.remove(column); - sortColumns.addFirst(column); - } - - public boolean isAscending() { - return ascending; - } - - public void setAscending(boolean ascending) { - this.ascending = ascending; - } - } - - private final class SortColumn extends SelectionAdapter { - private final ContextDataComparator comparator; - private final TreeColumn treeColumn; - private final TreeViewer viewer; - private final int column; - - public SortColumn(ContextDataComparator comparator, TreeColumn treeColumn, TreeViewer viewer, int column) { - this.comparator = comparator; - this.treeColumn = treeColumn; - this.viewer = viewer; - this.column = column; - } - - public void widgetSelected(SelectionEvent e) { - if (comparator.getSortColumn() == column) { - comparator.setAscending(!comparator.isAscending()); - viewer.getTree().setSortDirection(comparator.isAscending() ? SWT.UP : SWT.DOWN); - } else { - viewer.getTree().setSortColumn(treeColumn); - comparator.setSortColumn(column); - } - try { - viewer.getTree().setRedraw(false); - viewer.refresh(); - } finally { - viewer.getTree().setRedraw(true); - } - } - } - - static protected int NUM_OF_COLUMNS = 2; - static protected int CONTEXT_DATA_KEY_COLUMN = 0; - static protected int CONTEXT_DATA_VALUE_COLUMN = 1; - - final private TabFolder folder; - protected TreeViewer dataViewer; - private TabItem tabData; - - protected Button showFunctionsButton; - protected Button showCachedButton; - - protected boolean showFunctions; - protected boolean showCached; - - private FontRegistry registry; - private Font bold; - private Font italic; - - public ContextData(TabFolder folder) { - this.folder = folder; - registry = new FontRegistry(); - } - - public TreeViewer createControls() { - fillFontCache(); - - tabData = new TabItem(folder, SWT.NONE, 0); - tabData.setText(ContextMessages.dataTab); - Composite pageData = new Composite(folder, SWT.NONE); - tabData.setControl(pageData); - - GridLayout rightPaneLayout = new GridLayout(); - rightPaneLayout.marginHeight = 0; - rightPaneLayout.marginWidth = 0; - pageData.setLayout(rightPaneLayout); - - FilteredTree dataTree = new FilteredTree(pageData, SWT.BORDER | SWT.FULL_SELECTION | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter(), true); - GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true); - dataTree.setLayoutData(gridData); - dataViewer = dataTree.getViewer(); - - ContextDataLabelProvider labelProvider = new ContextDataLabelProvider(); - ContextDataContentProvider contentProvider = new ContextDataContentProvider(); - ContextDataComparator comparator = new ContextDataComparator(labelProvider); - dataViewer.setComparator(comparator); - - final Tree tree = dataViewer.getTree(); - tree.setHeaderVisible(true); - tree.setLinesVisible(true); - - final TreeColumn keyColumn = new TreeColumn(tree, SWT.LEFT); - keyColumn.setText(ContextMessages.keyColumn); - tree.setSortColumn(keyColumn); - tree.setSortDirection(comparator.isAscending() ? SWT.UP : SWT.DOWN); - keyColumn.addSelectionListener(new SortColumn(comparator, keyColumn, dataViewer, CONTEXT_DATA_KEY_COLUMN)); - - final TreeColumn dataColumn = new TreeColumn(tree, SWT.LEFT); - dataColumn.setText(ContextMessages.valueColumn); - dataColumn.addSelectionListener(new SortColumn(comparator, dataColumn, dataViewer, CONTEXT_DATA_VALUE_COLUMN)); - - dataViewer.setContentProvider(contentProvider); - dataViewer.setLabelProvider(labelProvider); - - dataTree.getPatternFilter().setIncludeLeadingWildcard(true); - - final TreeColumn[] columns = dataViewer.getTree().getColumns(); - columns[CONTEXT_DATA_KEY_COLUMN].setWidth(150); - columns[CONTEXT_DATA_VALUE_COLUMN].setWidth(150); - - showFunctionsButton = new Button(pageData, SWT.CHECK); - showFunctionsButton.setFont(getBold()); - showFunctionsButton.setText(ContextMessages.showFunctions); - showFunctionsButton.addSelectionListener(new SelectionListener() { - public void widgetSelected(SelectionEvent e) { - showFunctions = showFunctionsButton.getSelection(); - dataViewer.refresh(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - widgetSelected(e); - } - }); - showFunctionsButton.setSelection(true); - showFunctions = true; - - showCachedButton = new Button(pageData, SWT.CHECK); - showCachedButton.setFont(getItalic()); - showCachedButton.setText(ContextMessages.showCached); - showCachedButton.addSelectionListener(new SelectionListener() { - public void widgetSelected(SelectionEvent e) { - showCached = showCachedButton.getSelection(); - dataViewer.refresh(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - widgetSelected(e); - } - }); - showCachedButton.setSelection(true); - showCached = true; - - return dataViewer; - } - - protected void fillFontCache() { - FontData[] fontData = Display.getCurrent().getSystemFont().getFontData(); - String fontName = fontData[0].getName(); - // TBD use FontRegistry's default font and add a listener in case it changes - bold = registry.getBold(fontName); - italic = registry.getItalic(fontName); - } - - protected Font getBold() { - return bold; - } - - protected Font getItalic() { - return italic; - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextLinks.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextLinks.java deleted file mode 100644 index 79d6c913685..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextLinks.java +++ /dev/null @@ -1,111 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.Set; -import org.eclipse.e4.core.internal.contexts.Computation; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.TabFolder; -import org.eclipse.swt.widgets.TabItem; -import org.eclipse.ui.dialogs.FilteredTree; -import org.eclipse.ui.dialogs.PatternFilter; - -public class ContextLinks { - - static private class LinksContentProvider implements ITreeContentProvider { - - private EclipseContext selectedContext; - - public LinksContentProvider() { - // placeholder - } - - public void dispose() { - selectedContext = null; - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - selectedContext = (EclipseContext) newInput; - } - - public Object[] getElements(Object inputElement) { - if (selectedContext == null) - return new Object[0]; - Set<String> listeners = selectedContext.getRawListenerNames(); - return listeners.toArray(); - } - - public Object[] getChildren(Object parentElement) { - if (parentElement instanceof String) { - Set<Computation> tmp = selectedContext.getListeners((String) parentElement); - return tmp.toArray(); - } - return null; - } - - public Object getParent(Object element) { - return null; - } - - public boolean hasChildren(Object element) { - if (element instanceof String) { - Set<Computation> tmp = selectedContext.getListeners((String) element); - return !tmp.isEmpty(); - } - return false; - } - } - - final private TabFolder folder; - private TreeViewer dataViewer; - private TabItem tabData; - - public ContextLinks(TabFolder folder) { - this.folder = folder; - } - - public TreeViewer createControls() { - tabData = new TabItem(folder, SWT.NONE, 2); - tabData.setText(ContextMessages.linksTab); - - Composite pageData = new Composite(folder, SWT.NONE); - tabData.setControl(pageData); - - new Label(pageData, SWT.NONE).setText(ContextMessages.linksLabel); - - GridLayout rightPaneLayout = new GridLayout(); - rightPaneLayout.marginHeight = 0; - rightPaneLayout.marginWidth = 0; - pageData.setLayout(rightPaneLayout); - - FilteredTree dataTree = new FilteredTree(pageData, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter(), true); - GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true); - dataTree.setLayoutData(gridData); - dataViewer = dataTree.getViewer(); - - LinksContentProvider contentProvider = new LinksContentProvider(); - - dataViewer.setContentProvider(contentProvider); - dataViewer.setLabelProvider(new LabelProvider()); - - dataTree.getPatternFilter().setIncludeLeadingWildcard(true); - return dataViewer; - } -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextMessages.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextMessages.java deleted file mode 100644 index 62d75f09498..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextMessages.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import org.eclipse.osgi.util.NLS; - -public class ContextMessages extends NLS { - - private static final String BUNDLE_NAME = "org.eclipse.e4.core.internal.contexts.debug.ui.messages"; //$NON-NLS-1$ - - // Context tracing view - public static String dataTab; - public static String allocationsTab; - public static String linksTab; - public static String keyColumn; - public static String valueColumn; - public static String linksLabel; - public static String allocationsLabel; - public static String contextTreeLabel; - public static String showFunctions; - public static String showCached; - public static String leaksGroup; - public static String snapshotButton; - public static String diffButton; - public static String refreshGroup; - public static String autoUpdateButton; - public static String diffDialogTitle; - public static String diffDialogMessage; - public static String noDiffMsg; - public static String contextGCed; - public static String targetButtonTooltip; - public static String refreshButtonTooltip; - - static { - // load message values from bundle file - reloadMessages(); - } - - public static void reloadMessages() { - NLS.initializeMessages(BUNDLE_NAME, ContextMessages.class); - } -}
\ No newline at end of file diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextSnapshot.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextSnapshot.java deleted file mode 100644 index d734c72fefe..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextSnapshot.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Map; -import java.util.Set; -import org.eclipse.e4.core.internal.contexts.Computation; -import org.eclipse.e4.core.internal.contexts.EclipseContext; - -/** - * Note that diff() excludes "transient" contexts - contexts that are not present - * in either "old" or "new" snapshots. - */ -public class ContextSnapshot { - - private Map<EclipseContext, Set<Computation>> snapshotOriginal; - - public ContextSnapshot() { - snapshotOriginal = record(); - } - - private Map<EclipseContext, Set<Computation>> record() { - Map<EclipseContext, Set<Computation>> snapshot = new HashMap<EclipseContext, Set<Computation>>(); - Set<EclipseContext> contexts = AllocationRecorder.getDefault().getContexts(); - for (EclipseContext context : contexts) { - record(snapshot, context); - } - return snapshot; - } - - private void record(Map<EclipseContext, Set<Computation>> snapshot, EclipseContext context) { - Set<Computation> listeners = context.getListeners(); - Set<Computation> localListeners = new HashSet<Computation>(listeners.size()); - localListeners.addAll(listeners); // make a copy - snapshot.put(context, localListeners); - - Set<EclipseContext> children = context.getChildren(); - if (children == null) - return; - for (EclipseContext child : context.getChildren()) { - record(snapshot, child); - } - } - - public Map<EclipseContext, Set<Computation>> diff() { - Map<EclipseContext, Set<Computation>> snapshotNew = record(); - - // create a list of contexts present in both old and new snapshots - for (Iterator<EclipseContext> i = snapshotNew.keySet().iterator(); i.hasNext();) { - EclipseContext context = i.next(); - if (!snapshotOriginal.containsKey(context)) - i.remove(); - } - - for (Iterator<EclipseContext> i = snapshotNew.keySet().iterator(); i.hasNext();) { - EclipseContext context = i.next(); - Set<Computation> oldComputation = snapshotOriginal.get(context); - Set<Computation> newComputation = snapshotNew.get(context); - newComputation.removeAll(oldComputation); - if (newComputation.isEmpty()) - i.remove(); - } - - if (snapshotNew.isEmpty()) - return null; - return snapshotNew; - } -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextTreeProvider.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextTreeProvider.java deleted file mode 100644 index 525e44e7310..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextTreeProvider.java +++ /dev/null @@ -1,183 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.lang.ref.WeakReference; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Set; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.e4.core.internal.contexts.IEclipseContextDebugger; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.progress.UIJob; - -public class ContextTreeProvider implements IEclipseContextDebugger, ITreeContentProvider { - - private class RefreshJob extends UIJob { - public RefreshJob(Display display) { - super(display, "Context debug update job"); //$NON-NLS-1$ - setSystem(true); - } - - public IStatus runInUIThread(IProgressMonitor monitor) { - if (monitor.isCanceled()) - return Status.OK_STATUS; - if (view != null) - view.refresh(); - return Status.OK_STATUS; - } - } - - final private static int REFRESH_DELAY = 5000; // 5sec delay between refreshes - - static private Set<WeakReference<EclipseContext>> activeContexts = new HashSet<WeakReference<EclipseContext>>(); - - static protected ContextsView view; // we have maximum one view - - static protected RefreshJob refreshJob; - - private Display display; - - public ContextTreeProvider() { - // used by Declarative Services - } - - public ContextTreeProvider(ContextsView contextView, Display display) { - view = contextView; - this.display = display; - refreshJob = new RefreshJob(display); - } - - public void setAutoUpdates(boolean update) { - if (update) { - if (refreshJob == null && display != null) - refreshJob = new RefreshJob(display); - } else { - if (refreshJob != null) { - refreshJob.cancel(); - refreshJob = null; - } - } - } - - public void dispose() { - if (refreshJob != null) - refreshJob.cancel(); - view = null; - } - - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - // nothing to do - } - - public Object[] getElements(Object inputElement) { - for (Iterator<WeakReference<EclipseContext>> i = activeContexts.iterator(); i.hasNext();) { - WeakReference<EclipseContext> ref = i.next(); - EclipseContext storedRoot = ref.get(); - if (storedRoot == null) - i.remove(); - } - return activeContexts.toArray(); - } - - public Object[] getChildren(Object parentElement) { - if (!(parentElement instanceof WeakReference<?>)) - return null; - @SuppressWarnings("unchecked") - WeakReference<EclipseContext> ref = (WeakReference<EclipseContext>) parentElement; - EclipseContext parentContext = ref.get(); - if (parentContext == null) - return null; - Set<EclipseContext> children = parentContext.getChildren(); - if (children == null) - return null; - Set<WeakReference<EclipseContext>> childrenRef = new HashSet<WeakReference<EclipseContext>>(children.size()); - for (EclipseContext child : children) { - childrenRef.add(new WeakContextRef(child)); - } - return childrenRef.toArray(); - } - - public Object getParent(Object element) { - return null; - } - - public boolean hasChildren(Object element) { - if (!(element instanceof WeakReference<?>)) - return false; - @SuppressWarnings("unchecked") - WeakReference<EclipseContext> ref = (WeakReference<EclipseContext>) element; - EclipseContext parentContext = ref.get(); - if (parentContext == null) - return false; - return (parentContext.getChildren() != null); - } - - synchronized public void notify(EclipseContext context, IEclipseContextDebugger.EventType type, Object data) { - switch (type) { - case CONSTRUCTED : - AllocationRecorder.getDefault().allocated(context, new Exception()); - EclipseContext newRoot = getRoot(context); - boolean found = false; - for (Iterator<WeakReference<EclipseContext>> i = activeContexts.iterator(); i.hasNext();) { - WeakReference<EclipseContext> ref = i.next(); - EclipseContext storedRoot = ref.get(); - if (storedRoot == null) { - i.remove(); - continue; - } - if (storedRoot == newRoot) { - found = true; - break; - } - } - if (!found) - activeContexts.add(new WeakContextRef(context)); - if (view != null && refreshJob != null) - refreshJob.schedule(REFRESH_DELAY); - break; - case DISPOSED : - for (Iterator<WeakReference<EclipseContext>> i = activeContexts.iterator(); i.hasNext();) { - WeakReference<EclipseContext> ref = i.next(); - EclipseContext storedRoot = ref.get(); - if (storedRoot == null) { - i.remove(); - continue; - } - if (storedRoot == context) { - i.remove(); - break; - } - } - if (view != null && refreshJob != null) - refreshJob.schedule(REFRESH_DELAY); - break; - case LISTENER_ADDED : - break; - } - } - - private EclipseContext getRoot(IEclipseContext context) { - IEclipseContext root = context; - while (context != null) { - root = context; - context = context.getParent(); - } - return (EclipseContext) root; - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextsView.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextsView.java deleted file mode 100644 index 1349239f063..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/ContextsView.java +++ /dev/null @@ -1,267 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.lang.ref.WeakReference; -import java.util.Map; -import java.util.Set; -import javax.inject.Inject; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.di.annotations.Optional; -import org.eclipse.e4.core.di.extensions.EventTopic; -import org.eclipse.e4.core.internal.contexts.Computation; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.e4.ui.di.Focus; -import org.eclipse.e4.ui.model.application.ui.basic.MPart; -import org.eclipse.e4.ui.model.application.ui.menu.MDirectToolItem; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBar; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuFactoryImpl; -import org.eclipse.jface.layout.GridLayoutFactory; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ITreeSelection; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.TreePath; -import org.eclipse.jface.viewers.TreeSelection; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.ViewerSorter; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.SashForm; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Group; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.MessageBox; -import org.eclipse.swt.widgets.TabFolder; -import org.eclipse.swt.widgets.Tree; - -public class ContextsView { - - public static final String SELECT_EVENT = "e4/contexts/debug/selectContext"; //$NON-NLS-1$ - public static final String REFRESH_EVENT = "e4/contexts/debug/refreshView"; //$NON-NLS-1$ - - protected TreeViewer treeViewer; - protected TreeViewer dataViewer; - protected ContextAllocation allocationsViewer; - protected TreeViewer linksViewer; - - protected ContextTreeProvider treeProvider; - - protected Button diffButton; - protected Button snapshotButton; - protected Button autoUpdateButton; - - @Inject - public ContextsView(Composite parent, MPart part) { - SashForm sashForm = new SashForm(parent, SWT.HORIZONTAL); - sashForm.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); - - Composite treeComposite = new Composite(sashForm, SWT.NONE); - treeComposite.setLayout(new GridLayout()); - GridLayout compositeTreeLayout = new GridLayout(); - compositeTreeLayout.marginHeight = 0; - compositeTreeLayout.marginWidth = 0; - treeComposite.setLayout(compositeTreeLayout); - treeComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true)); - - Label treeLabel = new Label(treeComposite, SWT.NONE); - treeLabel.setText(ContextMessages.contextTreeLabel); - - treeViewer = new TreeViewer(treeComposite); - Tree tree = treeViewer.getTree(); - GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true); - tree.setLayoutData(gridData); - treeViewer.addSelectionChangedListener(new ISelectionChangedListener() { - public void selectionChanged(SelectionChangedEvent event) { - StructuredSelection selection = (StructuredSelection) event.getSelection(); - @SuppressWarnings("unchecked") - WeakReference<EclipseContext> selected = (WeakReference<EclipseContext>) selection.getFirstElement(); - selectedContext((selected == null) ? null : selected.get()); - } - }); - - treeProvider = new ContextTreeProvider(this, parent.getDisplay()); - treeViewer.setContentProvider(treeProvider); - treeViewer.setLabelProvider(new LabelProvider() { - public String getText(Object element) { - @SuppressWarnings("unchecked") - WeakReference<EclipseContext> ref = (WeakReference<EclipseContext>) element; - EclipseContext parentContext = ref.get(); - if (parentContext != null) - return parentContext.toString(); - return ContextMessages.contextGCed; - } - }); - treeViewer.setSorter(new ViewerSorter()); - treeViewer.setInput(new Object()); // can't use null - - final TabFolder folder = new TabFolder(sashForm, SWT.TOP); - - ContextData contextData = new ContextData(folder); - dataViewer = contextData.createControls(); - - allocationsViewer = new ContextAllocation(folder); - allocationsViewer.createControls(); - - ContextLinks links = new ContextLinks(folder); - linksViewer = links.createControls(); - - Composite buttons = new Composite(treeComposite, SWT.NONE); - buttons.setLayout(new GridLayout()); - buttons.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); - - Group leaksHelper = new Group(buttons, SWT.NONE); - leaksHelper.setLayout(new GridLayout(2, true)); - leaksHelper.setText(ContextMessages.leaksGroup); - leaksHelper.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); - - snapshotButton = new Button(leaksHelper, SWT.PUSH); - snapshotButton.setText(ContextMessages.snapshotButton); - snapshotButton.addSelectionListener(new SelectionListener() { - public void widgetSelected(SelectionEvent e) { - makeSnapshot(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - widgetSelected(e); - } - }); - - diffButton = new Button(leaksHelper, SWT.PUSH); - diffButton.setText(ContextMessages.diffButton); - diffButton.addSelectionListener(new SelectionListener() { - public void widgetSelected(SelectionEvent e) { - makeDiff(); - } - - public void widgetDefaultSelected(SelectionEvent e) { - widgetSelected(e); - } - }); - diffButton.setEnabled(false); - - autoUpdateButton = new Button(buttons, SWT.CHECK); - autoUpdateButton.setText(ContextMessages.autoUpdateButton); - autoUpdateButton.setSelection(true); - autoUpdateButton.addSelectionListener(new SelectionListener() { - public void widgetSelected(SelectionEvent e) { - if (autoUpdateButton.getSelection()) { - treeProvider.setAutoUpdates(true); - fullRefresh(); - } else { - treeProvider.setAutoUpdates(false); - } - } - - public void widgetDefaultSelected(SelectionEvent e) { - widgetSelected(e); - } - }); - - createToolbar(part); - GridLayoutFactory.fillDefaults().generateLayout(parent); - } - - protected void fullRefresh() { - refresh(); - ITreeSelection selection = (ITreeSelection) treeViewer.getSelection(); - if (!selection.isEmpty()) { - @SuppressWarnings("unchecked") - WeakReference<EclipseContext> ref = (WeakReference<EclipseContext>) selection.getFirstElement(); - EclipseContext selectedContext = ref.get(); - selectedContext(selectedContext); - } - } - - protected void selectedContext(IEclipseContext selected) { - dataViewer.setInput(selected); - allocationsViewer.setInput(selected); - linksViewer.setInput(selected); - } - - public void refresh() { - treeViewer.refresh(); - } - - @Focus - public void setFocus() { - treeViewer.getControl().setFocus(); - } - - protected ContextSnapshot snapshot; - - protected void makeSnapshot() { - // TBD do we need to "freeze" the context system while we do this? - snapshot = new ContextSnapshot(); - diffButton.setEnabled(true); - } - - protected void makeDiff() { - if (snapshot == null) - return; - Map<EclipseContext, Set<Computation>> snapshotDiff = snapshot.diff(); - if (snapshotDiff == null) { - MessageBox dialog = new MessageBox(snapshotButton.getShell(), SWT.OK); - dialog.setMessage(ContextMessages.noDiffMsg); - dialog.setText(ContextMessages.diffDialogTitle); - dialog.open(); - return; - } - LeaksDialog dialog = new LeaksDialog(snapshotButton.getShell()); - dialog.setInput(snapshotDiff); - dialog.open(); - } - - private void createToolbar(MPart part) { - MToolBar toolBar = part.getToolbar(); - if (toolBar != null) // assume it was already filled last time view was opened - return; - - toolBar = MenuFactoryImpl.eINSTANCE.createToolBar(); - part.setToolbar(toolBar); - - // target button - MDirectToolItem toolItem = MenuFactoryImpl.eINSTANCE.createDirectToolItem(); - toolItem.setIconURI("platform:/plugin/org.eclipse.e4.core.contexts.debug/icons/full/obj16/target.gif"); - toolItem.setTooltip(ContextMessages.targetButtonTooltip); - toolItem.setContributionURI("bundleclass://org.eclipse.e4.core.contexts.debug/org.eclipse.e4.core.internal.contexts.debug.ui.FindTargetAction"); - toolBar.getChildren().add(toolItem); - - // refresh button - MDirectToolItem toolItem2 = MenuFactoryImpl.eINSTANCE.createDirectToolItem(); - toolItem2.setIconURI("platform:/plugin/org.eclipse.e4.core.contexts.debug/icons/full/obj16/refresh.gif"); - toolItem2.setTooltip(ContextMessages.refreshButtonTooltip); - toolItem2.setContributionURI("bundleclass://org.eclipse.e4.core.contexts.debug/org.eclipse.e4.core.internal.contexts.debug.ui.RefreshViewAction"); - toolBar.getChildren().add(toolItem2); - } - - @Inject - @Optional - public void setSelection(@EventTopic(SELECT_EVENT) TreePath path) { - if (path == null) - return; - TreeSelection selection = new TreeSelection(path); - treeViewer.setSelection(selection, true); - treeViewer.getTree().setFocus(); - } - - @Inject - @Optional - public void setSelection(@EventTopic(REFRESH_EVENT) Object data) { - fullRefresh(); - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/FindTargetAction.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/FindTargetAction.java deleted file mode 100644 index cc170d2ff2a..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/FindTargetAction.java +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.LinkedList; -import java.util.List; -import javax.annotation.PreDestroy; -import javax.inject.Inject; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.di.annotations.Execute; -import org.eclipse.e4.core.di.extensions.EventUtils; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.e4.ui.model.application.ui.MContext; -import org.eclipse.e4.ui.model.application.ui.basic.MWindow; -import org.eclipse.jface.viewers.TreePath; -import org.eclipse.swt.SWT; -import org.eclipse.swt.graphics.Cursor; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Event; -import org.eclipse.swt.widgets.Listener; -import org.osgi.service.event.EventAdmin; - -public class FindTargetAction { - - // TBD this is from internal AbstractPartRenderer.OWNING_ME - // make that API - private static final String OWNING_ME = "modelElement"; //$NON-NLS-1$ - - @Inject - public EventAdmin eventAdmin; - - private Cursor targetCursor; - private Cursor displayCursor; - - @Inject - public FindTargetAction(Display display) { - targetCursor = new Cursor(display, SWT.CURSOR_CROSS); - } - - @PreDestroy - public void dispose() { - if (targetCursor != null) { - targetCursor.dispose(); - targetCursor = null; - } - } - - @Execute - public void doFindTarget(MWindow win) { - final Control windowWidget = (Control) win.getWidget(); - final Display display = windowWidget.getDisplay(); - - displayCursor = windowWidget.getCursor(); - windowWidget.setCursor(targetCursor); - windowWidget.setCapture(true); - - // This filter list is necessary to avoid not-initialized-errors within the - // actual listener. The filter approach is required as some platforms (e.g., - // MacOS X) don't support setCapture(). - // FIXME: should possible set this up for MouseUp, not MouseDown? - final LinkedList<Listener> filters = new LinkedList<Listener>(); - filters.add(new Listener() { - public void handleEvent(Event event) { - Control control = display.getCursorControl(); - IEclipseContext targetContext = null; - while (control != null) { - Object data = control.getData(OWNING_ME); - if (data instanceof MContext) { - targetContext = ((MContext) data).getContext(); - if (targetContext != null) - break; - } - control = control.getParent(); - } - if (targetContext != null) { - List<WeakContextRef> contexts = new ArrayList<WeakContextRef>(); - while (targetContext != null) { - contexts.add(new WeakContextRef((EclipseContext) targetContext)); - targetContext = targetContext.getParent(); - } - Collections.reverse(contexts); - TreePath path = new TreePath(contexts.toArray()); - EventUtils.send(eventAdmin, ContextsView.SELECT_EVENT, path); - } - windowWidget.setCapture(false); - windowWidget.setCursor(displayCursor); - for (Listener f : filters) { - display.removeFilter(SWT.MouseDown, f); - } - filters.clear(); - } - }); - for (Listener f : filters) { - display.addFilter(SWT.MouseDown, f); - } - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/LeaksDialog.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/LeaksDialog.java deleted file mode 100644 index 57e3c4bd434..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/LeaksDialog.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.util.Map; -import java.util.Set; -import org.eclipse.e4.core.internal.contexts.Computation; -import org.eclipse.e4.core.internal.contexts.EclipseContext; -import org.eclipse.jface.dialogs.IDialogConstants; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerComparator; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.dialogs.ElementTreeSelectionDialog; - -public class LeaksDialog extends ElementTreeSelectionDialog { - - private static class ListenerContentProvider implements ITreeContentProvider { - - private Map<EclipseContext, Set<Computation>> snapshotDiff; - - public ListenerContentProvider() { - // placeholder - } - - public void dispose() { - if (snapshotDiff == null) - return; - snapshotDiff.clear(); - snapshotDiff = null; - } - - @SuppressWarnings("unchecked") - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - snapshotDiff = (Map<EclipseContext, Set<Computation>>) newInput; - } - - @SuppressWarnings("unchecked") - public Object[] getElements(Object inputElement) { - return ((Map<EclipseContext, Set<Computation>>) inputElement).keySet().toArray(); - } - - public Object[] getChildren(Object parentElement) { - if (snapshotDiff == null) - return null; - if (parentElement instanceof EclipseContext) { - return snapshotDiff.get(parentElement).toArray(); - } - return null; - } - - public Object getParent(Object element) { - if (snapshotDiff == null) - return null; - if (element instanceof Computation) { - for (EclipseContext context : snapshotDiff.keySet()) { - Set<Computation> computations = snapshotDiff.get(context); - if (computations.contains(element)) - return context; - } - } - return null; - } - - public boolean hasChildren(Object element) { - if (snapshotDiff == null) - return false; - if (element instanceof EclipseContext) { - if (!snapshotDiff.containsKey(element)) - return false; - if (snapshotDiff.get(element).isEmpty()) - return false; - return true; - } - return false; - } - } - - public LeaksDialog(Shell parent) { - super(parent, new LabelProvider(), new ListenerContentProvider()); - setComparator(new ViewerComparator()); - setTitle(ContextMessages.diffDialogTitle); - setMessage(ContextMessages.diffDialogMessage); - } - - // Only need OK button - protected void createButtonsForButtonBar(Composite parent) { - createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); - } -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/RefreshViewAction.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/RefreshViewAction.java deleted file mode 100644 index 06f9320c637..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/RefreshViewAction.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import javax.inject.Inject; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.di.annotations.Execute; -import org.eclipse.e4.core.di.extensions.EventUtils; -import org.osgi.service.event.EventAdmin; - -public class RefreshViewAction { - - @Inject - public EventAdmin eventAdmin; - - @Inject - public RefreshViewAction() { - // placeholder - } - - @Execute - public void refresh(IEclipseContext context) { - EventUtils.send(eventAdmin, ContextsView.REFRESH_EVENT, null); - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/WeakContextRef.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/WeakContextRef.java deleted file mode 100644 index 32daa996189..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/WeakContextRef.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui; - -import java.lang.ref.WeakReference; -import org.eclipse.e4.core.internal.contexts.EclipseContext; - -public class WeakContextRef extends WeakReference<EclipseContext> { - - private int hashCode; - - public WeakContextRef(EclipseContext referent) { - super(referent); - hashCode = referent.hashCode(); // store it in case referent is GCed - } - - @Override - public boolean equals(Object obj) { - if (!WeakContextRef.class.equals(obj.getClass())) - return false; - - EclipseContext context1 = get(); - EclipseContext context2 = ((WeakContextRef) obj).get(); - if (context1 == null || context2 == null) - return hashCode == ((WeakContextRef) obj).hashCode; - return context1 == context2; - } - - @Override - public int hashCode() { - return hashCode; - } -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/e4/ContextsDebugProcessor.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/e4/ContextsDebugProcessor.java deleted file mode 100644 index 9454e2ac9bf..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/e4/ContextsDebugProcessor.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui.e4; - -import java.util.List; -import javax.inject.Inject; -import org.eclipse.e4.core.di.annotations.Execute; -import org.eclipse.e4.ui.model.application.MApplication; -import org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor; -import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicFactoryImpl; -import org.eclipse.e4.ui.workbench.swt.internal.copy.WorkbenchSWTMessages; - -/* To use e4-style view contribtuion, add to plugin.xml : - <extension - id="ContextDebug" - name="Context Trace and Debug" - point="org.eclipse.e4.workbench.model"> - <processor - beforefragment="true" - class="org.eclipse.e4.core.internal.contexts.debug.ui.e4.ContextsDebugProcessor"> - </processor> - </extension> - */ - -public class ContextsDebugProcessor { - - private final String DESCRIPTOR_ID = "org.eclipse.e4.core.contexts.debug.ui.view"; //$NON-NLS-1$ - - @Inject - public ContextsDebugProcessor() { - // placeholder - } - - @Execute - public void addDebugDescriptor(MApplication application) { - List<MPartDescriptor> descriptors = application.getDescriptors(); - for (MPartDescriptor desc : descriptors) { - if (DESCRIPTOR_ID.equals(desc.getElementId())) - return; // we already have a descriptor - } - - MPartDescriptor descriptor = BasicFactoryImpl.eINSTANCE.createPartDescriptor(); - descriptor.setLabel("Contexts"); // XXX translate - descriptor.setElementId(DESCRIPTOR_ID); - descriptor.setCategory("org.eclipse.e4.secondaryDataStack"); //$NON-NLS-1$ - - List<String> tags = descriptor.getTags(); - tags.add("View"); //$NON-NLS-1$ - tags.add("categoryTag:" + WorkbenchSWTMessages.ICategory_general); //$NON-NLS-1$ - - descriptor.setCloseable(true); - descriptor.setAllowMultiple(false); - descriptor.setContributionURI("bundleclass://org.eclipse.e4.core.contexts.debug/org.eclipse.e4.core.internal.contexts.debug.ui.ContextsView"); - descriptor.setIconURI("platform:/plugin/org.eclipse.e4.core.contexts.debug/icons/full/obj16/contexts.gif"); - - descriptors.add(descriptor); - } - -} diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/legacy/ContextTraceLegacyView.java b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/legacy/ContextTraceLegacyView.java deleted file mode 100644 index 8f3228ba1c5..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/legacy/ContextTraceLegacyView.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.e4.core.internal.contexts.debug.ui.legacy; - -import org.eclipse.e4.core.contexts.ContextInjectionFactory; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.core.internal.contexts.debug.ui.ContextsView; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.part.ViewPart; - -/** - * - - <extension point="org.eclipse.ui.views"> - <view name="%traceView" icon="$nl$/icons/full/obj16/contexts.gif" category="org.eclipse.debug.ui" class="org.eclipse.e4.core.internal.contexts.debug.ui.legacy.ContextTraceLegacyView" id="org.eclipse.e4.core.contexts.debug.TraceView"> - </view> - </extension> - - - - * The 3.x style wrapper for the context tracing view. - */ -public class ContextTraceLegacyView extends ViewPart { - - private ContextsView viewer; - - public ContextTraceLegacyView() { - // placeholder - } - - public void createPartControl(Composite parent) { - IEclipseContext context = (IEclipseContext) getSite().getService(IEclipseContext.class); - viewer = ContextInjectionFactory.make(ContextsView.class, context); - // PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), "org.eclipse.e4.core.contexts.debug.view"); - } - - public void setFocus() { - if (viewer != null) - viewer.setFocus(); - } -}
\ No newline at end of file diff --git a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/messages.properties b/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/messages.properties deleted file mode 100644 index 7b6be5c6a32..00000000000 --- a/bundles/org.eclipse.e4.core.contexts.debug/src/org/eclipse/e4/core/internal/contexts/debug/ui/messages.properties +++ /dev/null @@ -1,33 +0,0 @@ -############################################################################### -# Copyright (c) 2010 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### - -## Context tracing view -dataTab = &Data -allocationsTab = &Trace -linksTab = &Links -allocationsLabel = Context &allocated by: -keyColumn = Key -valueColumn = Value -linksLabel = &Listeners: -contextTreeLabel = &Contexts: -showFunctions = Show calculated &functions -showCached = Show cached calc&ulations -leaksGroup = Listeners: -snapshotButton = &Snapshot -diffButton = &Difference -refreshGroup = Refresh: -autoUpdateButton = &Auto-update -diffDialogTitle = New listeners -diffDialogMessage = New &listeners on non-transient contexts: -noDiffMsg = No new listeners were detected on non-transient contexts. -contextGCed = <garbage collected> -targetButtonTooltip = Find context for a UI element on screen -refreshButtonTooltip = Refresh view @@ -78,7 +78,6 @@ <module>bundles/org.eclipse.core.databinding.observable</module> <module>bundles/org.eclipse.core.databinding.property</module> <module>bundles/org.eclipse.e4.core.commands</module> - <module>bundles/org.eclipse.e4.core.contexts.debug</module> <module>bundles/org.eclipse.e4.emf.xpath</module> <module>bundles/org.eclipse.e4.ui.bindings</module> <module>bundles/org.eclipse.e4.ui.css.core</module> |