Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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();
 }