Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problems Getting Started w. Sirius 4.0/Neon on a Mac
Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736060] Fri, 24 June 2016 17:35 Go to next message
Eclipse UserFriend
Hi Gang,

I'm new to Sirius, and just trying things out (though moderately
experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
or that I just don't understand:


1- When I click into many text property fields (e.g., Label or Domain
Class) the property sheet does weird/annoying things. In Label it often
deletes the label I'd previously typed leaving me with a blank field.
In Domain Class it throws away whatever I had and substitutes the string
from the Id field. But it doesn't do this all the time; it seems to do
it when the property sheet is gaining focus by the click.

For now my workaround is to try to remember to click on the property
sheet before I click into one of the property sheet fields. Failing
that, undo seems to get my old field contents back after this weird
behavior blows it away.


2- When I type ctrl-space in the Domain Class field, all I get is a
beep. I never get any auto-complete help. This seems true in all
fields that are supposed to support auto-complete (e.g., I've attempted
a few expressions, but with no luck getting auto-complete support).

I have no workaround yet for this, and it's really important because,
see following...


3- Item 2 is very frustrating because I can't seem to get the syntax for
specifying domain classes correctly. I have added 4 .ecore files (from
my companion modeling project) to the Selected Metamodels field of my
Diagram Description, but that doesn't seem to make the validator happy
with recognizing the classes I'm trying to refer to -- not raw, nor with
model name prefix, nor with model nsURI prefix.


If Sirius worked more or less as documented, it would have a lot of
promise for work I need to do. Can anyone help me get past these
startup issues?

Thanks,

--Eric
Re: Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736063 is a reply to message #1736060] Fri, 24 June 2016 18:54 Go to previous messageGo to next message
Eclipse UserFriend
OK. So I went back to try the intro tutorial and the problems below go
away. The main trick seems to be launching the recursive Eclipse
runtime and doing the Sirius development in that.

So if I keep two Eclipses open in this way, can I bounce between
them--e.g., work in the original Eclipse to tweak/extend my model and
have those changes picked up in the Runtime Sirius Eclipse without
having to restart it?

Is there a simple explanation for why you have to work with two Eclipses?

Thanks,

--Eric


On 6/24/16 1:35 PM, Eric Domeshek wrote:
> Hi Gang,
>
> I'm new to Sirius, and just trying things out (though moderately
> experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
> Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
> or that I just don't understand:
>
>
> 1- When I click into many text property fields (e.g., Label or Domain
> Class) the property sheet does weird/annoying things. In Label it often
> deletes the label I'd previously typed leaving me with a blank field. In
> Domain Class it throws away whatever I had and substitutes the string
> from the Id field. But it doesn't do this all the time; it seems to do
> it when the property sheet is gaining focus by the click.
>
> For now my workaround is to try to remember to click on the property
> sheet before I click into one of the property sheet fields. Failing
> that, undo seems to get my old field contents back after this weird
> behavior blows it away.
>
>
> 2- When I type ctrl-space in the Domain Class field, all I get is a
> beep. I never get any auto-complete help. This seems true in all
> fields that are supposed to support auto-complete (e.g., I've attempted
> a few expressions, but with no luck getting auto-complete support).
>
> I have no workaround yet for this, and it's really important because,
> see following...
>
>
> 3- Item 2 is very frustrating because I can't seem to get the syntax for
> specifying domain classes correctly. I have added 4 .ecore files (from
> my companion modeling project) to the Selected Metamodels field of my
> Diagram Description, but that doesn't seem to make the validator happy
> with recognizing the classes I'm trying to refer to -- not raw, nor with
> model name prefix, nor with model nsURI prefix.
>
>
> If Sirius worked more or less as documented, it would have a lot of
> promise for work I need to do. Can anyone help me get past these
> startup issues?
>
> Thanks,
>
> --Eric
>
>
Re: Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736069 is a reply to message #1736063] Fri, 24 June 2016 20:22 Go to previous messageGo to next message
Eclipse UserFriend
In my continuing quest to learn Sirius...

1- So it looks like you do have to restart the Runtime Eclipse in order
to pick up edits to the underlying model. I guess I can live with that.


2- Once you try to create your own Sirius workbench based on your own
model, what do you do if you don't have sample data like for the
tutorial? I tried creating a new Modeling Project (with no data in it),
but when I tried mimicking the tutorial step where you use the
Viewpoints Selection on the project there weren't any viewpoints listed.

