本文整理汇总了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());
}
示例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);
}
}
示例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());
}
示例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);
}
}
示例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();
}
示例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);
}
}
}
示例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;
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例11: getChangeTrackingContext
import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private PersistentContext getChangeTrackingContext(final ChangeTracking changeTracking) {
return getContext(changeTracking.getDiagramContents());
}
示例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();
}
示例13: getChangeTrackingContext
import org.insightech.er.editor.model.tracking.ChangeTracking; //导入依赖的package包/类
private PersistentContext getChangeTrackingContext(
ChangeTracking changeTracking) {
return this.getContext(changeTracking.getDiagramContents());
}
示例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;
}
示例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;
}