public boolean isAutoTransformer(Transformer transformer) {
return model.getAutoTransformerRanking(transformer) != null;
}
public void setAutoTransformer(Transformer transformer, boolean enable) {
RankingController rankingController = Lookup.getDefault().lookup(RankingController.class);
if (enable) {
rankingController.startAutoTransform(getCurrentRanking(), transformer);
firePropertyChangeEvent(START_AUTO_TRANSFORMER, null, transformer);
} else {
rankingController.stopAutoTransform(transformer);
firePropertyChangeEvent(STOP_AUTO_TRANSFORMER, null, transformer);
}
}