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

  • Home
  • SEARCH
  • 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 7930491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:26:32+00:00 2026-06-03T20:26:32+00:00

I have tree, T , structure in an Eclipse plugin which has a different

  • 0

I have tree, T, structure in an Eclipse plugin which has a different type of parent or node. Now I want to add a tree, T1, to it which has a node of a different type. So what would be the clear and robust approach to do this task as it is assumed that it would get a lots of load so approach should be very visionary?

My approach: As I am very new in this, in my opinion I have to just manage (anyhow) the getParent() method for T1 of same type to T, as this would be the down most sub tree of tree T.

(I want to ask this question for a discussion point of view. I want to just clear my views and approach.)

  • 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-03T20:26:35+00:00Added an answer on June 3, 2026 at 8:26 pm

    Make/use a tree interface or abstract class that all the other trees implement/extend, then create a list of that interface or abstract class. E.g:

    ArrayList<TreeInterface> treeArray = new ArrayList<TreeInterface>();
    

    This interface/abstract class should have all of the methods, getters and setters you will need to access the data you want later on.

    If you can’t do that, I think you can only make an array of Object to satisfy this…

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

Sidebar

Related Questions

I have a tree structure where each Node has a parent and a Set<Node>
I have a tree structure that has a node with a parent ID (unlimited
I have a tree structure. The nodes would have a leaf node type and
I have a tree data structure that is L levels deep each node has
I have objects in a tree structure, I would like to aggregate status information
I have category model that has a tree structure. In my database I have
I have a speed critical multithreaded program which involves data in a tree structure.
I want to create tree structure using web service. I have used bottom up
I have a tree structure like below. when i travese through parent to child
lets say i have a tree of the following structure: <div>node level1 <div>node level2

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.