If it is in another project, just right-click on the project and select "close project", you can easily open it again when you need it. If it is in the same project, go to Properties-> Java Build Path-> Source-> Excluded. You can easily move up and down and set priorities. Hope that helps.
source share