Révision 1031
tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 1031) | ||
---|---|---|
489 | 489 |
return null; |
490 | 490 |
} |
491 | 491 |
|
492 |
|
|
492 |
/** |
|
493 |
* Selects some items. |
|
494 |
* @param arrayList |
|
495 |
*/ |
|
493 | 496 |
public static void select(ArrayList<?> arrayList) { |
494 | 497 |
CorporaView corporaView = openView(); |
495 | 498 |
if (corporaView != null) { |
tmp/org.txm.partition.rcp/src/org/txm/partition/rcp/handlers/ComputePartitionDimensionsBarChart.java (revision 1031) | ||
---|---|---|
66 | 66 |
// Creating from Partition |
67 | 67 |
if (selection instanceof Partition) { |
68 | 68 |
Partition partition = (Partition) selection; |
69 |
if(partition.getParts().size() == 0) { |
|
70 |
return false; |
|
71 |
} |
|
72 |
|
|
73 | 69 |
partitionDimensions = new PartitionDimensions(partition); |
74 | 70 |
|
75 | 71 |
} |
tmp/org.txm.specificities.core/src/org/txm/specificities/core/functions/SpecificitiesSelection.java (revision 1031) | ||
---|---|---|
12 | 12 |
import org.txm.core.results.TXMResult; |
13 | 13 |
import org.txm.specificities.core.messages.SpecificitiesCoreMessages; |
14 | 14 |
import org.txm.specificities.core.preferences.SpecificitiesPreferences; |
15 |
import org.txm.statsengine.core.StatException; |
|
15 | 16 |
|
16 | 17 |
/** |
17 | 18 |
* A selection from a Specificities result dedicated to export or chart creation. |
... | ... | |
27 | 28 |
protected String[] selectedTypeNames; |
28 | 29 |
|
29 | 30 |
/** |
30 |
* The selected part names to focus on. |
|
31 |
*/ |
|
32 |
protected String[] selectedPartNames; |
|
33 |
|
|
34 |
/** |
|
35 | 31 |
* The selected specificities indices to focus on. |
36 | 32 |
*/ |
37 | 33 |
protected double[][] selectedSpecificitiesIndex; |
... | ... | |
120 | 116 |
* @return the selectedPartNames |
121 | 117 |
*/ |
122 | 118 |
public String[] getSelectedPartNames() { |
123 |
return selectedPartNames; |
|
119 |
try { |
|
120 |
return ((Specificities)this.parent).getPartShortNames(); |
|
121 |
} |
|
122 |
catch (StatException e) { |
|
123 |
// TODO Auto-generated catch block |
|
124 |
e.printStackTrace(); |
|
125 |
} |
|
126 |
return null; |
|
124 | 127 |
} |
125 | 128 |
|
126 | 129 |
/** |
127 |
* @param selectedPartNames the selectedPartNames to set |
|
128 |
*/ |
|
129 |
public void setSelectedPartNames(String[] selectedPartNames) { |
|
130 |
this.selectedPartNames = selectedPartNames; |
|
131 |
} |
|
132 |
|
|
133 |
/** |
|
134 | 130 |
* @return the selectedSpecificitiesIndex |
135 | 131 |
*/ |
136 | 132 |
public double[][] getSelectedSpecificitiesIndex() { |
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/handlers/ComputeSpecifictiesSelectionChart.java (revision 1031) | ||
---|---|---|
69 | 69 |
specificitiesSelection = new SpecificitiesSelection(specificities); |
70 | 70 |
|
71 | 71 |
// Set the data to focus on |
72 |
specificitiesSelection.setSelectedPartNames(partNames); |
|
73 | 72 |
specificitiesSelection.setSelectedTypeNames(selectedTypeNames); |
74 | 73 |
specificitiesSelection.setSelectedSpecificitiesIndex(selectedSpecificitiesIndices); |
75 | 74 |
|
Formats disponibles : Unified diff