Revision 1590

tmp/org.txm.core/src/java/org/txm/core/engines/Engine.java (revision 1590)
2 2

  
3 3
import org.eclipse.core.runtime.IProgressMonitor;
4 4
import org.txm.core.results.TXMResult;
5
import org.txm.objects.Project;
6 5

  
7 6
/**
8 7
 * An engine gives access to services. The user must know its implementation Class to access those services.
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/messages/SpecificitiesUIMessages.java (revision 1590)
22 22

  
23 23
	public static String maximumScore; 
24 24
	public static String failedToComputeSpecificities; 
25
	public static String t; 
25
	public static String t;
26

  
27
	public static String index; 
26 28
	
27 29
	static {
28 30
		// initialize resource bundle
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/messages/messages_fr.properties (revision 1590)
9 9
scoresFormatDefaultIsPercent1f=Format des indices (par défaut \: %,.1f)
10 10
specificities=Spécificités
11 11
t=T
12
index=indice
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/messages/messages.properties (revision 1590)
9 9
scoresFormatDefaultIsPercent1f=Scores format (default is %,.1f)
10 10
specificities=Specificities
11 11
t=\ T
12
index=index
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesEditor.java (revision 1590)
260 260
					
261 261
					//SCORE COLUMN
262 262
					final TableColumn lexicalTableColumn = new TableColumn(specificitesTable, SWT.NONE);
263
					lexicalTableColumn.setText("score"); 
263
					lexicalTableColumn.setText(SpecificitiesUIMessages.index); 
264 264
					//lexicalTableColumn.setToolTipText(lexicalTableColumnNames[i] + " t=" + lexicalTableColumnTotalFrequencies[i]); //$NON-NLS-1$ 
265 265
					// System.out.println("create column "+partNames[i]);
266 266
					lexicalTableColumn.setAlignment(SWT.RIGHT);
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/GroovyScriptedImportEngine.java (revision 1590)
158 158
					//							IPath path = new Path(params.rootDir);
159 159
					//							srcFolder.createLink(path, IResource.ALLOW_MISSING_LOCAL, monitor);
160 160
				} else {
161
					Log.severe(GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
161
					Log.fine(GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
162 162
//					if (basedir.exists()) basedir.renameTo(errorBinDirectory);
163 163
//					if (tempBinDirectory.exists()) tempBinDirectory.renameTo(basedir);
164 164
					return new Status(Status.ERROR, "org.txm.groovy.core", GroovyMessages.errorImportNotCorrectlyEndedSeeConsoleMessages);
tmp/org.txm.groovy.core/src/java/org/txm/groovy/core/messages/GroovyMessages.java (revision 1590)
10 10
	public static String restartingToolboxSearchengines;
11 11
	public static String startingTheP0GroovyImportScript;
12 12
	public static String errorImportNotCorrectlyEndedSeeConsoleMessages;
13
	public static Throwable errorTreeTaggerAnnotationEngineIsNotReady;
13
	public static String errorTreeTaggerAnnotationEngineIsNotReady;
14 14
	
15 15
	static {
16 16
		// initialize resource bundle
tmp/org.txm.utils/src/org/txm/utils/StreamHog.java (revision 1590)
105 105

  
106 106
			}
107 107
		} catch (Throwable e) {
108
			System.out.println("ERROR: broken process logging : "+e);
108
			Log.fine("ERROR: broken process logging : "+e);
109 109
			org.txm.utils.logger.Log.printStackTrace(e);
110 110
		}
111 111
	}
tmp/org.txm.annotation.core/src/org/txm/annotation/core/AnnotationEnginesManager.java (revision 1590)
5 5
import org.eclipse.core.runtime.Platform;
6 6
import org.txm.core.engines.EngineType;
7 7
import org.txm.core.engines.EnginesManager;
8
import org.txm.utils.logger.Log;
8 9

  
9 10
//FIXME: useless class, the type and priority/order should be defined in org.txm.core.engines.EnginesManager extension point
10 11
public class AnnotationEnginesManager extends EnginesManager<AnnotationEngine> {
......
34 35
	@Override
35 36
	public boolean stopEngines() {
36 37
		for (AnnotationEngine e : values()) {
37
			System.out.println(e);
38
//			AnnotationEngine se = (AnnotationEngine)e;
39
//			System.out.println("Stoping "+ se.getName()+" annotation engine.");
40
//			try {
41
//				se.stop();
42
//			} catch (Exception ex) {
43
//				System.out.println("Error: failed to stop annotation engine: "+se.getName()+": "+ex.getLocalizedMessage());
44
//			}
38
			//System.out.println(e);
39
			AnnotationEngine se = (AnnotationEngine)e;
40
			Log.fine("Stoping "+ se.getName()+" annotation engine.");
41
			try {
42
				se.stop();
43
			} catch (Exception ex) {
44
				Log.severe("Error: failed to stop annotation engine: "+se.getName()+": "+ex.getLocalizedMessage());
45
			}
45 46
		}
46 47
		return true;
47 48
	}
tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 1590)
934 934
		GLComposite propertiesPanel = new GLComposite(queryArea, SWT.BORDER, ConcordanceUIMessages.propertiesPanel);
935 935
		propertiesPanel.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, true, 4, 1));
936 936
		propertiesPanel.getLayout().numColumns = 5;
937
		propertiesPanel.getLayout().makeColumnsEqualWidth = true;
937
		propertiesPanel.getLayout().makeColumnsEqualWidth = false;
938 938

  
939 939
		try {
940 940
			Label l = new Label(propertiesPanel, SWT.NONE);
941 941
			l.setText(ConcordanceUIMessages.editor_21);
942
			l.setLayoutData(new GridData(GridData.FILL,GridData.CENTER, true, false));
943
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.references);
944
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.left);
945
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.keyword);
946
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.right);
942
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, false, false));
943
			l = new Label(propertiesPanel, SWT.NONE);
944
			l.setText(ConcordanceUIMessages.references);
945
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, true, false));
946
			l = new Label(propertiesPanel, SWT.NONE);
947
			l.setText(ConcordanceUIMessages.left);
948
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, true, false));
949
			l = new Label(propertiesPanel, SWT.NONE);
950
			l.setText(ConcordanceUIMessages.keyword);
951
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, true, false));
952
			l = new Label(propertiesPanel, SWT.NONE);
953
			l.setText(ConcordanceUIMessages.right);
954
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, true, false));
947 955

  
948
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.view);
956
			l = new Label(propertiesPanel, SWT.NONE);
957
			l.setText(ConcordanceUIMessages.view);
958
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, false, false));
949 959
			refViewProperties = new PropertiesSelector<Property>(propertiesPanel, SWT.NONE);
960
			refViewProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
950 961
			refViewProperties.setTitle(ConcordanceUIMessages.editor_21);
951 962
			refViewProperties.setButtonText(ConcordanceUIMessages.editor_19);
952 963
			refViewProperties.setProperties(ReferencePattern.getPossibleValues(getCorpus()));
......
958 969
				}
959 970
			});
960 971
			leftViewProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
972
			leftViewProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
961 973
			leftViewProperties.setTitle(ConcordanceUIMessages.editor_21);
962 974
			leftViewProperties.setProperties(getCorpus().getOrderedProperties());
963 975
			leftViewProperties.setButtonText(ConcordanceUIMessages.editor_19);
......
969 981
				}
970 982
			});
971 983
			keywordViewProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
984
			keywordViewProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
972 985
			keywordViewProperties.setTitle(ConcordanceUIMessages.editor_21);
973 986
			keywordViewProperties.setProperties(getCorpus().getOrderedProperties());
974 987
			keywordViewProperties.setButtonText(ConcordanceUIMessages.editor_19);
......
980 993
				}
981 994
			});
982 995
			rightViewProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
996
			rightViewProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
983 997
			rightViewProperties.setTitle(ConcordanceUIMessages.editor_21);
984 998
			rightViewProperties.setProperties(getCorpus().getOrderedProperties());
985 999
			rightViewProperties.setButtonText(ConcordanceUIMessages.editor_19);
......
991 1005
				}
992 1006
			});
993 1007

  
994
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.sort);
1008
			l = new Label(propertiesPanel, SWT.NONE);
1009
			l.setText(ConcordanceUIMessages.sort);
1010
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, false, false));
995 1011
			refSortProperties = new PropertiesSelector<Property>(propertiesPanel, SWT.NONE);
1012
			refSortProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
996 1013
			refSortProperties.setTitle(ConcordanceUIMessages.editor_21);
997 1014
			refSortProperties.setButtonText(ConcordanceUIMessages.editor_19);
998 1015
			refSortProperties.setProperties(ReferencePattern.getPossibleValues(getCorpus()));
......
1004 1021
				}
1005 1022
			});
1006 1023
			leftSortProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
1024
			leftSortProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
1007 1025
			leftSortProperties.setTitle(ConcordanceUIMessages.editor_21);
1008 1026
			leftSortProperties.setButtonText(ConcordanceUIMessages.editor_19);
1009 1027
			leftSortProperties.setProperties(getCorpus().getOrderedProperties());
......
1015 1033
				}
1016 1034
			});
1017 1035
			keywordSortProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
1036
			keywordSortProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
1018 1037
			keywordSortProperties.setTitle(ConcordanceUIMessages.editor_21);
1019 1038
			keywordSortProperties.setButtonText(ConcordanceUIMessages.editor_19);
1020 1039
			keywordSortProperties.setProperties(getCorpus().getOrderedProperties());
......
1026 1045
				}
1027 1046
			});
1028 1047
			rightSortProperties = new PropertiesSelector<WordProperty>(propertiesPanel, SWT.NONE);
1048
			rightSortProperties.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));
1029 1049
			rightSortProperties.setTitle(ConcordanceUIMessages.editor_21);
1030 1050
			rightSortProperties.setButtonText(ConcordanceUIMessages.editor_19);
1031 1051
			rightSortProperties.setProperties(getCorpus().getOrderedProperties());
......
1037 1057
				}
1038 1058
			});
1039 1059

  
1040
			new Label(propertiesPanel, SWT.NONE).setText(ConcordanceUIMessages.size);
1060
			l = new Label(propertiesPanel, SWT.NONE);
1061
			l.setText(ConcordanceUIMessages.size);
1062
			l.setLayoutData(new GridData(GridData.CENTER,GridData.CENTER, false, false));
1041 1063
			new Label(propertiesPanel, SWT.NONE);
1042 1064
			leftSizeSpinner = new Spinner(propertiesPanel, SWT.BORDER);
1043 1065
			leftSizeSpinner.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false));

Also available in: Unified diff