Repost: Original source element of working copy in ElementChangedListener [message #207470] |
Tue, 21 June 2005 12:27 |
Eclipse User |
|
|
|
Originally posted by: ohnygaar.online.no
Sorry for the repost, I have been reading through the API and documentation
but I`m still no smarter about this. Please give me feedback if the question
is to vague.
I want to monitor fine-grained changes to the code in my plug-in. My
impression is that the best way to go is to use a ElementChangesListener and
then compare two instances of the source using the AST framework. In this
case how should and can I get hold of the elements to compare ? I guess I
can get hold of the working copy from the delta but what bout the
history(previous) or original element ?
Thanks,
Otto
|
|
|
|
Re: Repost: Original source element of working copy in ElementChangedListener [message #207974 is a reply to message #207503] |
Sun, 26 June 2005 23:09 |
Eclipse User |
|
|
|
Originally posted by: ohnygaar.online.no
Thank you for your answer Jerome. I guess I have to find another solution,
maybe my own cache.
Hints to good alternative solutions from you or others would be appreciated.
"Jerome Lanneluc" <jerome_lanneluc@fr.ibm.com> wrote in message
news:d996k9$9ab$1@news.eclipse.org...
> Sorry, we don't cache the previous element and its source.
>
> Jerome
>
> Otto Nygaard wrote:
>> Sorry for the repost, I have been reading through the API and
>> documentation but I`m still no smarter about this. Please give me
>> feedback if the question is to vague.
>>
>> I want to monitor fine-grained changes to the code in my plug-in. My
>> impression is that the best way to go is to use a ElementChangesListener
>> and then compare two instances of the source using the AST framework. In
>> this case how should and can I get hold of the elements to compare ? I
>> guess I can get hold of the working copy from the delta but what bout the
>> history(previous) or original element ?
>>
>> Thanks,
>> Otto
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds