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