本文整理汇总了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;
}
示例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);
}
示例3: synchroniseStart
import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void synchroniseStart() {
for (IGraphChangeListener l : this) {
try {
l.synchroniseStart();
} catch (Exception e) {
//
}
}
}
示例4: synchroniseEnd
import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void synchroniseEnd() {
for (IGraphChangeListener l : this) {
try {
l.synchroniseEnd();
} catch (Exception e) {
//
}
}
}
示例5: changeStart
import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeStart() {
for (IGraphChangeListener l : this) {
try {
l.changeStart();
} catch (Exception e) {
//
}
}
}
示例6: changeSuccess
import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeSuccess() {
for (IGraphChangeListener l : this) {
try {
l.changeSuccess();
} catch (Exception e) {
//
}
}
}
示例7: changeFailure
import org.hawk.core.graph.IGraphChangeListener; //导入依赖的package包/类
@Override
public void changeFailure() {
for (IGraphChangeListener l : this) {
try {
l.changeFailure();
} catch (Exception e) {
//
}
}
}
示例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) {
//
}
}
}
示例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) {
//
}
}
}
示例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();
}
}
}
示例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) {
//
}
}
}
示例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) {
//
}
}
}
示例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) {
//
}
}
}
示例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) {
//
}
}
}
示例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) {
//
}
}
}