score:1
you will have to provide extension for "org.eclipse.ui.navigator.viewer" and "org.eclipse.ui.navigator.navigatorcontent". project explorer is based on common navigation framework which allows the user to extend the functionality.
an example
the "org.eclipse.ui.navigator.viewer" extension
<extension
id="navigator-viewbinding"
point="org.eclipse.ui.navigator.viewer">
<viewercontentbinding
viewerid="org.eclipse.ui.navigator.projectexplorer">
<includes>
<contentextension
pattern="<plugin_name>.myresourcecontent">
</contentextension>
</includes>
</viewercontentbinding>
</extension>
and "org.eclipse.ui.navigator.navigatorcontent" extension
<extension
id="navigator-content"
point="org.eclipse.ui.navigator.navigatorcontent">
<navigatorcontent
activebydefault="true"
contentprovider="mynavigatorcontentprovider"
icon="icon.gif"
id="myresourcecontent"
labelprovider="mynavigatorlabelprovider"
name="some name"
priority="normal">
<triggerpoints>
<or>
<and>
<instanceof
value="org.eclipse.core.resources.ifile">
</instanceof>
<test
property="org.eclipse.core.resources.extension"
value="mpe">
</test>
</and>
</or>
</triggerpoints>
<possiblechildren>
<or>
<instanceof
value="<class name of possible children>">
</instanceof>
</or>
</possiblechildren>
</extension>
the class "mynavigatorcontentprovider" is implements "icommoncontentprovider" where you will have to parse your file & get the children u want to display.. the class "mynavigatorlabelprovider" is to decorate your children in the viewer..
hopefully this link should help
Source: stackoverflow.com
Related Query
- Project explorer, item with children
- Eclipse project explorer prefixing latex project names with "P/"
- Commit from Eclipse's project explorer via egit with keyboard shortcut
- Hiding folders that start with dot in Project Explorer in RCP Project
- Add item above "Project" in eclipse project explorer contextmenu
- What does this icon mean in Eclipse Project Explorer (a number with an up-arrow)?
- Set focus to Project Explorer with Eclipse plugin
- How can we change default label provider of eclipse ide's project explorer view to render file with customized label
- How to display different labels for the same action in the a Project Explorer context menu item depending on the nature of the project selected?
- Eclipse Project Explorer that highlights files with compilation errors in Vim?
- Eclipse IDE with tycho builder. Duplicated projects in Project explorer view
- How can I display project explorer side by side with editor in eclips?
- Why is Deployment Descriptor node in Project Explorer missing with Dynamic Web Module 5.0?
- WebContent folder in Eclipse Project Explorer is not in sync with the deployed application
- How can I change the name of *.xml file in the eclipse IDE's project explorer with one of its element
- Add a new sub menu to compare with menu in Package explorer and project explorer
- Eclipse, own TreeViewer with file attributes in Project Explorer View
- Classes with errors do not have a red cross next to them in Project Explorer
- How to associate an Eclipse sample Editor with a file in project explorer view
- Work on a remote project with Eclipse via SSH
- Can you organize imports for an entire project in eclipse with a keystroke?
- What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer?
- Eclipse: All my projects disappeared from Project Explorer
- How can I configure the font size for the tree item in the package explorer in Eclipse?
- How to show the Project Explorer window in Eclipse?
- Associating existing Eclipse project with existing SVN repository
- Project with path ':mypath' could not be found in root project 'myproject'
- "Unable to find main class" with Maven on spring-boot project in Eclipse
- Android - copy existing project with a new name in Eclipse
- Remove project .jars from project explorer view in Eclipse
More Query from same tag
- Loop several times with different values each time
- How can I use a remote Java compiler?
- Eclipse RCP with google Windowbuilder pro
- How do I know when user minimizes / maximizes Eclipse?
- Eclipse JUnit H2 CSV input. Copy CSV-files to target
- How to compare 2 columns and concatenate in Scala
- How to import Java file into Eclipse
- Why do these errors come up?
- Eclipse CDT - missing "Archives" and "Includes" in Project Explorer
- Strange and different behaviour across netbeans, eclipse and compiler
- Eclipse ARM mbed cannot move location counter backward error
- Error:Execution failed for task ':app:proguardRelease' (invalid entry CRC)
- Is there any translator plugin for Android (Eclipse)?
- How to include Javascript files in Eclipse to resolve Javascript warnings in HTML/JSP files?
- Clean the workspace .metadata folder on product startup
- Newbie setting up eclipse. How do I add java IDE to a c++/c packaged version of eclipse
- How to import the Blackberry project in eclipse after checkout from SVN repository?
- Error while uninstalling ADT version 21.0.1.201212060302
- How to display an image in a java applet in eclipse?
- Android emulator can't able to load the application
- Eclipse Java - ApplicationEvent
- how to run RunWith with Junit 5 in java eclipse?
- SOLVED - HTTP Status 404 for Spring Web REST API after deploying dynamic application to Tomcat server on Eclipse
- Git hub project _ Learning)
- Android Widget post-Install Problem!
- App working only above Android 4.2
- GridLayout in ScrolledForm not showing scrollBar
- Creating page in Action Bar Android
- Eclipse 4.3 Installlation of graphiti 0.9.2 from command line
- Junit Test: what is Failure?