use of org.eclipse.n4js.jsdoc2spec.SpecFile in project n4js by eclipse.
the class SummaryPageVisibilityListener method isVisibleChanged.
@Override
public void isVisibleChanged(boolean visible) {
if (visible) {
Set<SpecFile> specChangeSet = csp.getSpecChangeSet();
if (specChangeSet == null || specChangeSet.isEmpty()) {
summaryPage.setText("No files were changed");
} else {
StringBuilder strb = new StringBuilder("The following files will be updated on finish:\n");
for (SpecFile specChange : specChangeSet) {
strb.append("\n ").append(specChange.getFileKey().toString());
}
summaryPage.setText(strb.toString());
}
}
}
use of org.eclipse.n4js.jsdoc2spec.SpecFile in project n4js by eclipse.
the class IndexEntryWriter method getSpecFile.
/**
* This method should be invoked after all entries were passed to this instance using {@link #serialize(ArrayList)}.
* It returns a file including all contents ready to be written to the disk.
*/
public SpecFile getSpecFile(File rootDir) {
String fileName = getFileName();
String absFileName = rootDir + File.separator + FileSystem.DIR_ADOC_GEN + File.separator + fileName;
File indexFile = new File(absFileName);
String indexContent = strb.toString();
SpecFile scf = createSpecFile(indexFile, indexContent);
return scf;
}
use of org.eclipse.n4js.jsdoc2spec.SpecFile in project n4js by eclipse.
the class WebContentFileWriter method generateAllPackagesFile.
private void generateAllPackagesFile(File rootDir, List<SpecFile> specFiles) {
String fileName = "allPackages.adoc";
String absFileName = rootDir + SEP + fileName;
File indexFile = new File(absFileName);
String indexContent = allPackagesStrb.toString();
SpecFile scf = new SpecListingFile(indexFile, indexContent, "All Packages Overview");
specFiles.add(scf);
}
Aggregations