|
|
Re: Creating a wizard [message #1619431 is a reply to message #1613128] |
Mon, 16 February 2015 15:23 |
|
Hi Franck,
Le 12/02/2015 13:29, Franck MIMET a écrit :
> I created an .aird file:
>
> org.eclipse.emf.common.util.URI sessionResourceURI =
> org.eclipse.emf.common.util.URI.createPlatformResourceURI("/" +
> desc.getName() + "/representations.aird", true);
> then, I changed the project to Modeling Nature: ModelingProject.NATURE_ID
>
> And, open a session as above;
>
> SessionManager sessionManager = SessionManager.INSTANCE;//got the Sirius
> SessionManager
> Session createdSession = sessionManager.getSession(sessionResourceURI,
> new NullProgressMonitor());
> createdSession.open(new NullProgressMonitor());
>
>
> All I get is an empty Viewpoints selection list associated to the project.
>
> Did I miss something?
>
Sirius will filter the registered Viewpoint by looking at the file
extension of your session semantic resources. I think your session does
not have any semantic resources.
You could also look how EcoreTools defines its
EcoreModelingProjectWizard with its ViewpointSelectionWizardPage [1]
Regards,
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/tree/org.eclipse.emf.ecoretools.design/src/org/eclipse/emf/ecoretools/design/wizard/EcoreModelerWizard.java
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02044 seconds