Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324709 - [Wizards] Include a wizard for creating Velocity template files in Tigerstripe plugin projects
Summary: [Wizards] Include a wizard for creating Velocity template files in Tigerstrip...
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: 0.5M0   Edit
Assignee: Navid Mehregani CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 22:07 EDT by Navid Mehregani CLA
Modified: 2010-10-14 16:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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