viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Details/Filters consistency problems #343

Closed istvanrath closed 11 years ago

istvanrath commented 11 years ago

I have seen massive problems, but I cannot reproduce them deterministically:

Tried with school example:

Image and video hosting by TinyPic

Improvement would also be necessary on the Model element selection dialog, using better strings in the list rather than ugly .toStrings().

szabta89 commented 11 years ago

As a side note: if the generated EMF plug-ins are in the runtime config, then the label will not be the toString() rather the text coming from the generated LabelProvider.

istvanrath commented 11 years ago

Nope, I had them in the runtime and it didn't work.

ujhelyiz commented 11 years ago

Hmm, the parameter ordering issue might have something to do with my last change for #329, the comparator. I haven't opened the code yet, but commit 459517ad103e8434f51fb9caf2f9916888ffaac2 might worth a look.

ujhelyiz commented 11 years ago

I updated the comparator to maintain parameter order. @istvanrath can you check whether the symptoms are still there?

szabta89 commented 11 years ago

Label provider issue: the generated edit code registers the adapter factory under the http:///school.ecore uri, but the Resource and model elements return the uri as http://school.ecore (one '/' mark is missing). This way the UI cannot find it when it is needed.

ujhelyiz commented 11 years ago

So, the good old EMF generation issues already removed in #174 wanted a rematch. :D

szabta89 commented 11 years ago

@ujhelyiz I think the filter setting dialog is more robust now, but the ViewerComparator has no effect in my opinion. For example, for the coursesOfTeacher pattern the order of the pattern parameters is T, C and the comparator calculates this order properly, however, the tableviewer presents them in a reversed order.

I tried to use parameterMap.put(parameterNames[i], Integer.valueOf(parameterNames.length - 1 - i)); in the constructor but the result was the same reversed order.

szabta89 commented 11 years ago

@istvanrath Please try to hack the filter setting window!

istvanrath commented 11 years ago

I can't reproduce the issue anymore. Now the order of entries in the Details/Filters view seems to be stable.

istvanrath commented 11 years ago

I have also fixed the school example URI problem.

istvanrath commented 11 years ago

Please cherry pick it to the maintenance branch.

szabta89 commented 11 years ago

Cherry picked into maintenance branch.

istvanrath commented 11 years ago

Target ordering for the Details/Filters view:

  1. parameters according to the header specification order in the pattern definition
  2. then any observable value in alphanumeric order
istvanrath commented 11 years ago

@szabta89 please finish this task by implementing correct ordering

szabta89 commented 11 years ago

Sorry for the confusing feedback, but the comparator already did what it was supposed to do. The problem was that I've only tried it with parameters coming from the pattern definition.

ujhelyiz commented 11 years ago

@istvanrath Please check whether everything works as expected.