Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Navigation operation on doubleclick
Navigation operation on doubleclick [message #1298698] Wed, 16 April 2014 12:41 Go to next message
Florian Dunz is currently offline Florian DunzFriend
Messages: 20
Registered: March 2014
Junior Member
Hi there,

I've recently updated my Sirius installation from an older version (about one month old) to the latest one.

As i was now reworking my Viewpoint Specification Model file i discovered the lack of the Navigation operation. I've been using this in the initial operation owned by a Double Click Description.
This was working fine previously, doubleclicking an element created (if not existed) and instantly opened a diagram corresponding to the clicked element.

Now that this operation is gone I'm not sure how to achieve this anymore. Is this just a bug or could you give me hints on how to get this working again?
I've seen the Diagram Creation Description and the Diagram Navigation Description but I'm not really sure if this is what I'm looking for nor how to use it properly.

Thanks,
Florian
Re: Navigation operation on doubleclick [message #1300007 is a reply to message #1298698] Thu, 17 April 2014 09:02 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 503
Registered: July 2009
Location: Nantes, France
Senior Member
Le 16/04/2014 14:41, Florian Dunz a écrit :
> Hi there,

Hi Florian

>
> I've recently updated my Sirius installation from an older version
> (about one month old) to the latest one.
The latest one : a nighly build ?

> As i was now reworking my Viewpoint Specification Model file i
> discovered the lack of the Navigation operation. I've been using this in
> the initial operation owned by a Double Click Description.
> This was working fine previously, doubleclicking an element created (if
> not existed) and instantly opened a diagram corresponding to the clicked
> element.

We are currently working on Bug 427803 [1], to move all diagram
related code to diagram specific plugins. This could be an unwanted
collateral damage.

>
> Now that this operation is gone I'm not sure how to achieve this
> anymore. Is this just a bug or could you give me hints on how to get
> this working again?

NavigationTool is still defined in the metamodel but is no more
proposed as possible child in VSM editor (same issue for CreateView,
CreateEdgeView), see Bug 432986 [2].
We will try to commit a workaround fix (to get them back in the VSM
editor and the Sample Ecore Reflexive Editor for example). The VSM
created with a previous version should be properly migrated during load
and they should continue to work.


> I've seen the Diagram Creation Description and the Diagram Navigation
> Description but I'm not really sure if this is what I'm looking for nor
> how to use it properly.

Both tools are used to populate the contextual menu and will be
available to end-users in the Navigate context menu on compatible
diagram elements (or other representation elements, regarding the
selected mappings in the VSM editor), see [3] and [4].

>
> Thanks,
> Florian

Regards,

Maxime

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=427803
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=432986
[3]
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#representation_creation
[4]
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#representation_navigation


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Navigation operation on doubleclick [message #1300259 is a reply to message #1300007] Thu, 17 April 2014 12:54 Go to previous messageGo to next message
Florian Dunz is currently offline Florian DunzFriend
Messages: 20
Registered: March 2014
Junior Member
Hi Maxime,

thanks for the reply!

> The latest one : a nighly build ?
I actually did a git checkout of your very latest version of Sirius. So i guess you call that a nightly build.

> NavigationTool is still defined in the metamodel but is no more
> proposed as possible child in VSM editor (same issue for CreateView,
> CreateEdgeView), see Bug 432986 [2].
> We will try to commit a workaround fix (to get them back in the VSM
> editor and the Sample Ecore Reflexive Editor for example).
I managed this even without the Tools shown in the VSM. As you said the metamodel still exists, so I only had to copy and paste the old xml code of the "Navigation" into my newly created "Initial Operation" code of the "Double Click Description".

> The VSM
> created with a previous version should be properly migrated during load
> and they should continue to work.
This however doesn't work for me. I'm getting plenty of exceptions if I try to open my old VSM in a the new Sirius version. All of them look mostly like this:
org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@7e320e36 (eProxyURI: environment:/viewpoint#//@systemColors/@entries[name='black'] eClass: org.eclipse.emf.ecore.impl.EClassImpl@66535a21 (name: ColorDescription) (instanceClassName: null) (abstract: false, interface: false))' is not legal.
...
Caused by: java.lang.ClassCastException: org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl cannot be cast to org.eclipse.sirius.viewpoint.description.ColorDescription
...

The whole stacktrace is quite long and I don't see a spoiler function...

Thanks,
Florian
Re: Navigation operation on doubleclick [message #1300311 is a reply to message #1300259] Thu, 17 April 2014 13:37 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 503
Registered: July 2009
Location: Nantes, France
Senior Member
Le 17/04/2014 14:54, Florian Dunz a écrit :
> Hi Maxime,
>
> thanks for the reply!
>
>> The latest one : a nighly build ?
> I actually did a git checkout of your very latest version of Sirius. So
> i guess you call that a nightly build.

You should install Sirius from the update sites [1], to have a specific
version which could be used in error reporting. Note that validation of
correction and homologation are done for milestone and releases. If you
use nightly builds there are no garantee that migration is properly
effective and validation of issues correction has not been done yet.
>
>> NavigationTool is still defined in the metamodel but is no more
>> proposed as possible child in VSM editor (same issue for CreateView,
>> CreateEdgeView), see Bug 432986 [2].
>> We will try to commit a workaround fix (to get them back in the VSM
>> editor and the Sample Ecore Reflexive Editor for example).
> I managed this even without the Tools shown in the VSM. As you said the
> metamodel still exists, so I only had to copy and paste the old xml code
> of the "Navigation" into my newly created "Initial Operation" code of
> the "Double Click Description".
>
>> The VSM
>> created with a previous version should be properly migrated during load
>> and they should continue to work.
> This however doesn't work for me. I'm getting plenty of exceptions if I
> try to open my old VSM in a the new Sirius version. All of them look
> mostly like this:
> org.eclipse.emf.ecore.xmi.IllegalValueException: Value
> 'org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl@7e320e36 (eProxyURI:
> environment:/viewpoint#//@systemColors/@entries[name='black'] eClass:
> org.eclipse.emf.ecore.impl.EClassImpl@66535a21 (name: ColorDescription)
> (instanceClassName: null) (abstract: false, interface: false))' is not
> legal.
> ..
> Caused by: java.lang.ClassCastException:
> org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl cannot be cast to
> org.eclipse.sirius.viewpoint.description.ColorDescription
> ..
> The whole stacktrace is quite long and I don't see a spoiler function...

Do you known with which version of Sirius your VSM was created ? (Sirius
0.9, 1.0.0M4, 1.0.0M6)
We did not see these errors in our tests. Could you try to reproduce
with a VSM created with a released versions ? If it is reproductible, a
bugzilla will have to be reported.

>
> Thanks,
> Florian

Regards,

Maxime

[1] https://wiki.eclipse.org/Sirius/Update_Sites


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Navigation operation on doubleclick [message #1300383 is a reply to message #1300311] Thu, 17 April 2014 14:31 Go to previous message
Florian Dunz is currently offline Florian DunzFriend
Messages: 20
Registered: March 2014
Junior Member
Hi Maxime,

> Do you known with which version of Sirius your VSM was created ? (Sirius
> 0.9, 1.0.0M4, 1.0.0M6)
> We did not see these errors in our tests. Could you try to reproduce
> with a VSM created with a released versions ? If it is reproductible, a
> bugzilla will have to be reported.
I'm afraid I don't know the exact version as it has also been a nightly build. I'm not able to recreate it with a release version, it propably has just been a little bug which was already fixed in the milestones.

Florian
Previous Topic:Semantic model based on XML schema generated ecore and handling of DocumentRoot class
Next Topic:Problem with Edge Creation Description
Goto Forum:
  


Current Time: Thu Apr 15 12:27:36 GMT 2021

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

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

Back to the top