private void initBuildOrRoot(DiscoveryDescriptor wizardDescriptor) { Object val = property.getValue(); String output = null; if (val instanceof String) { output = (String) val; } if (output != null && output.length() > 0) { initFields(output); return; } output = wizardDescriptor.getBuildResult(); if (output != null && output.length() > 0) { initFields(output); return; } initFields(wizardDescriptor.getRootFolder()); }
private void initComboBox(String root) { Preferences preferences; if (SelectProviderPanel.USE_PROJECT_PROPERTIES) { preferences = ProjectUtils.getPreferences(wizardDescriptor.getProject(), ProviderControl.class, false); } else { preferences = NbPreferences.forModule(ProviderControl.class); } field.setStorage(propertyKey, preferences); field.read(root); }
private void storeHistory() { Preferences preferences; if (SelectProviderPanel.USE_PROJECT_PROPERTIES) { preferences = ProjectUtils.getPreferences(wizardDescriptor.getProject(), ProviderControl.class, false); } else { preferences = NbPreferences.forModule(ProviderControl.class); field.setStorage(propertyKey, NbPreferences.forModule(ProviderControl.class)); } field.setStorage(propertyKey, preferences); field.store(); }