Revision 2584

tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/handlers/ComputeCA.java (revision 2584)
44 44
import org.txm.lexicaltable.core.functions.LexicalTable;
45 45
import org.txm.rcp.StatusLine;
46 46
import org.txm.rcp.TXMWindows;
47
import org.txm.rcp.editors.TXMEditor;
47 48
import org.txm.rcp.editors.TXMResultEditorInput;
48 49
import org.txm.rcp.handlers.BaseAbstractHandler;
49 50
import org.txm.searchengine.cqp.corpus.Partition;
......
157 158
			try {
158 159
				
159 160
				TXMResultEditorInput<CA> editorInput = new TXMResultEditorInput<>(ca);
160
				IWorkbenchPage page = TXMWindows.getActivePage();
161
				// IWorkbenchPage page = TXMWindows.getActivePage();
161 162
				StatusLine.setMessage(CAUIMessages.openingTheCorrespondenceAnalysisResults);
162
				IEditorPart editor = page.openEditor(editorInput, CAEditor.class.getName());
163
				if (editor == null) {
164
					
165
				}
163
				// IEditorPart editor = page.openEditor(editorInput, CAEditor.class.getName());
164
				TXMEditor.openEditor(editorInput, CAEditor.class.getName());
165
				
166 166
			}
167 167
			catch (Throwable e) {
168 168
				Log.severe(CAUIMessages.bind(CAUIMessages.error_opening, ca));
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAEditor.java (revision 2584)
48 48
import org.eclipse.swt.widgets.Sash;
49 49
import org.eclipse.swt.widgets.Table;
50 50
import org.eclipse.swt.widgets.TableItem;
51
import org.eclipse.ui.IEditorInput;
52 51
import org.eclipse.ui.IEditorSite;
53 52
import org.eclipse.ui.IPropertyListener;
54
import org.eclipse.ui.part.EditorPart;
55 53
import org.txm.ca.core.chartsengine.base.CAChartCreator;
56 54
import org.txm.ca.core.functions.CA;
57 55
import org.txm.ca.core.functions.Eigenvalues;
......
59 57
import org.txm.ca.rcp.messages.CAUIMessages;
60 58
import org.txm.chartsengine.rcp.editors.ChartEditor;
61 59
import org.txm.chartsengine.rcp.editors.ChartEditorInput;
62
import org.txm.rcp.editors.ITXMResultEditor;
63 60
import org.txm.rcp.editors.TXMMultiPageEditor;
64 61
import org.txm.rcp.editors.TXMResultEditorInput;
65 62
import org.txm.rcp.messages.TXMUIMessages;
66
import org.txm.rcp.utils.JobHandler;
67
import org.txm.utils.OSDetector;
68 63
import org.txm.utils.logger.Log;
69 64

  
70 65
/**
......
182 177
			
183 178
			// add the other editors
184 179
			for (int i = 1; i < editors.size(); i++) {
185
				int editorIndex = this.addPage(editors.get(i), inputs.get(i)); // NOTE: the method addPage() calls the createPartControl() method of the editors
180
				int editorIndex = this.addPage(editors.get(i), inputs.get(i)); // NOTE: the method MultiPageEditorPart.addPage() internally calls the createPartControl() method of the editors
186 181
				this.setPageText(editorIndex, this.names.get(i));
187 182
			}
188 183
			
189 184
			caFactorialMapEditorPart.compute(false);
190 185
			
191
			
192
			
193
			// this.getEigenvaluesBarChartEditor().compute(false);
194
			
195 186
		}
196 187
		catch (Exception e1) {
197 188
			Log.printStackTrace(e1);
......
217 208
				((CAChartCreator) chartEditor.getResult().getChartCreator()).updateChartCAFactorialMapHighlightPoints(chartEditor.getChart(), (e.getSource() == getRowsInfosEditor().getViewer()),
218 209
						selectedLabels);
219 210
				
220
				// SJ: fix a Linux focus bug with MultiPageEditorPart
221
				// if(OSDetector.isFamilyUnix()) {
222
				// table.getParent().setFocus();
223
				// }
224
				
225
				
226 211
			}
227 212
		};
228 213
		

Also available in: Unified diff