enabled state of action not updating [message #118519] |
Fri, 20 February 2004 00:09  |
Eclipse User |
|
|
|
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 #118708 is a reply to message #118559] |
Fri, 20 February 2004 15:46  |
Eclipse User |
|
|
|
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" <<A=20
=
href=3D"mailto:phil.williams@toadmail.com">phil.williams@toadmail.com</A>=
>=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"><phil.williams@toadmail.com=
></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--
|
|
|
Powered by
FUDForum. Page generated in 0.04694 seconds