use of de.prob.model.eventb.Context in project prob2 by bendisposto.
the class MachineXmlHandler method addExtendedContext.
private void addExtendedContext(final Attributes attributes) {
String source = attributes.getValue("org.eventb.core.scTarget");
String contextName = source.substring(source.lastIndexOf('#') + 1, source.length());
model.addRelationship(internalContext.getName(), contextName, ERefType.EXTENDS);
Context extended = (Context) model.getComponent(contextName);
extendedContexts.add(extended);
}
Aggregations