@Override public Object getNextPanelId() { String path = model.getGtfsPath(); if (path == null || path.isEmpty()) return null; return model.isRunEnabled() ? GtfsRealtimePathsWizardPanelController.class : RunWizardPanelController.class; }
private static void saveModel(GuiQuickstartDataModel model) { Preferences preferences = Preferences.userNodeForPackage(GuiBootstrapMain.class); updatePreferences(preferences, "transitDataBundlePath", model.getTransitDataBundlePath()); updatePreferences(preferences, "gtfsPath", model.getGtfsPath()); updatePreferences(preferences, "tripUpdatesUrl", model.getTripUpdatesUrl()); updatePreferences(preferences, "vehiclePositionsUrl", model.getVehiclePositionsUrl()); updatePreferences(preferences, "alertsUrl", model.getAlertsUrl()); try { preferences.sync(); } catch (BackingStoreException e) { e.printStackTrace(); } }