in src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java [108:152]
public void initializeLayout()
{
super.initializeLayout();
objectCacheSizeSpinner.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(0, Integer.MAX_VALUE, DataRowStore.SNAPSHOT_CACHE_SIZE_DEFAULT, 100));
useSharedCacheCheckBox.selectedProperty().addListener((obs, oldValue, newValue) ->
{
configureRemoteNotifications(newValue);
});
hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
remoteChangeNotificationsChoiceBox.getItems().addAll(remoteChangeNotificationOptions);
remoteChangeNotificationsChoiceBox.getSelectionModel().select(1);
remoteChangeNotificationsChoiceBox.valueProperty().addListener((observable, oldValue, newValue) ->
{
dataDomainAdapter.setRemoteChangeNotifications(newValue != RCN_NONE);
if (newValue == RCN_NONE)
{
hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
dataDomainAdapter.setEventBridgeFactoryProperty(null);
}
else if (newValue == RCN_JAVA_GROUPS)
{
hide(jmsConfiguration, customConfiguration);
show(javaGroupsConfiguration);
dataDomainAdapter.setEventBridgeFactoryProperty(null);
}
else if (newValue == RCN_JMS)
{
hide(javaGroupsConfiguration, customConfiguration);
show(jmsConfiguration);
dataDomainAdapter.setEventBridgeFactoryProperty(JMSBridgeFactory.class.getName());
}
else if (newValue == RCN_CUSTOM)
{
hide(javaGroupsConfiguration, jmsConfiguration);
show(customConfiguration);
if (StringUtils.equals(dataDomainAdapter.getEventBridgeFactoryProperty(), JMSBridgeFactory.class.getName()))
dataDomainAdapter.setEventBridgeFactoryProperty("use.custom.Class");
}
});
}