This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 189843
Collapse All | Expand All

(-)a/openide.loaders/arch.xml (+1 lines)
Lines 162-167 Link Here
162
            <li><api name="nameAndExt" category="stable" group="property" type="export"> contains the name and extension of the file that is being created</api></li>
162
            <li><api name="nameAndExt" category="stable" group="property" type="export"> contains the name and extension of the file that is being created</api></li>
163
            <li><api name="date" category="stable" group="property" type="export"> contains <code>String</code> representing the current day like <code>23. 3. 2007</code></api></li>
163
            <li><api name="date" category="stable" group="property" type="export"> contains <code>String</code> representing the current day like <code>23. 3. 2007</code></api></li>
164
            <li><api name="time" category="stable" group="property" type="export"> contains <code>String</code> the current time like <code>17:18:30</code></api></li>
164
            <li><api name="time" category="stable" group="property" type="export"> contains <code>String</code> the current time like <code>17:18:30</code></api></li>
165
            <li><api name="dateTime" category="stable" group="property" type="export"> contains <code>java.util.Date</code> representing current data and time like</api></li>
165
            <li><api name="encoding" category="stable" group="property" type="export"> contains <code>String</code> the file encoding of the template instance</api></li>
166
            <li><api name="encoding" category="stable" group="property" type="export"> contains <code>String</code> the file encoding of the template instance</api></li>
166
        </ul>
167
        </ul>
167
        
168
        
(-)a/openide.loaders/src/org/openide/loaders/DataObject.java (+3 lines)
Lines 1343-1348 Link Here
1343
            if (!all.containsKey("time")) { // NOI18N
1343
            if (!all.containsKey("time")) { // NOI18N
1344
                all.put("time", DateFormat.getTimeInstance().format(d)); // NOI18N
1344
                all.put("time", DateFormat.getTimeInstance().format(d)); // NOI18N
1345
            }
1345
            }
1346
            if (!all.containsKey("dateTime")) { // NOI18N
1347
                all.put("dateTime", d); // NOI18N
1348
            }
1346
            
1349
            
1347
            return Collections.unmodifiableMap(all);
1350
            return Collections.unmodifiableMap(all);
1348
        }
1351
        }
(-)a/openide.loaders/test/unit/src/org/netbeans/modules/templates/SCFTHandlerTest.java (+2 lines)
Lines 243-248 Link Here
243
            "<h2>${date}</h2>" +
243
            "<h2>${date}</h2>" +
244
            "<h3>${time}</h3>" +
244
            "<h3>${time}</h3>" +
245
            "<h4>${user}</h4>" +
245
            "<h4>${user}</h4>" +
246
            "<h4>${dateTime?string(\"yy\")}</h4>" +
246
            "</html>";
247
            "</html>";
247
        os.write(txt.getBytes());
248
        os.write(txt.getBytes());
248
        os.close();
249
        os.close();
Lines 265-270 Link Here
265
        if (res.indexOf("time") >= 0) fail(res);
266
        if (res.indexOf("time") >= 0) fail(res);
266
        if (res.indexOf("user") >= 0) fail(res);
267
        if (res.indexOf("user") >= 0) fail(res);
267
        if (res.indexOf("name") >= 0) fail(res);
268
        if (res.indexOf("name") >= 0) fail(res);
269
        if (res.indexOf("dateTime") >= 0) fail(res);
268
    }
270
    }
269
    
271
    
270
    private static String readFile(FileObject fo) throws IOException {
272
    private static String readFile(FileObject fo) throws IOException {

Return to bug 189843