use of com.android.tools.idea.wizard.model.demo.npw.android.ActivityTemplate in project android by JetBrains.
the class ChooseActivityStep method onWizardStarting.
@Override
protected void onWizardStarting(@NotNull final ModelWizard.Facade wizard) {
myListeners.listen(new SelectedIndexProperty(myTargetActivityComboBox), new InvalidationListener() {
@Override
public void onInvalidated(@NotNull ObservableValue<?> sender) {
ActivityTemplate targetTemplate = (ActivityTemplate) myTargetActivityComboBox.getSelectedItem();
// Set the target template in the model immediately (instead of waiting until
// onProceeding), since whether this is set or not affects if later steps show up.
getModel().setTargetTemplate(targetTemplate);
wizard.updateNavigationProperties();
}
});
myTargetActivityComboBox.setSelectedItem(getModel().getTargetTemplate());
}
Aggregations