[jbosstools-commits] JBoss Tools SVN: r24001 - in trunk/usage: org.jboss.tools.usage/.settings and 36 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Aug 9 10:25:20 EDT 2010


Author: adietish
Date: 2010-08-09 10:25:17 -0400 (Mon, 09 Aug 2010)
New Revision: 24001

Added:
   trunk/usage/org.jboss.tools.usage.test/.classpath
   trunk/usage/org.jboss.tools.usage.test/.project
   trunk/usage/org.jboss.tools.usage.test/.settings/
   trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
   trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
   trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
   trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
   trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
   trunk/usage/org.jboss.tools.usage.test/META-INF/
   trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
   trunk/usage/org.jboss.tools.usage.test/bin/
   trunk/usage/org.jboss.tools.usage.test/bin/org/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/
   trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
   trunk/usage/org.jboss.tools.usage.test/build.properties
   trunk/usage/org.jboss.tools.usage.test/src/
   trunk/usage/org.jboss.tools.usage.test/src/org/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/
   trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
   trunk/usage/org.jboss.tools.usage/.classpath
   trunk/usage/org.jboss.tools.usage/.project
   trunk/usage/org.jboss.tools.usage/.settings/
   trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
   trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
   trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
   trunk/usage/org.jboss.tools.usage/META-INF/
   trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
   trunk/usage/org.jboss.tools.usage/bin/
   trunk/usage/org.jboss.tools.usage/bin/org/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
   trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
   trunk/usage/org.jboss.tools.usage/build.properties
   trunk/usage/org.jboss.tools.usage/plugin.xml
   trunk/usage/org.jboss.tools.usage/src/
   trunk/usage/org.jboss.tools.usage/src/org/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
   trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
Log:
initial commit

Added: trunk/usage/org.jboss.tools.usage/.classpath
===================================================================
--- trunk/usage/org.jboss.tools.usage/.classpath	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.classpath	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>


Property changes on: trunk/usage/org.jboss.tools.usage/.classpath
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/.project
===================================================================
--- trunk/usage/org.jboss.tools.usage/.project	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.project	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.jboss.tools.usage</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>
+		<buildCommand>
+			<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+	</natures>
+</projectDescription>


Property changes on: trunk/usage/org.jboss.tools.usage/.project
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,260 @@
+#Fri Aug 06 17:57:19 CEST 2010
+eclipse.preferences.version=1
+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=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=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=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+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=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=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=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=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=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


Property changes on: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,6 @@
+#Wed Jul 28 11:02:07 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
+org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecommen!
 t_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2008 Red Hat, Inc.\n * Distributed under license by Red Hat, Inc. All rights reserved.\n * This program is made available under the terms of the\n * Eclipse Public License v1.0 which accompanies this distribution,\n * and is available at http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n *     Red Hat, Inc. - initial API and implementation\n ******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><templa!
 te autoinsert\="true" context\="fieldcomment_context" deleted\!
 ="false"
 description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinser!
 t\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbod!
 y_context" deleted\="false" description\="Code in new annotati!
 on type 
bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template>!
 <template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${pa!
 ram} the ${bare_field_name} to set\n */</template><template au!
 toinsert
\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n !
 * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.ec!
 lipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">!
 ${fileco
mment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code i!
 n created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>


Property changes on: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="true"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/JBoss Usage Reporter"/>
+<booleanAttribute key="default" value="false"/>
+<stringAttribute key="deselected_workspace_plugins" value="org.jboss.tools.usage.analytics.javascript.test,org.jboss.tools.usage.analytics.javascript,org.jboss.tools.usage.test"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseApplication"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<booleanAttribute key="pde.generated.config" value="false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.equinox.transforms.hook at default:false,org.eclipse.ecf at default:default,org.eclipse.ui.intro at default:default,org.eclipse.ui.navigator at default:default,org.eclipse.ui.ide.application at default:default,org.eclipse.core.runtime.compatibility.registry at default:false,org.eclipse.jface.databinding at default:default,com.springsource.javax.el at default:default,org.eclipse.equinox.p2.artifact.repository at default:default,org.eclipse.core.resources.compatibility at default:false,org.eclipse.help.base at default:default,org.apache.ant at default:default,org.eclipse.core.jobs at default:default,org.eclipse.swt at default:default,org.eclipse.ui.intro.universal at default:default,org.eclipse.core.resources at default:default,org.eclipse.equinox.security at default:default,org.eclipse.core.filesystem.linux.x86 at default:false,org.eclipse.equinox.p2.metadata at default:default,org.eclipse.equinox.p2.metadata.repository at default:default,org.eclipse.core.expressions at d!
 efault:default,org.eclipse.core.runtime.compatibility.auth at default:default,org.eclipse.core.net at default:default,org.eclipse.ui.ide at default:default,org.eclipse.help at default:default,org.eclipse.core.databinding.observable at default:default,org.eclipse.ui.forms at default:default,org.eclipse.core.filesystem at default:default,com.springsource.javax.servlet.jsp at default:default,org.hamcrest.core at default:default,com.springsource.javax.servlet at default:default,org.eclipse.ecf.identity at default:default,org.jboss.tools.xulrunner.initializer at default:false,org.eclipse.swt.gtk.linux.x86 at default:false,org.eclipse.ui.navigator.resources at default:default,org.eclipse.text at default:default,org.eclipse.ecf.ssl at default:false,org.eclipse.equinox.app at default:default,org.mortbay.jetty.server at default:default,org.eclipse.equinox.registry at default:default,org.eclipse.ecf.provider.filetransfer.ssl at default:false,org.eclipse.ant.core at default:default,org.eclipse.ui at default:default,org.eclipse.core.runtime at default:t!
 rue,org.eclipse.core.net.linux.x86 at default:false,org.eclipse.c!
 ore.comm
ands at default:default,org.eclipse.equinox.common at 2:true,org.apache.commons.el at default:default,javax.transaction at default:false,org.eclipse.equinox.p2.engine at default:default,org.eclipse.jface at default:default,org.eclipse.ecf.filetransfer at default:default,org.apache.jasper at default:default,org.eclipse.equinox.http.jetty at default:default,org.eclipse.core.contenttype at default:default,org.eclipse.help.ui at default:default,com.springsource.org.apache.commons.logging at default:default,org.eclipse.ui.workbench.texteditor at default:default,org.eclipse.core.databinding at default:default,org.eclipse.osgi.services at default:default,org.eclipse.equinox.concurrent at default:default,org.eclipse.ecf.provider.filetransfer at default:default,com.ibm.icu at default:default,org.eclipse.ui.cheatsheets at default:default,com.jboss.jbds.product at default:default,org.eclipse.osgi at -1:true,org.eclipse.compare.core at default:default,org.eclipse.equinox.p2.core at default:default,org.eclipse.core.databinding.property at default:default,org!
 .eclipse.core.variables at default:default,org.eclipse.ui.views.properties.tabbed at default:default,org.apache.lucene at default:default,org.eclipse.equinox.p2.repository at default:default,org.eclipse.equinox.p2.jarprocessor at default:default,org.eclipse.ui.workbench at default:default,org.eclipse.ui.views at default:default,javax.servlet at default:default,org.apache.lucene.analysis at default:default,org.junit4 at default:default,org.mortbay.jetty.util at default:default,org.eclipse.equinox.http.servlet at default:default,org.eclipse.equinox.preferences at default:default,org.eclipse.jface.text at default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics at default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+<booleanAttribute key="usefeatures" value="false"/>
+</launchConfiguration>


Property changes on: trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools Google Analytics
+Bundle-SymbolicName: org.jboss.tools.usage;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.usage,
+ org.jboss.tools.usage.jgoogleanalytics
+Require-Bundle: org.eclipse.ui;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.osgi;bundle-version="3.5.2",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)"
+Bundle-ActivationPolicy: lazy
+Bundle-Activator: org.jboss.tools.usage.internal.JBossToolsUsageActivator


Property changes on: trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage/build.properties
===================================================================
--- trunk/usage/org.jboss.tools.usage/build.properties	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/build.properties	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               plugin.xml


Property changes on: trunk/usage/org.jboss.tools.usage/build.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/plugin.xml
===================================================================
--- trunk/usage/org.jboss.tools.usage/plugin.xml	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/plugin.xml	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+   <extension
+         point="org.eclipse.ui.startup">
+      <startup
+            class="org.jboss.tools.usage.internal.UsageReportDispatcher">
+      </startup>
+   </extension>
+   <extension
+         point="org.eclipse.ui.preferencePages">
+      <page
+            class="org.jboss.tools.usage.preferences.UsageReportPreferencePage"
+            id="org.jboss.tools.usage.analytics.preferences.UsageAnalyticsPreferencePage"
+            name="JBoss Usage Analytics Preferences">
+      </page>
+   </extension>
+   <extension
+         point="org.eclipse.core.runtime.preferences">
+      <initializer
+            class="org.jboss.tools.usage.preferences.UsageReportPreferenceInitializer">
+      </initializer>
+   </extension>
+</plugin>


