use of com.intellij.lang.ant.config.impl.AntReference in project intellij-community by JetBrains.
the class RunWithAntBinding method loadValues.
public void loadValues(AbstractProperty.AbstractPropertyContainer container) {
myLoadingValues = true;
AntReference antReference = AntBuildFileImpl.ANT_REFERENCE.get(container);
boolean isDefault = AntReference.PROJECT_DEFAULT == antReference;
myUseDefaultAnt.setSelected(isDefault);
myUseCustomAnt.setSelected(!isDefault);
AntReference selection = isDefault ? null : antReference;
myAntsController.resetList(selection);
updateEnableCombobox();
myLoadingValues = false;
}
use of com.intellij.lang.ant.config.impl.AntReference in project intellij-community by JetBrains.
the class RunWithAntBinding method apply.
public void apply(AbstractProperty.AbstractPropertyContainer container) {
AntReference antReference = myUseDefaultAnt.isSelected() ? AntReference.PROJECT_DEFAULT : myAntsController.getSelectedItem();
AntBuildFileImpl.ANT_REFERENCE.set(container, antReference);
}
use of com.intellij.lang.ant.config.impl.AntReference in project intellij-community by JetBrains.
the class AntSetPanel method apply.
void apply() {
for (AntInstallation ant : myForm.getRemovedAnts()) {
myAntConfiguration.removeConfiguration(ant);
}
final Map<AntReference, AntInstallation> currentAnts = myAntConfiguration.getConfiguredAnts();
for (AntInstallation installation : currentAnts.values()) {
installation.updateClasspath();
}
for (AntInstallation ant : myForm.getAddedAnts()) {
myAntConfiguration.addConfiguration(ant);
}
myForm.applyModifications();
}
Aggregations