当前位置: 首页>>代码示例>>Java>>正文


Java ExportSetting类代码示例

本文整理汇总了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();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:17,代码来源:PersistentXmlImpl.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:18,代码来源:ExportToHtmlDialog.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:17,代码来源:ExportToJavaDialog.java

示例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();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:24,代码来源:PersistentXmlImpl.java

示例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);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:20,代码来源:XMLLoader.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:14,代码来源:ExportToHtmlDialog.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:ExportToImageDialog.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:13,代码来源:ExportToJavaDialog.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:40,代码来源:ExportToDDLDialog.java

示例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);

    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:39,代码来源:XMLLoader.java

示例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);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:13,代码来源:XMLLoader.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:16,代码来源:ExportToImageDialog.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:62,代码来源:ExportToExcelDialog.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:69,代码来源:ExportToExcelDialog.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:42,代码来源:ExportToTestDataDialog.java


注:本文中的org.insightech.er.editor.model.settings.ExportSetting类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。