Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] [EXTERNAL] Re: Traditional Hierarchy Viewer
  • From: Jinbo Wang <jinbwan@xxxxxxxxxxxxx>
  • Date: Fri, 12 Mar 2021 01:44:30 +0000
  • Accept-language: en-US, zh-CN
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pGnqsQQTycBK0nnFYVZc6w+nQJcOwMjCOMkMzo16y64=; b=F+63P9jiBAUlhJgAHswxeWT2xofnuTDL6pyUgzaQhaDdaDYabKSnQgVOn4ThZWxSV6dFrkeqIPOdoJB8hL5fOTusJKoSRFkPT1hDVB4wmr9GMwoBUgiEfkPEkKFbav75CG9IC6p6TGQUCUDQbUmL8QlW0Yd1dOCj1iw2MUKIWtoR7KRsciM0k9F24dj4l1deqdxRfN0x7EL38j073Q1N6BjZyTDcvh2n5G62bsy822k7wd5LPNO53Sw+xhDbN4Q6+qVAmx3XMDxatXu9n7HSYz6cbOPZmxQc7SyGqy8sh0hhyXkeYlqpxYYHTWp8PjHYrv2nVj9Qz87c2K15NMMzAw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RnAM2wPDxLdQjdFlVgM8XFkRJTz7OLz8DRMi8C9aiNJffb9ZyZenkmsxvnWRVF6BFG6xkp4VEMJmlp09AL7vSv087E3E0HsMcKslPr+Fq0n4cm/tJbCEtVwgYy22ci3nGjT6tCFIVxbD31nSGMot3MR0G87mT6dMWa9YPv1LW01NW+neR3dZXwA2NE0RPXBJYoPRwVwX5ntx4AbFiA1LnBmzY9JjzP8BnGoYQ5H3mmlvYUTBbcus6U2UR6Whkm6AhrfNBsFZfDklZVvkA8QhgsES6+ggjLMpfpspEO3KFGVHbbAQsQSziB359i+kflQYIY2NIT5/LRmQAMY1VEoUVg==
  • Delivered-to: jdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jdt-dev/>
  • List-help: <mailto:jdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=97f60c20-de5e-461a-9733-09345c52fdc2; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-03-12T01:28:04Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;
  • Thread-index: AQHXFltTnfg7qXdZo02iz0yweH0LXKqAG90A
  • Thread-topic: [EXTERNAL] Re: [jdt-dev] Traditional Hierarchy Viewer

Java classes only support single inheritance, but interfaces allow multiple inheritance.

 

For interface BB, it can extend multiple super interfaces (e.g. AA1, AA2), which cannot be expressed well with full hierarchical view. This should be the reason why super interfaces are not shown in the traditional view.

 

Thanks,

Jinbo

From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> on behalf of Noopur Gupta <noopur_gupta@xxxxxxxxxx>
Reply-To: "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Date: Thursday, March 11, 2021 at 17:45
To: "jdt-dev@xxxxxxxxxxx" <jdt-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [jdt-dev] Traditional Hierarchy Viewer

 

It should be OK to show the full hierarchy in case of interfaces as it is done for classes. The Type Hierarchy view has three separate options for the full, supertype, and subtype hierarchies and they should have the same behavior for classes and interfaces.

 

Regards,

Noopur 

 

----- Original message -----
From: Jeff Johnston <jjohnstn@xxxxxxxxxx>
Sent by: "jdt-dev" <jdt-dev-bounces@xxxxxxxxxxx>
To: "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Cc:
Subject: [EXTERNAL] [jdt-dev] Traditional Hierarchy Viewer
Date: Thu, Mar 11, 2021 2:37 AM
 

There is a bug open whereby there are 3 interfaces:

 

AA which is extended by BB which is extended by CC

 

When BB is selected and we do Open Type Hierarchy,

 

it only shows BB and CC, but not AA in the Traditional View (Show Type Hierarchy)

Clicking on the Show the Supertype Hierarchy button displays BB then AA as expected.

 

TraditionalHierarchyViewer.java has the following comment:

 

 * A TypeHierarchyViewer that looks like the type hierarchy view of VA/Java:
 * Starting form Object down to the element in focus, then all subclasses from
 * this element.
 * Used by the TypeHierarchyViewPart which has to provide a TypeHierarchyLifeCycle
 * on construction (shared type hierarchy)

 

Is there any good reason to not show the parent interface (AA) in the view because it does not extend Object?  I would as a user want to see the whole tree and not have to click the "Show the Supertype Hierarchy" button to see the super interfaces.

 

I have a simple fix unless there is a good reason for the behaviour.

 

-- Jeff J.

_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jdt-dev

 




Back to the top