What Class has replaced SwingSDImageGenerator

Having trouble installing Oxygen? Got a bug to report? Post it all here.
webmarck
Posts: 1
Joined: Mon May 25, 2009 4:32 pm

What Class has replaced SwingSDImageGenerator

Post 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?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: What Class has replaced SwingSDImageGenerator

Post 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
Post Reply