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


Java IGraphChangeListener类代码示例

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


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

示例1: addFileNode

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
private IGraphNode addFileNode(VcsCommitItem s, IGraphChangeListener listener) {
	IGraphNode fileNode;
	Map<String, Object> mapForFileNode = new HashMap<>();
	mapForFileNode.put(IModelIndexer.IDENTIFIER_PROPERTY, s.getPath());
	mapForFileNode.put("revision", s.getCommit().getRevision());
	mapForFileNode.put(FileNode.PROP_REPOSITORY, repoURL);

	fileNode = graph.createNode(mapForFileNode, FileNode.FILE_NODE_LABEL);

	Map<String, Object> mapForDictionary = new HashMap<>();
	mapForDictionary.put("id", repoURL + GraphModelUpdater.FILEINDEX_REPO_SEPARATOR + s.getPath());
	fileDictionary.add(fileNode, mapForDictionary);

	// propagate changes to listeners
	listener.fileAddition(s, fileNode);
	return fileNode;
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:18,代码来源:GraphModelBatchInjector.java

示例2: remove

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
protected void remove(IGraphNode node, IGraphNode fileNode, final IGraphChangeListener listener) {
	// not in unchanged or updated so its deleted
	//
	// System.err.println("deleting node " + node +
	// " as new model does not contain it!");
	//

	// track change deleted node
	for (String key : node.getPropertyKeys()) {
		listener.modelElementAttributeRemoval(this.s, null, key, node,
				ModelElementNode.TRANSIENT_ATTRIBUTES.contains(key));
	}
	for (IGraphEdge e : node.getOutgoing()) {
		if (e.getProperty("isDerived") == null) {
			final boolean isTransient = ModelElementNode.TRANSIENT_EDGE_LABELS.contains(e.getType());
			listener.referenceRemoval(this.s, node, e.getEndNode(), e.getType(), isTransient);
		}
	}

	remove(node, repoURL, fileNode, listener);
	// new DeletionUtils(graph).delete(node);
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:23,代码来源:GraphModelInserter.java

示例3: synchroniseStart

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void synchroniseStart() {
	for (IGraphChangeListener l : this) {
		try {
			l.synchroniseStart();
		} catch (Exception e) {
			//
		}
	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:11,代码来源:CompositeGraphChangeListener.java

示例4: synchroniseEnd

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void synchroniseEnd() {
	for (IGraphChangeListener l : this) {
		try {
			l.synchroniseEnd();
		} catch (Exception e) {
			//
		}
	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:11,代码来源:CompositeGraphChangeListener.java

示例5: changeStart

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeStart() {
	for (IGraphChangeListener l : this) {
		try {
			l.changeStart();
		} catch (Exception e) {
			//
		}
	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:11,代码来源:CompositeGraphChangeListener.java

示例6: changeSuccess

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeSuccess() {
	for (IGraphChangeListener l : this) {
		try {
			l.changeSuccess();
		} catch (Exception e) {
			//
		}
	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:11,代码来源:CompositeGraphChangeListener.java

示例7: changeFailure

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeFailure() {
	for (IGraphChangeListener l : this) {
		try {
			l.changeFailure();
		} catch (Exception e) {
			//
		}
	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:11,代码来源:CompositeGraphChangeListener.java

示例8: fileAddition

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void fileAddition(VcsCommitItem s, IGraphNode fileNode) {
	for (IGraphChangeListener l : this) {
		try {
			l.fileAddition(s, fileNode);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:12,代码来源:CompositeGraphChangeListener.java

示例9: metamodelAddition

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void metamodelAddition(IHawkPackage pkg, IGraphNode pkgNode) {
	for (IGraphChangeListener l : this) {
		try {
			l.metamodelAddition(pkg, pkgNode);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:12,代码来源:CompositeGraphChangeListener.java

示例10: classAddition

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void classAddition(IHawkClass cls, IGraphNode clsNode) {
	for (IGraphChangeListener l : this) {
		try {
			l.classAddition(cls, clsNode);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:12,代码来源:CompositeGraphChangeListener.java

示例11: modelElementAddition

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void modelElementAddition(VcsCommitItem s, IHawkObject element,
		IGraphNode elementNode, boolean isTransient) {
	for (IGraphChangeListener l : this) {
		try {
			l.modelElementAddition(s, element, elementNode, isTransient);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:13,代码来源:CompositeGraphChangeListener.java

示例12: modelElementRemoval

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void modelElementRemoval(VcsCommitItem s, IGraphNode elementNode,
		boolean isTransient) {
	for (IGraphChangeListener l : this) {
		try {
			l.modelElementRemoval(s, elementNode, isTransient);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:13,代码来源:CompositeGraphChangeListener.java

示例13: modelElementAttributeUpdate

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void modelElementAttributeUpdate(VcsCommitItem s,
		IHawkObject eObject, String attrName, Object oldValue,
		Object newValue, IGraphNode elementNode, boolean isTransient) {
	for (IGraphChangeListener l : this) {
		try {
			l.modelElementAttributeUpdate(s, eObject, attrName, oldValue,
					newValue, elementNode, isTransient);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:15,代码来源:CompositeGraphChangeListener.java

示例14: modelElementAttributeRemoval

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void modelElementAttributeRemoval(VcsCommitItem s,
		IHawkObject eObject, String key, IGraphNode node,
		boolean isTransient) {
	for (IGraphChangeListener l : this) {
		try {
			l.modelElementAttributeRemoval(s, eObject, key, node,
					isTransient);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:15,代码来源:CompositeGraphChangeListener.java

示例15: referenceAddition

import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void referenceAddition(VcsCommitItem s, IGraphNode source,
		IGraphNode destination, String edgelabel, boolean isTransient) {
	for (IGraphChangeListener l : this) {
		try {
			l.referenceAddition(s, source, destination, edgelabel,
					isTransient);
		} catch (Exception e) {
			//
		}

	}
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:14,代码来源:CompositeGraphChangeListener.java


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