Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:13:54+00:00 2026-06-12T17:13:54+00:00

I want to add children to my file in Project Explorer in Eclipse 4.2.

  • 0

I want to add children to my file in Project Explorer in Eclipse 4.2. I made an RCP project using “Plug-in with a multi-page editor” template. Ran it, added my file type (.mpe) to some existing project using wizard, it all works fine. Now I want to allow my file type (1) to have click-able children as for example .h file have(2). How to do this?

Graphical explanation

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:13:56+00:00Added an answer on June 12, 2026 at 5:13 pm

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want add my custom sidebar next right column all page. Please check this
I want to add image to the grid just like the following xaml file
I have a TreeView, and I want to be able to add children to
Using vim; I'm trying to add a file (a .py file) into a directory
Can anyone help me add children to a plist? I think I want to
I Have an XML Node that I want to add children to over time:
I want to add specialized Pluralization rules to my project as I have names
I want add UIGestureRecognizerDelegate to UIWebView,but failed. if [self.view addsubView:webView]; So UIWebView is ok,but
I want add new Feed item on entity persist and update. I write this
I want add label to every row in tableview at right side of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.