EWL Wizards [message #21191] |
Mon, 29 June 2009 16:23  |
Eclipse User |
|
|
|
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.
|
|
|
|
Re: EWL Wizards [message #21628 is a reply to message #21206] |
Tue, 30 June 2009 13:11  |
Eclipse User |
|
|
|
For the record: https://bugs.eclipse.org/bugs/show_bug.cgi?id=282038
Dimitris Kolovos wrote:
> Hi Warren,
>
> It sounds like a bug indeed. Thanks for spending the time to report it
> in such detail! Could you please open a new bug report to keep track of it?
>
> Cheers,
> Dimitris
>
> Warren R wrote:
>> 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.
>>
|
|
|
Re: EWL Wizards [message #569954 is a reply to message #21191] |
Mon, 29 June 2009 17:18  |
Eclipse User |
|
|
|
Hi Warren,
It sounds like a bug indeed. Thanks for spending the time to report it
in such detail! Could you please open a new bug report to keep track of it?
Cheers,
Dimitris
Warren R wrote:
> 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.
>
|
|
|
Re: EWL Wizards [message #570339 is a reply to message #21206] |
Tue, 30 June 2009 13:11  |
Eclipse User |
|
|
|
For the record: https://bugs.eclipse.org/bugs/show_bug.cgi?id=282038
Dimitris Kolovos wrote:
> Hi Warren,
>
> It sounds like a bug indeed. Thanks for spending the time to report it
> in such detail! Could you please open a new bug report to keep track of it?
>
> Cheers,
> Dimitris
>
> Warren R wrote:
>> 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.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.08806 seconds