core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/templatewizard/processes/CopyFiles.java
equal
deleted
inserted
replaced
47 |
47 |
48 protected static final String UPPER_SUFFIX = "$upper"; //$NON-NLS-1$ |
48 protected static final String UPPER_SUFFIX = "$upper"; //$NON-NLS-1$ |
49 protected static final String LOWER_SUFFIX = "$lower"; //$NON-NLS-1$ |
49 protected static final String LOWER_SUFFIX = "$lower"; //$NON-NLS-1$ |
50 protected static final String TITLE_SUFFIX = "$title"; //$NON-NLS-1$ |
50 protected static final String TITLE_SUFFIX = "$title"; //$NON-NLS-1$ |
51 protected static final String TITLELOWER_SUFFIX = "$titlelower"; //$NON-NLS-1$ |
51 protected static final String TITLELOWER_SUFFIX = "$titlelower"; //$NON-NLS-1$ |
|
52 protected static final String C_ESCAPED_SUFFIX = "$c_escaped"; //$NON-NLS-1$ |
52 protected static final String SOURCE_PATH_ATTRIBUTE = "sourcePath"; //$NON-NLS-1$ |
53 protected static final String SOURCE_PATH_ATTRIBUTE = "sourcePath"; //$NON-NLS-1$ |
53 protected static final String TARGET_PATH_ATTRIBUTE = "targetPath"; //$NON-NLS-1$ |
54 protected static final String TARGET_PATH_ATTRIBUTE = "targetPath"; //$NON-NLS-1$ |
54 protected static final String SUBSTITUTE_ATTRIBUTE = "substitute"; //$NON-NLS-1$ |
55 protected static final String SUBSTITUTE_ATTRIBUTE = "substitute"; //$NON-NLS-1$ |
55 protected static final String OVERWRITE_ATTRIBUTE = "overwrite"; //$NON-NLS-1$ |
56 protected static final String OVERWRITE_ATTRIBUTE = "overwrite"; //$NON-NLS-1$ |
56 |
57 |
107 } |
108 } |
108 }), |
109 }), |
109 new SuffixOperator(TITLELOWER_SUFFIX, new IConvert() { |
110 new SuffixOperator(TITLELOWER_SUFFIX, new IConvert() { |
110 public String convert(String value) { |
111 public String convert(String value) { |
111 return TextUtils.titleCase(value.toLowerCase()); |
112 return TextUtils.titleCase(value.toLowerCase()); |
|
113 } |
|
114 }), |
|
115 new SuffixOperator(C_ESCAPED_SUFFIX, new IConvert() { |
|
116 public String convert(String value) { |
|
117 return TextUtils.escape(value, '\"'); |
112 } |
118 } |
113 }) |
119 }) |
114 }; |
120 }; |
115 |
121 |
116 private static class FileInfo { |
122 private static class FileInfo { |