Author: snjeza
Date: 2012-02-19 09:34:34 -0500 (Sun, 19 Feb 2012)
New Revision: 38904
Removed:
trunk/central/plugins/org.jboss.tools.central/template/
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
Log:
JBIDE-10264 Wizard-ify the project examples
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2012-02-19
14:34:28 UTC (rev 38903)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2012-02-19
14:34:34 UTC (rev 38904)
@@ -567,9 +567,22 @@
}
}
}
+
projectsSection.setClient(projectsComposite);
}
+ private void addProjectExamples(FormToolkit toolkit,
+ Composite projectsComposite) {
+ List<ProjectExample> wizards = RefreshTutorialsJob.INSTANCE.getWizardProjects();
+ Collections.sort(wizards);
+ for (final ProjectExample wizard : wizards) {
+ FormText text = toolkit.createFormText(projectsComposite, true);
+ configureTutorialText(text, wizard);
+
+ }
+
+ }
+
private void createProjectLink(FormToolkit toolkit, Composite composite,
final IConfigurationElement element) {
if (element == null) {
@@ -1234,15 +1247,8 @@
return;
}
setBusyIndicator(tutorialsLoadingComposite, false);
+ addProjectExamples(toolkit, projectsComposite);
refreshTutorials();
-
- //TEMPORARY HACK FOR JBIDE-10053 (Java EE6 archetypes in the project section)
- //Should be removed once these archetype tutorials are changed to use wizards as per
JBIDE-10264
-// RefreshTutorialsJob job = RefreshTutorialsJob.INSTANCE;
-// List<ProjectExample> wizardProjects = job.getWizardProjects();
-// if (wizardProjects != null){
-// updateNewProjects(wizardProjects);
-// }
}
});
Show replies by date