On 3/10/2011 6:31 PM, Susan Franklin McCourt wrote:
The editor guys can explain the original intent behind "toolkit
framework," but I think about some heavy duty text framework
that perhaps presents a higher level API to clients but needs to
know more detail about the implementation.
I read this as saying "if you want to know when the editor makes
a change, hook an onModelChanged listener on the editor rather
than knowing about the editor model and using it directly."
Is it really onModelChanged or "ModelChanged" ?
Ideally if you are just trying to embed the editor and respond
to changes, you can get by with using only public editor
"application" API. If you can't get by, then we would want to
know and would look at expanding the API.
Just to give you a perspective, it's not like this out here. I see a
dojo application and a lot of script files under a directory with a
lot more dots than I'm used to ;-). So it's more like "Oh, that
function looks promising! I wonder how to find the object it runs
on?" and "I'll use the public editor API". But I'm finding
interesting functions so no worries.
jjb
susan
John J Barton ---03/10/2011 05:09:51
PM---editor/web/js/model.js onChange says: This notification
is intended to be used only by the editor. A
From: John
J Barton <johnjbarton@xxxxxxxxxxxxxxx>
To: Orion
developer discussions <orion-dev@xxxxxxxxxxx>
Date: 03/10/2011
05:09 PM
Subject: [orion-dev]
application client vs toolkit frameworks?
Sent by: orion-dev-bounces@xxxxxxxxxxx
editor/web/js/model.js onChange says:
This notification is intended to be used only by the editor.
Application
clients should
* use {@link eclipse.Editor#event:onModelChanged}.
* </p>
* <p>
* NOTE: This method is not meant to called directly by
application code. It is called internally by the TextModel
* as part of the implementation of {@link #setText}.
This
method is included in the public API for documentation
* purposes and to allow integration with other toolkit
frameworks.
What is an application client and what is "other toolkit
framework"?
I have a program that wants to know when the editor makes a
change.
jjb
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/orion-dev
|