jtulach commented on code in PR #9636:
URL: https://github.com/apache/netbeans/pull/9636#discussion_r4725420768


##########
ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/FeatureProjectFactory.java:
##########
@@ -635,6 +651,42 @@ public Node findPath(Node root, Object target) {
             }
             return null;
         }
+
+        @NbBundle.Messages({
+            "MSG_OnMissingSourceGroup=Project initialization requested",
+            "# {0} - name of the project",
+            "MSG_FullyInitializeProject=Should the {0} project be initialized 
fully?",
+        })
+        @Override
+        public SourceGroup[] getSourceGroups(String type) {
+            var src = delegate.lookup(Sources.class);
+            if (src != null && src != this) {
+                return src.getSourceGroups(type);
+            }
+            if (!Sources.TYPE_GENERIC.equals(type)) {
+                Project prj = getLookup().lookup(Project.class);
+                if (prj != null && openingPrj == null) {
+                    openingPrj = NotificationDisplayer.getDefault().notify(

Review Comment:
   - re: #9823 
   - this is the place where we can observe the stack of who's requesting the 
initialization



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to