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 10:03 Go to next message
Be HoThi is currently offline Be HoThi
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 07:29 Go to previous messageGo to next message
Richard Meyer is currently offline Richard Meyer
Messages: 20
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 02:05 Go to previous message
Be HoThi is currently offline Be HoThi
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: Wed Aug 20 04:50:47 EDT 2014

Powered by FUDForum. Page generated in 0.08301 seconds