Skip to main content



      Home
Home » Eclipse Projects » GEF » enabled state of action not updating
enabled state of action not updating [message #118519] Fri, 20 February 2004 00:09 Go to next message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

I have a very simple action that extends EditorPartAction. Its
calculateEnabled method returns the dirty state of the editor much in
the same way that the SaveAction does.

However, it seems that my action's enabled state is not being updated on
the dirty state change of the editor.

What I am missing here?

TIA,
Phil
Re: enabled state of action not updating [message #118533 is a reply to message #118519] Fri, 20 February 2004 09:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You have to call update() on the action when the editor's state changes.
See the logic example for sample code.

"Phil Williams" <phil.williams@toadmail.com> wrote in message
news:c144jj$o9n$1@eclipse.org...
> I have a very simple action that extends EditorPartAction. Its
> calculateEnabled method returns the dirty state of the editor much in
> the same way that the SaveAction does.
>
> However, it seems that my action's enabled state is not being updated on
> the dirty state change of the editor.
>
> What I am missing here?
>
> TIA,
> Phil
>
Re: enabled state of action not updating [message #118559 is a reply to message #118533] Fri, 20 February 2004 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

This is a multi-part message in MIME format.
--------------000809090405020104080800
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Randy,

Thanks for the reply, but after searching around I do not see where
update() is being called in the logic example.

Phil

Randy Hudson wrote:

>You have to call update() on the action when the editor's state changes.
>See the logic example for sample code.
>
>"Phil Williams" <phil.williams@toadmail.com> wrote in message
>news:c144jj$o9n$1@eclipse.org...
>
>
>>I have a very simple action that extends EditorPartAction. Its
>>calculateEnabled method returns the dirty state of the editor much in
>>the same way that the SaveAction does.
>>
>>However, it seems that my action's enabled state is not being updated on
>>the dirty state change of the editor.
>>
>>What I am missing here?
>>
>>TIA,
>>Phil
>>
>>
>>
>
>
>
>

--------------000809090405020104080800
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
Randy,<br>
<br>
Thanks for the reply, but after searching around I do not see where
update() is being called in the logic example.<br>
<br>
Phil<br>
<br>
Randy Hudson wrote:
<blockquote cite="midc155en$uft$1@eclipse.org" type="cite">
<pre wrap="">You have to call update() on the action when the editor's state changes.
See the logic example for sample code.

"Phil Williams" <a class="moz-txt-link-rfc2396E" href="mailto:phil.williams@toadmail.com">&lt;phil.williams@toadmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:c144jj$o9n$1@eclipse.org">news:c144jj$o9n$1@eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">I have a very simple action that extends EditorPartAction. Its
calculateEnabled method returns the dirty state of the editor much in
the same way that the SaveAction does.

However, it seems that my action's enabled state is not being updated on
the dirty state change of the editor.

What I am missing here?

TIA,
Phil

</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------000809090405020104080800--
Re: enabled state of action not updating [message #118708 is a reply to message #118559] Fri, 20 February 2004 15:46 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_007E_01C3F7C8.A7EFB410
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Right click on the method UpdateAction#update and select Open Call =
Hierarchy.
"Phil Williams" <phil.williams@toadmail.com> wrote in message =
news:c159es$47s$1@eclipse.org...
Randy,

Thanks for the reply, but after searching around I do not see where =
update() is being called in the logic example.

Phil

Randy Hudson wrote:=20
You have to call update() on the action when the editor's state changes.
See the logic example for sample code.

"Phil Williams" <phil.williams@toadmail.com> wrote in message
news:c144jj$o9n$1@eclipse.org...
I have a very simple action that extends EditorPartAction. Its
calculateEnabled method returns the dirty state of the editor much in
the same way that the SaveAction does.

However, it seems that my action's enabled state is not being updated on
the dirty state change of the editor.

What I am missing here?

TIA,
Phil

=20


------=_NextPart_000_007E_01C3F7C8.A7EFB410
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Right click on the method =
UpdateAction#update and=20
select Open Call Hierarchy.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Phil Williams" &lt;<A=20
=
href=3D"mailto:phil.williams@toadmail.com">phil.williams@toadmail.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:c159es$47s$1@eclipse.org">news:c159es$47s$1@eclipse.org</A>.=
...</DIV>Randy,<BR><BR>Thanks=20
for the reply, but after searching around I do not see where update() =
is being=20
called in the logic example.<BR><BR>Phil<BR><BR>Randy Hudson wrote:=20
<BLOCKQUOTE cite=3Dmidc155en$uft$1@eclipse.org type=3D"cite"><PRE =
wrap=3D"">You have to call update() on the action when the editor's =
state changes.
See the logic example for sample code.

"Phil Williams" <A class=3Dmoz-txt-link-rfc2396E =
href=3D"mailto:phil.williams@toadmail.com">&lt;phil.williams@toadmail.com=
&gt;</A> wrote in message
<A class=3Dmoz-txt-link-freetext =
href=3D"news:c144jj$o9n$1@eclipse.org">news:c144jj$o9n$1@eclipse.org</A>.=
...
</PRE>
<BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">I have a very simple action =
that extends EditorPartAction. Its
calculateEnabled method returns the dirty state of the editor much in
the same way that the SaveAction does.

However, it seems that my action's enabled state is not being updated on
the dirty state change of the editor.

What I am missing here?

TIA,
Phil

</PRE></BLOCKQUOTE><PRE wrap=3D""><!---->

</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_007E_01C3F7C8.A7EFB410--
Previous Topic:View & Model separation (Logic example)
Next Topic:CreationTools and TemplateTransferDropTargetListeners
Goto Forum:
  


Current Time: Thu May 08 05:53:44 EDT 2025

Powered by FUDForum. Page generated in 0.04694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top