Example #1
0
 /**
  * -------------------------------------------------------------------- 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));
   }
 }
Example #2
0
 @Inject
 public void setSettings(Settings settings) {
   this.settings = settings;
   settings.registerObserver(this);
   update(settings, null);
 }