Org.eclipse.ui.navigator.navigatorContent Right-click New Commonfilter
ID: Unique
Name: Names such as: *.xml resources
Description: Description, such as: Hides *.xml resources
In the property download Add property: Where value is a wildcard XML
<filterexpression> <and > <adapt type= "Org.eclipse.core.resources.IResource" > <test property = "Org.eclipse.core.resources.name" value= "*.xml" > </test> </adapt> </and> </ Filterexpression>
Add Contentextension in includes under the Com.itec.rcp.navigatorContent property
After the configuration is complete, launching the Navigation view does not load the project we created.
Need to register in Applicationworkbenchadvisor.java
Add two methods at the bottom:
/** * CNF needs to be used */@Overridepublic iadaptable getdefaultpageinput () {return resourcesplugin.getworkspace (). Getroot ();} /** * CNF needs to be used */@Overridepublic void Initialize (Iworkbenchconfigurer configurer) {ide.registeradapters ();}
This launch opportunity shows the project that was created.
Complete all of the above steps, open the view, create a new XML, does not appear, select the hidden XML in the customer view has been selected, if unchecked, the XML file will be displayed
Source Address: Http://pan.baidu.com/s/1sjHeoNj
Reprint Trouble plus link, thank you for your cooperation.