I had built enough of a new Viewpoint Specification Project to get an
initial Viewpoint with a simple Diagram Description to validate cleanly.
What do I have to do to get that Viewpoint picked up by the Viewpoints
Specification mechanism (I didn't seem to need to do anything in the
tutorial)? Is there something else that has to be done in setting up
the Modeling Project?


3- Once I get past that hurdle, I have no idea what I'll do about the
fact that I don't have anything analogous to the family file to right
click on and ask for a new representation... What is the right way to
get off the ground here?

--Eric


On 6/24/16 2:54 PM, Eric Domeshek wrote:
> OK. So I went back to try the intro tutorial and the problems below go
> away. The main trick seems to be launching the recursive Eclipse
> runtime and doing the Sirius development in that.
>
> So if I keep two Eclipses open in this way, can I bounce between
> them--e.g., work in the original Eclipse to tweak/extend my model and
> have those changes picked up in the Runtime Sirius Eclipse without
> having to restart it?
>
> Is there a simple explanation for why you have to work with two Eclipses?
>
> Thanks,
>
> --Eric
>
>
> On 6/24/16 1:35 PM, Eric Domeshek wrote:
>> Hi Gang,
>>
>> I'm new to Sirius, and just trying things out (though moderately
>> experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
>> Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
>> or that I just don't understand:
>>
>>
>> 1- When I click into many text property fields (e.g., Label or Domain
>> Class) the property sheet does weird/annoying things. In Label it often
>> deletes the label I'd previously typed leaving me with a blank field. In
>> Domain Class it throws away whatever I had and substitutes the string
>> from the Id field. But it doesn't do this all the time; it seems to do
>> it when the property sheet is gaining focus by the click.
>>
>> For now my workaround is to try to remember to click on the property
>> sheet before I click into one of the property sheet fields. Failing
>> that, undo seems to get my old field contents back after this weird
>> behavior blows it away.
>>
>>
>> 2- When I type ctrl-space in the Domain Class field, all I get is a
>> beep. I never get any auto-complete help. This seems true in all
>> fields that are supposed to support auto-complete (e.g., I've attempted
>> a few expressions, but with no luck getting auto-complete support).
>>
>> I have no workaround yet for this, and it's really important because,
>> see following...
>>
>>
>> 3- Item 2 is very frustrating because I can't seem to get the syntax for
>> specifying domain classes correctly. I have added 4 .ecore files (from
>> my companion modeling project) to the Selected Metamodels field of my
>> Diagram Description, but that doesn't seem to make the validator happy
>> with recognizing the classes I'm trying to refer to -- not raw, nor with
>> model name prefix, nor with model nsURI prefix.
>>
>>
>> If Sirius worked more or less as documented, it would have a lot of
>> promise for work I need to do. Can anyone help me get past these
>> startup issues?
>>
>> Thanks,
>>
>> --Eric
>>
>>
>
Re: Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736233 is a reply to message #1736060] Mon, 27 June 2016 16:11 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
Le 24/06/2016 à 19:35, Eric Domeshek a écrit :
> Hi Gang,
Hi
>
> I'm new to Sirius, and just trying things out (though moderately
> experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
> Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
> or that I just don't understand:
>
>
> 1- When I click into many text property fields (e.g., Label or Domain
> Class) the property sheet does weird/annoying things. In Label it often
> deletes the label I'd previously typed leaving me with a blank field. In
> Domain Class it throws away whatever I had and substitutes the string
> from the Id field. But it doesn't do this all the time; it seems to do
> it when the property sheet is gaining focus by the click.
>
> For now my workaround is to try to remember to click on the property
> sheet before I click into one of the property sheet fields. Failing
> that, undo seems to get my old field contents back after this weird
> behavior blows it away.
>
This is a known issue on MAC OS referenced in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423887#
>
> 2- When I type ctrl-space in the Domain Class field, all I get is a
> beep. I never get any auto-complete help. This seems true in all
> fields that are supposed to support auto-complete (e.g., I've attempted
> a few expressions, but with no luck getting auto-complete support).
>
> I have no workaround yet for this, and it's really important because,
> see following...
>
We did not succeed to reproduce the beep on our MAC computer. Perhaps
you could fin out what is specific to your environment or your scenario
and then you may open a bugzilla here
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
Now, about completion, the best way to have it work is to set your
semantic meta-model as meta-models of your diagramDescription. It allows
you to have the completion entry you need and only these entries. [1]
In addition, it is recommended to set your metamodels as VSP(Viewpoint
specification project) dependencies [2]

