Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Repost: Original source element of working copy in ElementChangedListener
Repost: Original source element of working copy in ElementChangedListener [message #207470] Tue, 21 June 2005 12:27 Go to next message
Eclipse UserFriend
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 #207503 is a reply to message #207470] Tue, 21 June 2005 14:01 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
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
>
>
Re: Repost: Original source element of working copy in ElementChangedListener [message #207974 is a reply to message #207503] Sun, 26 June 2005 23:09 Go to previous message
Eclipse UserFriend
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
>>
Previous Topic:Using the ASTParser to parse .class files.
Next Topic:"The type List is not generic" in Eclipse 3.1 RC4
Goto Forum:
  


Current Time: Fri Aug 23 06:01:00 GMT 2024

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

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

Back to the top