Revision 1401
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/handlers/ComputeSpecifities.java (revision 1401) | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.eclipse.core.commands.ExecutionEvent; |
31 | 31 |
import org.eclipse.core.commands.ExecutionException; |
32 |
import org.txm.core.messages.TXMCoreMessages; |
|
32 | 33 |
import org.txm.index.core.functions.PartitionIndex; |
33 | 34 |
import org.txm.lexicaltable.core.functions.LexicalTable; |
35 |
import org.txm.lexicaltable.rcp.editors.LexicalTableEditor; |
|
34 | 36 |
import org.txm.rcp.editors.TXMEditor; |
35 | 37 |
import org.txm.rcp.handlers.BaseAbstractHandler; |
36 | 38 |
import org.txm.searchengine.cqp.corpus.Partition; |
... | ... | |
62 | 64 |
try { |
63 | 65 |
Object selection = this.getCorporaViewSelectedObject(event); |
64 | 66 |
Specificities specificities = null; |
67 |
LexicalTable lexicalTable = null; |
|
65 | 68 |
|
66 | 69 |
// Reopening from existing result |
67 | 70 |
if(selection instanceof Specificities) { |
... | ... | |
69 | 72 |
} |
70 | 73 |
// Creating |
71 | 74 |
else { |
72 |
LexicalTable lexicalTable = null; |
|
73 | 75 |
|
74 | 76 |
// creating from Partition |
75 | 77 |
if (selection instanceof Partition) { |
... | ... | |
94 | 96 |
specificities = new Specificities(lexicalTable); |
95 | 97 |
} |
96 | 98 |
|
99 |
if(!(selection instanceof LexicalTable)) { |
|
100 |
lexicalTable.setVisible(false); |
|
101 |
} |
|
102 |
|
|
97 | 103 |
TXMEditor.openEditor(specificities, SpecificitiesEditor.ID); |
104 |
// TXMEditor.openEditor(lexicalTable, LexicalTableEditor.ID); |
|
98 | 105 |
|
99 | 106 |
} |
100 | 107 |
catch (Exception e) { |
101 |
Log.severe(SpecificitiesCoreMessages.error_errorWhileComputingSpecificities);
|
|
108 |
Log.severe(TXMCoreMessages.bind(SpecificitiesCoreMessages.error_errorWhileComputingSpecificities, e));
|
|
102 | 109 |
Log.printStackTrace(e); |
103 | 110 |
return null; |
104 | 111 |
} |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/preferences/RCPPreferences.java (revision 1401) | ||
---|---|---|
11 | 11 |
* @author sjacquot |
12 | 12 |
* |
13 | 13 |
*/ |
14 |
public class RCPPreferences extends TXMPreferences {
|
|
14 |
public class RCPPreferences extends TBXPreferences {
|
|
15 | 15 |
|
16 | 16 |
|
17 | 17 |
// public static final String PREFERENCES_NODE = FrameworkUtil.getBundle(RCPPreferences.class).getSymbolicName(); |
... | ... | |
58 | 58 |
public void initializeDefaultPreferences() { |
59 | 59 |
|
60 | 60 |
// FIXME: to store/merge and share all the prefs in the Core node |
61 |
//this.commandPreferencesNodeQualifier = "org.txm.core";
|
|
61 |
this.commandPreferencesNodeQualifier = "org.txm.core"; |
|
62 | 62 |
|
63 |
super.initializeDefaultPreferences(); |
|
63 |
//super.initializeDefaultPreferences();
|
|
64 | 64 |
Preferences preferences = this.getDefaultPreferencesNode(); |
65 | 65 |
|
66 | 66 |
preferences.put(TBXPreferences.EXPORT_ENCODING, System.getProperty("file.encoding")); //$NON-NLS-1$ |
Also available in: Unified diff