>
> 3- Item 2 is very frustrating because I can't seem to get the syntax for
> specifying domain classes correctly. I have added 4 .ecore files (from
> my companion modeling project) to the Selected Metamodels field of my
> Diagram Description, but that doesn't seem to make the validator happy
> with recognizing the classes I'm trying to refer to -- not raw, nor with
> model name prefix, nor with model nsURI prefix.
The best way is to generate the metamodel plugins (model, edit, editor)
in your developpement eclipse. Then run another eclipse in which you can
create a VSP . In DiagramDescription metamodel choose "Add from
registry" to add your metamodel that is deployed in your runtime eclipse.
>
>
> If Sirius worked more or less as documented, it would have a lot of
> promise for work I need to do. Can anyone help me get past these
> startup issues?
>
> Thanks,
>
> --Eric
>
Regards
Laurent
>
[1]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/diagrams/Diagrams.html?cp=69_2_1
[2]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Specifying_Viewpoints.html?cp=69_2_0_2#vsp


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736272 is a reply to message #1736063] Tue, 28 June 2016 07:37 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
Le 24/06/2016 à 20:54, Eric Domeshek a écrit :
> OK. So I went back to try the intro tutorial and the problems below go
> away. The main trick seems to be launching the recursive Eclipse
> runtime and doing the Sirius development in that.
>
> So if I keep two Eclipses open in this way, can I bounce between
> them--e.g., work in the original Eclipse to tweak/extend my model and
> have those changes picked up in the Runtime Sirius Eclipse without
> having to restart it?
>
As said in the previous post, a good way is to generate meta model in
your dev eclipse and launch a runtime in which you can:
1- create your modeling project and a an instance of your model(It is
available as your meta model is deployed in your runtime)
2- create a VSP [1]
3- activate the viewpoint on your modeling project

So each time you change your meta model, restart your runtime
In your runtime instance, if you call service[2] in your VSM (odesign)
with service: or aql: interpreter, you can directly test it in your
modeling project even if the VSP plugin is not deployed.


[1]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Specifying_Viewpoints.html?cp=69_2_0_2#vsp
[2]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Writing_Queries.html?cp=69_2_8_7#service_methods

> Is there a simple explanation for why you have to work with two Eclipses?
>
> Thanks,
>
> --Eric
>
>
> On 6/24/16 1:35 PM, Eric Domeshek wrote:
>> Hi Gang,
>>
>> I'm new to Sirius, and just trying things out (though moderately
>> experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
>> Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
>> or that I just don't understand:
>>
>>
>> 1- When I click into many text property fields (e.g., Label or Domain
>> Class) the property sheet does weird/annoying things. In Label it often
>> deletes the label I'd previously typed leaving me with a blank field. In
>> Domain Class it throws away whatever I had and substitutes the string
>> from the Id field. But it doesn't do this all the time; it seems to do
>> it when the property sheet is gaining focus by the click.
>>
>> For now my workaround is to try to remember to click on the property
>> sheet before I click into one of the property sheet fields. Failing
>> that, undo seems to get my old field contents back after this weird
>> behavior blows it away.
>>
>>
>> 2- When I type ctrl-space in the Domain Class field, all I get is a
>> beep. I never get any auto-complete help. This seems true in all
>> fields that are supposed to support auto-complete (e.g., I've attempted
>> a few expressions, but with no luck getting auto-complete support).
>>
>> I have no workaround yet for this, and it's really important because,
>> see following...
>>
>>
>> 3- Item 2 is very frustrating because I can't seem to get the syntax for
>> specifying domain classes correctly. I have added 4 .ecore files (from
>> my companion modeling project) to the Selected Metamodels field of my
>> Diagram Description, but that doesn't seem to make the validator happy
>> with recognizing the classes I'm trying to refer to -- not raw, nor with
>> model name prefix, nor with model nsURI prefix.
>>
>>
>> If Sirius worked more or less as documented, it would have a lot of
>> promise for work I need to do. Can anyone help me get past these
>> startup issues?
>>
>> Thanks,
>>
>> --Eric
>>
>>
>


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Problems Getting Started w. Sirius 4.0/Neon on a Mac [message #1736273 is a reply to message #1736069] Tue, 28 June 2016 07:47 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
Le 24/06/2016 à 22:22, Eric Domeshek a écrit :
> In my continuing quest to learn Sirius...
>
> 1- So it looks like you do have to restart the Runtime Eclipse in order
> to pick up edits to the underlying model. I guess I can live with that.
>
>
> 2- Once you try to create your own Sirius workbench based on your own
> model, what do you do if you don't have sample data like for the
> tutorial? I tried creating a new Modeling Project (with no data in it),
> but when I tried mimicking the tutorial step where you use the
> Viewpoints Selection on the project there weren't any viewpoints listed.
The listed viewpoint are only those that can apply on your model. So
you have first to instanciate a model in your modeling project? Make
sure also that you defined correctly the scope of your viewpoint [1]
>
> I had built enough of a new Viewpoint Specification Project to get an
> initial Viewpoint with a simple Diagram Description to validate cleanly.
> What do I have to do to get that Viewpoint picked up by the Viewpoints
> Specification mechanism (I didn't seem to need to do anything in the
> tutorial)? Is there something else that has to be done in setting up
> the Modeling Project?
see previous answer
>
>
> 3- Once I get past that hurdle, I have no idea what I'll do about the
> fact that I don't have anything analogous to the family file to right
> click on and ask for a new representation... What is the right way to
> get off the ground here?
once you have activated your viewpoint on your modeling project (and i
am sure you will succeed :) ) you will be able to create representation
right clicking on a model element. Of course the available
representations will depend on how you defined your
RepresentationDescription in your viewpoint. See particularly the Domain
Class you set[2]
>
> --Eric

