Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
#892 remove dependency to GMF
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmuelder committed Aug 11, 2016
1 parent 9810b88 commit ee2ba14
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,17 @@ public AbstractSCTResource(URI uri) {
linkingDiagnostics = HashMultimap.create();
setIntrinsicIDToEObjectMap(new HashMap<String, EObject>());
}



@Override
protected boolean useUUIDs() {
return true;
}

@Override
protected boolean useIDAttributes() {
return false;
}

@Override
protected void attachedHelper(EObject eObject) {
super.attachedHelper(eObject);
Expand Down Expand Up @@ -446,8 +455,8 @@ public void setSerializerEnabled(boolean serializerEnabled) {
}

// copied from xtext LazyLinkingResource
protected static class DiagnosticMessageContext implements
ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext {
protected static class DiagnosticMessageContext
implements ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext {

private final Triple<EObject, EReference, INode> triple;
private final LinkingHelper linkingHelper;
Expand All @@ -470,6 +479,7 @@ public String getLinkText() {
}

}

/**
* overridden because original calls 'Util.denormalizeURI(uri,
* getResourceSet())' which leads into error if there is no platform
Expand All @@ -481,7 +491,7 @@ public void setURI(URI uri) {
setRawURI(uri);
}
}

public void setRawURI(URI uri) {
URI oldURI = getURI();
if ((uri == oldURI) || ((uri != null) && (uri.equals(oldURI))))
Expand Down

0 comments on commit ee2ba14

Please sign in to comment.