jhorvath commented on code in PR #7595:
URL: https://github.com/apache/netbeans/pull/7595#discussion_r1684152659
##########
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/compute/ComputeInstanceNode.java:
##########
@@ -45,13 +56,69 @@ public ComputeInstanceNode(ComputeInstanceItem instance) {
setName(instance.getName());
setDisplayName(instance.getName());
setIconBaseWithExtension(COMPUTE_INSTANCE_ICON);
- setShortDescription(Bundle.CoputeInstanceDesc(instance.getName()));
+ setShortDescription(Bundle.CoputeInstanceDesc(
+ instance.getName(),
+ instance.getPublicIp(),
+ instance.getUsername(),
+ instance.getProcessorDescription()
+ ));
}
public static NodeProvider<ComputeInstanceItem> createNode() {
- return ComputeInstanceNode::new;
+ return (instance) -> {
+ update(instance);
+ return new ComputeInstanceNode(instance);
+ };
}
+
+
+ static public void update(ComputeInstanceItem instance) {
Review Comment:
The `ChildFactory` class is used to create children nodes asynchronously.
This ensures that the `update()` method is called outside the EDT thread,
thereby preventing any blocking operations on the EDT.
--
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