My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Swiftwheel  
Swiftwheel, a Flywheel powered Swing program.
Featured, Phase-Deploy
Updated Mar 26, 2011 by karldinw...@gmail.com

Introduction

Swiftwheel allows you to apply a Flywheel template to each line of a text input. Swiftwheel is intended to reduce duplication of effort in quick one-time tasks. Save templates as text files for re-use for similar tasks. For repeated use of the same task, such as publishing a web site, you would probably want to create text templates and call Flywheel from your Java program.

Details

Swiftwheel solves a range of problems with regards to transforming text data.

Each input line is broken up in to words, which are represented by numbered w Flywheel variables, (w0, w1, etc). Optionally, you may specify tokens to break up each line by tokens (t0, t1, etc). The line is stored in variable l.

This image shows an example: .

Swiftwheel may be launched from the Panopset home page: http://panopset.com.

Another example

To generate getters and setters just the way you like 'em:

input

String foo ""
Integer bar 0

template


${@p cw1}${@e com.panopset.Strings.capitalize(w1)}${@q}
/**
 * ${w1}.
 */
private ${w0} ${w1};

/**
 * @return ${w1}.
 */
public ${w0} get${cw1}() {
    if (${w1} == null) {
        ${w1} = ${w2};
    }
    return ${w1};
}

/**
 * @param new${cw1} ${w1}.
 */
public void set${cw1}(final ${w0} new${cw1}) {
    ${w1} = new${cw1};
}

Sign in to add a comment
Powered by Google Project Hosting