While admittedly the method call below is damn ugly to
begin with, it becomes even more unreadable after
formatting.
<pre>
contentBuffer.append(SimpleItemTemplator.matchInFile(
new String[] {
"##loginForm##",
SimpleItemTemplator.matchInFile(
new String[] {
"##successPage##",
successPage,
"##errorPage##",
errorPage
},
DefaultsLoader.getFullFilePath(
"templates/loginForm.txt"))
},
SimpleItemTemplator.loadWithoutMatch(
DefaultsLoader.getFullFilePath(
"templates/loginToCheckOut.txt"))));
</pre>
becomes the following after formatting
<pre>
contentBuffer.append(SimpleItemTemplator.matchInFile(
new String[] {
"##loginForm##",
SimpleItemTemplator.matchInFile(
new String[] {
"##successPage##",
successPage,
"##errorPage##",
errorPage
},
DefaultsLoader.getFullFilePath(
"templates/loginForm.txt"))
},
SimpleItemTemplator.loadWithoutMatch(
DefaultsLoader.getFullFilePath(
"templates/loginToCheckOut.txt"))));
</pre>
done via the netbeans plug-in
Marco Hunsicker
Printer Java
None
Public
|
Date: 2002-10-13 15:52 Logged In: YES |
|
Date: 2002-10-13 10:18 Logged In: YES |
|
Date: 2002-10-02 18:26 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| test.java | Demonstrates current capabilities | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2002-11-13 00:02 | marcohu |
| status_id | Open | 2002-11-13 00:02 | marcohu |
| resolution_id | None | 2002-11-13 00:02 | marcohu |
| assigned_to | nobody | 2002-10-13 10:19 | marcohu |
| summary | bad indentation in method with new array | 2002-10-13 10:19 | marcohu |
| category_id | None | 2002-10-13 10:19 | marcohu |
| priority | 5 | 2002-10-13 10:19 | marcohu |
| File Added | 32981: test.java | 2002-10-13 10:18 | marcohu |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use