Ejemplo n.º 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));
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 4
0
 public String getTitle() {
   return extension.getClassName();
 }