コード例 #1
0
  private void variationMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewProjectVariation("group", envC.getControlProjects().get(index));
    }
  }
コード例 #2
0
  private void ressourceMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewAllRessource(envC.getControlProjects().get(index));
    }
  }
コード例 #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);
 }
コード例 #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);
   }
 }
コード例 #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();
    }
  }
コード例 #6
0
 private void showSelectedProject(javax.swing.event.ListSelectionEvent evt) {
   int index = jList1.getSelectedIndex();
   if (index >= 0) {
     updateProjectTree(envC.getControlProjects().get(index));
   }
 }