Exemplo n.º 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!");
     }
   }
 }
Exemplo n.º 2
0
  private void variationMenuActionPerformed(java.awt.event.ActionEvent evt) {

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

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