Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 208528
Collapse All | Expand All

(-)a/java.api.common/src/org/netbeans/modules/java/api/common/ui/PlatformUiSupport.java (-5 / +6 lines)
 Lines 124-136    Link Here 
124
        Parameters.notNull("projectConfigurationNamespace", projectConfigurationNamespace); //NOI18N
124
        Parameters.notNull("projectConfigurationNamespace", projectConfigurationNamespace); //NOI18N
125
        Parameters.notNull("sourceLevel", sourceLevel); //NOI18N
125
        Parameters.notNull("sourceLevel", sourceLevel); //NOI18N
126
126
127
        PlatformKey platformKey;
127
        JavaPlatform platform = null;
128
        if (platformName != null) {
128
        if (platformName != null) {
129
            platformKey = new PlatformKey(PlatformUiSupport.findPlatform(platformName));
129
            platform = PlatformUiSupport.findPlatform(platformName);
130
        } else {
131
            platformKey = new PlatformKey(JavaPlatformManager.getDefault().getDefaultPlatform());
132
        }
130
        }
133
        storePlatform(props, helper, projectConfigurationNamespace, platformKey, new SourceLevelKey(sourceLevel));
131
        if (platform == null) {
132
            platform = JavaPlatformManager.getDefault().getDefaultPlatform();
133
        }
134
        storePlatform(props, helper, projectConfigurationNamespace, new PlatformKey(platform), new SourceLevelKey(sourceLevel));
134
    }
135
    }
135
    
136
    
136
    
137
    

Return to bug 208528
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo