Package | Description |
---|---|
com.nomagic.magicdraw.magicreport | |
com.nomagic.magicdraw.magicreport.helper | |
com.nomagic.magicdraw.magicreport.tools | |
com.nomagic.magicdraw.magicreport.ui.bean |
Modifier and Type | Method and Description |
---|---|
protected TemplateBean |
CommandLine.createTemplateBean(java.lang.String catName,
java.lang.String templName)
Create the templateBean by given category name and template name.
|
TemplateBean |
GenerateTask.getTemplateBean()
Return TemplateBean.
|
Modifier and Type | Method and Description |
---|---|
static com.nomagic.magicreport.ExtensionClassLoader |
GenerateTask.createExtensionClassLoader(java.lang.ClassLoader classLoader,
TemplateBean templateBean)
Creates class loader which is able to access extension classes (tools), including those who comes from MagicDraw plugins
|
protected ReportBean |
CommandLine.findReportBean(TemplateBean templateBean,
java.lang.String name)
Find and return instance of ReportBean from given TemplateBean and report name.
|
Constructor and Description |
---|
GenerateTask(TemplateBean templateBean)
Create task for template.
|
Modifier and Type | Method and Description |
---|---|
static TemplateBean |
TemplateHelper.getTemplateBean(java.lang.String path)
Return existing template bean from the template path.
|
static TemplateBean |
TemplateHelper.getTemplateBeanByName(java.lang.String catName,
java.lang.String templateName)
Get template bean by category name and template name
|
static TemplateBean |
TemplateHelper.importZip(java.io.File zipFile,
boolean copyToData)
Import zip file to template bean.
|
static TemplateBean |
TemplateHelper.importZip(java.io.File zipFile,
boolean copyToData,
com.nomagic.task.ProgressStatus progress)
Import zip file to template bean.
|
static TemplateBean |
TemplateHelper.loadTemplate(java.io.File templateFile)
Create a
TemplateBean from given templateFile. |
static TemplateBean |
TemplateHelper.loadTemplate(java.io.File templateFile,
boolean checkValid)
Create a
TemplateBean from given templateFile. |
static TemplateBean |
TemplateHelper.loadTemplateBean(java.io.File file) |
static TemplateBean |
TemplateHelper.reloadTemplate(TemplateBean templateBean)
Force the application to remove this template from cache and then reload it from file.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<TemplateBean> |
TemplateHelper.listAvailableTemplates(MDVersion version,
com.nomagic.magicdraw.usermodes.UserMode userMode)
Return a list of available template to MDVersion and Perspective.
|
static java.util.List<TemplateBean> |
TemplateHelper.listTemplates()
This method will automatically load all template file from "data" directory of report plugin and return a
List of
TemplateBean . |
static java.util.List<TemplateBean> |
TemplateHelper.listTemplates(boolean forceReload)
Load all template files from report plugin "data" directory and return to List of
TemplateBean . |
Modifier and Type | Method and Description |
---|---|
static boolean |
TemplateHelper.checkEdition(TemplateBean bean,
MDVersion version)
Return true if this template is valid to MDVersion.
|
static java.lang.String |
TemplateHelper.checkRequiredPlugins(TemplateBean bean) |
static java.io.File |
TemplateHelper.createTemplateFile(TemplateBean templateBean)
Create a directory or file from given template bean.
|
static javax.swing.Icon |
TemplateHelper.createTemplateIcon(TemplateBean templateBean)
Create and return icon for this template bean.
|
static void |
TemplateHelper.exportZip(java.io.File zipFile,
TemplateBean templateBean)
Export template bean to zip file with default progress status.
|
static void |
TemplateHelper.exportZip(java.io.File zipFile,
TemplateBean templateBean,
com.nomagic.task.ProgressStatus progress)
Export template bean to zip file.
|
static java.lang.String |
TemplateHelper.getDefaultReportKey(TemplateBean templateBean)
Return a key for default report preference.
|
static java.io.File |
TemplateHelper.getTemplateFile(TemplateBean templateBean) |
static java.io.File |
TemplateHelper.getTemplateFile(TemplateBean templateBean,
boolean revolveDir) |
static boolean |
TemplateHelper.isFileExternal(java.io.File file,
TemplateBean templateBean) |
static void |
TemplateHelper.loadReportDataAndConfig(java.io.File templateDir,
TemplateBean templateBean) |
static void |
TemplateHelper.loadTemplateBean(TemplateBean templateBean,
org.w3c.dom.Document document) |
static TemplateBean |
TemplateHelper.reloadTemplate(TemplateBean templateBean)
Force the application to remove this template from cache and then reload it from file.
|
static void |
TemplateHelper.removeTemplate(TemplateBean templateBean)
Delete a template file from physical storage.
|
static void |
TemplateHelper.saveReport(TemplateBean templateBean,
ReportBean reportBean)
Create a new report file from ReportBean.
|
static void |
TemplateHelper.saveTemplate(TemplateBean templateBean)
Create a new template file from TemplateBean.
|
Constructor and Description |
---|
TemplateTool(TemplateBean templateBean)
Create a tool with information from template bean.
|
Modifier and Type | Method and Description |
---|---|
int |
TemplateBean.compareTo(TemplateBean that)
Compares this object with the specified object for order.
|