mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-22 09:29:44 +00:00
Output table headers and file presence in default paths help output
This commit is contained in:
parent
d47319ce85
commit
25c143df87
@ -393,14 +393,23 @@ public final class LanguageHelpContentProducer implements IHelpContentProducer {
|
||||
List<CompilerPath> defaultPaths = compilerDefinition.getDefaultPaths();
|
||||
innerWriter = new HTMLWriter();
|
||||
if (!defaultPaths.isEmpty()) {
|
||||
innerWriter.beginTable(false);
|
||||
innerWriter.beginTable(true);
|
||||
innerWriter.beginTableRow();
|
||||
innerWriter.writeTableHeader(Texts.TOC_COMPILER_DEFAULT_PATHS_OS_LABEL);
|
||||
innerWriter.writeTableHeader(Texts.TOC_COMPILER_DEFAULT_PATHS_ARCHITECTURE_LABEL);
|
||||
innerWriter.writeTableHeader(Texts.TOC_COMPILER_DEFAULT_PATHS_ABSOULTE_PATH_LABEL);
|
||||
innerWriter.writeTableHeader(Texts.TOC_COMPILER_DEFAULT_PATHS_FILE_PRESENT_LABEL);
|
||||
innerWriter.end();
|
||||
for (CompilerPath compilerPath : defaultPaths) {
|
||||
innerWriter.beginTableRow();
|
||||
innerWriter.writeTableCell(compilerPath.os);
|
||||
innerWriter.writeTableCell(compilerPath.osArch);
|
||||
File file = compilerPath.getAbsoluteFile();
|
||||
// Display absolute path if available.
|
||||
boolean exists = (file != null && file.exists());
|
||||
// Display absolute path if available. This should always be the case.
|
||||
innerWriter.writeTableCell(file != null ? file.getAbsolutePath() : compilerPath.getRelativePath());
|
||||
innerWriter.writeTableCell(exists ? Texts.TOC_COMPILER_DEFAULT_PATHS_FILE_PRESENT_YES_LABEL
|
||||
: Texts.TOC_COMPILER_DEFAULT_PATHS_FILE_PRESENT_NO_LABEL);
|
||||
innerWriter.end();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user