Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java25
1 files changed, 23 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java b/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java
index 73dbfd80c1..1d32933a95 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java
+++ b/plugins/org.eclipse.emf.cdo.examples.server/src-gen/templates/ConfigOverview.java
@@ -1,5 +1,6 @@
package templates;
+import java.util.*;
import org.eclipse.emf.cdo.examples.server.*;
public class ConfigOverview
@@ -17,8 +18,13 @@ public class ConfigOverview
protected final String TEXT_1 = "";
protected final String TEXT_2 = NL + NL + "<html>" + NL + " <header>" + NL + "\t <title>" + NL + "\t\t\t";
protected final String TEXT_3 = NL + "\t </title>" + NL + "\t\t<link media=\"screen\" href=\"gastro.css\" type=\"text/css\" rel=\"stylesheet\">" + NL + "\t<header>" + NL + "<body>" + NL + "" + NL + "<h1>";
- protected final String TEXT_4 = "</h1>" + NL + "<table border=\"0\" width=\"400\">" + NL + "</table>" + NL + "" + NL + "</body>" + NL + "</html>";
- protected final String TEXT_5 = NL;
+ protected final String TEXT_4 = "</h1>" + NL + "" + NL + "<table border=\"0\" width=\"400\">" + NL + "\t<tr><td>Mode:</td><td>";
+ protected final String TEXT_5 = "</td></tr>" + NL + "\t<tr><td>User IDs:</td><td>" + NL + "\t";
+ protected final String TEXT_6 = NL + "\t\t\t";
+ protected final String TEXT_7 = ": ";
+ protected final String TEXT_8 = "<br>";
+ protected final String TEXT_9 = NL + "\t\t</td></tr>" + NL + "</table>" + NL + "" + NL + "</body>" + NL + "</html>";
+ protected final String TEXT_10 = NL;
public String generate(Object argument)
{
@@ -31,7 +37,22 @@ public class ConfigOverview
stringBuffer.append(TEXT_3);
stringBuffer.append(title);
stringBuffer.append(TEXT_4);
+ stringBuffer.append(AbstractTemplateServlet.html(config.getMode().toString()));
stringBuffer.append(TEXT_5);
+
+ Map<String, char[]> users = config.getUsers();
+ List<String> userIDs = new ArrayList<String>(users.keySet());
+ Collections.sort(userIDs);
+ for (String userID : userIDs)
+ {
+ stringBuffer.append(TEXT_6);
+ stringBuffer.append(userID);
+ stringBuffer.append(TEXT_7);
+ stringBuffer.append(users.get(userID));
+ stringBuffer.append(TEXT_8);
+ }
+ stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_10);
return stringBuffer.toString();
}
}

Back to the top