Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EWL Wizards
EWL Wizards [message #21191] Mon, 29 June 2009 16:23 Go to next message
Warren R is currently offline Warren R
Messages: 4
Registered: July 2009
Junior Member
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 #21206 is a reply to message #21191] Mon, 29 June 2009 17:18 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
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 #21628 is a reply to message #21206] Tue, 30 June 2009 13:11 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
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.
>>
Previous Topic:[EML] using EML for generic metamodel compositon
Next Topic:Help on the steps to follow for a model composition.
Goto Forum:
  


Current Time: Fri Aug 22 07:51:22 EDT 2014

Powered by FUDForum. Page generated in 0.01715 seconds