Ejemplo n.º 1
0
 private void updateAnalyzerLists() {
   if (analyzer != null) {
     DefaultComboBoxModel<String> model = (DefaultComboBoxModel<String>) analyseBox.getModel();
     model.removeAllElements();
     for (SentimentAnalyzer sa : analyzer) {
       model.addElement(sa.getClass().getSimpleName());
     }
   }
 }
Ejemplo n.º 2
0
 private void runAnalyzer(SentimentAnalyzer sa, SoftwareSystem[] systems) {
   setParameter(sa);
   IAnalysisResult[] results = new IAnalysisResult[systems.length];
   for (int i = 0; i < systems.length; i++) {
     results[i] = sa.analyze(systems[i]);
     systems[i].addResult(results[i]);
     //			results[i].show();
   }
   //		System.out.println("Done.");
   if (saveBox.isSelected()) {
     Client.getInstance().saveResults(systems, results);
   }
   openShowResults(systems, results);
 }