Révision 1849
tmp/org.txm.wordcloud.core/src/org/txm/wordcloud/core/functions/WordCloud.java (revision 1849) | ||
---|---|---|
76 | 76 |
* @param index |
77 | 77 |
*/ |
78 | 78 |
private void initWith(Index index) { |
79 |
// only if the index has not been computed |
|
80 |
if(!this.hasBeenComputedOnce) { |
|
81 |
List<Line> lines = index.getAllLines(); |
|
82 |
this.freqs = new int[lines.size()]; |
|
83 |
this.labels = new String[lines.size()]; |
|
84 |
|
|
85 |
int i = 0; |
|
86 |
for (Line line : lines) { |
|
87 |
freqs[i] = line.getFrequency(); |
|
88 |
labels[i] = line.toString("_"); //$NON-NLS-1$ |
|
89 |
i++; |
|
90 |
} |
|
79 |
List<Line> lines = index.getAllLines(); |
|
80 |
this.freqs = new int[lines.size()]; |
|
81 |
this.labels = new String[lines.size()]; |
|
82 |
|
|
83 |
int i = 0; |
|
84 |
for (Line line : lines) { |
|
85 |
freqs[i] = line.getFrequency(); |
|
86 |
labels[i] = line.toString("_"); //$NON-NLS-1$ |
|
87 |
i++; |
|
91 | 88 |
} |
92 | 89 |
} |
93 | 90 |
|
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 1849) | ||
---|---|---|
545 | 545 |
} |
546 | 546 |
|
547 | 547 |
/** |
548 |
* UI related, this preference can be used to tell if the chart must be updated directly after editing a widget value or only after pressed a "Compute" button.
|
|
548 |
* UI related, this preference can be used to tell if the chart must be updated directly after editing a widget value or only after the "Compute" button is pressed.
|
|
549 | 549 |
* @return the directComputing |
550 | 550 |
*/ |
551 | 551 |
public boolean isDirectComputing() { |
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/editors/ChartEditor.java (revision 1849) | ||
---|---|---|
39 | 39 |
public final static String CONTEXT_ID_CHART_EDITOR = ChartEditor.class.getName(); |
40 | 40 |
|
41 | 41 |
|
42 |
// ChartEditor context activation/deactivation |
|
42 |
// ChartEditor RCP context activation/deactivation
|
|
43 | 43 |
static { |
44 | 44 |
|
45 | 45 |
IPartService service = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService(); |
Formats disponibles : Unified diff