Skip to content

Commit

Permalink
Graph refactoring continues
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlasov committed Aug 1, 2023
1 parent 384c9d2 commit b943da2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ protected boolean isPassThrough(Connection connection) {
Element element = re.getKey();
if (element instanceof EObjectNode) {
EObjectNode eObjNode = (EObjectNode) element;
EObject target = eObjNode.getTarget();
EObject target = eObjNode.get();
if (target == topLevelPackage) {
ProcessorInfo<Object> info = re.getValue();
Object processor = info.getProcessor();
Expand Down Expand Up @@ -316,7 +316,7 @@ public EObject getEObject(String uriFragment) {
File actionModelsDir = new File("target\\action-models\\");
actionModelsDir.mkdirs();

File output = new File(actionModelsDir, "test.gz");
File output = new File(actionModelsDir, "test.xmi");
Resource actionModelResource = actionModelsResourceSet.createResource(URI.createFileURI(output.getAbsolutePath()));
Collection<Label> labels = testProcessor.createLabelsSupplier().call(progressMonitor, diagnosticConsumer);
for (Label label: labels) {
Expand All @@ -331,7 +331,7 @@ public EObject getEObject(String uriFragment) {
}
}
}

actionModelResource.getContents().addAll(labels);
actionModelResource.save(null);

Expand Down Expand Up @@ -410,7 +410,7 @@ record EdgeRecord(String source, String target, Collection<Connection> edge) {};
@Override
protected String createVertex(Node node) {
if (node instanceof EClassNode) {
EClass eClass = ((EClassNode) node).getTarget();
EClass eClass = ((EClassNode) node).get();
return "[" + Thread.currentThread().getName() + "] " + eClass.getName() + "@" + eClass.getEPackage().getNsURI();
}
return null;
Expand Down

0 comments on commit b943da2

Please sign in to comment.