Révision 1392
tmp/org.txm.cooccurrence.chartsengine/src/org/txm/cooccurrence/functions/CooccurrenceGraph.java (revision 1392) | ||
---|---|---|
24 | 24 |
|
25 | 25 |
// FIXME: conception problem |
26 | 26 |
// Since the command has no preferences, the default charts engine preferences are not loaded in TXMResult constructor, so the code above is needed to reload the parameters |
27 |
// It also problematic for persistence to pass "org.txm.chartsengine.core" because it is saved as bundle ID and the deserialisation can not be done since "org.txm.chartsengine.core" does not found the class CooccurrenceGraph |
|
27 | 28 |
this.commandPreferencesNodePath = "org.txm.chartsengine.core"; |
28 | 29 |
try { |
29 | 30 |
this.autoLoadParametersFromAnnotations(); |
... | ... | |
39 | 40 |
*/ |
40 | 41 |
public CooccurrenceGraph(String parametersNodePath) { |
41 | 42 |
super(parametersNodePath); |
43 |
|
|
44 |
// FIXME: conception problem |
|
45 |
// Since the command has no preferences, the default charts engine preferences are not loaded in TXMResult constructor, so the code above is needed to reload the parameters |
|
46 |
// It also problematic for persistence to pass "org.txm.chartsengine.core" because it is saved as bundle ID and the deserialisation can not be done since "org.txm.chartsengine.core" does not found the class CooccurrenceGraph |
|
47 |
this.commandPreferencesNodePath = "org.txm.chartsengine.core"; |
|
48 |
try { |
|
49 |
this.autoLoadParametersFromAnnotations(); |
|
50 |
} |
|
51 |
catch (Exception e) { |
|
52 |
// TODO Auto-generated catch block |
|
53 |
e.printStackTrace(); |
|
54 |
} |
|
55 |
|
|
42 | 56 |
} |
43 | 57 |
|
44 | 58 |
|
tmp/org.txm.rcp/src/main/java/org/txm/rcp/preferences/UserPreferencePage.java (revision 1392) | ||
---|---|---|
50 | 50 |
protected void createFieldEditors() { |
51 | 51 |
this.addField(new BooleanFieldEditor(RCPPreferences.USER_ALERT_DELETE, TXMUIMessages.doNotConfirmToDeleteAnObject, BooleanFieldEditor.SEPARATE_LABEL, this.getFieldEditorParent())); |
52 | 52 |
|
53 |
// Auto compute the resul when a parameter changes |
|
53 |
// Auto compute the result when a parameter changes
|
|
54 | 54 |
this.addField(new BooleanFieldEditor(RCPPreferences.AUTO_UPDATE_EDITOR, TXMUIMessages.automaticRecomputingWhenChangingAParameter, BooleanFieldEditor.SEPARATE_LABEL, this.getFieldEditorParent())); |
55 | 55 |
|
56 | 56 |
// Auto save each result after computing and auto load them at startup |
tmp/org.txm.index.core/src/org/txm/index/core/functions/Lexicon.java (revision 1392) | ||
---|---|---|
659 | 659 |
|
660 | 660 |
/** |
661 | 661 |
* Gets a Lexicon from the specified corpus. |
662 |
* If a Lexicon child exists in the Corpus fro the specified property, returns it otherwise creates and computes a new Lexicon. |
|
662 |
* If a Lexicon child exists in the Corpus from the specified property, returns it otherwise creates and computes a new Lexicon.
|
|
663 | 663 |
* @param corpus |
664 | 664 |
* @param property |
665 | 665 |
* @return |
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1392) | ||
---|---|---|
911 | 911 |
this.saveParameter("class", this.getClass().getName()); //$NON-NLS-1$ |
912 | 912 |
|
913 | 913 |
this.saveParameter(TXMPreferences.RESULT_PARAMETERS_NODE_PATH, this.parametersNodePath); |
914 |
this.saveParameter(TXMPreferences.BUNDLE_ID, this.commandPreferencesNodePath); |
|
914 |
|
|
915 |
// FIXME: old version that not work well if a bundle has no preference initializer |
|
916 |
//this.saveParameter(TXMPreferences.BUNDLE_ID, this.commandPreferencesNodePath); |
|
917 |
// FIXME: new version |
|
918 |
this.saveParameter(TXMPreferences.BUNDLE_ID, FrameworkUtil.getBundle(getClass()).getSymbolicName()); |
|
919 |
|
|
920 |
|
|
921 |
|
|
915 | 922 |
if (this.parent != null) { |
916 | 923 |
this.saveParameter(TXMPreferences.PARENT_PARAMETERS_NODE_PATH, this.parent.getParametersNodePath()); |
917 | 924 |
} |
Formats disponibles : Unified diff