本文整理汇总了Java中org.insightech.er.editor.model.settings.ExportSetting类的典型用法代码示例。如果您正苦于以下问题:Java ExportSetting类的具体用法?Java ExportSetting怎么用?Java ExportSetting使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExportSetting类属于org.insightech.er.editor.model.settings包,在下文中一共展示了ExportSetting类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createXML
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
private String createXML(final ExportSetting exportSetting, final PersistentContext context) {
final StringBuilder xml = new StringBuilder();
xml.append("<export_setting>\n");
xml.append(tab(this.createXML(exportSetting.getExportDDLSetting(), context)));
xml.append(tab(this.createXML(exportSetting.getExportExcelSetting(), context)));
xml.append(tab(this.createXML(exportSetting.getExportHtmlSetting(), context)));
xml.append(tab(this.createXML(exportSetting.getExportImageSetting(), context)));
xml.append(tab(this.createXML(exportSetting.getExportJavaSetting(), context)));
xml.append(tab(this.createXML(exportSetting.getExportTestDataSetting(), context)));
xml.append("</export_setting>\n");
return xml.toString();
}
示例2: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(
ExportSetting exportSetting) throws InputException {
ExportHtmlSetting exportHtmlSetting = exportSetting
.getExportHtmlSetting();
exportHtmlSetting.setOutputDir(this.outputDirText.getFilePath());
// exportHtmlSetting.setSrcFileEncoding(this.fileEncodingCombo.getText());
exportHtmlSetting.setWithImage(this.withImageButton.getSelection());
exportHtmlSetting.setWithCategoryImage(this.withCategoryImageButton
.getSelection());
exportHtmlSetting.setOpenAfterSaved(this.openAfterSavedButton
.getSelection());
return new ExportToHtmlManager(exportHtmlSetting);
}
示例3: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(
ExportSetting exportSetting) {
ExportJavaSetting exportJavaSetting = exportSetting
.getExportJavaSetting();
exportJavaSetting.setJavaOutput(this.outputDirText.getFilePath());
exportJavaSetting.setPackageName(this.packageText.getText());
exportJavaSetting
.setClassNameSuffix(this.classNameSuffixText.getText());
exportJavaSetting.setSrcFileEncoding(this.fileEncodingCombo.getText());
exportJavaSetting.setWithHibernate(this.withHibernateButton
.getSelection());
return new ExportToJavaManager(exportJavaSetting);
}
示例4: createXML
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
private String createXML(ExportSetting exportSetting,
PersistentContext context) {
StringBuilder xml = new StringBuilder();
xml.append("<export_setting>\n");
xml.append(tab(this.createXML(exportSetting.getExportDDLSetting(),
context)));
xml.append(tab(this.createXML(exportSetting.getExportExcelSetting(),
context)));
xml.append(tab(this.createXML(exportSetting.getExportHtmlSetting(),
context)));
xml.append(tab(this.createXML(exportSetting.getExportImageSetting(),
context)));
xml.append(tab(this.createXML(exportSetting.getExportJavaSetting(),
context)));
xml.append(tab(this.createXML(exportSetting.getExportTestDataSetting(),
context)));
xml.append("</export_setting>\n");
return xml.toString();
}
示例5: loadExportSetting
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
private void loadExportSetting(ExportSetting exportSetting, Element parent,
LoadContext context) {
Element element = this.getElement(parent, "export_setting");
if (element != null) {
this.loadExportDDLSetting(exportSetting.getExportDDLSetting(),
element, context);
this.loadExportExcelSetting(exportSetting.getExportExcelSetting(),
element, context);
this.loadExportHtmlSetting(exportSetting.getExportHtmlSetting(),
element, context);
this.loadExportImageSetting(exportSetting.getExportImageSetting(),
element, context);
this.loadExportJavaSetting(exportSetting.getExportJavaSetting(),
element, context);
this.loadExportTestDataSetting(
exportSetting.getExportTestDataSetting(), element, context);
}
}
示例6: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(final ExportSetting exportSetting) throws InputException {
final ExportHtmlSetting exportHtmlSetting = exportSetting.getExportHtmlSetting();
exportHtmlSetting.setOutputDir(outputDirText.getFilePath());
// exportHtmlSetting.setSrcFileEncoding(this.fileEncodingCombo.getText());
exportHtmlSetting.setWithImage(withImageButton.getSelection());
exportHtmlSetting.setWithCategoryImage(withCategoryImageButton.getSelection());
exportHtmlSetting.setOpenAfterSaved(openAfterSavedButton.getSelection());
return new ExportToHtmlManager(exportHtmlSetting);
}
示例7: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(final ExportSetting exportSetting) throws InputException {
final ExportImageSetting exportImageSetting = exportSetting.getExportImageSetting();
exportImageSetting.setOutputFilePath(outputFileText.getFilePath());
exportImageSetting.setWithCategoryImage(withCategoryImageButton.getSelection());
exportImageSetting.setOpenAfterSaved(openAfterSavedButton.getSelection());
exportImageSetting.setCategory(diagram.getCurrentCategory());
return new ExportToImageManager(exportImageSetting);
}
示例8: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(final ExportSetting exportSetting) {
final ExportJavaSetting exportJavaSetting = exportSetting.getExportJavaSetting();
exportJavaSetting.setJavaOutput(outputDirText.getFilePath());
exportJavaSetting.setPackageName(packageText.getText());
exportJavaSetting.setClassNameSuffix(classNameSuffixText.getText());
exportJavaSetting.setSrcFileEncoding(fileEncodingCombo.getText());
exportJavaSetting.setWithHibernate(withHibernateButton.getSelection());
return new ExportToJavaManager(exportJavaSetting);
}
示例9: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(final ExportSetting exportSetting) throws InputException {
final ExportDDLSetting exportDDLSetting = exportSetting.getExportDDLSetting();
final String saveFilePath = outputFileText.getFilePath();
// File outputFile = FileUtils.getFile(this.getProjectDir(),
// saveFilePath);
// File outputDir = outputFile.getParentFile();
//
// if (!outputDir.exists()) {
// if (!Activator.showConfirmDialog(ResourceString.getResourceString(
// "dialog.message.create.parent.dir",
// new String[] { outputDir.getAbsolutePath() }))) {
// throw new InputException();
//
// } else {
// outputDir.mkdirs();
// }
// }
exportDDLSetting.setDdlOutput(saveFilePath);
exportDDLSetting.setOpenAfterSaved(openAfterSavedButton.getSelection());
// exportDDLSetting.setCategory(this
// .getSelectedCategory(this.categoryCombo));
exportDDLSetting.setCategory(diagram.getCurrentCategory());
final int index = environmentCombo.getSelectionIndex();
final Environment environment = settings.getEnvironmentSetting().getEnvironments().get(index);
exportDDLSetting.setEnvironment(environment);
exportDDLSetting.setSrcFileEncoding(fileEncodingCombo.getText());
exportDDLSetting.setLineFeed(lineFeedCombo.getText());
exportDDLSetting.setDdlTarget(createDDLTarget());
return new ExportToDDLManager(exportDDLSetting);
}
示例10: loadSettings
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
private void loadSettings(final Settings settings, final Element parent, final LoadContext context) {
final Element element = getElement(parent, "settings");
if (element != null) {
settings.setDatabase(loadDatabase(element));
settings.setCapital(this.getBooleanValue(element, "capital"));
settings.setTableStyle(Format.null2blank(getStringValue(element, "table_style")));
settings.setNotation(getStringValue(element, "notation"));
settings.setNotationLevel(this.getIntValue(element, "notation_level"));
settings.setNotationExpandGroup(this.getBooleanValue(element, "notation_expand_group", false));
settings.setViewMode(this.getIntValue(element, "view_mode"));
settings.setOutlineViewMode(this.getIntValue(element, "outline_view_mode"));
settings.setViewOrderBy(this.getIntValue(element, "view_order_by"));
settings.setAutoImeChange(this.getBooleanValue(element, "auto_ime_change", false));
settings.setValidatePhysicalName(this.getBooleanValue(element, "validate_physical_name", true));
settings.setUseBezierCurve(this.getBooleanValue(element, "use_bezier_curve", false));
settings.setSuspendValidator(this.getBooleanValue(element, "suspend_validator", false));
final CategorySetting categorySetting = settings.getCategorySetting();
loadCategorySetting(categorySetting, element, context);
// must load categorySetting before exportSetting
final ExportSetting exportSetting = settings.getExportSetting();
loadExportSetting(exportSetting, element, context);
final TranslationSetting translationSetting = settings.getTranslationSetting();
loadTranslationSetting(translationSetting, element, context);
final ModelProperties modelProperties = settings.getModelProperties();
loadModelProperties(modelProperties, element, context);
loadTableProperties((TableProperties) settings.getTableViewProperties(), element, context);
}
}
示例11: loadExportSetting
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
private void loadExportSetting(final ExportSetting exportSetting, final Element parent, final LoadContext context) {
final Element element = getElement(parent, "export_setting");
if (element != null) {
loadExportDDLSetting(exportSetting.getExportDDLSetting(), element, context);
loadExportExcelSetting(exportSetting.getExportExcelSetting(), element, context);
loadExportHtmlSetting(exportSetting.getExportHtmlSetting(), element, context);
loadExportImageSetting(exportSetting.getExportImageSetting(), element, context);
loadExportJavaSetting(exportSetting.getExportJavaSetting(), element, context);
loadExportTestDataSetting(exportSetting.getExportTestDataSetting(), element, context);
}
}
示例12: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(
ExportSetting exportSetting) throws InputException {
ExportImageSetting exportImageSetting = exportSetting
.getExportImageSetting();
exportImageSetting.setOutputFilePath(this.outputFileText.getFilePath());
exportImageSetting.setWithCategoryImage(this.withCategoryImageButton
.getSelection());
exportImageSetting.setOpenAfterSaved(this.openAfterSavedButton
.getSelection());
exportImageSetting.setCategory(this.diagram.getCurrentCategory());
return new ExportToImageManager(exportImageSetting);
}
示例13: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(final ExportSetting exportSetting) throws Exception {
final ExportExcelSetting exportExcelSetting = exportSetting.getExportExcelSetting();
final String outputExcelFilePath = outputExcelFileText.getFilePath();
// String outputImageFilePath = this.outputImageFileText.getFilePath();
// this.outputExcelFile = new File(outputExcelFilePath);
//
// if (!outputExcelFile.isAbsolute()) {
// outputExcelFile = new File(this.getProjectDir(),
// outputExcelFilePath);
// }
//
// File outputExcelDir = outputExcelFile.getParentFile();
//
// if (!outputExcelDir.exists()) {
// if (!Activator.showConfirmDialog(ResourceString.getResourceString(
// "dialog.message.create.parent.dir",
// new String[] { outputExcelDir.getAbsolutePath() }))) {
// throw new InputException();
//
// } else {
// outputExcelDir.mkdirs();
// }
// }
exportExcelSetting.setExcelOutput(outputExcelFilePath);
// exportExcelSetting.setImageOutput(outputImageFilePath);
exportExcelSetting.setUseLogicalNameAsSheet(useLogicalNameAsSheetNameButton.getSelection());
exportExcelSetting.setPutERDiagramOnExcel(outputImageButton.getSelection());
// exportExcelSetting.setCategory(this
// .getSelectedCategory(this.categoryCombo));
exportExcelSetting.setCategory(diagram.getCurrentCategory());
exportExcelSetting.setOpenAfterSaved(openAfterSavedButton.getSelection());
final int templateIndex = templateCombo.getSelectionIndex();
String template = null;
if (templateIndex == 0) {
exportExcelSetting.setUsedDefaultTemplateLang("en");
} else if (templateIndex == 1) {
exportExcelSetting.setUsedDefaultTemplateLang("ja");
} else {
exportExcelSetting.setUsedDefaultTemplateLang(null);
template = templateCombo.getText();
}
if (selectTemplateFromRegistryRadio.getSelection()) {
exportExcelSetting.setExcelTemplate(template);
} else {
exportExcelSetting.setExcelTemplatePath(templateFileText.getFilePath());
}
return new ExportToExcelManager(exportExcelSetting);
}
示例14: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(
ExportSetting exportSetting) throws Exception {
ExportExcelSetting exportExcelSetting = exportSetting
.getExportExcelSetting();
String outputExcelFilePath = this.outputExcelFileText.getFilePath();
// String outputImageFilePath = this.outputImageFileText.getFilePath();
// this.outputExcelFile = new File(outputExcelFilePath);
//
// if (!outputExcelFile.isAbsolute()) {
// outputExcelFile = new File(this.getProjectDir(),
// outputExcelFilePath);
// }
//
// File outputExcelDir = outputExcelFile.getParentFile();
//
// if (!outputExcelDir.exists()) {
// if (!Activator.showConfirmDialog(ResourceString.getResourceString(
// "dialog.message.create.parent.dir",
// new String[] { outputExcelDir.getAbsolutePath() }))) {
// throw new InputException();
//
// } else {
// outputExcelDir.mkdirs();
// }
// }
exportExcelSetting.setExcelOutput(outputExcelFilePath);
// exportExcelSetting.setImageOutput(outputImageFilePath);
exportExcelSetting
.setUseLogicalNameAsSheet(this.useLogicalNameAsSheetNameButton
.getSelection());
exportExcelSetting.setPutERDiagramOnExcel(this.outputImageButton
.getSelection());
// exportExcelSetting.setCategory(this
// .getSelectedCategory(this.categoryCombo));
exportExcelSetting.setCategory(this.diagram.getCurrentCategory());
exportExcelSetting.setOpenAfterSaved(this.openAfterSavedButton
.getSelection());
int templateIndex = this.templateCombo.getSelectionIndex();
String template = null;
if (templateIndex == 0) {
exportExcelSetting.setUsedDefaultTemplateLang("en");
} else if (templateIndex == 1) {
exportExcelSetting.setUsedDefaultTemplateLang("ja");
} else {
exportExcelSetting.setUsedDefaultTemplateLang(null);
template = this.templateCombo.getText();
}
if (this.selectTemplateFromRegistryRadio.getSelection()) {
exportExcelSetting.setExcelTemplate(template);
} else {
exportExcelSetting.setExcelTemplatePath(this.templateFileText
.getFilePath());
}
return new ExportToExcelManager(exportExcelSetting);
}
示例15: getExportWithProgressManager
import org.insightech.er.editor.model.settings.ExportSetting; //导入依赖的package包/类
@Override
protected ExportWithProgressManager getExportWithProgressManager(
ExportSetting exportSetting) {
ExportTestDataSetting exportTestDataSetting = exportSetting
.getExportTestDataSetting();
if (this.formatSqlRadio.getSelection()) {
exportTestDataSetting.setExportFormat(TestData.EXPORT_FORMT_SQL);
} else if (this.formatDBUnitRadio.getSelection()) {
exportTestDataSetting.setExportFormat(TestData.EXPORT_FORMT_DBUNIT);
} else if (this.formatDBUnitFlatXmlRadio.getSelection()) {
exportTestDataSetting
.setExportFormat(TestData.EXPORT_FORMT_DBUNIT_FLAT_XML);
} else if (this.formatDBUnitXlsRadio.getSelection()) {
exportTestDataSetting
.setExportFormat(TestData.EXPORT_FORMT_DBUNIT_XLS);
}
exportTestDataSetting.setExportFilePath(this.outputDirectoryText
.getFilePath());
exportTestDataSetting.setExportFileEncoding(this.fileEncodingCombo
.getText());
List<TestData> exportTestDataList = new ArrayList<TestData>();
for (Object selectedNode : this.testDataTable.getCheckedElements()) {
Object value = ((TreeNode) selectedNode).getValue();
if (value instanceof TestData) {
exportTestDataList.add((TestData) value);
}
}
return new ExportToTestDataManager(exportTestDataSetting,
exportTestDataList);
}