Lines Matching defs:data

110      * Add the given data to the <head> section of the html page to
112 * @param data data to add. It is copied as is, so remember to escape
115 public void addHeaderData(String data) {
116 if (data == null || data.length() == 0) {
122 headLines.append(data);
126 * Get addition data, which should be added as is to the <head>
128 * @return an empty string if nothing to add, the data otherwise.
135 * Get all data required to create a diff view wrt. to this request in one go.
145 DiffData data = new DiffData();
146 data.file = new String[2][];
164 data.fp1 = filepath[0];
165 data.fp2 = filepath[1];
170 data.errorMsg = "Please pick two revisions to compare the changed "
173 return data;
175 data.rev1 = rev[0]; data.rev2 = rev[1];
188 data.errorMsg = "Unable to get revision " + rev[i]
190 return data;
195 data.errorMsg = "Error when trying to determine the file type of "
198 return data;
201 data.errorMsg = "Unable to determine the file type of "
203 return data;
207 data.errorMsg = "Diffs between files of different type ("
209 return data;
211 data.genre = genre[0];
212 if (data.genre != Genre.PLAIN && data.genre != Genre.HTML) {
213 return data;
225 data.file[i] = lines.toArray(new String[lines.size()]);
232 data.errorMsg = "Error reading revisions: "
240 if (data.errorMsg != null) {
241 return data;
244 data.revision = Diff.diff(data.file[0], data.file[1]);
246 data.errorMsg = "Unable to get diffs: "
253 data.rp1 = dd[0];
254 data.rp2 = dd[1];
255 data.full = fullDiff();
256 data.type = getDiffType();
257 data.reqURI = req.getRequestURI();
258 return data;
522 * Get the eftar reader for the opengrok data directory. If it has been
1075 * relative to the crossfile directory of the opengrok data directory.
1101 * of the opengrok data directory.
1152 * It is veriefied, that the used environment has a valid opengrok data root
1154 * @return the opengrok data directory.