|
Re: Problems with creating a Session [message #1699415 is a reply to message #1699164] |
Wed, 24 June 2015 07:59 |
|
Le 23/06/2015 15:08, Axel Niklasson a écrit :
> Hi all,
>
Hi
> I have some serious problems with creating a Session when trying to
> integrate Sirius in a plugin into our RCP. I have read the
> documentation, but it seems to be outdated. The documentation refers to
> code that does not compile at the moment and I could really use some help.
> The following snippet is from the docs:
>
> URI sessionResourceURI =
> URI.createPlatformResourceURI("/Project/archi.aird", true);
> Session createdSession =
> SessionManager.INSTANCE.getSession(sessionResourceURI);
> createdSession.open();
>
> However, the methods getSession(sessonResourceURI) and
> createdSession.open() are modified in the current version and I can't
> get it to work. Does someone have an example when integrating sirius
> into a plugin for a RCP?
>
To make that code compile just add new NullProgressMonitor(). (We will
update the doc).
URI sessionResourceURI =
URI.createPlatformResourceURI("/Project/archi.aird", true);
Session createdSession =
SessionManager.INSTANCE.getSession(sessionResourceURI, new
NullProgressMonitor());
createdSession.open(new NullProgressMonitor());
> I could really use some help guys. Let me know if I need to clarify
> something.
Please, if not working, explain what you expect, what happen and
provides stack traces if need be.
>
> Regards,
> Axel Niklasson
>
>
Regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03185 seconds