Search in sources :

Example 1 with AntReference

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;
}
Also used : AntReference(com.intellij.lang.ant.config.impl.AntReference)

Example 2 with AntReference

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);
}
Also used : AntReference(com.intellij.lang.ant.config.impl.AntReference)

Example 3 with 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();
}
Also used : AntReference(com.intellij.lang.ant.config.impl.AntReference) AntInstallation(com.intellij.lang.ant.config.impl.AntInstallation)

Aggregations

AntReference (com.intellij.lang.ant.config.impl.AntReference)3 AntInstallation (com.intellij.lang.ant.config.impl.AntInstallation)1