Page 1 of 1

What Class has replaced SwingSDImageGenerator

Posted: Mon May 25, 2009 4:37 pm
by webmarck
I have been asked to upgrade a application that use

Code: Select all


String[] imageGenerationConfiguration = new String[]{xsdPathArg, RelativePath.getRelativePath(file, user_dir).substring(1, RelativePath.getRelativePath(file, user_dir).lastIndexOf("/")) + "/" + file.getName(), imagesFolderArg, mainOutputDir + "/" + imagesFolder, diagramExtensionArg, diagramExtension, useHashCodesArg, useHashCodes, generateChunksArg, generateChunks, hideCommentsArg, hideComments, hideAnnotationsArg, hideAnnotations, htmlFileNameArg, file.getName() + ".html"};
try {
SwingSDImageGenerator.main(imageGenerationConfiguration);
} catch (SecurityException e) {
// we dont care
}
This class isn't present in oxygen version 10 - what class replaced it?

Re: What Class has replaced SwingSDImageGenerator

Posted: Mon May 25, 2009 5:01 pm
by sorin_ristache
Hello,

Generating documentation for an XML Schema is more straightforward now: just call the main() method of the class ro.sync.xsd.documentation.XSDSchemaDocumentationGenerator. There is no class only for image generator anymore, just the above class for the whole process. You can look in the script schemaDocumentation.bat on Windows / schemaDocumentation.sh on Mac and Linux to see how schema documentation is generated using this class.


Regards,
Sorin