Home » Modeling » GMF (Graphical Modeling Framework) » Generated diagram editor's Undo-Redo history
Generated diagram editor's Undo-Redo history [message #115478] |
Thu, 29 March 2007 14:05  |
Eclipse User |
|
|
|
Originally posted by: NOSPAM.xyz.com
If I create a new Project, then create and open
a new diagram resource and then access the "Edit" menu
I can see an enabled "Undo" item there. It turns out that
it is actually a "Undo Create New Project" action, so if one
selects it, the new projects is of course removed taking the
new diagram resource along with it, closing the editor, etc...
I am not sure if this is a bug or is it the expected behavior?
BTW, who provides for the Undo and Redo global actions?
The generated editor contributes to
<extension
point=" org.eclipse.gmf.runtime.common.ui.services.action.globalActi onHandlerProviders ">
providers for "Save", "Copy", "Paste", etc., but there is nothing
about "Undo" and "Redo".
********************************
The default text editor behaves the same way, so most
likely this isn't a bug. It looks odd to me , though...
Cheers
|
|
|
Re: Generated diagram editor's Undo-Redo history [message #115699 is a reply to message #115478] |
Fri, 30 March 2007 09:03   |
Eclipse User |
|
|
|
Marian,
As far as I know this is behaviour deliberately introduced by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964. The global undo
context is used when there is no activity in a specific undo context
(which in this case is the undo context for the diagram editor). Note
that this is also the cause of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361.
Regards,
Linda
Marian wrote:
> If I create a new Project, then create and open
> a new diagram resource and then access the "Edit" menu
> I can see an enabled "Undo" item there. It turns out that
> it is actually a "Undo Create New Project" action, so if one
> selects it, the new projects is of course removed taking the
> new diagram resource along with it, closing the editor, etc...
>
> I am not sure if this is a bug or is it the expected behavior?
>
> BTW, who provides for the Undo and Redo global actions?
>
> The generated editor contributes to
> <extension
> point=" org.eclipse.gmf.runtime.common.ui.services.action.globalActi onHandlerProviders ">
> providers for "Save", "Copy", "Paste", etc., but there is nothing
> about "Undo" and "Redo".
>
> ********************************
> The default text editor behaves the same way, so most
> likely this isn't a bug. It looks odd to me , though...
> Cheers
>
>
|
|
|
Re: Generated diagram editor's Undo-Redo history [message #115712 is a reply to message #115699] |
Fri, 30 March 2007 11:05   |
Eclipse User |
|
|
|
Originally posted by: NOSPAM.xyz.com
Hi Linda,
thank you for the references.
I agree that the solution they came up with in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964.
is a reasonable compromise.
I also noticed myself the problem you described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361.
Thanks for saving me the efford to report it.
"Linda Damus" <ldamus@ca.ibm.com> wrote in message
news:euj1rh$5r9$1@build.eclipse.org...
> Marian,
>
> As far as I know this is behaviour deliberately introduced by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964. The global undo
> context is used when there is no activity in a specific undo context
> (which in this case is the undo context for the diagram editor). Note
> that this is also the cause of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361.
>
> Regards,
> Linda
>
> Marian wrote:
>> If I create a new Project, then create and open
>> a new diagram resource and then access the "Edit" menu
>> I can see an enabled "Undo" item there. It turns out that
>> it is actually a "Undo Create New Project" action, so if one
>> selects it, the new projects is of course removed taking the
>> new diagram resource along with it, closing the editor, etc...
>>
>> I am not sure if this is a bug or is it the expected behavior?
>>
>> BTW, who provides for the Undo and Redo global actions?
>>
>> The generated editor contributes to
>> <extension
>> point=" org.eclipse.gmf.runtime.common.ui.services.action.globalActi onHandlerProviders ">
>> providers for "Save", "Copy", "Paste", etc., but there is nothing
>> about "Undo" and "Redo".
>>
>> ********************************
>> The default text editor behaves the same way, so most
>> likely this isn't a bug. It looks odd to me , though...
>> Cheers
|
|
|
Re: Generated diagram editor's Undo-Redo history [message #115724 is a reply to message #115712] |
Fri, 30 March 2007 11:18  |
Eclipse User |
|
|
|
Originally posted by: NOSPAM.xyz.com
Still,
there is a minor glitch to the solution of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964 :
When there is nothing in the local history of the fresh editor instance
the menu item label is just "Undo" instead of
"Undo New Project"
"Marian" <NOSPAM@xyz.com> wrote in message
news:euj5bl$hct$1@build.eclipse.org...
> Hi Linda,
> thank you for the references.
> I agree that the solution they came up with in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964.
> is a reasonable compromise.
>
> I also noticed myself the problem you described in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361.
> Thanks for saving me the efford to report it.
>
>
> "Linda Damus" <ldamus@ca.ibm.com> wrote in message
> news:euj1rh$5r9$1@build.eclipse.org...
>> Marian,
>>
>> As far as I know this is behaviour deliberately introduced by
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=162964. The global undo
>> context is used when there is no activity in a specific undo context
>> (which in this case is the undo context for the diagram editor). Note
>> that this is also the cause of
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361.
>>
>> Regards,
>> Linda
>>
>> Marian wrote:
>>> If I create a new Project, then create and open
>>> a new diagram resource and then access the "Edit" menu
>>> I can see an enabled "Undo" item there. It turns out that
>>> it is actually a "Undo Create New Project" action, so if one
>>> selects it, the new projects is of course removed taking the
>>> new diagram resource along with it, closing the editor, etc...
>>>
>>> I am not sure if this is a bug or is it the expected behavior?
>>>
>>> BTW, who provides for the Undo and Redo global actions?
>>>
>>> The generated editor contributes to
>>> <extension
>>> point=" org.eclipse.gmf.runtime.common.ui.services.action.globalActi onHandlerProviders ">
>>> providers for "Save", "Copy", "Paste", etc., but there is nothing
>>> about "Undo" and "Redo".
>>>
>>> ********************************
>>> The default text editor behaves the same way, so most
>>> likely this isn't a bug. It looks odd to me , though...
>>> Cheers
>
>
|
|
|
Goto Forum:
Current Time: Mon May 12 03:19:21 EDT 2025
Powered by FUDForum. Page generated in 0.03574 seconds
|