Пример #1
0
 private void saveMenuActionPerformed(java.awt.event.ActionEvent evt) {
   if (envC.getLastFileName() == null) {
     ViewPersistance v = new ViewPersistance(envC);
     v.callSave();
   } else {
     try {
       envC.saveFile(envC.getLastFileName());
     } catch (IOException e) {
       JOptionPane.showMessageDialog(this, "Erreur lors de l'écriture sur le disque!");
     }
   }
 }
Пример #2
0
  private void variationMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewProjectVariation("group", envC.getControlProjects().get(index));
    }
  }
Пример #3
0
  private void ressourceMenuActionPerformed(java.awt.event.ActionEvent evt) {

    int index = jList1.getSelectedIndex();
    if (index >= 0) {
      new ViewAllRessource(envC.getControlProjects().get(index));
    }
  }
Пример #4
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);
 }
Пример #5
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);
   }
 }
Пример #6
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();
    }
  }
Пример #7
0
 private void showSelectedProject(javax.swing.event.ListSelectionEvent evt) {
   int index = jList1.getSelectedIndex();
   if (index >= 0) {
     updateProjectTree(envC.getControlProjects().get(index));
   }
 }
Пример #8
0
 private void updateProjectList() {
   jList1.setListData(envC.getProjectNameList().toArray());
 }
Пример #9
0
 private void newProjectMenuActionPerformed(java.awt.event.ActionEvent evt) {
   envC.createNewProject();
   updateProjectList();
   updateProjectTree(null);
   updateInfoPanel();
 }