return null;
}
private ChunkedTextFileEditor createEditor(File file) {
String title = LogFileUtils.getDisplayName(file);
ChunkedTextFileEditor editor = TextEditorFactory.openFileInChunks(title, file, "UTF-8", FILE_CHUNK_SIZE);
if (repository.isSystemOut(file)) {
editor.decorateText(TextStyles.SystemOutText.asTextDecorator());
} else if (repository.isSystemErr(file)) {
editor.decorateText(TextStyles.SystemErrText.asTextDecorator());
} else {
editor.decorateText(TextStyles.DefaultMonoSpaced.asTextDecorator());
}
EditorCategory category = new EditorCategory("Client Log Files", PackageResources.View.ICON);
editor.setCategory(category);
editor.setSuggestedTargetNameForCopy(file.getName());
editor.setMementoPath(new String[] { "Application", "LogFile" });
return editor;
}