capint
1/4/2017 - 9:42 AM

Sirius >> Session APIs

Sirius >> Session APIs

Session session = new EObjectQuery(object).getSession();
Session session = ...
if (!session.isOpen()) {
  session.open(new NullProgressMonitor());
}
Collection<DRepresentation> allRepresentations = DialectManager.INSTANCE.getAllRepresentations(session);
IFile airdFile = ...
Session session = SessionManager.INSTANCE.getSession(EcoreUtil2.getURI(airdFile), new NullProgressMonitor());