diff options
author | Melanie | 2012-06-28 03:21:08 +0100 |
---|---|---|
committer | Melanie | 2012-06-28 03:21:08 +0100 |
commit | 41a1903c60475fc2d98b1b11d336a3ecee0bc150 (patch) | |
tree | 0e78852eee96e9506b815cea0abbd35ac7da7f1a /OpenSim/Framework/Console | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Avoid reporting false positives when a colon is in a comment in the first lin... (diff) | |
download | opensim-SC-41a1903c60475fc2d98b1b11d336a3ecee0bc150.zip opensim-SC-41a1903c60475fc2d98b1b11d336a3ecee0bc150.tar.gz opensim-SC-41a1903c60475fc2d98b1b11d336a3ecee0bc150.tar.bz2 opensim-SC-41a1903c60475fc2d98b1b11d336a3ecee0bc150.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleDisplayTable.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/ConsoleDisplayTable.cs b/OpenSim/Framework/Console/ConsoleDisplayTable.cs index e9d1628..c620dfe 100644 --- a/OpenSim/Framework/Console/ConsoleDisplayTable.cs +++ b/OpenSim/Framework/Console/ConsoleDisplayTable.cs | |||
@@ -79,6 +79,16 @@ namespace OpenSim.Framework.Console | |||
79 | return sb.ToString(); | 79 | return sb.ToString(); |
80 | } | 80 | } |
81 | 81 | ||
82 | public void AddColumn(string name, int width) | ||
83 | { | ||
84 | Columns.Add(new ConsoleDisplayTableColumn(name, width)); | ||
85 | } | ||
86 | |||
87 | public void AddRow(params string[] cells) | ||
88 | { | ||
89 | Rows.Add(new ConsoleDisplayTableRow(cells)); | ||
90 | } | ||
91 | |||
82 | public void AddToStringBuilder(StringBuilder sb) | 92 | public void AddToStringBuilder(StringBuilder sb) |
83 | { | 93 | { |
84 | string formatString = GetFormatString(); | 94 | string formatString = GetFormatString(); |
@@ -135,5 +145,10 @@ namespace OpenSim.Framework.Console | |||
135 | { | 145 | { |
136 | Cells = cells; | 146 | Cells = cells; |
137 | } | 147 | } |
148 | |||
149 | public ConsoleDisplayTableRow(params string[] cells) : this() | ||
150 | { | ||
151 | Cells = new List<string>(cells); | ||
152 | } | ||
138 | } | 153 | } |
139 | } \ No newline at end of file | 154 | } \ No newline at end of file |