[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.epsilon] EWL Wizards

Hi,

I have found what I think is a bug inside the epsilon ewl.emf plugin. The issue is that the wizard menu becomes an orphan and is no longer maintained by the code. It simply stays in the same state till the diagram is closed and reopened. This can be reproduced very easily,

1) create a new diagram with model
2) add entities to the diagram
3) right click on any of the entities and go to the wizard menu so a title is produced and displayed (do not need to execute wizard)
4) save diagram and initialize a new diagram from the same model
5) right click on any entity in the new diagram and go to the wizard menu so a title is displayed (do not need to execute wizard)
6) go back to first diagram and right click on an entity to view a wizard that is available for it


The title that is displayed in the wizard should not change now regardless of the entity that is selected in the first diagram editor.

Through debugging I see that AbstractContributeWizardsAction is only created once globally, it is not created per diagram. The method getMenu(Menu parent) is called for the first time the wizard menu is accessed per diagram. Each time it is called it overwrites the menu for the previous diagram resulting in the static wizard that is seen in the first diagram editor.

Any help would be most appreciated.

Thank You,
Warren R.