/** * -------------------------------------------------------------------- Implementation of Observer * -------------------------------------------------------------------- */ public void update(Observable o, Object o1) { if (o instanceof Settings) { Settings givenSettings = (Settings) o; setKeypointMatcherPath(givenSettings.get(Settings.KEYPOINT_MATCHER_PATH)); setBundlerPath(givenSettings.get(Settings.BUNDLER_PATH)); } }
@Inject public void setSettings(Settings settings) { this.settings = settings; settings.registerObserver(this); update(settings, null); }