[jbosstools-commits] JBoss Tools SVN: r23666 - in trunk: gwt and 26 other directories.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Jul 22 09:53:16 EDT 2010
Author: adietish
Date: 2010-07-22 09:53:14 -0400 (Thu, 22 Jul 2010)
New Revision: 23666
Added:
trunk/gwt/
trunk/gwt/features/
trunk/gwt/features/org.jboss.tools.gwt.feature/
trunk/gwt/features/org.jboss.tools.gwt.feature/.project
trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties
trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml
trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml
trunk/gwt/features/pom.xml
trunk/gwt/plugins/
trunk/gwt/plugins/org.jboss.tools.gwt.core/
trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath
trunk/gwt/plugins/org.jboss.tools.gwt.core/.project
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/
trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF
trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties
trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml
trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/
trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java
trunk/gwt/plugins/org.jboss.tools.gwt.ui/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs
trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF
trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties
trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml
trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/
trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java
trunk/gwt/plugins/pom.xml
trunk/gwt/pom.xml
trunk/gwt/site/
trunk/gwt/site/pom.xml
trunk/gwt/tests/
trunk/gwt/tests/pom.xml
Modified:
trunk/parent-pom.xml
trunk/pom.xml
Log:
https://jira.jboss.org/browse/JBIDE-6695 create wtp support for gwt
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/.project
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/.project (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1 @@
+bin.includes = feature.xml
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/feature.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.gwt.feature"
+ label="Feature"
+ version="1.0.0.qualifier"
+ provider-name="JBoss by Red Hat">
+
+ <description url="http://www.example.com/description">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright url="http://www.example.com/copyright">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license url="http://www.example.com/license">
+ [Enter License Description here.]
+ </license>
+
+ <plugin
+ id="org.jboss.tools.gwt.core"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.gwt.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Added: trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml
===================================================================
--- trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml (rev 0)
+++ trunk/gwt/features/org.jboss.tools.gwt.feature/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.features</groupId>
+ <artifactId>org.jboss.tools.gwt.feature</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-feature</packaging>
+</project>
Added: trunk/gwt/features/pom.xml
===================================================================
--- trunk/gwt/features/pom.xml (rev 0)
+++ trunk/gwt/features/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,13 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>features</artifactId>
+ <name>gwt.features</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.gwt.feature</module>
+ </modules>
+</project>
+
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.classpath 2010-07-22 13:53:14 UTC (rev 23666)
@@ -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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.project
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.project (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.core</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.core.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+#Tue Jul 20 23:38:13 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=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
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/.settings/org.eclipse.jdt.ui.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,4 @@
+#Tue Jul 20 16:20:52 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/META-INF/MANIFEST.MF 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools GWT (experimental)
+Bundle-SymbolicName: org.jboss.tools.gwt.core;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.gwt.core.internal.GWTCoreActivator
+Bundle-Vendor: JBoss by Red Hat
+Require-Bundle:
+ org.jboss.tools.common;bundle-version="[3.2.0,4.0.0)",
+ com.google.gwt.eclipse.core;bundle-version="[1.3.3,2.0.0)",
+ com.google.gwt.eclipse.sdkbundle.2.0.4;bundle-version="[2.0.4,3.0.0)",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.0,2.0.0)",
+ org.eclipse.core.resources;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.jdt.core;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.emfworkbench.integration;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.jem.util;bundle-version="[2.0.201,3.0.0)",
+ org.eclipse.jst.j2ee.core;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.jst.j2ee;bundle-version="[1.1.302,2.0.0)",
+ org.eclipse.emf.ecore;bundle-version="[2.5.0,3.0.0)",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.frameworks;bundle-version="[1.1.300,2.0.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.gwt.core,
+ org.jboss.tools.gwt.core.util
+Bundle-ActivationPolicy: lazy
+
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ bin/
+src.includes = .classpath,\
+ .project,\
+ .settings/,\
+ META-INF/,\
+ bin/,\
+ build.properties,\
+ plugin.xml,\
+ src/
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/plugin.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.wst.common.project.facet.core.facets">
+ <project-facet
+ id="jboss.gwt">
+ <label>
+ Google Web Toolkit (GWT) [Experimental]
+ </label>
+ <description>
+ Enables the project to work with Google Web Toolkit
+ </description>
+ </project-facet>
+ <project-facet-version
+ facet="jboss.gwt"
+ version="1.3.3">
+ <constraint>
+ <or>
+ <requires
+ facet="jst.web"
+ version="[2.4">
+ </requires>
+ <requires
+ facet="jst.java"
+ version="5.0">
+ </requires>
+ </or>
+ </constraint>
+ </project-facet-version>
+ <project-facet-version
+ facet="jboss.gwt"
+ version="1.4.0">
+ <constraint>
+ <or>
+ <requires
+ facet="jst.web"
+ version="[2.4">
+ </requires>
+ <requires
+ facet="jst.java"
+ version="5.0">
+ </requires>
+ </or>
+ </constraint>
+ </project-facet-version>
+ <action
+ facet="jboss.gwt"
+ id="jboss.gwt.install"
+ type="INSTALL"
+ version="[1.3.3">
+ <delegate
+ class="org.jboss.tools.gwt.core.GWTInstallFacetDelegate">
+ </delegate>
+ <config-factory
+ class="org.jboss.tools.gwt.core.GWTInstallDataModelProvider$Factory">
+ </config-factory>
+ </action>
+ </extension>
+
+</plugin>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.plugins</groupId>
+ <artifactId>org.jboss.tools.gwt.core</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
===================================================================
(Binary files differ)
Property changes on: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-src.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
===================================================================
(Binary files differ)
Property changes on: trunk/gwt/plugins/org.jboss.tools.gwt.core/sample-hello-webContent.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallDataModelProvider.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.wst.common.componentcore.datamodel.FacetInstallDataModelProvider;
+import org.eclipse.wst.common.project.facet.core.IActionConfigFactory;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallDataModelProvider extends FacetInstallDataModelProvider {
+
+ private boolean generateSampleCode;
+
+ @Override
+ public void init() {
+ super.init();
+
+ model.setProperty(FACET_ID, IJBossToolsGWTPluginConstants.FACET_ID);
+ }
+
+ public static class Factory implements IActionConfigFactory {
+ public Object create() throws CoreException {
+ return new GWTInstallDataModelProvider();
+ }
+ }
+
+ public void setGenerateSampleCode(boolean generateSampleCode) {
+ this.generateSampleCode = generateSampleCode;
+ }
+
+ /**
+ * Returns whether the sample code shall be generated.
+ *
+ * @return <tt>true</tt>, if the sample code shall be generated
+ */
+ public boolean isGenerateSampleCode() {
+ return generateSampleCode;
+ }
+
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/GWTInstallFacetDelegate.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core;
+
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.text.MessageFormat;
+import java.util.List;
+import java.util.zip.ZipInputStream;
+
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRunnable;
+import org.eclipse.core.resources.ProjectScope;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.IScopeContext;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.j2ee.model.ModelProviderManager;
+import org.eclipse.jst.j2ee.webapplication.WebapplicationFactory;
+import org.eclipse.jst.j2ee.webapplication.WelcomeFile;
+import org.eclipse.jst.javaee.core.JavaeeFactory;
+import org.eclipse.jst.javaee.core.UrlPatternType;
+import org.eclipse.jst.javaee.web.Servlet;
+import org.eclipse.jst.javaee.web.ServletMapping;
+import org.eclipse.jst.javaee.web.WebApp;
+import org.eclipse.jst.javaee.web.WebFactory;
+import org.eclipse.jst.javaee.web.WelcomeFileList;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.jboss.tools.common.EclipseUtil;
+import org.jboss.tools.common.log.LogHelper;
+import org.jboss.tools.gwt.core.internal.GWTCoreActivator;
+import org.jboss.tools.gwt.core.util.ProjectUtils;
+import org.osgi.service.prefs.BackingStoreException;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallFacetDelegate implements IDelegate {
+
+ public void execute(IProject project, IProjectFacetVersion projectFacetVersion, Object config,
+ IProgressMonitor monitor) throws CoreException {
+ try {
+
+ GWTInstallDataModelProvider dataModel = (GWTInstallDataModelProvider) config;
+ IJavaProject javaProject = JavaCore.create(project);
+
+ addNature(javaProject, monitor);
+
+ addClasspathContainer(javaProject, monitor);
+
+ IPath webContentPath = ProjectUtils.getWebContentRootPath(javaProject.getProject());
+ Assert.isTrue(webContentPath != null && !webContentPath.isEmpty(),
+ MessageFormat
+ .format("no web content folder was found in project {0}", javaProject.getElementName()));
+
+ IScopeContext projectScope = new ProjectScope(project);
+ createWebApplicationPreferences(
+ projectScope.getNode(IGoogleEclipsePluginConstants.GDT_PLUGIN_ID),
+ webContentPath, javaProject, monitor);
+
+ configureOutputFolder(webContentPath, javaProject, monitor);
+
+ List<IPath> srcFolderPaths = ProjectUtils.getSourceFolders(javaProject);
+ Assert.isTrue(srcFolderPaths.size() > 0,
+ MessageFormat.format("no source folders were found in project {0}", javaProject.getElementName()));
+ createSample(srcFolderPaths, webContentPath, dataModel, javaProject, monitor);
+
+ configureWebXml(project, monitor);
+
+ } catch (BackingStoreException e) {
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not store preferences.", e);
+ } catch (Exception e) {
+
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not create gwt facet.", e);
+ }
+ }
+
+ private void addNature(IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
+ monitor.subTask("adding gwt nature");
+
+ EclipseUtil.addNatureToProject(javaProject.getProject(), IGoogleEclipsePluginConstants.GWT_NATURE);
+ }
+
+ private void addClasspathContainer(IJavaProject javaProject, IProgressMonitor monitor) throws CoreException {
+ monitor.subTask("adding gwt container to classpath");
+
+ IClasspathEntry entry = JavaCore.newContainerEntry(new Path(IGoogleEclipsePluginConstants.GWT_CONTAINER_ID),
+ false);
+ ProjectUtils.addClasspathEntry(javaProject, entry, monitor);
+ }
+
+ private void createWebApplicationPreferences(IEclipsePreferences preferences, IPath webContentPath,
+ IJavaProject javaProject, IProgressMonitor monitor) throws BackingStoreException, CoreException {
+ monitor.subTask("creating web application preferences");
+
+ preferences.put(IGoogleEclipsePluginConstants.WAR_SRCDIR_KEY, webContentPath.makeRelativeTo(
+ javaProject.getPath()).toString());
+ preferences.put(IGoogleEclipsePluginConstants.WAR_SRCDIR_ISOUTPUT_KEY,
+ IGoogleEclipsePluginConstants.WAR_SRCDIR_ISOUTPUT_DEFAULTVALUE);
+ preferences.flush();
+ }
+
+ private void configureOutputFolder(IPath webContentProjectPath, IJavaProject javaProject, IProgressMonitor monitor)
+ throws CoreException, JavaModelException {
+ monitor.subTask("configuring output folder");
+ IPath outputFolderProjectPath = webContentProjectPath.append(new Path(
+ IGoogleEclipsePluginConstants.OUTPUT_FOLDER_DEFAULTVALUE));
+ IFolder outputWorkspaceFolder = javaProject.getProject().getWorkspace().getRoot().getFolder(
+ outputFolderProjectPath);
+ if (!outputWorkspaceFolder.exists()) {
+ outputWorkspaceFolder.create(false, true, monitor);
+ }
+ javaProject.setOutputLocation(outputWorkspaceFolder.getFullPath(), new NullProgressMonitor());
+ }
+
+ private void createSample(final List<IPath> srcPaths, final IPath webContentPath,
+ GWTInstallDataModelProvider dataModel, final IJavaProject javaProject, IProgressMonitor monitor)
+ throws IOException, CoreException {
+
+ if (dataModel.isGenerateSampleCode()) {
+
+ monitor.subTask("creating sample code");
+
+ javaProject.getProject().getWorkspace().run(new IWorkspaceRunnable() {
+ public void run(IProgressMonitor monitor) throws CoreException {
+ try {
+ /**
+ * TODO: it is not secure to take the first
+ * source-folder that was found (there might be several
+ * of them).
+ */
+ unzipSrc(srcPaths.get(0), javaProject);
+ unzipWebContent(webContentPath, javaProject);
+
+ } catch (IOException e) {
+ LogHelper.logError(GWTCoreActivator.getDefault(), "Could not create gwt facet", e);
+ }
+ }
+
+ }, monitor);
+
+ javaProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ }
+ }
+
+ private void unzipSrc(final IPath srcFolderPath, final IJavaProject javaProject) throws IOException {
+ ZipInputStream inputStream = new ZipInputStream(new BufferedInputStream(
+ ProjectUtils.checkedGetResourceStream(IGoogleEclipsePluginConstants.SAMPLE_HELLO_SRC_ZIP_FILENAME,
+ getClass())));
+ ProjectUtils.unzipToFolder(inputStream, ProjectUtils.getFile(srcFolderPath, javaProject.getProject()));
+ }
+
+ private void unzipWebContent(IPath webContentPath, IJavaProject javaProject) throws IOException {
+ ZipInputStream zipInputStream = new ZipInputStream(new BufferedInputStream(
+ ProjectUtils.checkedGetResourceStream(
+ IGoogleEclipsePluginConstants.SAMPLE_HELLO_WEBCONTENT_ZIP_FILENAME, getClass())));
+ ProjectUtils.unzipToFolder(zipInputStream, ProjectUtils.getFile(webContentPath, javaProject.getProject()));
+ }
+
+ /**
+ * Configures the web xml. Adds the gwt servlet, servlet mapping and welcome
+ * page.
+ *
+ * @param project
+ * the project to configure the web xml of.
+ * @param monitor
+ * the monitor to inform on progress
+ */
+ protected void configureWebXml(final IProject project, IProgressMonitor monitor) {
+ IModelProvider modelProvider = ModelProviderManager.getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+
+ monitor.subTask("configuring web.xml");
+
+ IPath webXmlPath = ProjectUtils.getWebXmlPath();
+ boolean exists = project.getProjectRelativePath().append(webXmlPath).toFile().exists();
+ if (!exists) {
+ webXmlPath = IModelProvider.FORCESAVE;
+ }
+ modelProvider.modify(new Runnable() {
+
+ public void run() {
+ IModelProvider modelProvider = ModelProviderManager.getModelProvider(project);
+ Object modelObject = modelProvider.getModelObject();
+ if (!(modelObject instanceof WebApp)) {
+ // TODO log
+ return;
+ }
+ WebApp webApp = (WebApp) modelObject;
+
+ Servlet servlet = createServlet(
+ IGoogleEclipsePluginConstants.SERVLET_NAME,
+ IGoogleEclipsePluginConstants.SERVLET_CLASS,
+ webApp);
+ createServletMapping(
+ IGoogleEclipsePluginConstants.SERVLET_MAPPING,
+ servlet,
+ webApp);
+ addWelcomePage(
+ IGoogleEclipsePluginConstants.WELCOME_FILE,
+ webApp);
+ }
+
+ }, webXmlPath);
+ }
+
+ @SuppressWarnings("unchecked")
+ private void createServletMapping(String urlPattern, Servlet servlet, WebApp webApp) {
+ ServletMapping mapping = WebFactory.eINSTANCE.createServletMapping();
+ mapping.setServletName(servlet.getServletName());
+ UrlPatternType urlPatternType = JavaeeFactory.eINSTANCE.createUrlPatternType();
+ urlPatternType.setValue(urlPattern);
+ mapping.getUrlPatterns().add(urlPatternType);
+ webApp.getServletMappings().add(mapping);
+ }
+
+ @SuppressWarnings("unchecked")
+ private Servlet createServlet(String servletName, String servletClass, WebApp webApp) {
+ Servlet servlet = WebFactory.eINSTANCE.createServlet();
+ servlet.setServletName(servletName);
+ servlet.setServletClass(servletClass);
+ webApp.getServlets().add(servlet);
+ return servlet;
+ }
+
+ @SuppressWarnings("unchecked")
+ private void addWelcomePage(String welcomeFileUrl, WebApp webApp) {
+ List<WelcomeFileList> welcomeList = webApp.getWelcomeFileLists();
+ WelcomeFileList welcomeFileList = null;
+ if (welcomeList.isEmpty()) {
+ welcomeFileList = WebFactory.eINSTANCE.createWelcomeFileList();
+ webApp.getWelcomeFileLists().add(welcomeFileList);
+ } else {
+ welcomeFileList = (WelcomeFileList) welcomeList.get(0);
+ }
+
+ WelcomeFile welcomeFile = WebapplicationFactory.eINSTANCE.createWelcomeFile();
+ welcomeFile.setWelcomeFile(welcomeFileUrl);
+ welcomeFileList.getWelcomeFiles().add(welcomeFileUrl);
+
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IGoogleEclipsePluginConstants.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core;
+
+/**
+ * A class that holds various constants that are used to handle google eclipse
+ * plugin specific functionalities.
+ *
+ * @author adietish
+ */
+public class IGoogleEclipsePluginConstants {
+
+ public static final String GWT_NATURE = "com.google.gwt.eclipse.core.gwtNature";
+
+ /** The gwt class path container id. */
+ public static final String GWT_CONTAINER_ID = "com.google.gwt.eclipse.core.GWT_CONTAINER"; //$NON-NLS-1$
+
+ /** The gwt compiler settings key. */
+ public static final String COMPILESETTINGS_KEY = "gwtCompileSettings"; //$NON-NLS-1$
+
+
+ /** The if of the gdt plugin. */
+ public static final String GDT_PLUGIN_ID = "com.google.gdt.eclipse.core"; //$NON-NLS-1$
+
+ /** The war source directory key. */
+ public static final String WAR_SRCDIR_KEY = "warSrcDir"; //$NON-NLS-1$
+
+ /** the path to the war directory. */
+ public static final String WAR_SRCDIR_ISOUTPUT_KEY = "warSrcDirIsOutput"; //$NON-NLS-1$
+
+ /** flag that tells the google plugin to compile to/run from the war directory. @see #WAR_SRCDIR_ISOUTPUT_KEY */
+ public static final String WAR_SRCDIR_ISOUTPUT_DEFAULTVALUE = "true"; //$NON-NLS-1$
+
+ /** the folder to compile to. Should be a sub-folder of the WAR_SRCDIR, otherwise google proj. validator complains. */
+ public static final String OUTPUT_FOLDER_DEFAULTVALUE = "/WEB-INF/classes"; //$NON-NLS-1$
+
+ /** the zip-file that holds the samples source that's shipped with the plugin */
+ public static final String SAMPLE_HELLO_SRC_ZIP_FILENAME = "/sample-hello-src.zip"; //$NON-NLS-1$
+
+ /** the zip-file that holds the samples web-content that's shipped with the plugin */
+ public static final String SAMPLE_HELLO_WEBCONTENT_ZIP_FILENAME = "/sample-hello-webContent.zip"; //$NON-NLS-1$
+
+ public static final String SERVLET_NAME = "greetServlet"; //$NON-NLS-1$
+
+ public static final String SERVLET_CLASS = "org.jboss.tools.gwt.server.GreetingServiceImpl"; //$NON-NLS-1$
+
+ public static final String SERVLET_MAPPING = "/gwt_jboss/greet"; //$NON-NLS-1$
+
+ public static final String WELCOME_FILE = "Gwt_jboss.html"; //$NON-NLS-1$
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/IJBossToolsGWTPluginConstants.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core;
+
+/**
+ * @author adietish
+ */
+public class IJBossToolsGWTPluginConstants {
+
+ /** The id of the jboss tools facet */
+ public static final String FACET_ID = "jboss.gwt"; //$NON-NLS-1$
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/internal/GWTCoreActivator.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class GWTCoreActivator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.gwt.core";
+
+ // The shared instance
+ private static GWTCoreActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public GWTCoreActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static GWTCoreActivator getDefault() {
+ return plugin;
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.core/src/org/jboss/tools/gwt/core/util/ProjectUtils.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,206 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.core.util;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
+
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.AssertionFailedException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.wst.common.componentcore.ComponentCore;
+import org.eclipse.wst.common.componentcore.ModuleCoreNature;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+
+/**
+ * A class that holds various utility methods that help to deal with projects.
+ *
+ * @author adietish.
+ *
+ * @see IProject
+ */
+public class ProjectUtils {
+
+ /** The name of the web xml file */
+ public static final String WEB_XML_FILE = "web.xml";
+
+ /** the folder that holds the web configurations and deployed classes */
+ public static final String WEB_INF_FOLDER = "WEB-INF";
+
+ /** Signals the end of a stream. */
+ private static final int EOS = -1;
+
+ public static IPath getWebXmlPath() {
+ return new Path(WEB_INF_FOLDER).append(WEB_XML_FILE);
+ }
+
+ /**
+ * Adds a classpath entry to the given java project.
+ *
+ * @param javaProject
+ * the java project
+ * @param entry
+ * the classpath entry to add
+ * @param monitor
+ * @throws JavaModelException
+ * signals that an error occurred when adding the given entry
+ *
+ * @see IJavaProject
+ * @see IClasspathEntry
+ */
+ public static void addClasspathEntry(IJavaProject javaProject, IClasspathEntry entry, IProgressMonitor monitor)
+ throws JavaModelException {
+ IClasspathEntry[] rawClasspath = javaProject.getRawClasspath();
+ IClasspathEntry[] newClasspath = new IClasspathEntry[rawClasspath.length + 1];
+ System.arraycopy(rawClasspath, 0, newClasspath, 0, rawClasspath.length);
+ newClasspath[rawClasspath.length] = entry;
+ javaProject.setRawClasspath(newClasspath, monitor);
+ }
+
+ /**
+ * Returns the path of the web content folder in the given project. The path
+ * returned is relative to the workspace.
+ *
+ * @param project
+ * the project to return the web content folder for
+ * @return the path of the web content folder (relative to the workspace)
+ */
+ public static IPath getWebContentRootPath(IProject project) {
+ if (!ModuleCoreNature.isFlexibleProject(project))
+ return project.getFullPath();
+ IPath path = null;
+ IVirtualComponent component = ComponentCore.createComponent(project);
+ if (component != null && component.exists()) {
+ path = component.getRootFolder().getWorkspaceRelativePath();
+ } else {
+ path = project.getFullPath();
+ }
+ return path;
+ }
+
+ /**
+ * Unzips the given ZipInputStream to the given folder.
+ *
+ * @param zipInputStream
+ * the zip input stream
+ * @param dirToExtractTo
+ * the dir to extract to
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ *
+ * @see ZipInputStream
+ * @see File
+ */
+ public static final void unzipToFolder(ZipInputStream zipInputStream, File dirToExtractTo) throws IOException {
+ Assert.isLegal(zipInputStream != null);
+ Assert.isLegal(!dirToExtractTo.exists() || dirToExtractTo.isDirectory());
+ try {
+ for (ZipEntry zipEntry = null; (zipEntry = zipInputStream.getNextEntry()) != null;) {
+ File file = new File(dirToExtractTo, zipEntry.getName());
+ if (zipEntry.isDirectory()) {
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ } else {
+ if (!file.getParentFile().exists()) {
+ file.getParentFile().mkdirs();
+ }
+ writeTo(zipInputStream, file);
+ }
+ }
+ } finally {
+ zipInputStream.close();
+ }
+ }
+
+ private static void writeTo(InputStream inputStream, File file) throws IOException {
+ BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(file));
+ byte[] buffer = new byte[8192];
+ try {
+ for (int read = 0; (read = inputStream.read(buffer)) != EOS;) {
+ outputStream.write(buffer, 0, read);
+ }
+ } finally {
+ outputStream.close();
+ }
+ }
+
+ /**
+ * Returns the (paths of) the source folders for the given java project. The
+ * paths returned are relative to the workspace.
+ *
+ * @param javaProject
+ * the java project
+ * @return the source folders (relative to the workspace)
+ * @throws JavaModelException
+ * the java model exception
+ *
+ * @see IPath
+ * @see IJavaProject
+ * @see IClasspathEntry
+ * @see IClasspathEntry#CPE_SOURCE
+ */
+ public static List<IPath> getSourceFolders(IJavaProject javaProject) throws JavaModelException {
+ List<IPath> srcFolderList = new ArrayList<IPath>();
+ for (IClasspathEntry classpathEntry : javaProject.getRawClasspath()) {
+ if (IClasspathEntry.CPE_SOURCE == classpathEntry.getEntryKind()) {
+ srcFolderList.add(classpathEntry.getPath());
+ }
+ }
+ return srcFolderList;
+ }
+
+ /**
+ * Returns a file for the given path in the given project.
+ *
+ * @param path
+ * the path to return the file for
+ * @param project
+ * the project the path's located in
+ * @return the file that represents the given path in the given project
+ */
+ public static File getFile(IPath path, IProject project) {
+ IFolder folder = project.getWorkspace().getRoot().getFolder(path);
+ return folder.getLocation().toFile();
+ }
+
+ /**
+ * Returns a resource as stream while checking whether the resource exists.
+ *
+ * @param resourceName the resource name
+ * @return the input stream
+ *
+ * @throws AssertionFailedException if the resource's not found
+ */
+ public static InputStream checkedGetResourceStream(String resourceName, Class<?> clazz) {
+ InputStream inputStream = clazz.getResourceAsStream(resourceName);
+ Assert.isTrue(inputStream != null, MessageFormat.format("Could not find the zip file {0}", resourceName));
+ return inputStream;
+ }
+
+
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.classpath 2010-07-22 13:53:14 UTC (rev 23666)
@@ -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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.project 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.gwt.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.core.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,266 @@
+#Wed Jul 21 14:58:45 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=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
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/.settings/org.eclipse.jdt.ui.prefs 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,4 @@
+#Wed Jul 21 14:58:45 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/META-INF/MANIFEST.MF 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools GWT UI (Experimental)
+Bundle-SymbolicName: org.jboss.tools.gwt.ui;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.gwt.ui.internal.GWTUIActivator
+Bundle-Vendor: JBoss by Red Hat
+Require-Bundle: org.eclipse.ui;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.wst.common.project.facet.ui;bundle-version="1.4.1",
+ org.jboss.tools.gwt.core;bundle-version="1.0.0",
+ org.eclipse.wst.common.modulecore;bundle-version="[1.1.301,2.0.0)",
+ org.eclipse.wst.common.frameworks;bundle-version="[1.1.300,2.0.0)"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.gwt.ui
+Bundle-ActivationPolicy: lazy
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/build.properties 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/plugin.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.wst.common.project.facet.ui.wizardPages">
+ <wizard-pages
+ action="jboss.gwt.install">
+ <page
+ class="org.jboss.tools.gwt.ui.GWTInstallFacetWizardPage">
+ </page>
+ </wizard-pages>
+ </extension>
+
+</plugin>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt.plugins</groupId>
+ <artifactId>org.jboss.tools.gwt.ui</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/GWTInstallFacetWizardPage.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.ui;
+
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.jface.layout.GridLayoutFactory;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
+import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
+import org.jboss.tools.gwt.core.GWTInstallDataModelProvider;
+
+/**
+ * @author adietish
+ */
+public class GWTInstallFacetWizardPage extends AbstractFacetWizardPage implements IFacetWizardPage {
+
+ private static final String WIZARD_PAGE_ID = "jboss.gwt.install.page"; //$NON-NLS-1$
+
+ GWTInstallDataModelProvider gwtInstallDataModel;
+
+ private boolean generateSampleCode;
+
+ public GWTInstallFacetWizardPage() {
+ super(WIZARD_PAGE_ID);
+ setTitle("Google Web Toolkit");
+ setDescription("Configure project for using Google Web Toolkit.");
+ }
+
+ public void setConfig(Object gwtInstallDataModel) {
+ this.gwtInstallDataModel = (GWTInstallDataModelProvider) gwtInstallDataModel;
+ }
+
+ public void createControl(Composite parent) {
+
+ Composite composite = new Composite(parent, SWT.NONE);
+
+ Label label = new Label(composite, SWT.NONE);
+ label.setText("Generate sample code:");
+ Button checkBox = new Button(composite, SWT.CHECK);
+ checkBox.addSelectionListener(onCheckboxSelected(checkBox));
+ GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).applyTo(checkBox);
+ GridLayoutFactory.fillDefaults().numColumns(2).margins(6, 6).applyTo(composite);
+
+ setControl(composite);
+ }
+
+ private SelectionAdapter onCheckboxSelected(final Button checkBox) {
+ return new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ GWTInstallFacetWizardPage.this.generateSampleCode = checkBox.getSelection();
+ }
+ };
+ }
+
+ @Override
+ public void transferStateToConfig() {
+ gwtInstallDataModel.setGenerateSampleCode(generateSampleCode);
+ }
+}
Added: trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java
===================================================================
--- trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java (rev 0)
+++ trunk/gwt/plugins/org.jboss.tools.gwt.ui/src/org/jboss/tools/gwt/ui/internal/GWTUIActivator.java 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.gwt.ui.internal;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class GWTUIActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.gwt.ui";
+
+ // The shared instance
+ private static GWTUIActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public GWTUIActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static GWTUIActivator getDefault() {
+ return plugin;
+ }
+}
Added: trunk/gwt/plugins/pom.xml
===================================================================
--- trunk/gwt/plugins/pom.xml (rev 0)
+++ trunk/gwt/plugins/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>plugins</artifactId>
+ <name>gwt.plugins</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>org.jboss.tools.gwt.core</module>
+ <module>org.jboss.tools.gwt.ui</module>
+ </modules>
+</project>
+
Added: trunk/gwt/pom.xml
===================================================================
--- trunk/gwt/pom.xml (rev 0)
+++ trunk/gwt/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,16 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>gwt</artifactId>
+ <name>gwt.all</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>features</module>
+ <module>plugins</module>
+ <module>tests</module>
+ <module>site</module>
+ </modules>
+</project>
+
Added: trunk/gwt/site/pom.xml
===================================================================
--- trunk/gwt/site/pom.xml (rev 0)
+++ trunk/gwt/site/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,14 @@
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>site</artifactId>
+ <name>gwt.site</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-update-site</packaging>
+</project>
Added: trunk/gwt/tests/pom.xml
===================================================================
--- trunk/gwt/tests/pom.xml (rev 0)
+++ trunk/gwt/tests/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -0,0 +1,12 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.gwt</groupId>
+ <artifactId>tests</artifactId>
+ <name>gwt.tests</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ </modules>
+</project>
+
Modified: trunk/parent-pom.xml
===================================================================
--- trunk/parent-pom.xml 2010-07-22 13:25:28 UTC (rev 23665)
+++ trunk/parent-pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -272,6 +272,17 @@
<enabled>true</enabled>
</releases>
</repository>
+ <repository>
+ <id>google eclipse plugins</id>
+ <url>http://dl.google.com/eclipse/plugin/3.6</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
</repositories>
</profile>
<profile>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-07-22 13:25:28 UTC (rev 23665)
+++ trunk/pom.xml 2010-07-22 13:53:14 UTC (rev 23666)
@@ -46,7 +46,7 @@
ant -q -->
<!-- IF YOU REMOVE A MODULE, be sure to also remove it from site/site.xml and build/aggregate/site/site.xml
or the build will break! -->
- <module>drools</module>
+ <!-- <module>drools</module> -->
<module>site</module>
</modules>
More information about the jbosstools-commits
mailing list