Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324709

Summary: [Wizards] Include a wizard for creating Velocity template files in Tigerstripe plugin projects
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: UIAssignee: Navid Mehregani <nmehrega>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: stjerman
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Navid Mehregani CLA 2010-09-07 22:07:26 EDT
Build Identifier: 

This enhancement has been requested by one of users (Steve Jerman).  I agree that it's a good usability improvement:

At the moment users create Velocity template files by using New > Other > General > File wizard in Eclipse.  We should create a custom wizard for creating Velocity template files.  This wizard would enforce the following:

- Ensure that the file ends with .vm file extension
- The file ends up in 'templates' folder of a plugin project
- Any name conventions??

Reproducible: Always
Comment 1 Navid Mehregani CLA 2010-10-14 16:54:10 EDT
This enhancement has been completed.  New Velocity Template Wizard is available by right clicking on a Tigerstripe plugin project.  New wizard completes the following validation:

- Template file must have a .vm file extension (if a file extension is not specified, it's automatically added)
- Template file is automatically created in the project's 'templates' folder.  It doesn't matter which resource the user right clicked on to invoke the wizard
- Filename must not contain any invalid characters
- Velocity template files can only be created for a Tigerstripe plugin project

Once the file is created, it's automatically opened and selected in TS explorer.

Modified/new files:

NewVelocityTemplateWizard - NEW
NewVelocityWizardPage  - NEW
velo_icon.gif - NEW
org.eclipse.tigerstripe.workbench.ui.base.plugin.xml - MODIFIED