Lines Matching refs:data

109      * 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>
129 * @return an empty string if nothing to add, the data otherwise.
136 * Get all data required to create a diff view wrt. to this request in one
147 DiffData data = new DiffData();
148 data.path = getPath().substring(0, path.lastIndexOf('/'));
149 data.filename = Util.htmlize(getResourceFile().getName());
155 data.rev = new String[2];
156 data.file = new String[2][];
157 data.param = new String[2];
172 data.rev[i - 1] = tmp[1];
175 if (data.rev[0] == null || data.rev[1] == null
176 || data.rev[0].length() == 0 || data.rev[1].length() == 0
177 || data.rev[0].equals(data.rev[1])) {
178 data.errorMsg = "Please pick two revisions to compare the changed "
181 return data;
183 data.genre = AnalyzerGuru.getGenre(getResourceFile().getName());
185 if (data.genre == null || txtGenres.contains(data.genre)) {
191 in[i] = HistoryGuru.getInstance().getRevision(f.getParent(), f.getName(), data.rev[i]);
193 data.errorMsg = "Unable to get revision "
194 + data.rev[i] + " for file: "
196 return data;
200 if (data.genre == null) {
202 data.genre = AnalyzerGuru.getGenre(in[0]);
204 data.errorMsg = "Unable to determine the file type: "
209 if (data.genre != Genre.PLAIN && data.genre != Genre.HTML) {
210 return data;
221 data.file[i] = lines.toArray(new String[lines.size()]);
228 data.errorMsg = "Error reading revisions: "
236 if (data.errorMsg != null) {
237 return data;
240 data.revision = Diff.diff(data.file[0], data.file[1]);
242 data.errorMsg = "Unable to get diffs: "
248 filepath[i] + "@" + data.rev[i], null);
249 data.param[i] = u.getRawQuery();
254 data.full = fullDiff();
255 data.type = getDiffType();
257 return data;
483 * Get the eftar reader for the opengrok data directory. If it has been
1038 * relative to the crossfile directory of the opengrok data directory. It is
1068 * the opengrok data directory. It is tried to find the compressed file
1123 * used environment has a valid opengrok data root set and that it is an
1126 * @return the opengrok data directory.