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 |
|