Ejemplo n.º 1
0
  private void variationMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewProjectVariation("group", envC.getControlProjects().get(index));
    }
  }
Ejemplo n.º 2
0
  private void ressourceMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewAllRessource(envC.getControlProjects().get(index));
    }
  }
Ejemplo n.º 3
0
 private void alertMenuActionPerformed(java.awt.event.ActionEvent evt) {
   int index = jList1.getSelectedIndex();
   if (index >= 0)
     new ViewAlertProject(
         envC.getControlProjects().get(index),
         ((double) Environment.getMinLimit()) / 100.0,
         ((double) Environment.getMaxLimit()) / 100.0);
 }
Ejemplo n.º 4
0
 private void consoMenuActionPerformed(java.awt.event.ActionEvent evt) {
   int index = jList1.getSelectedIndex();
   if (index >= 0) {
     ControlConsolidation controler =
         new ControlConsolidation(envC.getControlProjects().get(index));
     new ViewConsolidation(controler);
   }
 }
Ejemplo n.º 5
0
  private void importPSIMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      try {
        new ControlParser(envC.getControlProjects().get(index).getProject());
      } catch (ParserConfigurationException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (SAXException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      updateProjectList();
      updateProjectTree(envC.getControlProjects().get(index));
      updateInfoPanel();
    }
  }
Ejemplo n.º 6
0
 private void showSelectedProject(javax.swing.event.ListSelectionEvent evt) {
   int index = jList1.getSelectedIndex();
   if (index >= 0) {
     updateProjectTree(envC.getControlProjects().get(index));
   }
 }