Example #1
0
 private void service(RaplaContext context) throws RaplaException {
   this.context = context;
   i18n = context.lookup(RaplaResources.class);
   RaplaImages images = context.lookup(RaplaImages.class);
   if (useDefaultOptions) {
     if (buttons.length > 1) {
       getButton(0).setText(i18n.getString("ok"));
       getButton(1).setIcon(images.getIconFromKey("icon.abort"));
       getButton(1).setText(i18n.getString("abort"));
     } else {
       getButton(0).setText(i18n.getString("ok"));
     }
   }
   localeSelector = (ServerBundleManager) context.lookup(BundleManager.class);
   localeSelector.addLocaleChangeListener(this);
   frameList = context.lookup(FrameControllerList.class);
   frameList.add(this);
 }
Example #2
0
 public String getName() {
   return i18n.getString(TimeslotPlugin.DAY_TIMESLOT);
 }
Example #3
0
 public String getName() {
   return i18n.getString(MonthViewPlugin.MONTH_VIEW);
 }