Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » IBufferChangedListener vs. IDocumentListener: which was to use for .java files?
icon4.gif  IBufferChangedListener vs. IDocumentListener: which was to use for .java files? [message #666964] Mon, 25 April 2011 07:05
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi all,

I am trying to make 2 .java files at sync all times. To do this, I attach the first one a listener (IDocumentListener or IBufferChangedListener) and apply the changes applied to the first file to the second file.

For .java files that are on the class-path (i.e. if I can create ICompilationUnit from them), I can use any of the both listeners.

My question is: which one is better (faster or more reliable) for the thing I want to do? Could you explain the difference between those listeners (both seem to work by the way)?

Thanks in advance, best regards,

[Updated on: Mon, 25 April 2011 07:06]

Report message to a moderator

Previous Topic:Java problems using RXTX and Universal Bit Whacker (UBW)
Next Topic:add a *.so file to project build path
Goto Forum:
  


Current Time: Tue Mar 19 07:09:26 GMT 2024

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

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

Back to the top