Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Auto refresh
Auto refresh [message #903990] Mon, 27 August 2012 14:03 Go to next message
Be HoThi is currently offline Be HoThiFriend
Messages: 5
Registered: August 2012
Junior Member
I write plugin for eclipse. I want to know the way to enable auto refresh of eclipse project whenever build or clean project. Please help me!

Best regards,
BL
Re: Auto refresh [message #904404 is a reply to message #903990] Tue, 28 August 2012 11:29 Go to previous messageGo to next message
Richard Meyer is currently offline Richard MeyerFriend
Messages: 24
Registered: June 2012
Junior Member
add a resource change listener
like:
ResourcesPlugin.getWorkspace().addResourceChangeListener(...);
...
public void resourceChanged(final IResourceChangeEvent event)
{
	if(event.getType() == IResourceChangeEvent.PRE_BUILD)
	{
               //refresh
        }
}
Re: Auto refresh [message #1005369 is a reply to message #904404] Fri, 25 January 2013 07:05 Go to previous message
Be HoThi is currently offline Be HoThiFriend
Messages: 5
Registered: August 2012
Junior Member
Thanks you! Smile
Previous Topic:Exporting/Deploying an Eclipse Application Plugin
Next Topic:eclipse plugin menu
Goto Forum:
  


Current Time: Sat Nov 22 16:59:27 GMT 2014

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

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