Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problems with creating a Session
Problems with creating a Session [message #1699164] Mon, 22 June 2015 09:18 Go to next message
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 11
Registered: June 2015
Junior Member
Hi all,

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?

I could really use some help guys. Let me know if I need to clarify something.

Regards,
Axel Niklasson

Re: Problems with creating a Session [message #1699415 is a reply to message #1699164] Wed, 24 June 2015 07:59 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
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
Re: Problems with creating a Session [message #1699560 is a reply to message #1699415] Thu, 25 June 2015 07:01 Go to previous message
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 11
Registered: June 2015
Junior Member
Thanks, that really helped me out!
Previous Topic:How to implement Label Propagation Mechanism with the Java Extension or Java Service?
Next Topic:Feature org.eclipse.sirius.runtime.acceleo missing in mars update site
Goto Forum:
  


Current Time: Sat Apr 27 00:35:22 GMT 2024

Powered by FUDForum. Page generated in 0.03185 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top