Révision 3425
TXM/trunk/org.txm.specificities.rcp/src/org/txm/specificities/rcp/handlers/ComputeSpecifictiesSelectionChart.java (revision 3425) | ||
---|---|---|
14 | 14 |
import org.txm.rcp.views.corpora.CorporaView; |
15 | 15 |
import org.txm.specificities.core.functions.Specificities; |
16 | 16 |
import org.txm.specificities.core.functions.SpecificitiesSelection; |
17 |
import org.txm.specificities.rcp.editors.SpecifLine; |
|
17 | 18 |
import org.txm.specificities.rcp.editors.SpecificitiesEditor; |
18 | 19 |
|
19 | 20 |
|
... | ... | |
65 | 66 |
String[] partNames = specificities.getColumnsNames(); |
66 | 67 |
final double[][] selectedSpecificitiesIndices = new double[tableLines.length][partNames.length]; |
67 | 68 |
for (int i = 0; i < tableLines.length; i++) { |
68 |
selectedTypeNames[i] = (String) ((Object[]) tableLines[i])[0]; |
|
69 |
selectedSpecificitiesIndices[i] = (double[]) ((Object[]) tableLines[i])[3]; |
|
69 |
Object o = tableLines[i]; |
|
70 |
SpecifLine line = (SpecifLine)o; |
|
71 |
selectedTypeNames[i] = line.name; |
|
72 |
selectedSpecificitiesIndices[i] = line.specifs; |
|
70 | 73 |
} |
71 | 74 |
|
72 | 75 |
specificitiesSelection = new SpecificitiesSelection(specificities); |
73 | 76 |
|
74 | 77 |
// Set the data to focus on |
75 | 78 |
specificitiesSelection.setSelectedTypeNames(Arrays.asList(selectedTypeNames)); |
76 |
|
|
77 | 79 |
} |
78 | 80 |
catch (Exception e) { |
79 | 81 |
System.out.println("Error while computing specificities bar chart: " + e.getLocalizedMessage()); |
Formats disponibles : Unified diff