Closed istvanrath closed 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.
Nope, I had them in the runtime and it didn't work.
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.
I updated the comparator to maintain parameter order. @istvanrath can you check whether the symptoms are still there?
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.
So, the good old EMF generation issues already removed in #174 wanted a rematch. :D
@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.
@istvanrath Please try to hack the filter setting window!
I can't reproduce the issue anymore. Now the order of entries in the Details/Filters view seems to be stable.
I have also fixed the school example URI problem.
Please cherry pick it to the maintenance branch.
Cherry picked into maintenance branch.
Target ordering for the Details/Filters view:
@szabta89 please finish this task by implementing correct ordering
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.
@istvanrath Please check whether everything works as expected.
I have seen massive problems, but I cannot reproduce them deterministically:
Tried with school example:
coursesOfTeacher
Improvement would also be necessary on the Model element selection dialog, using better strings in the list rather than ugly .toStrings().