regards
Laurent

[1]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Specifying_Viewpoints.html?cp=69_2_0_3_0#vsm_organization
[2]
http://help.eclipse.org/mars/topic/org.eclipse.sirius.doc/doc/specifier/general/Specifying_Viewpoints.html?cp=69_2_0_3_2#type_names
>
>
> On 6/24/16 2:54 PM, Eric Domeshek wrote:
>> OK. So I went back to try the intro tutorial and the problems below go
>> away. The main trick seems to be launching the recursive Eclipse
>> runtime and doing the Sirius development in that.
>>
>> So if I keep two Eclipses open in this way, can I bounce between
>> them--e.g., work in the original Eclipse to tweak/extend my model and
>> have those changes picked up in the Runtime Sirius Eclipse without
>> having to restart it?
>>
>> Is there a simple explanation for why you have to work with two Eclipses?
>>
>> Thanks,
>>
>> --Eric
>>
>>
>> On 6/24/16 1:35 PM, Eric Domeshek wrote:
>>> Hi Gang,
>>>
>>> I'm new to Sirius, and just trying things out (though moderately
>>> experienced with EMF). I'm running Sirius 4.0 under Neon on a MacBook
>>> Pro running OS 10.8.5. I've run into several behaviors that seem wrong,
>>> or that I just don't understand:
>>>
>>>
>>> 1- When I click into many text property fields (e.g., Label or Domain
>>> Class) the property sheet does weird/annoying things. In Label it often
>>> deletes the label I'd previously typed leaving me with a blank field. In
>>> Domain Class it throws away whatever I had and substitutes the string
>>> from the Id field. But it doesn't do this all the time; it seems to do
>>> it when the property sheet is gaining focus by the click.
>>>
>>> For now my workaround is to try to remember to click on the property
>>> sheet before I click into one of the property sheet fields. Failing
>>> that, undo seems to get my old field contents back after this weird
>>> behavior blows it away.
>>>
>>>
>>> 2- When I type ctrl-space in the Domain Class field, all I get is a
>>> beep. I never get any auto-complete help. This seems true in all
>>> fields that are supposed to support auto-complete (e.g., I've attempted
>>> a few expressions, but with no luck getting auto-complete support).
>>>
>>> I have no workaround yet for this, and it's really important because,
>>> see following...
>>>
>>>
>>> 3- Item 2 is very frustrating because I can't seem to get the syntax for
>>> specifying domain classes correctly. I have added 4 .ecore files (from
>>> my companion modeling project) to the Selected Metamodels field of my
>>> Diagram Description, but that doesn't seem to make the validator happy
>>> with recognizing the classes I'm trying to refer to -- not raw, nor with
>>> model name prefix, nor with model nsURI prefix.
>>>
>>>
>>> If Sirius worked more or less as documented, it would have a lot of
>>> promise for work I need to do. Can anyone help me get past these
>>> startup issues?
>>>
>>> Thanks,
>>>
>>> --Eric
>>>
>>>
>>
>


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Bug with diagram saving (and opening)
Next Topic:[Properties view] Getting extra input from user
Goto Forum:
  


Current Time: Thu Mar 28 09:16:43 GMT 2024

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

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

Back to the top