/** * Catch any changes on the contributors data set and update the dashboard properly. */ private void onContributorsDataSetOutdated(@Observes DataSetModifiedEvent event) { checkNotNull("event", event); String targetUUID = event.getDataSetDef().getUUID(); if (ContributorsDataSets.GIT_CONTRIB.equals(targetUUID)) { workbenchNotification.fire(new NotificationEvent(i18n.contributorsDataSetOutdated(), INFO)); redraw(); } } }
private void onDataSetRemovedEvent(@Observes DataSetDefRemovedEvent event) { checkNotNull("event", event); String uuid = event.getDataSetDef().getUUID(); clientDataSetManager.removeDataSet(uuid); remoteMetadataMap.remove(uuid); // If a data set has been updated on the sever then fire an event. // In this case the notification is always send, no matter whether the data set is pushed to the client or not. dataSetModifiedEvent.fire(new DataSetModifiedEvent(event.getDataSetDef())); }
if (!editOn) { String targetUUID = event.getDataSetDef().getUUID(); for (Displayer displayer : displayerCoordinator.getDisplayerList()) { DisplayerSettings settings = displayer.getDisplayerSettings();
private void onDataSetRemovedEvent(@Observes DataSetDefRemovedEvent event) { checkNotNull("event", event); String uuid = event.getDataSetDef().getUUID(); clientDataSetManager.removeDataSet(uuid); remoteMetadataMap.remove(uuid); // If a data set has been updated on the sever then fire an event. // In this case the notification is always send, no matter whether the data set is pushed to the client or not. dataSetModifiedEvent.fire(new DataSetModifiedEvent(event.getDataSetDef())); }
if (!editOn) { String targetUUID = event.getDataSetDef().getUUID(); for (Displayer displayer : displayerCoordinator.getDisplayerList()) { DisplayerSettings settings = displayer.getDisplayerSettings();
private void onDataSetStaleEvent(@Observes DataSetStaleEvent event) { checkNotNull("event", event); String uuid = event.getDataSetDef().getUUID(); // Remove any stale data existing on the client. // This will force next lookup requests to push a refreshed data set. clientDataSetManager.removeDataSet(uuid); remoteMetadataMap.remove(uuid); // If a data set has been updated on the sever then fire an event. // In this case the notification is always send, no matter whether the data set is pushed to the client or not. dataSetModifiedEvent.fire(new DataSetModifiedEvent(event.getDataSetDef())); }
private void onDataSetStaleEvent(@Observes DataSetStaleEvent event) { checkNotNull("event", event); String uuid = event.getDataSetDef().getUUID(); // Remove any stale data existing on the client. // This will force next lookup requests to push a refreshed data set. clientDataSetManager.removeDataSet(uuid); remoteMetadataMap.remove(uuid); // If a data set has been updated on the sever then fire an event. // In this case the notification is always send, no matter whether the data set is pushed to the client or not. dataSetModifiedEvent.fire(new DataSetModifiedEvent(event.getDataSetDef())); }