Eclipse: how to hide custom files in Project Explorer

后端 未结 4 1463
感动是毒
感动是毒 2020-12-08 03:45

I have a custom builder in CDT, which adds alot of files into project directory. I want those files to be filtered out from Project Explorer, but cannot figure out how (the

4条回答
  •  盖世英雄少女心
    2020-12-08 04:27

    Firstly thanks to @emmzett Just wanna explain in a verbose mode of emmzett's answer because I didn't know anything editing plugin files and I spent 2 hours on this. Maybe I can save your time with this clarified expression.

    1. Firstly go in eclipse file then plugins->org.eclipse.ui.navigator.resources_(your eclipse version).jar
    2. Right click to .jar file and open with winrar
    3. Find the plugin.xml open with an editor(notepad,Notepad++ etc) the plugin.xml file
    4. Find the point="org.eclipse.ui.navigator.navigatorContent" and paste code below
      
        
            
               
               
            
         
      
    5. Change SpecifyAnIdForYourFileType with a unique name for id Change "your specific file" with your specific file suffix like *.pdf or desktop.ini etc.
    6. Save the plugin.xml and exit
    7. Find the plugin.properties open with an editor same as 3.step Paste this code
      filters.SpecifyAnIdForYourFileType.name=your specific file files
      filters.SpecifyAnIdForYourFileType.description=Hides files that match your specific file
    8. Save plugin.properties and exit
    9. Restart the eclipse and clear cache than go to Project Explorer at the left side
    10. Click the View Menu icon at the top right corner
    11. Click the Filters and Customization...
    12. Tick your new filter in the Filters menu.

    That's all I want to thanks again to emmzett.

    Regards.

提交回复
热议问题