Beispiel #1
0
 public void initializeDefaults() {
   unmarshalPlugins();
   getChbActivar()
       .setSelected(((Extension) Launcher.getExtension(extension.getClassName())).getActive());
   getJTextField().setText(String.valueOf(extension.getPriority()));
   getJTextArea()
       .setText(
           format(
               ((Extension) Launcher.getExtension(extension.getClassName())).getDescription(),
               40));
 }
Beispiel #2
0
 public void initializeValues() {
   getChbActivar()
       .setSelected(((Extension) Launcher.getExtension(extension.getClassName())).getActive());
   getJTextField().setText(String.valueOf(extension.getPriority()));
   getJTextArea()
       .setText(
           format(
               ((Extension) Launcher.getExtension(extension.getClassName())).getDescription(),
               40));
   chkSelected = getChbActivar().isSelected();
   txtPriority = extension.getPriority();
 }
Beispiel #3
0
 public void storeValues() throws StoreException {
   int pri;
   try {
     pri = Integer.parseInt(getJTextField().getText());
   } catch (Exception e) {
     throw new StoreException(PluginServices.getText(this, "invalid_priority_value"), e);
   }
   extension.setActive(chbActivar.isSelected());
   extension.setPriority(pri);
   // Se escribe el config de los plugins
   marshalPlugins();
 }
Beispiel #4
0
 public String getTitle() {
   return extension.getClassName();
 }