Changeset 3811


Ignore:
Timestamp:
Sep 2, 2010, 9:21:14 AM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removed method getProjectPluginForm from FormFactory aswell as action classes action.plugin.CreateProjectPluginJob? and action.project.ListProjectPlugins? that used the method as they are not used anywhere in the current gui.

Location:
trunk/client/servlet/src/org/proteios
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3810 r3811  
    22612261
    22622262
    2263  // Cleaning up from here
    2264 
    2265 
    2266 
    22672263
    22682264
     
    24002396  }
    24012397
    2402 
    2403   public Form getProjectPluginForm(Project project)
    2404   {
    2405     Fieldset fs = new Fieldset();
    2406     fs.getLegendTitle().setTitle("ImportPlugins");
    2407     // id
    2408     TextField<Integer> itemIdF = newHiddenItemIdField();
    2409     fs.add(itemIdF);
    2410     // Select field
    2411     Select<VInteger> typeS = new Select<VInteger>(VPLUGINDEFID);
    2412     typeS.setLabel("Plugin");
    2413     if (project != null)
    2414     {
    2415       itemIdF.setValue(project.getId());
    2416       ItemQuery<PluginDefinition> query = PluginDefinition.getQuery();
    2417       query.include(Include.SHARED);
    2418       for (PluginDefinition pd : query.list(project.getDbControl()))
    2419       {
    2420         if (pd.getMainType().equals(Plugin.MainType.OTHER))
    2421         {
    2422           Option o = new Option(pd.getId(), pd.getName());
    2423           typeS.addOption(o);
    2424         }
    2425       }
    2426     }
    2427     fs.add(typeS);
    2428     /***********************************************************************
    2429      * Form
    2430      */
    2431     Form form = new Form("projectPluginsForm");
    2432     form.setTitle("Other plugins");
    2433     form.addFieldset(fs);
    2434     return form;
    2435   }
    2436 
     2398 // Cleaning up from here
    24372399
    24382400  public Form getHitForm(HitInterface hit)
  • trunk/client/servlet/src/org/proteios/gui/form/PluginSelect.java

    r3806 r3811  
    7878  }
    7979
     80  public PluginSelect()
     81 {
     82  this(null);
     83 }
    8084}
  • trunk/client/servlet/src/org/proteios/gui/form/SelectPluginForm.java

    r3807 r3811  
    4747    fs.add(typeS);
    4848 }
     49
     50 public SelectPluginForm()
     51 {
     52  super("pluginsForm");
     53    fs = new Fieldset();
     54    fs.getLegendTitle().setTitle("SelectPlugin");
     55    typeS = new PluginSelect();
     56    fs.add(typeS);
     57 }
     58
    4959}
Note: See TracChangeset for help on using the changeset viewer.