| Summary: | menu item order changes dynamically | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Rafael Chaves <eclipse> | ||||||
| Component: | Client | Assignee: | Susan McCourt <susan> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 1.0 | ||||||||
| Target Milestone: | 1.0 RC1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Rafael Chaves
Notice how the Launch/Deploy actions appear at the bottom of the menu at first, and then in the middle of menu later. Probably the code that is iterating the contributions is assigning the same "position" in the command framework which would leave the order to the js sort routine. That's no good. Minimally we should be assigning unique positions as we iterate service extensions to keep things stable. I'll see if any particular sort order above the service contribution order makes sense. I'll also check to see if the iteration of service extensions is expected to be repeatable. If it is not, then some kind of sort would be necessary, which would also make things more stable when a new plugin with a command contribution was loaded. see also bug 390221. I don't think it would fix this issue, but it could change the behavior again. The way service extensions are traversed will likely change again. Rafael, can you point me to a link for your plugin that exhibits the problem? I can't get this to happen running the Orion commands plus "sampleCommandsPlugin" so I need reproducible steps.... Created attachment 221820 [details]
plugin showing the issue
Created attachment 221821 [details]
plugin showing the issue (HTML)
Susan, I attached the plugin files here because they haven't been released yet. I don't remember seeing that behavior again, and only decided it was not just me seeing things because I had the video to prove it. (In reply to comment #7) > Susan, I attached the plugin files here because they haven't been released > yet. > > I don't remember seeing that behavior again, and only decided it was not > just me seeing things because I had the video to prove it. Thanks for the files. (I used the new "import from HTTP" feature to grab them directly from this bug! Just had to rename the files, update the script pointer...) yes, I saw the video and was very surprised to see the behavior. Of course I can't reproduce it. I created several different mdd.properties files in different folders but the order is stable. I looked at the code to see if comment #2 was true, and it was not. So I think I'm going to close this as invalid (even though you have video proof!) until we can come up with a repeatable case. Please reopen if you see this again on later builds. |