This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251577 - Open Required Projects popup is ambigous
Summary: Open Required Projects popup is ambigous
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 01:53 UTC by lkishalmi
Modified: 2016-07-07 08:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lkishalmi 2015-04-02 01:53:29 UTC
I'm developing custom project support. In my case a project either can be a ProjectContainerProvider (root projects) or a DependencyProjectProvider.

For root projects the Open Required Projects popup works well, for non-root projects which has still dependency on other non-root projects Open Required Projects popup is empty.

I've checked the code in project ui OpenSubprojects.java and some of the background reasons to divide SubprojectsProvider interface into ProjectContainerProvider and DependencyProjectProvider. The current implementation only checks ProjectContainerProvider and falls back to SubprojectsProvider if that is absent. In this context OpenSubprojects.java works well as it opens subprojects.

In the context of the popup menu it does not work well as it doesn't try to collect dependency information from an available DependencyProjectProvider.

I've also checked the usages of DependencyProjectProvider and besides that it has a public exposure in ProjectUtils.getDependencyProjects, it is not used anywhere else. ProjectUtils.getDependencyProjects is also unused. DependencyProjectProvider has only a maven implementation.

I feel something odd here.

I'm sticking with the sole SubprojectProvider implementation in my project as that works as expected.
Comment 1 Martin Balin 2016-07-07 08:39:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss