In Eclipse, there is something called refresh workspace or F5 that refreshes the files, to make sure to pick-up any files that are changed outside eclipse.
How do i do t
For Netbeans-IDE 7.2 and above
Go To Tools->Options->Miscellaneous->Files and uncheck Enable-auto-scanning of source. Then it will give an option like Refresh Folder.
You can refresh the folder or whole workspace.