Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Editing library in build path(Editing library in build path)
Editing library in build path [message #853490] Mon, 23 April 2012 04:12 Go to next message
jogendra chouhan is currently offline jogendra chouhanFriend
Messages: 31
Registered: January 2012
Member
Hi,
I have developed a library which is being added by the user if he wants to add my custom library for his project.Now add library functionality is working fine but i want capture the edit library event as well.I get some information in my library UI.So when user click on edit library he can see the old values which he has entered earlier. Also i want to capture the remove library event as well so that i can remove my settings from his project if he removes my library from his build path.

Is anybody knows how to do that ?

Thanks in adv.
Re: Editing library in build path [message #853667 is a reply to message #853490] Mon, 23 April 2012 08:14 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
Look at org.eclipse.jdt.core.IElementChangedListener. You can listen to changes in model using this.
Re: Editing library in build path [message #853693 is a reply to message #853667] Mon, 23 April 2012 08:48 Go to previous messageGo to next message
jogendra chouhan is currently offline jogendra chouhanFriend
Messages: 31
Registered: January 2012
Member
Hi Satyam,
Thanks for your reply.
Could you please tell me how can i get remove library event and then add the listener there ?

Re: Editing library in build path [message #853707 is a reply to message #853693] Mon, 23 April 2012 09:04 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
Basically you can add a listener to listen to events modifying the build path. Look at http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jdt.doc.isv%2Fguide%2Fjdt_api_manip.htm under 'Responding to changes in Java elements'.
Previous Topic:Information about JDT index format
Next Topic:The CellEditor can't editor
Goto Forum:
  


Current Time: Fri Apr 19 03:35:14 GMT 2024

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

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

Back to the top