Révision 2645
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/handlers/ComputeCA.java (revision 2645) | ||
---|---|---|
108 | 108 |
lexicalTable = new LexicalTable(index); |
109 | 109 |
|
110 | 110 |
if (index.getPartition().getPartsCount() < 4) { |
111 |
// FIXME: SJ: remove this swing code that freezes the UI, need to use SWT in main thread |
|
112 |
MessageBox.error(CAUIMessages.canNotComputeCAOnLexicalTableWithLessThan4Columns); |
|
111 |
MessageDialog.openError(window.getShell(), "Error", CAUIMessages.canNotComputeCAOnLexicalTableWithLessThan4Columns); |
|
113 | 112 |
return null; |
114 | 113 |
} |
115 | 114 |
// FIXME: SJ: problem here because we need the index has been computed to make this check |
116 | 115 |
if (index.hasBeenComputedOnce() && index.getAllLines().size() < 4) { |
117 |
// FIXME: SJ: remove this swing code that freezes the UI, need to use SWT in main thread |
|
118 |
MessageBox.error(CAUIMessages.canNotComputeCAWithLessThan4RowsInTheTable); |
|
116 |
MessageDialog.openError(window.getShell(), "Error", CAUIMessages.canNotComputeCAWithLessThan4RowsInTheTable); |
|
119 | 117 |
return null; |
120 | 118 |
} |
121 | 119 |
|
... | ... | |
127 | 125 |
|
128 | 126 |
// FIXME: SJ: problem here because we need the LT has been computed to make this check |
129 | 127 |
if (lexicalTable.hasBeenComputedOnce() && lexicalTable.getNColumns() < 4) { |
130 |
// FIXME: SJ: remove this swing code that freeze the UI, need to use SWT in main thread |
|
131 |
MessageBox.error(CAUIMessages.canNotComputeCAOnLexicalTableWithLessThan4Columns); |
|
128 |
MessageDialog.openError(window.getShell(), "Error", CAUIMessages.canNotComputeCAOnLexicalTableWithLessThan4Columns); |
|
132 | 129 |
return null; |
133 | 130 |
} |
134 | 131 |
// FIXME: SJ: problem here because we need the LT has been computed to make this check |
135 | 132 |
if (lexicalTable.hasBeenComputedOnce() && lexicalTable.getNRows() < 4) { |
136 |
// FIXME: SJ: remove this swing code that freeze the UI, need to use SWT in main thread |
|
137 |
MessageBox.error(CAUIMessages.canNotComputeCAWithLessThan4RowsInTheTable); |
|
133 |
MessageDialog.openError(window.getShell(), "Error", CAUIMessages.canNotComputeCAWithLessThan4RowsInTheTable); |
|
138 | 134 |
return null; |
139 | 135 |
} |
140 | 136 |
|
tmp/org.txm.ahc.rcp/src/org/txm/ahc/rcp/handlers/ComputeAHC.java (revision 2645) | ||
---|---|---|
37 | 37 |
import org.txm.ahc.core.messages.AHCCoreMessages; |
38 | 38 |
import org.txm.ahc.rcp.messages.AHCUIMessages; |
39 | 39 |
import org.txm.ca.core.functions.CA; |
40 |
import org.txm.ca.rcp.messages.CAUIMessages; |
|
41 | 40 |
import org.txm.chartsengine.rcp.editors.ChartEditor; |
42 | 41 |
import org.txm.core.messages.TXMCoreMessages; |
43 | 42 |
import org.txm.index.core.functions.PartitionIndex; |
... | ... | |
46 | 45 |
import org.txm.searchengine.cqp.corpus.Partition; |
47 | 46 |
import org.txm.searchengine.cqp.corpus.Property; |
48 | 47 |
import org.txm.utils.logger.Log; |
49 |
import org.txm.utils.logger.MessageBox; |
|
50 | 48 |
|
51 | 49 |
/** |
52 | 50 |
* Opens an AHC editor. |
... | ... | |
99 | 97 |
lexicalTable = (LexicalTable) selection; |
100 | 98 |
Property property = lexicalTable.getProperty(); |
101 | 99 |
|
102 |
// FIXME: SJ: problem here because we need the LT has been computed to make this check
|
|
100 |
// FIXME: SJ: problem here because we need the LT to be computed to make this check
|
|
103 | 101 |
if (lexicalTable.hasBeenComputedOnce() && lexicalTable.getNColumns() < 4) { |
104 |
// FIXME: SJ: remove this swing code that freeze the UI, need to use SWT in main thread |
|
105 |
MessageBox.error(AHCCoreMessages.error_canNotComputeAHCOnLexicalTableWithLessThan4Columns); |
|
102 |
MessageDialog.openError(window.getShell(), "Error", AHCCoreMessages.error_canNotComputeAHCOnLexicalTableWithLessThan4Columns); |
|
106 | 103 |
return null; |
107 | 104 |
} |
108 | 105 |
// FIXME: SJ: problem here because we need the LT has been computed to make this check |
109 | 106 |
if (lexicalTable.hasBeenComputedOnce() && lexicalTable.getNRows() < 4) { |
110 |
// FIXME: SJ: remove this swing code that freeze the UI, need to use SWT in main thread |
|
111 |
MessageBox.error(AHCCoreMessages.error_canNotComputeAHCWithLessThan4RowsInTheTable); |
|
107 |
MessageDialog.openError(window.getShell(), "Error", AHCCoreMessages.error_canNotComputeAHCWithLessThan4RowsInTheTable); |
|
112 | 108 |
return null; |
113 | 109 |
} |
114 | 110 |
|
Formats disponibles : Unified diff