In Eclipse Kepler (service release 2) the project explorer usually shows all the projects in the workspace folder.
There are times when some projects are created that are currently not needed to be shown/listed in the project explorer but these may be required later and hence must remain intact in the file system - there must also be a way to re-list the project in the project workspace in future.
Note that
1. the concerned project exists in the same workspace
2. This is not about 'opening and closing' as the list still shows the projects (both closed and opened). What we want is to remove the project from the list shown.
One way is to use 'Remove' in the context menu (right click on the project that needs to be removed) and on the dialogue that opens select options to leave the project intact in the file system. This does the job of making the project disappear from the project explorer with the project itself remaining intact in the file system.
To re-include it in the workspace seemed like a problem as the use of 'import' would say that the project already exists in the workspace (remember the project removed is in the same workspace) and the on opening the workspace root directory in the import projects the projects are listed with check boxes but the lines are greyed (usually implying non-selectable, non-actionable) and the 'Finish' button is disabled. There is a warning message on the top of the dialogue that says 'some projects cannot be imported because they already exists in the workspace'.
But, what-ho! Click (left-click) the line under the projects on the removed project and it comes alive!!! Like it becomes actionable and un-greyed and the 'Finish' button is enabled. The same does not happen for projects that are already visible in the project explorer. Now select the check box on the un-greyed project of ours, un-check the 'copy project into workspace' and click 'Finish' to include the project in the project explorer list.
This looks not to be documented as per the searches made in local help, eclipse site and in Google (or maybe I am using the wrong key words)
There are times when some projects are created that are currently not needed to be shown/listed in the project explorer but these may be required later and hence must remain intact in the file system - there must also be a way to re-list the project in the project workspace in future.
Note that
1. the concerned project exists in the same workspace
2. This is not about 'opening and closing' as the list still shows the projects (both closed and opened). What we want is to remove the project from the list shown.
One way is to use 'Remove' in the context menu (right click on the project that needs to be removed) and on the dialogue that opens select options to leave the project intact in the file system. This does the job of making the project disappear from the project explorer with the project itself remaining intact in the file system.
To re-include it in the workspace seemed like a problem as the use of 'import' would say that the project already exists in the workspace (remember the project removed is in the same workspace) and the on opening the workspace root directory in the import projects the projects are listed with check boxes but the lines are greyed (usually implying non-selectable, non-actionable) and the 'Finish' button is disabled. There is a warning message on the top of the dialogue that says 'some projects cannot be imported because they already exists in the workspace'.
But, what-ho! Click (left-click) the line under the projects on the removed project and it comes alive!!! Like it becomes actionable and un-greyed and the 'Finish' button is enabled. The same does not happen for projects that are already visible in the project explorer. Now select the check box on the un-greyed project of ours, un-check the 'copy project into workspace' and click 'Finish' to include the project in the project explorer list.
This looks not to be documented as per the searches made in local help, eclipse site and in Google (or maybe I am using the wrong key words)
No comments:
Post a Comment