jhorvath commented on code in PR #7161:
URL: https://github.com/apache/netbeans/pull/7161#discussion_r1531755084


##########
enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/OCIProfile.java:
##########
@@ -136,6 +154,17 @@ public String getId() {
     public boolean isValid() {
         return configProvider != null && fileStamp == 
configPath.toFile().lastModified(); // avoid IOE
     }
+    
+    public void setRegionCode(String regionCode) {
+        setRegion(Region.valueOf(regionCode));
+    }
+    
+    public void setRegion(Region region) {
+        Preferences prefs = NbPreferences.forModule(OCIProfile.class);
+        prefs.put(PROP_ACTIVE_REGION_CODE + "/" + id, region.getRegionCode());
+        listeners.firePropertyChange(PROP_ACTIVE_REGION_CODE, this.region, 
region);

Review Comment:
   Instance of TenancyItem which implements OCIItem is not available here



-- 
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