From f84cf938d3a421cb35c950576c784c695f2d62e5 Mon Sep 17 00:00:00 2001
From: keinhaar <10001689+keinhaar@users.noreply.github.com>
Date: Sat, 25 Jan 2025 16:11:21 +0100
Subject: [PATCH] fixed template projects to work without modifications by
adding eclipse specific files and added project description as tooltip to the
combo box
---
.../client_server_shared/client/.classpath | 12 ++++++++
.../client_server_shared/client/.project | 28 +++++++++++++++++++
.../client_server_shared/server/.classpath | 12 ++++++++
.../client_server_shared/server/.project | 28 +++++++++++++++++++
.../client_server_shared/shared/.classpath | 7 +++++
.../client_server_shared/shared/.project | 28 +++++++++++++++++++
.../empty_multiproject/client/.classpath | 11 ++++++++
.../empty_multiproject/client/.project | 17 +++++++++++
.../empty_multiproject/server/.classpath | 11 ++++++++
.../empty_multiproject/server/.project | 17 +++++++++++
.../empty_multiproject/shared/.classpath | 6 ++++
.../empty_multiproject/shared/.project | 17 +++++++++++
.../NewWebAppTemplateProjectWizardPage.java | 13 +++++++++
.../suite/wizards/ProjectTemplate.java | 5 ++++
14 files changed, 212 insertions(+)
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.project
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.project
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.project
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.project
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.project
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.classpath
create mode 100644 plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.project
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.classpath
new file mode 100644
index 00000000..0db7d096
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.classpath
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.project
new file mode 100644
index 00000000..5adcd00d
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/client/.project
@@ -0,0 +1,28 @@
+
+
+ t.client
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.gwtplugins.gdt.eclipse.core.webAppProjectValidator
+
+
+
+
+ com.gwtplugins.gwt.eclipse.core.gwtProjectValidator
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ com.gwtplugins.gwt.eclipse.core.gwtNature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.classpath
new file mode 100644
index 00000000..cf78e5e5
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.classpath
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.project
new file mode 100644
index 00000000..6d51ce23
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/server/.project
@@ -0,0 +1,28 @@
+
+
+ t.server
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.gwtplugins.gdt.eclipse.core.webAppProjectValidator
+
+
+
+
+ com.gwtplugins.gwt.eclipse.core.gwtProjectValidator
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ com.gwtplugins.gwt.eclipse.core.gwtNature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.classpath
new file mode 100644
index 00000000..1efd7fe7
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.classpath
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.project
new file mode 100644
index 00000000..9e69f1e5
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/client_server_shared/shared/.project
@@ -0,0 +1,28 @@
+
+
+ t.shared
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.gwtplugins.gdt.eclipse.core.webAppProjectValidator
+
+
+
+
+ com.gwtplugins.gwt.eclipse.core.gwtProjectValidator
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ com.gwtplugins.gwt.eclipse.core.gwtNature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.classpath
new file mode 100644
index 00000000..9615df74
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.classpath
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.project
new file mode 100644
index 00000000..4e66fd78
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/client/.project
@@ -0,0 +1,17 @@
+
+
+ t.client
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.classpath
new file mode 100644
index 00000000..9615df74
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.classpath
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.project
new file mode 100644
index 00000000..a7639c4b
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/server/.project
@@ -0,0 +1,17 @@
+
+
+ t.server
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.classpath b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.classpath
new file mode 100644
index 00000000..6073fcf9
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.classpath
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.project b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.project
new file mode 100644
index 00000000..e629eaba
--- /dev/null
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/project_templates/empty_multiproject/shared/.project
@@ -0,0 +1,17 @@
+
+
+ t.shared
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/NewWebAppTemplateProjectWizardPage.java b/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/NewWebAppTemplateProjectWizardPage.java
index a18611d9..95b3c3cd 100644
--- a/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/NewWebAppTemplateProjectWizardPage.java
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/NewWebAppTemplateProjectWizardPage.java
@@ -172,6 +172,19 @@ public void modifyText(ModifyEvent e) {
final Label templateLabel = new Label(containerOfComponents, SWT.NONE);
templateLabel.setText("Select Template:");
templateCombo = new Combo(containerOfComponents, SWT.NONE);
+ templateCombo.addSelectionListener(new SelectionListener() {
+
+ @Override
+ public void widgetSelected(SelectionEvent evt) {
+ int index = templateCombo.getSelectionIndex();
+ ProjectTemplate template = templates.get(index);
+ templateCombo.setToolTipText(template.getDescription());
+ }
+
+ @Override
+ public void widgetDefaultSelected(SelectionEvent arg0) {
+ }
+ });
GridData gd3 = new GridData(GridData.FILL_HORIZONTAL);
gd3.horizontalSpan = 2;
templateCombo.setLayoutData(gd3);
diff --git a/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/ProjectTemplate.java b/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/ProjectTemplate.java
index 15110839..12ca49a7 100644
--- a/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/ProjectTemplate.java
+++ b/plugins/com.gwtplugins.gdt.eclipse.suite/src/com/google/gdt/eclipse/suite/wizards/ProjectTemplate.java
@@ -152,6 +152,11 @@ public String getName()
return config.getRootElement().getChild("name").getTextNormalize();
}
+ public String getDescription()
+ {
+ return config.getRootElement().getChild("description").getTextNormalize();
+ }
+
/**
* @param i
* @return