Esempio n. 1
0
 @Override
 public void readExternal(Element element) {
   super.readExternal(element);
   Attribute configurationNameAttr = element.getAttribute("run_configuration_name");
   Attribute configurationTypeAttr = element.getAttribute("run_configuration_type");
   myConfigurationName = configurationNameAttr != null ? configurationNameAttr.getValue() : null;
   myConfigurationType = configurationTypeAttr != null ? configurationTypeAttr.getValue() : null;
 }
Esempio n. 2
0
 @Override
 public void writeExternal(Element element) {
   super.writeExternal(element);
   if (myConfigurationName != null && myConfigurationType != null) {
     element.setAttribute("run_configuration_name", myConfigurationName);
     element.setAttribute("run_configuration_type", myConfigurationType);
   } else if (mySettings != null) {
     element.setAttribute("run_configuration_name", mySettings.getName());
     element.setAttribute("run_configuration_type", mySettings.getType().getId());
   }
 }