Revision 616

tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 616)
234 234
				if (mess == null) mess = selectedItem.toString();
235 235
				
236 236
				StatusLine.setMessage(mess);
237
				// FIXME: Debug:
238
				// FIXME: à repasser dans TXMResult.toString();
239
				System.out.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): ********************************************************************************");
240
				System.err.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): selected object = " + selectedItem + ", visible = " + ((TXMResult)selectedItem).isVisible());
241
				if (selectedItem instanceof ChartResult) 	{
242
					System.err.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): chart object = " + ((ChartResult)selectedItem).getChart() + ", chart type = " + ((ChartResult)selectedItem).getChartType());
243
				}
244
				System.err.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): selection full path name = " + ((TXMResult)selectedItem).getFullPathSimpleName() + " - " + ((TXMResult)selectedItem).getName());
245
				System.err.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): direct children count = " + ((TXMResult)selectedItem).getResults().size()
246
						+ ", direct visible children count = " + ((TXMResult)selectedItem).getChildren(true).size() + ", children count = " + ((TXMResult)selectedItem).getDeepChildren().size());
247
				System.err.println("CorporaView.createPartControl(...).new SelectionListener() {...}.widgetSelected(): root parent = "
248
						+ ((TXMResult)selectedItem).getRootParent() + ", main corpus parent = " + Corpus.getParentMainCorpus(((TXMResult)selectedItem)));
249 237
			}
250 238

  
251 239
			@Override
tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/cmdparameters/TXMResultDebugView.java (revision 616)
33 33
import org.eclipse.swt.widgets.Composite;
34 34
import org.eclipse.swt.widgets.Label;
35 35
import org.eclipse.ui.part.ViewPart;
36
import org.txm.chartsengine.core.results.ChartResult;
36 37
import org.txm.core.results.TXMResult;
37 38
import org.txm.rcp.views.corpora.CorporaView;
39
import org.txm.searchengine.cqp.corpus.Corpus;
38 40

  
39 41

  
40 42
/**
......
80 82
			TXMResult result = (TXMResult) selection;
81 83
			
82 84
			StringBuffer buffer = new StringBuffer();
83
			buffer.append("Result: " + result.toString() + "\n");
84
			buffer.append("UUID: " + result.getUUID() + "\n");
85
			buffer.append("Simple name: " + result.getSimpleName() + "\n");
86
			buffer.append("Name: " + result.getName() + "\n");
87
			buffer.append("Valid filename: " + result.getValidFileName() + "\n");
88
			buffer.append("Details:" + result.getDetails() + "\n\n");
85
			buffer.append("Result: " + result.toString() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
86
			buffer.append("UUID: " + result.getUUID() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
87
			buffer.append("Simple name: " + result.getSimpleName() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
88
			buffer.append("Name: " + result.getName() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
89
			buffer.append("Valid filename: " + result.getValidFileName() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
90
			buffer.append("Details:" + result.getDetails() + "\n\n"); //$NON-NLS-1$ //$NON-NLS-2$
91

  
92
			// FIXME: Debug:
93
			buffer.append("selected object = " + result + ", visible = " + result.isVisible());
94
			if (result instanceof ChartResult) 	{
95
				buffer.append("chart object = " + ((ChartResult)result).getChart() + ", chart type = " + ((ChartResult)result).getChartType());
96
			}
97
			buffer.append("selection full path name = " + result.getFullPathSimpleName() + " - " + result.getName());
98
			buffer.append("direct children count = " + result.getResults().size()
99
					+ ", direct visible children count = " + result.getChildren(true).size() + ", children count = " + result.getDeepChildren().size());
100
			buffer.append("root parent = " + result.getRootParent() + ", main corpus parent = " + Corpus.getParentMainCorpus(result) + ", first parent corpus = " + Corpus.getFirstParentCorpus(result));
101

  
89 102
			
90

  
91 103
			try {
92 104
				// Command preferences
105
				buffer.append("\n");
106
				buffer.append("\n");
93 107
				buffer.append(result.dumpPreferences());
94 108
				buffer.append("\n");
95 109
				

Also available in: Unified diff