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


Java ChangeTracking类代码示例

本文整理汇总了Java中org.insightech.er.editor.model.tracking.ChangeTracking的典型用法代码示例。如果您正苦于以下问题:Java ChangeTracking类的具体用法?Java ChangeTracking怎么用?Java ChangeTracking使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ChangeTracking类属于org.insightech.er.editor.model.tracking包,在下文中一共展示了ChangeTracking类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setData

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void setData() {
    changeTrackingTable.removeAll();

    setButtonEnabled(false);
    comparisonDisplayButton.setEnabled(false);

    for (final ChangeTracking changeTracking : diagram.getChangeTrackingList().getList()) {
        final TableItem tableItem = new TableItem(changeTrackingTable, SWT.NONE);

        final String date = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT).format(changeTracking.getUpdatedDate());
        tableItem.setText(0, date);

        if (!Check.isEmpty(changeTracking.getComment())) {
            tableItem.setText(1, changeTracking.getComment());
        } else {
            tableItem.setText(1, "*** empty log message ***");
        }
    }

    comparisonResetButton.setEnabled(diagram.getChangeTrackingList().isCalculated());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:22,代码来源:ChangeTrackingDialog.java

示例2: selectChangeTracking

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void selectChangeTracking(final int index) {
    changeTrackingTable.select(index);

    final ChangeTracking changeTracking = diagram.getChangeTrackingList().get(index);

    if (changeTracking.getComment() != null) {
        textArea.setText(changeTracking.getComment());
    } else {
        textArea.setText("");
    }

    if (index >= 0) {
        setButtonEnabled(true);
    } else {
        setButtonEnabled(false);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:18,代码来源:ChangeTrackingDialog.java

示例3: setData

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void setData() {
	this.changeTrackingTable.removeAll();

	this.setButtonEnabled(false);
	this.comparisonDisplayButton.setEnabled(false);

	for (ChangeTracking changeTracking : this.diagram
			.getChangeTrackingList().getList()) {
		TableItem tableItem = new TableItem(this.changeTrackingTable,
				SWT.NONE);

		String date = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
				DateFormat.SHORT).format(changeTracking.getUpdatedDate());
		tableItem.setText(0, date);

		if (!Check.isEmpty(changeTracking.getComment())) {
			tableItem.setText(1, changeTracking.getComment());
		} else {
			tableItem.setText(1, "*** empty log message ***");
		}
	}

	this.comparisonResetButton.setEnabled(this.diagram
			.getChangeTrackingList().isCalculated());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:26,代码来源:ChangeTrackingDialog.java

示例4: selectChangeTracking

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void selectChangeTracking(int index) {
	this.changeTrackingTable.select(index);

	ChangeTracking changeTracking = this.diagram.getChangeTrackingList()
			.get(index);

	if (changeTracking.getComment() != null) {
		this.textArea.setText(changeTracking.getComment());
	} else {
		this.textArea.setText("");
	}

	if (index >= 0) {
		this.setButtonEnabled(true);
	} else {
		this.setButtonEnabled(false);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:19,代码来源:ChangeTrackingDialog.java

示例5: createXML

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private String createXML(ChangeTracking changeTracking) {
	StringBuilder xml = new StringBuilder();

	xml.append("<change_tracking>\n");

	xml.append("\t<updated_date>")
			.append(DATE_FORMAT.format(changeTracking.getUpdatedDate()))
			.append("</updated_date>\n");
	xml.append("\t<comment>").append(escape(changeTracking.getComment()))
			.append("</comment>\n");

	PersistentContext context = this
			.getChangeTrackingContext(changeTracking);

	xml.append(tab(this.createXML(changeTracking.getDiagramContents(),
			context)));

	xml.append("</change_tracking>\n");

	return xml.toString();
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:22,代码来源:PersistentXmlImpl.java

示例6: loadChangeTrackingList

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void loadChangeTrackingList(ChangeTrackingList changeTrackingList,
		Element parent) {
	Element element = this.getElement(parent, "change_tracking_list");

	if (element != null) {
		NodeList nodeList = element.getElementsByTagName("change_tracking");

		for (int i = 0; i < nodeList.getLength(); i++) {
			Element changeTrackingElemnt = (Element) nodeList.item(i);
			ChangeTracking changeTracking = this
					.loadChangeTracking(changeTrackingElemnt);

			changeTrackingList.addChangeTracking(changeTracking);
		}
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:17,代码来源:XMLLoader.java

示例7: UpdateChangeTrackingCommand

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
/**
 * 変更履歴更新コマンドを作成します。
 * 
 * @param changeTracking
 * @param comment
 */
public UpdateChangeTrackingCommand(final ChangeTracking changeTracking, final String comment) {
    this.changeTracking = changeTracking;

    oldComment = changeTracking.getComment();
    newComment = comment;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:13,代码来源:UpdateChangeTrackingCommand.java

示例8: loadChangeTrackingList

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private void loadChangeTrackingList(final ChangeTrackingList changeTrackingList, final Element parent, final LoadContext context) {
    final Element element = getElement(parent, "change_tracking_list");

    if (element != null) {
        final NodeList nodeList = element.getElementsByTagName("change_tracking");

        for (int i = 0; i < nodeList.getLength(); i++) {
            final Element changeTrackingElemnt = (Element) nodeList.item(i);
            final ChangeTracking changeTracking = loadChangeTracking(changeTrackingElemnt, context);

            changeTrackingList.addChangeTracking(changeTracking);
        }
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:15,代码来源:XMLLoader.java

示例9: UpdateChangeTrackingCommand

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
/**
 * 変更履歴更新コマンドを作成します。
 * 
 * @param changeTracking
 * @param comment
 */
public UpdateChangeTrackingCommand(ChangeTracking changeTracking,
		String comment) {
	this.changeTracking = changeTracking;

	this.oldComment = changeTracking.getComment();
	this.newComment = comment;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:14,代码来源:UpdateChangeTrackingCommand.java

示例10: AddChangeTrackingCommand

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
/**
 * 変更履歴追加コマンドを作成します。
 * 
 * @param diagram
 * @param nodeElements
 */
public AddChangeTrackingCommand(ERDiagram diagram,
		ChangeTracking changeTracking) {
	this.diagram = diagram;

	this.changeTracking = changeTracking;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:13,代码来源:AddChangeTrackingCommand.java

示例11: getChangeTrackingContext

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private PersistentContext getChangeTrackingContext(final ChangeTracking changeTracking) {
    return getContext(changeTracking.getDiagramContents());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:4,代码来源:PersistentXmlImpl.java

示例12: createXML

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private String createXML(final ChangeTracking changeTracking) {
    final StringBuilder xml = new StringBuilder();

    xml.append("<change_tracking>\n");

    //xml.append("\t<updated_date>").append(DATE_FORMAT.format(changeTracking.getUpdatedDate())).append("</updated_date>\n");
    xml.append("\t<comment>").append(escape(changeTracking.getComment())).append("</comment>\n");

    final PersistentContext context = getChangeTrackingContext(changeTracking);

    xml.append(tab(this.createXML(changeTracking.getDiagramContents(), context)));

    xml.append("</change_tracking>\n");

    return xml.toString();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:17,代码来源:PersistentXmlImpl.java

示例13: getChangeTrackingContext

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private PersistentContext getChangeTrackingContext(
		ChangeTracking changeTracking) {
	return this.getContext(changeTracking.getDiagramContents());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:5,代码来源:PersistentXmlImpl.java

示例14: loadChangeTracking

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private ChangeTracking loadChangeTracking(final Element element, final LoadContext context) {
    final DiagramContents diagramContents = new DiagramContents();

    loadDiagramContents(diagramContents, element, context.file);

    final ChangeTracking changeTracking = new ChangeTracking(diagramContents);

    changeTracking.setComment(getStringValue(element, "comment"));
    //changeTracking.setUpdatedDate(getDateValue(element, "updated_date"));
    changeTracking.setUpdatedDate(context.getUpdatedDate());

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

示例15: loadChangeTracking

import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private ChangeTracking loadChangeTracking(Element element) {
	DiagramContents diagramContents = new DiagramContents();

	loadDiagramContents(diagramContents, element);

	ChangeTracking changeTracking = new ChangeTracking(diagramContents);

	changeTracking.setComment(this.getStringValue(element, "comment"));
	changeTracking.setUpdatedDate(this
			.getDateValue(element, "updated_date"));

	return changeTracking;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:14,代码来源:XMLLoader.java


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