Property changes on: trunk/usage/org.jboss.tools.usage/plugin.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+package org.jboss.tools.usage;
+
+import java.io.UnsupportedEncodingException;
+
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+
+public interface IUsageTracker {
+
+	/**
+	 * Track the focusPoint in the application synchronously. <br/>
+	 * <red><b>Please be cognizant while using this method. Since, it would have
+	 * a peformance hit on the actual application. Use it unless it's really
+	 * needed</b></red>
+	 * 
+	 * @param focusPoint
+	 *            Focus point of the application like application load,
+	 *            application module load, user actions, error events etc.
+	 * @throws UnsupportedEncodingException
+	 */
+
+	public abstract void trackSynchronously(FocusPoint focusPoint)
+			throws UnsupportedEncodingException;
+
+	/**
+	 * Track the focusPoint in the application asynchronously. <br/>
+	 * 
+	 * @param focusPoint
+	 *            Focus point of the application like application load,
+	 *            application module load, user actions, error events etc.
+	 */
+
+	public abstract void trackAsynchronously(FocusPoint focusPoint);
+
+}
\ No newline at end of file


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+public class JBossToolsUsageActivator extends AbstractUIPlugin {
+
+	public static final String PLUGIN_ID = "org.jboss.tools.usage"; //$NON-NLS-1$
+
+	private static JBossToolsUsageActivator plugin;
+	
+	public JBossToolsUsageActivator() {
+		plugin = this;
+	}
+
+	@Override
+	public void stop(BundleContext context) throws Exception {
+		plugin = null;
+		super.stop(context);
+	}
+
+	public static JBossToolsUsageActivator getDefault() {
+		return plugin;
+	}
+
+	public static ImageDescriptor getImageDescriptor(String path) {
+		return imageDescriptorFromPlugin(PLUGIN_ID, path);
+	}
+	
+	public void start(BundleContext context) throws Exception {
+		super.start(context);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.usage.IUsageTracker;
+import org.jboss.tools.usage.jgoogleanalytics.EclipseEnvironment;
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+import org.jboss.tools.usage.jgoogleanalytics.IGoogleAnalyticsParameters;
+import org.jboss.tools.usage.jgoogleanalytics.JGoogleAnalyticsTracker;
+import org.jboss.tools.usage.jgoogleanalytics.PluginLogger;
+import org.jboss.tools.usage.preferences.IUsageReportPreferenceConstants;
+import org.jboss.tools.usage.util.StatusUtils;
+import org.osgi.service.prefs.BackingStoreException;
+
+public class UsageReport {
+
+	private static final String GANALYTICS_TRACKINGCODE = "UA-17645367-1";
+
+	private FocusPoint focusPoint = new FocusPoint("jboss.org")
+			.setChild(new FocusPoint("tools").setChild(new FocusPoint("usage").setChild(new FocusPoint("action")
+					.setChild(new FocusPoint("wsstartup")))));
+
+	public void report() {
+
+		Display.getDefault().asyncExec(new Runnable() {
+			@Override
+			public void run() {
+				UsageReportEnablementDialog dialog = new UsageReportEnablementDialog("Report usage",
+						"Please allow Red Hat Inc. to report this installation anynomously for statistical matters.",
+						"Report usage anonymously to Red Hat Inc.", true, PlatformUI.getWorkbench()
+								.getActiveWorkbenchWindow());
+				if (isAskUser()) {
+					if (dialog.open() == Window.OK) {
+						setReportEnabled(dialog.isReportEnabled());
+						setAskUser(false);
+					}
+				}
+
+				if (isReportEnabled()) {
+					report(getAnalyticsTracker());
+				}
+			}
+		});
+	}
+
+	private void setReportEnabled(boolean enabled) {
+		IEclipsePreferences preferences = new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+		preferences.putBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, enabled);
+	}
+
+	private void report(IUsageTracker tracker) {
+		tracker.trackAsynchronously(focusPoint);
+	}
+
+	private IUsageTracker getAnalyticsTracker() {
+		IGoogleAnalyticsParameters eclipseSettings = new EclipseEnvironment(
+				GANALYTICS_TRACKINGCODE
+				, IGoogleAnalyticsParameters.VALUE_NO_REFERRAL);
+		JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(eclipseSettings);
+		tracker.setLoggingAdapter(new PluginLogger(JBossToolsUsageActivator.getDefault()));
+		return tracker;
+	}
+
+	private boolean isAskUser() {
+		IEclipsePreferences preferences = getPreferences();
+		return preferences.getBoolean(IUsageReportPreferenceConstants.ASK_USER, true);
+	}
+
+	private void setAskUser(boolean askUser) {
+		try {
+			IEclipsePreferences preferences = getPreferences();
+			preferences.putBoolean(IUsageReportPreferenceConstants.ASK_USER, askUser);
+			preferences.flush();
+		} catch (BackingStoreException e) {
+			JBossToolsUsageActivator.getDefault().getLog().log(
+					StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID, "Could not save preferences {0}", e,
+							IUsageReportPreferenceConstants.ASK_USER));
+		}
+	}
+
+	private boolean isReportEnabled() {
+		return getPreferences().getBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, true);
+	}
+
+	private IEclipsePreferences getPreferences() {
+		return new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+import org.eclipse.ui.IStartup;
+
+/**
+ * 
+ * @author Andre Dieitsheim
+ */
+public class UsageReportDispatcher implements IStartup {
+
+	@Override
+	public void earlyStartup() {
+		new UsageReport().report();
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,89 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.jface.window.IShellProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class UsageReportEnablementDialog extends Dialog {
+
+	private Button checkBox;
+	private String title;
+	private String message;
+	private boolean reportEnabled;
+	private String checkBoxLabel;
+
+	public UsageReportEnablementDialog(String title, String message, String checkBoxLabel,
+			boolean reportEnabled, IShellProvider parentShell) {
+		super(parentShell);
+		this.title = title;
+		this.message = message;
+		this.checkBoxLabel = checkBoxLabel;
+		this.reportEnabled = reportEnabled;
+	}
+
+	protected void buttonPressed(int buttonId) {
+		if (buttonId == IDialogConstants.OK_ID) {
+			this.reportEnabled = checkBox.getSelection();
+		}
+		else if (buttonId == IDialogConstants.CANCEL_ID) {
+			this.reportEnabled = false;
+		}
+		super.buttonPressed(buttonId);
+	}
+
+	protected void configureShell(Shell shell) {
+		super.configureShell(shell);
+		if (title != null) {
+			shell.setText(title);
+		}
+	}
+
+	protected void createButtonsForButtonBar(Composite parent) {
+		createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
+		createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
+		checkBox.setFocus();
+		checkBox.setSelection(reportEnabled);
+	}
+
+	protected Control createDialogArea(Composite parent) {
+		Composite composite = (Composite) super.createDialogArea(parent);
+		if (message != null) {
+			Label label = new Label(composite, SWT.WRAP);
+			label.setFont(parent.getFont());
+			label.setText(message);
+			GridDataFactory.fillDefaults()
+				.align(SWT.FILL, SWT.CENTER).grab(true, false)
+				.hint(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH, SWT.DEFAULT)
+				.applyTo(label);
+		}
+		checkBox = new Button(composite, SWT.CHECK);
+		checkBox.setText(checkBoxLabel);
+		GridDataFactory.fillDefaults().grab(true, false).align(SWT.LEFT, SWT.CENTER).applyTo(checkBox);
+		applyDialogFont(composite);
+		return composite;
+	}
+
+	public boolean isReportEnabled() {
+		return reportEnabled;
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+
+public abstract class AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
+
+	private String accountName;
+	private String referral;
+
+	public AbstractGoogleAnalyticsParameters(String accountName, String referral) {
+		this.accountName = accountName;
+		this.referral = referral;
+	}
+
+	@Override
+	public String getAccountName() {
+		return accountName;
+	}
+
+	@Override
+	public String getReferral() {
+		return referral;
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,206 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.util.Random;
+
+import org.eclipse.core.runtime.IProduct;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+import org.jboss.tools.usage.preferences.IUsageReportPreferenceConstants;
+import org.jboss.tools.usage.util.PreferencesUtil;
+import org.jboss.tools.usage.util.StatusUtils;
+import org.osgi.framework.Bundle;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class EclipseEnvironment extends AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
+
+	private static final String SCREERESOLUTION_DELIMITER = "x";
+
+	private static final String ECLIPSE_RUNTIME_BULDEID = "org.eclipse.core.runtime";
+
+	private static final char VERSION_DELIMITER = '.';
+
+	private static final String SCREENCOLORDEPTH_POSTFIX = "-bit";
+
+	private static final char JAVA_LOCALE_DELIMITER = '_';
+
+	private static final char BROWSER_LOCALE_DELIMITER = '-';
+
+	private String screenResolution;
+
+	private String screenColorDepth;
+
+	private Random random;
+
+	public EclipseEnvironment(String accountName, String referral) {
+		super(accountName, referral);
+		this.random = new Random();
+		initScreenSettings(getDisplay());
+	}
+
+	@Override
+	public String getScreenResolution() {
+		return screenResolution;
+	}
+
+	@Override
+	public String getHostname() {
+		/* TODO implement */
+		return "jboss.org";
+	}
+
+	@Override
+	public String getBrowserLanguage() {
+		String nl = Platform.getNL(); //$NON-NLS-1$
+		if (nl == null) {
+			return "";
+		}
+
+		int indexOf = nl.indexOf(JAVA_LOCALE_DELIMITER); //$NON-NLS-1$
+		if (indexOf <= 0) {
+			return nl;
+		}
+
+		StringBuilder builder = new StringBuilder();
+		builder.append(nl.substring(0, indexOf));
+		builder.append(BROWSER_LOCALE_DELIMITER);
+		builder.append(nl.substring(indexOf + 1).toLowerCase());
+		return builder.toString();
+	}
+
+	private void initScreenSettings(final Display display) {
+		display.syncExec(new Runnable() {
+			@Override
+			public void run() {
+				screenColorDepth = display.getDepth() + SCREENCOLORDEPTH_POSTFIX;
+
+				Rectangle bounds = display.getBounds();
+				screenResolution = bounds.width + SCREERESOLUTION_DELIMITER + bounds.height;
+			}
+		});
+	}
+
+	@Override
+	public String getScreenColorDepth() {
+		return screenColorDepth;
+	}
+
+	private Display getDisplay() {
+		if (PlatformUI.isWorkbenchRunning()) {
+			return PlatformUI.getWorkbench().getDisplay();
+		}
+
+		Display display = Display.getCurrent();
+		if (display == null) {
+			display = Display.getDefault();
+		}
+		return display;
+	}
+
+	@Override
+	public String getUserAgent() {
+
+		String productId = getDefiningBundle().getSymbolicName();
+		String productVersion = getProductVersion();
+		String eclipseVersion = getEclipseVersion();
+		String windowSystem = Platform.getWS();
+		String os = Platform.getOS();
+		String architecture = Platform.getOSArch();
+		String browserLanguage = Platform.getNL();
+		String buildId = getBuildId();
+
+		/**
+		 * Google API for android: this.userAgent = String.format(
+		 * "GoogleAnalytics/%s (Linux; U; Android %s; %s-%s; %s; Build/%s)" ,
+		 * new Object[] { "1.0" , Build.VERSION.RELEASE ,
+		 * (localLocale.getLanguage() != null) ?
+		 * localLocale.getLanguage().toLowerCase() : "en" ,
+		 * (localLocale.getCountry() != null) ?
+		 * localLocale.getCountry().toLowerCase() : "" , Build.MODEL, Build.ID
+		 * });
+		 */
+
+		// return
+		// MessageFormat.format("{0}/{1} ({2}; U; {3} {4}; {5}) {6} Eclipse/{7}"
+		// , productId
+		// , productVersion
+		// , windowSystem
+		// , os
+		// , architecture
+		// , browserLanguage
+		// , buildId
+		// , eclipseVersion);
+		return "EclipseEnvironment/.0.2";
+	}
+
+	private String getEclipseVersion() {
+		return Platform.getBundle(ECLIPSE_RUNTIME_BULDEID).getVersion().toString();
+	}
+
+	private String getBuildId() {
+		String fullVersion = getDefiningBundle().getVersion().toString();
+		int buildIdStart = fullVersion.lastIndexOf(VERSION_DELIMITER);
+		if (buildIdStart > 0) {
+			return fullVersion.substring(buildIdStart + 1);
+		} else {
+			return fullVersion;
+		}
+	}
+
+	private String getProductVersion() {
+		String fullVersion = getDefiningBundle().getVersion().toString();
+		int productVersionStart = fullVersion.lastIndexOf(VERSION_DELIMITER);
+		if (productVersionStart > 0) {
+			return fullVersion.substring(0, productVersionStart);
+		} else {
+			return fullVersion;
+		}
+	}
+
+	private Bundle getDefiningBundle() {
+		IProduct product = Platform.getProduct();
+		if (product != null) {
+			return product.getDefiningBundle();
+		} else {
+			return Platform.getBundle(ECLIPSE_RUNTIME_BULDEID);
+		}
+	}
+
+	@Override
+	public String getUserId() {
+		Preferences preferences = PreferencesUtil.getConfigurationPreferences();
+		String userId = getIdentifier();
+		try {
+			if (!preferences.nodeExists(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID)) {
+				preferences.put(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID, userId);
+				preferences.flush();
+			} else {
+				userId = preferences.get(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID, userId);
+			}
+		} catch (BackingStoreException e) {
+			StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID, "Could not retrieve {0} from preferences.",
+					e, IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID);
+		}
+		return userId;
+	}
+
+	private String getIdentifier() {
+		StringBuilder builder = new StringBuilder();
+		builder.append(random.nextLong());
+		builder.append(System.currentTimeMillis());
+		return builder.toString();
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import org.jboss.tools.usage.util.EncodingUtils;
+
+/**
+ * Focus point of the application. It can represent data points like application
+ * load, application module load, user actions, error events etc.
+ */
+
+public class FocusPoint {
+
+	private String name;
+	private FocusPoint childFocusPoint;
+	public static final String URI_SEPARATOR = "/";
+	public static final String TITLE_SEPARATOR = "-";
+
+	public FocusPoint(String name) {
+		this.name = name;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public FocusPoint setChild(FocusPoint childFocusPoint) {
+		this.childFocusPoint = childFocusPoint;
+		return this;
+	}
+
+	public FocusPoint getChild() {
+		return childFocusPoint;
+	}
+
+	public String getContentURI() {
+		StringBuilder builder = new StringBuilder();
+		appendContentURI(builder, this);
+		return EncodingUtils.checkedEncodeUtf8(builder.toString());
+	}
+
+	private void appendContentURI(StringBuilder builder, FocusPoint focusPoint) {
+		FocusPoint parentFocuPoint = focusPoint.getChild();
+		builder.append(URI_SEPARATOR);
+		builder.append(focusPoint.getName());
+		if (parentFocuPoint != null) {
+			appendContentURI(builder, parentFocuPoint);
+		}
+	}
+
+	public String getContentTitle() {
+		StringBuilder builder = new StringBuilder();
+		appendContentTitle(builder, this);
+		return EncodingUtils.checkedEncodeUtf8(builder.toString());
+	}
+
+	private void appendContentTitle(StringBuilder builder, FocusPoint focusPoint) {
+		FocusPoint childFocusPoint = focusPoint.getChild();
+		builder.append(focusPoint.getName());
+		builder.append(TITLE_SEPARATOR);
+		if (childFocusPoint != null) {
+			appendContentTitle(builder, childFocusPoint);
+		}
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,217 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+
+import org.jboss.tools.usage.util.EncodingUtils;
+
+/**
+ * URL building logic for the earlier versions of google analytics (urchin.js)
+ * 
+ * @author : Siddique Hameed, Andre Dietisheim
+ * @version : 0.2
+ */
+
+public class GoogleAnalyticsURLStrategy implements IURLBuildingStrategy {
+
+	private static final String TRACKING_URL = "http://www.google-analytics.com/__utm.gif";
+
+	private static final String ENCODING_UTF8 = "UTF-8";
+
+	private static final long TIMESTAMP = -1;
+
+	private static final int VISITS = -1;
+
+	private IGoogleAnalyticsParameters googleParameters;
+
+	public GoogleAnalyticsURLStrategy(IGoogleAnalyticsParameters googleAnalyticsParameters) {
+		this.googleParameters = googleAnalyticsParameters;
+	}
+
+	public String build(FocusPoint focusPoint) throws UnsupportedEncodingException {
+
+		/*
+		 * Google Analytics for Android:
+		 * 
+		 * String str = ""; 
+		 * if (paramEvent.action != null) 
+		 * 	str = paramEvent.action; 
+		 * if (!(str.startsWith("/"))) 
+		 * 	str = "/" + str; 
+		 * str = encode(str); 
+		 * Locale localLocale = Locale.getDefault(); 
+		 * StringBuilder localStringBuilder = new StringBuilder();
+		 * localStringBuilder.append("/__utm.gif");
+		 * localStringBuilder.append("?utmwv=4.3");
+		 * localStringBuilder.append("&utmn=").append(paramEvent.randomVal);
+		 * localStringBuilder.append("&utmcs=UTF-8");
+		 * localStringBuilder.append(String.format("&utmsr=%dx%d", new Object[] { 
+		 * 		Integer.valueOf(paramEvent.screenWidth)
+		 * 		, Integer.valueOf(paramEvent.screenHeight) }));
+		 * localStringBuilder.append(String.format("&utmul=%s-%s", new Object[] { 
+		 * 		localLocale.getLanguage()
+		 * 		, localLocale.getCountry() }));
+		 * localStringBuilder.append("&utmp=").append(str);
+		 * localStringBuilder.append("&utmac=").append(paramEvent.accountId);
+		 * localStringBuilder.append("&utmcc=").append(
+		 * 		getEscapedCookieString(paramEvent, paramString)); 
+		 * return localStringBuilder.toString();
+		 */
+
+		StringBuilder builder = new StringBuilder(TRACKING_URL)
+				.append(IGoogleAnalyticsParameters.URL_PARAM_DELIMITER);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_TRACKING_CODE_VERSION,
+				IGoogleAnalyticsParameters.VALUE_TRACKING_CODE_VERSION, builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_UNIQUE_TRACKING_NUMBER, getRandomNumber(), builder);
+		// appendParameter(IGoogleAnalyticsParameters.PARAM_HID,
+		// getRandomNumber(), builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_LANGUAGE_ENCODING, ENCODING_UTF8, builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_SCREEN_COLOR_DEPTH, googleParameters.getScreenColorDepth(),
+				builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_SCREEN_RESOLUTION, googleParameters.getScreenResolution(),
+				builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_BROWSER_LANGUAGE, googleParameters.getBrowserLanguage(),
+				builder);
+		// appendParameter(IGoogleAnalyticsParameters.PARAM_REPEAT_CAMPAIGN_VISIT,
+		// "1", builder);
+		// appendParameter(IGoogleAnalyticsParameters.PARAM_PAGE_TITLE,
+		// focusPoint.getContentTitle(), builder);
+		// appendParameter(IGoogleAnalyticsParameters.PARAM_HOST_NAME,
+		// googleParameters.getHostname(), builder);
+		// appendParameter(IGoogleAnalyticsParameters.PARAM_REFERRAL,
+		// googleParameters.getReferral(), builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_PAGE_REQUEST, focusPoint.getContentURI(), builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_ACCOUNT_NAME, googleParameters.getAccountName(), builder);
+		appendCookies(focusPoint, builder);
+		appendParameter(IGoogleAnalyticsParameters.PARAM_GAQ, "1", false, builder);
+
+		// StringBuilder builder = new StringBuilder()
+		// .append(TRACKING_URL)
+		// .append(URL_PARAM_DELIMITER);
+		// appendParameter(IGoogleAnalyticsParameters.TRACKING_CODE_VERSION,
+		// IGoogleAnalyticsParameters.URCHIN_VERSION, builder);
+		// appendParameter(IGoogleAnalyticsParameters.UNIQUE_TRACKING_NUMBER,
+		// getRandomNumber(), builder);
+		// appendParameter(IGoogleAnalyticsParameters.HOST_NAME,
+		// URLEncoder.encode(googleParameters.getHostname(), ENCODING_UTF8),
+		// builder);
+		// appendParameter(IGoogleAnalyticsParameters.REFERRAL,
+		// URLEncoder.encode(googleParameters.getReferral(), ENCODING_UTF8),
+		// builder);
+		// appendParameter(IGoogleAnalyticsParameters.PAGE_REQUEST,
+		// URLEncoder.encode(appFocusPoint.getContentURI(), ENCODING_UTF8),
+		// builder);
+		// appendParameter(IGoogleAnalyticsParameters.ACCOUNT_NAME,
+		// googleParameters.getAccountName(), builder);
+		// appendParameter(IGoogleAnalyticsParameters.COOKIE_VALUES,
+		// "__utma%3D999.999.999.999.999.1%3B", builder);
+		// appendParameter(IGoogleAnalyticsParameters.LANGUAGE_ENCODING,
+		// ENCODING_UTF8, builder);
+		// appendParameter(IGoogleAnalyticsParameters.SCREEN_RESOLUTION,
+		// googleParameters.getScreenResolution(), builder);
+		// .append("&utmvid=").append(new EclipseInstance().toString());
+		// .append("&utmip=").append(getIpAddress());
+
+		return builder.toString();
+	}
+
+	private void appendCookies(FocusPoint focusPoint, StringBuilder builder) {
+
+		StringBuilder stringBuilder = new StringBuilder();
+		stringBuilder.append(IGoogleAnalyticsParameters.PARAM_COOKIES_FIRST_VISIT)
+				.append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+				.append("999.")
+				.append(googleParameters.getUserId()).append(IGoogleAnalyticsParameters.DOT)
+				.append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+				.append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+				.append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+				.append(VISITS)
+				.append(IGoogleAnalyticsParameters.PLUS_SIGN)
+				.append(IGoogleAnalyticsParameters.PARAM_COOKIES_REFERRAL_TYPE)
+				.append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+				.append("999.")
+				.append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+				.append("1.1.")
+				.append(focusPoint.getContentURI());
+
+		String encodedString = EncodingUtils.checkedEncodeUtf8(stringBuilder.toString());
+		builder.append(encodedString);
+
+		// builder.append(IGoogleAnalyticsParameters.PARAM_COOKIE_VALUES)
+		// .append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+		// .append("__utma%3D")
+		// .append(getRandomNumber())
+		// .append(".")
+		// .append(getRandomNumber())
+		// .append(".")
+		// .append(now)
+		// .append(".")
+		// .append(now)
+		// .append(".")
+		// .append(now)
+		// .append(".2%3B%2B)")
+		//
+		// // .append("__utmb%3D")
+		// // .append(getRandomNumber())
+		// // .append("%3B%2B__utmc%3D")
+		// // .append(getRandomNumber())
+		// // .append("%3B%2B")
+		//
+		// .append("__utmz%3D")
+		// .append(getRandomNumber())
+		// .append(".")
+		// .append(now)
+		// .append(IGoogleAnalyticsParameters.AMPERSAND);
+
+		// .append("utmcsr%3D(direct)%7C")
+		// .append("utmccn%3D(direct)%7C")
+		// .append("utmcmd%3D(none)%3B");
+
+	}
+
+	private String getRandomNumber() {
+		return Integer.toString((int) (Math.random() * 0x7fffffff));
+	}
+
+	private void appendParameter(String name, String value, StringBuilder builder) {
+		appendParameter(name, value, true, builder);
+	}
+
+	private void appendParameter(String name, String value, boolean appendAmpersand, StringBuilder builder) {
+		builder.append(name)
+				.append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+				.append(value);
+		if (appendAmpersand) {
+			builder.append(IGoogleAnalyticsParameters.AMPERSAND);
+		}
+	}
+
+	// private String getIpAddress() throws SocketException {
+	// Enumeration<NetworkInterface> e1 =
+	// (Enumeration<NetworkInterface>)NetworkInterface.getNetworkInterfaces();
+	// while(e1.hasMoreElements()) {
+	// NetworkInterface ni = e1.nextElement();
+	//			
+	// System.out.print(ni.getName());
+	// System.out.print(" : [");
+	// Enumeration<InetAddress> e2 = ni.getInetAddresses();
+	// while(e2.hasMoreElements()) {
+	// InetAddress ia = e2.nextElement();
+	// System.out.print(ia);
+	// if( e2.hasMoreElements()) {
+	// System.out.print(",");
+	// }
+	// }
+	// System.out.println("]");
+	// }
+	// }
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,88 @@
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.IOException;
+import java.net.CookieHandler;
+import java.net.CookieManager;
+import java.net.CookiePolicy;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.text.MessageFormat;
+
+/**
+ * Simple class peforming HTTP Get method on the requested url
+ * 
+ * @author Siddique Hameed
+ * @author Andre Dietisheim
+ * @version 0.2
+ */
+
+public class HttpGetMethod {
+	private static final String USER_AGENT = "User-Agent";
+	private static final String GET_METHOD_NAME = "GET";
+	private static final String SUCCESS_MESSAGE = "Http Get to url {0} successfull!";
+	private static final String ERROR_MESSAGE = "Http Get to {0} failed, response code was {1}";
+
+	private ILoggingAdapter loggingAdapter = null;
+
+	private CookieManager cookieHandler = new CookieManager();
+	private String userAgent;
+
+	public HttpGetMethod(String userAgent) {
+		this.userAgent = userAgent;
+	}
+
+	public void setLoggingAdapter(ILoggingAdapter loggingAdapter) {
+		this.loggingAdapter = loggingAdapter;
+	}
+
+	public void request(String urlString) {
+
+		CookieHandler originalCookieHandler = setupCookieHandler();
+		try {
+			HttpURLConnection urlConnection = createURLConnection(urlString, userAgent);
+			urlConnection.connect();
+			int responseCode = getResponseCode(urlConnection);
+			if (responseCode != HttpURLConnection.HTTP_OK) {
+				logError(ERROR_MESSAGE, urlString, responseCode);
+			} else {
+				logMessage(SUCCESS_MESSAGE, urlString);
+			}
+		} catch (Exception e) {
+			logError(e.getMessage());
+		} finally {
+			CookieHandler.setDefault(originalCookieHandler);
+		}
+	}
+
+	private CookieHandler setupCookieHandler() {
+		CookieHandler old = CookieHandler.getDefault();
+		cookieHandler.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
+		CookieHandler.setDefault(cookieHandler);
+		return old;
+	}
+
+	protected int getResponseCode(HttpURLConnection urlConnection) throws IOException {
+		return urlConnection.getResponseCode();
+	}
+
+	protected HttpURLConnection createURLConnection(String urlString, String userAgent) throws IOException {
+		URL url = new URL(urlString);
+		HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
+		urlConnection.setInstanceFollowRedirects(true);
+		urlConnection.setRequestMethod(GET_METHOD_NAME);
+		urlConnection.setRequestProperty(USER_AGENT, userAgent);
+		return urlConnection;
+	}
+
+	private void logMessage(String message, Object... parameters) {
+		if (loggingAdapter != null) {
+			loggingAdapter.logMessage(MessageFormat.format(message, parameters));
+		}
+	}
+
+	private void logError(String errorMesssage, Object... parameters) {
+		if (loggingAdapter != null) {
+			loggingAdapter.logError(MessageFormat.format(errorMesssage, parameters));
+		}
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,68 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+/**
+ * An interface that provides methods for all parameters that google analytics
+ * needs to know about.
+ * 
+ * @see <a
+ *      href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingTroubleshooting.html#gifParameters">GIF Request Parameters</a>
+ */
+public interface IGoogleAnalyticsParameters {
+
+	public static final char AMPERSAND = '&';
+	public static final char EQUALS_SIGN = '=';
+	public static final char URL_PARAM_DELIMITER = '?';
+
+	public static final String PARAM_HID = "utmhid";
+	public static final String PARAM_PAGE_REQUEST = "utmp";
+	public static final String PARAM_ACCOUNT_NAME = "utmac";
+	public static final String PARAM_HOST_NAME = "utmhn";
+	public static final String PARAM_COOKIES = "utmcc";
+	public static final String PARAM_COOKIES_FIRST_VISIT = "__utma";
+	
+	public static final String PARAM_REFERRAL = "utmr";
+	public static final String PARAM_TRACKING_CODE_VERSION = "utmwv";
+	public static final String PARAM_UNIQUE_TRACKING_NUMBER = "utmn";
+	public static final String PARAM_LANGUAGE_ENCODING = "utmcs";
+	public static final String PARAM_SCREEN_RESOLUTION = "utmsr";
+	public static final String PARAM_SCREEN_COLOR_DEPTH = "utmsc";
+	public static final String PARAM_PRODUCT_NAME = "utmipn";
+	public static final String PARAM_PRODUCT_CODE = "utmipc";
+	public static final String PARAM_BROWSER_LANGUAGE = "utmul";
+	public static final String PARAM_REPEAT_CAMPAIGN_VISIT = "utmcr";
+	public static final String PARAM_PAGE_TITLE = "utmdt";
+	public static final String PARAM_GAQ = "gaq";
+	
+	public static final String VALUE_TRACKING_CODE_VERSION = "4.3";
+	public static final String VALUE_NO_REFERRAL = "-";
+	public static final char PLUS_SIGN = '+';
+	public static final String PARAM_COOKIES_REFERRAL_TYPE = "__utmz";
+	public static final char DOT = '.';
+
+	public String getAccountName();
+
+	public String getReferral();
+
+	public String getScreenResolution();
+
+	public String getScreenColorDepth();
+	
+	public String getBrowserLanguage();
+
+	public String getHostname();
+
+	public String getUserAgent();
+	
+	public String getUserId();
+
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+/**
+ * Interface for logging adapter. You can hook up log4j, System.out or any other loggers you want.
+ *
+ * @author : Siddique Hameed
+ * @version : 0.1
+ */
+
+public interface ILoggingAdapter {
+
+  public void logError(String errorMessage);
+
+  public void logMessage(String message);
+
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+
+/**
+ * Interface for the URL building strategy
+ * 
+ * @author Andre Dietisheim
+ * 
+ */
+
+public interface IURLBuildingStrategy {
+
+	public String build(FocusPoint focusPoint) throws UnsupportedEncodingException;
+
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,100 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+import java.text.MessageFormat;
+
+import org.jboss.tools.usage.IUsageTracker;
+
+/**
+ * Main class for tracking google analytics data.
+ * 
+ * @author Siddique Hameed
+ * @author Andre Dietisheim
+ * @version 0.2
+ * @see : <a
+ *      href="http://JGoogleAnalytics.googlecode.com">http://JGoogleAnalytics
+ *      .googlecode.com</a>
+ */
+
+public class JGoogleAnalyticsTracker implements IUsageTracker {
+
+	private IURLBuildingStrategy urlBuildingStrategy = null;
+	private HttpGetMethod httpRequest;
+	private ILoggingAdapter loggingAdapter;
+
+	/**
+	 * Simple constructor passing the application name & google analytics
+	 * tracking code.
+	 * 
+	 * @param appName
+	 *            Application name (For ex: "LibraryFinder")
+	 */
+	public JGoogleAnalyticsTracker(IGoogleAnalyticsParameters googleParameters) {
+		this.httpRequest = new HttpGetMethod(googleParameters.getUserAgent());
+		this.urlBuildingStrategy = new GoogleAnalyticsURLStrategy(googleParameters);
+	}
+
+	/**
+	 * Setter injection for LoggingAdpater. You can hook up log4j, System.out or
+	 * any other loggers you want.
+	 * 
+	 * @param loggingAdapter
+	 *            implemented instance of LoggingAdapter
+	 */
+
+	public void setLoggingAdapter(ILoggingAdapter loggingAdapter) {
+		this.loggingAdapter = loggingAdapter;
+		httpRequest.setLoggingAdapter(loggingAdapter);
+	}
+
+	/* (non-Javadoc)
+	 * @see org.jboss.tools.usage.analytics.jgoogleanalytics.UsageAnalyticsTracker#trackSynchronously(org.jboss.tools.usage.analytics.jgoogleanalytics.FocusPoint)
+	 */
+
+	public void trackSynchronously(FocusPoint focusPoint) throws UnsupportedEncodingException {
+		logMessage("Tracking synchronously focusPoint=" + focusPoint.getContentTitle());
+		httpRequest.request(urlBuildingStrategy.build(focusPoint));
+	}
+
+	/* (non-Javadoc)
+	 * @see org.jboss.tools.usage.analytics.jgoogleanalytics.UsageAnalyticsTracker#trackAsynchronously(org.jboss.tools.usage.analytics.jgoogleanalytics.FocusPoint)
+	 */
+
+	public void trackAsynchronously(FocusPoint focusPoint) {
+		logMessage("Tracking Asynchronously focusPoint=" + focusPoint.getContentTitle());
+		new TrackingThread(focusPoint).start();
+	}
+
+	private void logMessage(String message) {
+		if (loggingAdapter != null) {
+			loggingAdapter.logMessage(message);
+		}
+	}
+
+	private class TrackingThread extends Thread {
+		private FocusPoint focusPoint;
+
+		public TrackingThread(FocusPoint focusPoint) {
+			this.focusPoint = focusPoint;
+			this.setPriority(Thread.MIN_PRIORITY);
+		}
+
+		public void run() {
+			try {
+				httpRequest.request(urlBuildingStrategy.build(focusPoint));
+			} catch (UnsupportedEncodingException e) {
+				logMessage(MessageFormat.format("Tracking failed: {0}", e.getMessage()));
+			}
+		}
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+
+public class PluginLogger implements ILoggingAdapter {
+
+	private Plugin plugin;
+
+	public PluginLogger(Plugin plugin) {
+		this.plugin = plugin;
+	}
+
+	public void logError(String message) {
+		log(IStatus.ERROR, message);
+	}
+
+	public void logMessage(String message) {
+		log(IStatus.INFO, message);
+	}
+
+	private void log(int severity, String message) {
+		if (plugin != null) {
+			IStatus status = new Status(severity, plugin.getBundle().getSymbolicName(), message);
+			plugin.getLog().log(status);
+		}
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+public interface IUsageReportPreferenceConstants {
+
+	/**
+	 * Identifies the preferences that states whether the user allows us to
+	 * report usage.
+	 */
+	public static final String USAGEREPORT_ENABLED = "allowUsageReportPreference";
+
+	/**
+	 * Identifies the preferences that states whether the user allows us to
+	 * report usage.
+	 */
+	public static final String ASK_USER = "askUserPreference";
+
+	public static final String ECLIPSE_INSTANCE_ID = "eclipseInstanceId";
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+
+public class UsageReportPreferenceInitializer extends
+		AbstractPreferenceInitializer {
+
+	public void initializeDefaultPreferences() {
+		// IPreferenceStore store =
+		// JBossToolsUsageActivator.getDefault().getPreferenceStore();
+		// store.setDefault(PreferenceConstants.P_ALLOW_USAGEREPORT, true);
+//		IPreferenceStore store = getPreferencesStore();
+//		store.setDefault(UsageReportPreferenceConstants.P_ALLOW_USAGEREPORT, true);
+		IEclipsePreferences preferences = new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+		preferences.putBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, true);
+	}
+
+	private IPreferenceStore getPreferencesStore() {
+		IPreferenceStore preferenceStore = new ScopedPreferenceStore(
+				new ConfigurationScope(),
+				JBossToolsUsageActivator.PLUGIN_ID);
+		return preferenceStore;
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,62 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.IPersistentPreferenceStore;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+import org.jboss.tools.usage.util.StatusUtils;
+
+public class UsageReportPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
+
+	private IPersistentPreferenceStore preferences;
+
+	public UsageReportPreferencePage() {
+		super(GRID);
+		setPreferenceStore(this.preferences = createPreferencesStore());
+	}
+
+	private IPersistentPreferenceStore createPreferencesStore() {
+		return new ScopedPreferenceStore(
+				new ConfigurationScope(),
+				JBossToolsUsageActivator.PLUGIN_ID);
+	}
+
+	public void createFieldEditors() {
+		addField(new BooleanFieldEditor(
+				IUsageReportPreferenceConstants.USAGEREPORT_ENABLED
+				, "&Allow JBoss Tools to report usage analytics anonymously for statistical matters"
+				, getFieldEditorParent()));
+	}
+
+	public void init(IWorkbench workbench) {
+	}
+
+	@Override
+	public boolean performOk() {
+		try {
+			preferences.save();
+		} catch (IOException e) {
+			IStatus status = StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID,
+					"Could not save the preferences.", e);
+			JBossToolsUsageActivator.getDefault().getLog().log(status);
+		}
+		return super.performOk();
+	}
+}
\ No newline at end of file


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Pattern;
+
+import org.eclipse.core.runtime.Assert;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+public class BundleUtils {
+
+	public static List<Bundle> getBundles(String symbolicNameRegex, BundleContext bundleContext) {
+		List<Bundle> bundleList = new ArrayList<Bundle>();
+		BundleSymbolicNameFilter symbolicNameFilter = new BundleSymbolicNameFilter(symbolicNameRegex);
+		for (Bundle bundle : bundleContext.getBundles()) {
+			if (symbolicNameFilter.matches(bundle)) {
+				bundleList.add(bundle);
+			}
+		}
+		return bundleList;
+	}
+
+	public static class BundleSymbolicNameFilter implements IBundleEntryFilter {
+
+		private Pattern pattern;
+
+		public BundleSymbolicNameFilter(String symbolicNameRegex) {
+			this.pattern = Pattern.compile(symbolicNameRegex);
+		}
+
+		@Override
+		public boolean matches(Bundle bundle) {
+			Assert.isTrue(bundle != null);
+
+			return pattern.matcher(bundle.getSymbolicName()).matches();
+		}
+
+	}
+
+	public static interface IBundleEntryFilter {
+		public boolean matches(Bundle bundle);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+
+public class EncodingUtils {
+
+	private static final String ENCODING_UTF8 = "UTF-8";
+
+	/**
+	 * Encodes the given string in utf8 while catching exceptions that may
+	 * occur. If an encoding exception occurs, <tt>null</tt> is returned
+	 * 
+	 * @param aString
+	 *            the a string to be encoded
+	 * @return the encoded string or <tt>null</tt> if an error occured while
+	 *         encoding
+	 */
+	public static String checkedEncodeUtf8(String aString) {
+		try {
+			return URLEncoder.encode(aString, ENCODING_UTF8);
+		} catch (UnsupportedEncodingException e) {
+			return aString;
+		}
+	}
+
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+
+public class PreferencesUtil {
+
+	/**
+	 * Returns the preferences used for this plugin.
+	 *
+	 * @return the preferences
+	 */
+	public static IEclipsePreferences getConfigurationPreferences() {
+		return new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.text.MessageFormat;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
+public class StatusUtils {
+
+	private StatusUtils() {
+		// inhibit instantiation
+	}
+
+	/**
+	 * Returns an error status for a given plugin id, message and arguments.
+	 * 
+	 * @param pluginId
+	 *            the plugin id
+	 * @param message
+	 *            the message
+	 * @param throwable
+	 *            the throwable
+	 * @param messageArguments
+	 *            the message arguments
+	 * @return the error status
+	 */
+	public static IStatus getErrorStatus(String pluginId, String message, Throwable throwable,
+			Object... messageArguments) {
+		String formattedMessage = null;
+		if (message != null) {
+			formattedMessage = MessageFormat.format(message, messageArguments);
+		}
+		return new Status(Status.ERROR, pluginId, Status.ERROR, formattedMessage,
+				throwable);
+	}
+
+	/**
+	 * Returns an debug status for a given plugin id, message and arguments.
+	 * 
+	 * @param pluginId
+	 *            the plugin id
+	 * @param message
+	 *            the message
+	 * @param messageArguments
+	 *            the message arguments
+	 * 
+	 * @return the debug status
+	 */
+	public static IStatus getDebugStatus(String pluginId, String message, Object... messageArguments) {
+		return new Status(Status.INFO, pluginId, Status.INFO, MessageFormat.format(message, messageArguments), null);
+	}
+
+	/**
+	 * Clones a given status.
+	 * 
+	 * @param status
+	 *            the status
+	 * 
+	 * @return the i status
+	 */
+	public static IStatus clone(IStatus status) {
+		switch (status.getSeverity()) {
+		case IStatus.INFO:
+			return getDebugStatus(status.getPlugin(), status.getMessage());
+		case IStatus.ERROR:
+			return getErrorStatus(status.getPlugin(), status.getMessage(), status.getException());
+		default:
+			throw new UnsupportedOperationException("noy implemented yet!");
+		}
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/.classpath
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.classpath	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.classpath	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>


Property changes on: trunk/usage/org.jboss.tools.usage.test/.classpath
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/.project
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.project	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.project	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.jboss.tools.usage.test</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>


Property changes on: trunk/usage/org.jboss.tools.usage.test/.project
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,266 @@
+#Fri Aug 06 17:57:19 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
+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=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=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=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+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=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=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=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=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_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=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=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


Property changes on: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,4 @@
+#Fri Jul 30 15:03:59 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11


Property changes on: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.FocusPointTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.core.net.linux.x86 at default:false,org.eclipse.ui.views at default:default,org.eclipse.ecf.provider.filetransfer.ssl at default:false,javax.transaction at default:false,org.eclipse.jface.databinding at default:default,org.eclipse.equinox.security at default:default,org.eclipse.ui.forms at default:default,org.eclipse.equinox.p2.engine at default:default,org.eclipse.core.runtime at default:true,org.eclipse.core.resources.compatibility at default:false,org.eclipse.ecf.identity at default:default,com.springsource.org.apache.commons.logging at default:default,org.eclipse.osgi.services at default:default,com.ibm.icu at default:default,org.eclipse.core.jobs at default:default,org.eclipse.ant.core at default:default,com.springsource.org.apache.commons.codec at default:default,org.eclipse.ecf.filetransfer at default:default,org.eclipse.ecf.provider.filetransfer at default:default,org.eclipse.jface at default:default,org.junit4 at default:default,org.hamcrest.core at default:default!
 ,org.eclipse.core.runtime.compatibility.registry at default:false,org.eclipse.equinox.preferences at default:default,org.eclipse.core.commands at default:default,org.eclipse.equinox.p2.jarprocessor at default:default,org.eclipse.core.resources at default:default,org.eclipse.core.variables at default:default,org.eclipse.ecf at default:default,org.eclipse.ui at default:default,org.eclipse.equinox.p2.artifact.repository at default:default,org.eclipse.core.databinding.property at default:default,org.eclipse.text at default:default,org.apache.commons.httpclient at default:default,org.eclipse.ui.ide at default:default,org.eclipse.ecf.ssl at default:false,org.eclipse.equinox.common at 2:true,org.eclipse.core.runtime.compatibility.auth at default:default,org.eclipse.equinox.p2.metadata at default:default,org.eclipse.core.databinding at default:default,org.eclipse.help at default:default,javax.servlet at default:default,org.eclipse.equinox.p2.metadata.repository at default:default,org.eclipse.core.net at default:default,org.eclipse.core.databindin!
 g.observable at default:default,org.jboss.tools.xulrunner.initial!
 izer at def
ault:false,org.eclipse.jface.text at default:default,org.eclipse.core.filesystem at default:default,org.eclipse.osgi at -1:true,org.eclipse.core.filesystem.linux.x86 at default:false,org.eclipse.core.expressions at default:default,org.eclipse.equinox.p2.core at default:default,org.eclipse.equinox.app at default:default,org.eclipse.equinox.registry at default:default,org.eclipse.ui.workbench at default:default,org.eclipse.equinox.transforms.hook at default:false,org.eclipse.equinox.p2.repository at default:default,org.eclipse.swt at default:default,org.eclipse.core.contenttype at default:default,org.eclipse.equinox.concurrent at default:default,org.eclipse.swt.gtk.linux.x86 at default:false"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics at default:default,org.jboss.tools.usage.test at default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>


Property changes on: trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.JBossToolsUsageRequestsTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.core.resources.compatibility at default:false,com.springsource.javax.servlet at default:default,org.eclipse.core.net.linux.x86 at default:false,org.hamcrest.core at default:default,org.apache.ant at default:default,org.eclipse.ui.views.properties.tabbed at default:default,org.eclipse.ui.cheatsheets at default:default,org.eclipse.ui at default:default,org.eclipse.equinox.p2.core at default:default,org.eclipse.ecf.provider.filetransfer.ssl at default:false,org.eclipse.jface.databinding at default:default,org.eclipse.help.base at default:default,org.eclipse.equinox.concurrent at default:default,org.eclipse.ui.navigator.resources at default:default,org.eclipse.equinox.http.servlet at default:default,com.jboss.jbds.product at default:default,com.ibm.icu at default:default,org.eclipse.ecf.ssl at default:false,org.eclipse.ui.ide at default:default,org.eclipse.core.expressions at default:default,org.eclipse.osgi at -1:true,org.eclipse.core.variables at default:default,com.springsou!
 rce.org.apache.commons.logging at default:default,org.eclipse.equinox.p2.engine at default:default,org.eclipse.help.ui at default:default,org.eclipse.ui.workbench at default:default,org.eclipse.ui.ide.application at default:default,org.mortbay.jetty.util at default:default,org.eclipse.swt.gtk.linux.x86 at default:false,org.eclipse.ui.navigator at default:default,org.eclipse.core.databinding.observable at default:default,org.eclipse.ui.intro.universal at default:default,org.eclipse.jface.text at default:default,org.apache.jasper at default:default,org.apache.commons.el at default:default,org.eclipse.ecf.provider.filetransfer at default:default,org.eclipse.equinox.common at 2:true,javax.transaction at default:false,org.eclipse.ant.core at default:default,org.eclipse.core.databinding at default:default,org.eclipse.core.runtime.compatibility.registry at default:false,org.eclipse.equinox.p2.repository at default:default,com.springsource.javax.el at default:default,org.eclipse.text at default:default,org.eclipse.equinox.p2.jarprocessor at default:!
 default,org.jboss.tools.xulrunner.initializer at default:false,or!
 g.eclips
e.ui.intro at default:default,org.eclipse.compare.core at default:default,org.eclipse.equinox.p2.metadata at default:default,org.eclipse.core.runtime.compatibility.auth at default:default,org.eclipse.core.databinding.property at default:default,org.eclipse.equinox.registry at default:default,org.eclipse.equinox.transforms.hook at default:false,org.mortbay.jetty.server at default:default,org.eclipse.swt at default:default,org.eclipse.ecf.identity at default:default,org.apache.lucene.analysis at default:default,org.eclipse.ui.forms at default:default,org.eclipse.core.resources at default:default,org.eclipse.core.runtime at default:true,org.eclipse.core.jobs at default:default,org.eclipse.equinox.p2.metadata.repository at default:default,org.eclipse.jface at default:default,org.eclipse.core.filesystem at default:default,org.eclipse.core.net at default:default,org.eclipse.equinox.http.jetty at default:default,javax.servlet at default:default,org.eclipse.core.filesystem.linux.x86 at default:false,org.eclipse.ecf at default:default,org.eclipse.equi!
 nox.security at default:default,org.eclipse.ecf.filetransfer at default:default,org.eclipse.core.contenttype at default:default,org.eclipse.equinox.p2.artifact.repository at default:default,org.eclipse.ui.views at default:default,org.eclipse.equinox.preferences at default:default,com.springsource.javax.servlet.jsp at default:default,org.apache.lucene at default:default,org.eclipse.help at default:default,org.eclipse.equinox.app at default:default,org.eclipse.ui.workbench.texteditor at default:default,org.eclipse.osgi.services at default:default,org.junit4 at default:default,org.eclipse.core.commands at default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics at default:default,org.jboss.tools.usage.test at default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>


Property changes on: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.JBossToolsUsageTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -log"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.ui.ide at default:default,org.eclipse.equinox.p2.core at default:default,org.eclipse.ant.core at default:default,org.eclipse.equinox.p2.artifact.repository at default:default,org.eclipse.jface at default:default,org.eclipse.jface.databinding at default:default,org.eclipse.help at default:default,org.eclipse.core.variables at default:default,org.eclipse.ui.workbench at default:default,org.eclipse.core.expressions at default:default,org.eclipse.core.contenttype at default:default,org.eclipse.jface.text at default:default,org.eclipse.ecf at default:default,org.eclipse.equinox.common at 2:true,com.springsource.org.apache.commons.codec at default:default,org.jboss.tools.xulrunner.initializer at default:false,org.eclipse.core.filesystem.linux.x86 at default:false,org.eclipse.core.jobs at default:default,org.eclipse.core.runtime.compatibility.auth at default:default,org.eclipse.ecf.filetransfer at default:default,com.springsource.org.apache.commons.logging at default:default,or!
 g.eclipse.equinox.p2.repository at default:default,org.eclipse.text at default:default,org.eclipse.ecf.provider.filetransfer.ssl at default:false,org.eclipse.core.databinding at default:default,javax.servlet at default:default,org.eclipse.equinox.p2.metadata at default:default,org.eclipse.equinox.app at default:default,org.eclipse.swt.gtk.linux.x86 at default:false,org.apache.commons.httpclient at default:default,org.eclipse.ecf.ssl at default:false,org.eclipse.equinox.preferences at default:default,org.eclipse.ecf.provider.filetransfer at default:default,org.eclipse.core.net at default:default,org.eclipse.ui.views at default:default,org.eclipse.core.runtime.compatibility.registry at default:false,org.eclipse.equinox.security at default:default,org.eclipse.ui.forms at default:default,org.eclipse.swt at default:default,org.eclipse.core.resources.compatibility at default:false,org.eclipse.ecf.identity at default:default,org.eclipse.core.databinding.observable at default:default,org.eclipse.core.commands at default:default,org.eclipse.core.n!
 et.linux.x86 at default:false,org.junit4 at default:default,org.ecli!
 pse.core
.filesystem at default:default,org.eclipse.core.resources at default:default,org.hamcrest.core at default:default,com.ibm.icu at default:default,org.eclipse.core.runtime at default:true,org.eclipse.osgi.services at default:default,org.eclipse.equinox.p2.engine at default:default,org.eclipse.equinox.registry at default:default,org.eclipse.ui at default:default,org.eclipse.equinox.p2.jarprocessor at default:default,org.eclipse.equinox.transforms.hook at default:false,javax.transaction at default:false,org.eclipse.osgi at -1:true,org.eclipse.core.databinding.property at default:default,org.eclipse.equinox.p2.metadata.repository at default:default,org.eclipse.equinox.concurrent at default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.test at default:default,org.jboss.tools.usage at default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>


Property changes on: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Tests for JBoss Tools Google Analytics
+Bundle-SymbolicName: org.jboss.tools.usage.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.jboss.tools.usage;bundle-version="1.0.0",
+ org.junit4;bundle-version="[4.5.0,5.0.0)",
+ org.eclipse.osgi;bundle-version="3.5.2",
+ org.eclipse.core.runtime;bundle-version="3.5.0"
+Bundle-Activator: GoogleAnalyticsTestActivator


Property changes on: trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
===================================================================
(Binary files differ)


Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/usage/org.jboss.tools.usage.test/build.properties
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/build.properties	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/build.properties	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .


Property changes on: trunk/usage/org.jboss.tools.usage.test/build.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,42 @@
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+
+import junit.framework.TestCase;
+
+public class FocusPointTest extends TestCase {
+
+	private static final String root = "root";
+	private static final String child1 = "child1";
+	private static final String child2 = "child2";
+	
+	public void testGetContentURI_Simple() throws Exception {
+		FocusPoint focusPoint = new FocusPoint(root);
+		String contentURI = focusPoint.getContentURI();
+		assertNotNull(contentURI);
+		assertEquals(FocusPoint.URI_SEPARATOR + root, contentURI);
+	}
+
+	public void testGetContentURI_OneLevel() throws Exception {
+		FocusPoint focusPoint = new FocusPoint(root).setChild(new FocusPoint(child1));
+		String contentURI = focusPoint.getContentURI();
+		assertNotNull(contentURI);
+		assertEquals(FocusPoint.URI_SEPARATOR + root + FocusPoint.URI_SEPARATOR + child1, contentURI);
+	}
+
+	public void testGetContentTitle_Simple() throws Exception {
+		FocusPoint focusPoint = new FocusPoint(root);
+		String contentTitle = focusPoint.getContentTitle();
+		assertNotNull(contentTitle);
+		assertEquals(root, contentTitle);
+	}
+
+	public void testGetContentTitle_OneLevel() throws Exception {
+//		FocusPoint parentFocusPoint = new FocusPoint(JBOSS_TOOLS_USAGE_ID);
+//		FocusPoint childFocusPoint = new FocusPoint(JBOSS_TOOLS_SMOOKS_UI,
+//				parentFocusPoint);
+//		String contentTitle = childFocusPoint.getContentTitle();
+//		assertNotNull(contentTitle);
+//		assertEquals(JBOSS_TOOLS_USAGE_ID + FocusPoint.TITLE_SEPARATOR + JBOSS_TOOLS_SMOOKS_UI, contentTitle);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,131 @@
+package org.jboss.tools.usage.test;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.net.HttpURLConnection;
+
+import org.jboss.tools.usage.jgoogleanalytics.HttpGetMethod;
+import org.junit.Test;
+
+public class JBossToolsUsageRequestsTest {
+
+	private static final String GOOGLE_ANALYTICS_TRACKING_URL = "http://www.google-analytics.com/__utm.gif";
+
+	@Test
+	public void testUrl1() throws IOException {
+		String userAgent = "com.jboss.jbds.product/3.5.0 (gtk; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+		TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+		String url = GOOGLE_ANALYTICS_TRACKING_URL
+		+ "?" 
+		+"utmwv=1"
+		+ "&utmn=2016784548"
+		+ "&utmcs=UTF-8"
+		+ "&utmsc=24-bit"
+		+ "&utmsr=1920x1080"
+		+ "&utmul=en_US"
+		+ "&utmcr=1"
+		+ "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+		+ "&utmhn=localhost"
+		+ "&utmr=org.jboss.tools.usage.tests"
+		+ "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl1"
+		+ "&utmac=UA-17645367-1"
+		+ "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+		method.request(url);
+		assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+	}
+
+	@Test
+	public void testUrl1_Session2() throws IOException {
+		String userAgent = "com.jboss.jbds.product/3.0.1 (gtk; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+		TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+		String url = GOOGLE_ANALYTICS_TRACKING_URL
+		+ "?" 
+		+"utmwv=1"
+		+ "&utmn=2016784548"
+		+ "&utmcs=UTF-8"
+		+ "&utmsc=24-bit"
+		+ "&utmsr=1920x1080"
+		+ "&utmul=en_US"
+		+ "&utmcr=1"
+		+ "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+		+ "&utmhn=localhost"
+		+ "&utmr=org.jboss.tools.usage.tests"
+		+ "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl1_Session2"
+		+ "&utmac=UA-17645367-1"
+		+ "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+		method.request(url);
+		assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+	}
+
+	@Test
+	public void testUrl2() throws IOException {
+		String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+		TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+		String url = GOOGLE_ANALYTICS_TRACKING_URL
+		+ "?" 
+		+"utmwv=1"
+		+ "&utmn=2016784548"
+		+ "&utmcs=UTF-8"
+		+ "&utmsc=24-bit"
+		+ "&utmsr=1920x1080"
+		+ "&utmul=en_US"
+		+ "&utmcr=1"
+		+ "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+		+ "&utmhn=localhost"
+		+ "&utmr=org.jboss.tools.usage.tests"
+		+ "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl2"
+		+ "&utmac=UA-17645367-1"
+		+ "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+		method.request(url);
+		assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+	}
+
+	@Test
+	public void testUrl3() throws IOException {
+		String userAgent = "com.jboss.jbds.product/3.0.1 (X11; linux x86; en_US) v20090525 Eclipse/3.5.0";
+		TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+		String url = GOOGLE_ANALYTICS_TRACKING_URL
+		+ "?" 
+		+"utmwv=1"
+		+ "&utmn=2016784548"
+		+ "&utmcs=UTF-8"
+		+ "&utmsc=24-bit"
+		+ "&utmsr=1920x1080"
+		+ "&utmul=en_US"
+		+ "&utmcr=1"
+		+ "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+		+ "&utmhn=localhost"
+		+ "&utmr=org.jboss.tools.usage.tests"
+		+ "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl3"
+		+ "&utmac=UA-17645367-1"
+		+ "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+		method.request(url);
+		assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+	}
+
+	protected class TestHttpGetMethod extends HttpGetMethod {
+
+		private HttpURLConnection urlConnection;
+
+
+		public TestHttpGetMethod(String userAgent) {
+			super(userAgent);
+		}
+
+		@Override
+		protected HttpURLConnection createURLConnection(String urlString,
+				String userAgent) throws IOException {
+			this.urlConnection = super.createURLConnection(urlString, userAgent);
+			return urlConnection;
+		}
+
+		public int getResponseCode() throws IOException {
+			return super.getResponseCode(urlConnection);
+		}
+	}
+	
+}


Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.IUsageTracker;
+import org.jboss.tools.usage.jgoogleanalytics.EclipseEnvironment;
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+import org.jboss.tools.usage.jgoogleanalytics.IGoogleAnalyticsParameters;
+import org.jboss.tools.usage.jgoogleanalytics.JGoogleAnalyticsTracker;
+import org.jboss.tools.usage.jgoogleanalytics.PluginLogger;
+import org.jboss.tools.usage.test.internal.JBossToolsUsageTestActivator;
+import org.junit.Test;
+
+public class JBossToolsUsageTest {
+
+	private FocusPoint focusPoint = new FocusPoint("jboss.org")
+			.setChild(new FocusPoint("tools")
+					.setChild(new FocusPoint("usage")
+							.setChild(new FocusPoint("action")
+									.setChild(new FocusPoint("wsstartup")
+											.setChild(new FocusPoint("test"))))));
+
+	private static final String GANALYTICS_TRACKINGCODE = "UA-17645367-1";
+
+	@Test
+	public void testTrackAsynchronously() throws Exception {
+		IUsageTracker tracker = getGoogleAnalyticsTracker();
+		tracker.trackAsynchronously(focusPoint);
+		Thread.sleep(3000);
+	}
+
+	@Test
+	public void testTrackSynchronously() throws Exception {
+		IUsageTracker tracker = getGoogleAnalyticsTracker();
+		tracker.trackSynchronously(focusPoint);
+	}
+
+	private IUsageTracker getGoogleAnalyticsTracker() {
+		IGoogleAnalyticsParameters eclipseSettings = new EclipseEnvironment(
+				GANALYTICS_TRACKINGCODE, JBossToolsUsageTestActivator.PLUGIN_ID);
+		JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(eclipseSettings);
+		tracker.setLoggingAdapter(new PluginLogger(JBossToolsUsageTestActivator
+				.getDefault()));
+		return tracker;
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,14 @@
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.jgoogleanalytics.ILoggingAdapter;
+
+public class SystemOutLogger implements ILoggingAdapter {
+
+	public void logError(String errorMessage) {
+		System.out.println("errorMessage = " + errorMessage);
+	}
+
+	public void logMessage(String message) {
+		System.out.println("message = " + message);
+	}
+}


Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java	                        (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java	2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,29 @@
+package org.jboss.tools.usage.test.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+public class JBossToolsUsageTestActivator extends Plugin {
+
+	public static final String PLUGIN_ID = "org.jboss.tools.usage.tests"; //$NON-NLS-1$
+
+	private static JBossToolsUsageTestActivator plugin;
+	
+	public JBossToolsUsageTestActivator() {
+		plugin = this;
+	}
+
+	public void start(BundleContext context) throws Exception {
+		super.start(context);
+	}
+
+	@Override
+	public void stop(BundleContext context) throws Exception {
+		plugin = null;
+		super.stop(context);
+	}
+
+	public static JBossToolsUsageTestActivator getDefault() {
+		return plugin;
+	}
+}
\ No newline at end of file


Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain



More information about the jbosstools-commits mailing list