Revision 238

tmp/org.txm.ca.rcp/META-INF/MANIFEST.MF (revision 238)
4 4
Bundle-SymbolicName: org.txm.ca.rcp;singleton:=true
5 5
Bundle-Version: 1.0.0.qualifier
6 6
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
7
Require-Bundle: org.txm.ca.core;bundle-version="1.0.0",
7
Require-Bundle: org.txm.lexicaltable.rcp;bundle-version="1.0.0",
8
 org.txm.ca.core;bundle-version="1.0.0",
8 9
 org.txm.chartsengine.rcp,
9 10
 org.txm.core;bundle-version="0.7.0",
10 11
 org.txm.rcp,
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/preferences/CAPreferencePage.java (revision 238)
39 39
import org.txm.ca.rcp.adapters.CAAdapterFactory;
40 40
import org.txm.ca.rcp.messages.CAUIMessages;
41 41
import org.txm.chartsengine.rcp.SWTChartsComponentsProvider;
42
import org.txm.lexicaltable.rcp.messages.LexicalTableUIMessages;
42 43
import org.txm.rcp.preferences.TXMPreferencePage;
43 44
import org.txm.rcp.preferences.TXMPreferenceStore;
44
import org.txm.rcpapplication.Messages;
45
// TODO: Auto-generated Javadoc
45

  
46 46
/**
47
 * This class represents a preference page that is contributed to the
48
 * Preferences dialog. By subclassing <samp>FieldEditorPreferencePage</samp>, we
49
 * can use the field support built into JFace that allows us to create a page
50
 * that is small and knows how to save, restore and apply itself.
51
 * <p>
52
 * This page is used to modif y preferences only. They are stored in the
53
 * preference store that belongs to the main plug-in class. That way,
54
 * preferences can be accessed directly via the preference store.
47
 * CA preferences page.
48
 * 
49
 * @author mdecorde
50
 * @author sjacquot
51
 *
55 52
 */
56

  
57 53
public class CAPreferencePage extends TXMPreferencePage {
58 54

  
59 55

  
......
67 63
	public void createFieldEditors() {
68 64

  
69 65
		Group ltGroup = new Group(getFieldEditorParent(), SWT.NONE);
70
		ltGroup.setText(CAUIMessages.CAPreferencePage_2);
66
		ltGroup.setText(CAUIMessages.PreferencePage_2);
71 67
		GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
72 68
		gridData.horizontalSpan = 2;
73 69
		gridData.verticalIndent = 10;
74 70
		ltGroup.setLayoutData(gridData);
75 71

  
76
		this.addField(new IntegerFieldEditor(CAPreferences.F_MIN, Messages.LexicalTablePreferencePage_1, ltGroup));
77
		this.addField(new IntegerFieldEditor(CAPreferences.V_MAX, Messages.LexicalTableEditor_8, ltGroup));
78
		this.addField(new StringFieldEditor(CAPreferences.QUALITY_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_0, this.getFieldEditorParent()));
79
		this.addField(new StringFieldEditor(CAPreferences.CONTRIB_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_1, this.getFieldEditorParent()));
80
		this.addField(new StringFieldEditor(CAPreferences.MASS_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_5, this.getFieldEditorParent()));
81
		this.addField(new StringFieldEditor(CAPreferences.DIST_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_6, this.getFieldEditorParent()));
82
		this.addField(new StringFieldEditor(CAPreferences.COS2_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_7, this.getFieldEditorParent()));
83
		this.addField(new StringFieldEditor(CAPreferences.COORD_DISPLAY_FORMAT, CAUIMessages.CAPreferencePage_8, this.getFieldEditorParent()));
72
		this.addField(new IntegerFieldEditor(CAPreferences.F_MIN, LexicalTableUIMessages.LexicalTablePreferencePage_1, ltGroup));
73
		this.addField(new IntegerFieldEditor(CAPreferences.V_MAX, LexicalTableUIMessages.LexicalTableEditor_8, ltGroup));
74
		this.addField(new StringFieldEditor(CAPreferences.QUALITY_DISPLAY_FORMAT, CAUIMessages.PreferencePage_0, this.getFieldEditorParent()));
75
		this.addField(new StringFieldEditor(CAPreferences.CONTRIB_DISPLAY_FORMAT, CAUIMessages.PreferencePage_1, this.getFieldEditorParent()));
76
		this.addField(new StringFieldEditor(CAPreferences.MASS_DISPLAY_FORMAT, CAUIMessages.PreferencePage_5, this.getFieldEditorParent()));
77
		this.addField(new StringFieldEditor(CAPreferences.DIST_DISPLAY_FORMAT, CAUIMessages.PreferencePage_6, this.getFieldEditorParent()));
78
		this.addField(new StringFieldEditor(CAPreferences.COS2_DISPLAY_FORMAT, CAUIMessages.PreferencePage_7, this.getFieldEditorParent()));
79
		this.addField(new StringFieldEditor(CAPreferences.COORD_DISPLAY_FORMAT, CAUIMessages.PreferencePage_8, this.getFieldEditorParent()));
84 80

  
85 81
		// Charts rendering
86 82
		Composite chartsTab = SWTChartsComponentsProvider.createChartsRenderingPreferencesTabFolderComposite(this.getFieldEditorParent());
87 83

  
88
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_INDIVIDUALS, CAUIMessages.CAPreferencePage_3, chartsTab));
89
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_VARIABLES, CAUIMessages.CAPreferencePage_4, chartsTab));
90
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_POINT_SHAPES, CAUIMessages.SHOW_POINT_SHAPES, chartsTab));
84
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_INDIVIDUALS, CAUIMessages.PreferencePage_3, chartsTab));
85
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_VARIABLES, CAUIMessages.PreferencePage_4, chartsTab));
86
		this.addField(new BooleanFieldEditor(CAPreferences.SHOW_POINT_SHAPES, CAUIMessages.PreferencePage_CHART_SHOW_POINT_SHAPES, chartsTab));
91 87
		
92 88
		// other shared preferences
93 89
		SWTChartsComponentsProvider.createChartsRenderingPreferencesFields(this, chartsTab);
......
95 91

  
96 92
	}
97 93

  
98
	
94
	//FIXME: tabbed preference tests
99 95
//	@Override
100 96
//	public void createFieldEditors() {
101 97
//
......
176 172
	public void init(IWorkbench workbench) {
177 173
		this.setPreferenceStore(new TXMPreferenceStore(CAPreferences.PREFERENCES_NODE));
178 174
		//this.setDescription(Messages.CorrespondanceAnalysisEditorInput_10);
179
		this.setTitle(CAUIMessages.CorrespondanceAnalysisEditorInput_10);
175
		//this.setTitle(CAUIMessages.CorrespondanceAnalysisEditorInput_10);
180 176
		this.setImageDescriptor(CAAdapterFactory.ICON);
181 177

  
182 178
		// FIXME: useless?
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/messages.properties (revision 238)
1
CAPreferencePage_0=Quality column format
2
CAPreferencePage_1=Contribution column format
3
CAPreferencePage_2=Lexical table created when called from a partition
4
CAPreferencePage_3=Show the columns
5
CAPreferencePage_4=Show the rows
6
CAPreferencePage_5=Mass column format
7
CAPreferencePage_6=Distance column format
8
CAPreferencePage_7=Cos² column format
9
CAPreferencePage_8=Coord column format
10
ComputeCorrespondanceAnalysis_0=Computing Correspondance analysis on {0} with property {1}
11
ComputeCorrespondanceAnalysis_13=Can't compute CA on lexical table with less than 4 columns
12
ComputeCorrespondanceAnalysis_14=Opening the Correspondance Analysis results
13
ComputeCorrespondanceAnalysis_15=Create CA
14
ComputeCorrespondanceAnalysis_16=Get LexicalTable CA
15
ComputeCorrespondanceAnalysis_17=Compute CA
16
ComputeCorrespondanceAnalysis_1=Cannot compute CA with less than 4 rows in the table
17
ComputeCorrespondanceAnalysis_2=StatEngine is not ready. Canceling command.
18
ComputeCorrespondanceAnalysis_3=** Error
19
ComputeCorrespondanceAnalysis_4=Cannot compute factorial analysis with only {0} parts (the minimum is 4 parts).
20
ComputeCorrespondanceAnalysis_6=OK
21
ComputeCorrespondanceAnalysis_8=Loading correspondances analysis results...
22
ComputeCorrespondanceAnalysisDialog_0=Correspondance analysis with {0}
23
ComputeCorrespondanceAnalysisDialog_1=Property\:
24
ComputeCorrespondanceAnalysisDialog_2=Number of lines\:
25
CorrespondanceAnalysisEditorInput_0=Eigenvalues
26
CorrespondanceAnalysisEditorInput_10=CA
27
CorrespondanceAnalysisEditorInput_11=∑
28
CorrespondanceAnalysisEditorInput_1=Fact. plan
29
CorrespondanceAnalysisEditorInput_2=Eigenvalues histogram
30
CorrespondanceAnalysisEditorInput_3=Correspondance analysis result cannot be null
31
CorrespondanceAnalysisEditorInput_44=Cols
32
CorrespondanceAnalysisEditorInput_46=Q12
33
CorrespondanceAnalysisEditorInput_47=Q13
34
CorrespondanceAnalysisEditorInput_48=Q23
35
CorrespondanceAnalysisEditorInput_49=Mass
36
CorrespondanceAnalysisEditorInput_4=#
37
CorrespondanceAnalysisEditorInput_50=Dist
38
CorrespondanceAnalysisEditorInput_52=Cont
39
CorrespondanceAnalysisEditorInput_53=Cos²
40
CorrespondanceAnalysisEditorInput_55=c1
41
CorrespondanceAnalysisEditorInput_56=c2
42
CorrespondanceAnalysisEditorInput_57=c3
43
CorrespondanceAnalysisEditorInput_5=Eigenvalue
44
CorrespondanceAnalysisEditorInput_8=Rows infos
45
CorrespondanceAnalysisEditorInput_9=Cols infos
46
SHOW_HIDE_POINT_SHAPES=Show/hide point shapes
47
SHOW_POINT_SHAPES=Show point shapes
48
SWTChartsComponentProvider_CA_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL=Axes: 
49
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_LABEL=Show columns
50
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP=Show/hide the column points
51
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_LABEL=Show rows
52
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP=Show/hide the row points
1

  
2
CHART_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL = Axes: 
3
CHART_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP     = Show/hide the column points
4
CHART_TOOLBAR_BUTTON_SHOW_HIDE_POINT_SHAPES  = Show/hide point shapes
5
CHART_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP       = Show/hide the row points
6

  
7
ComputeCorrespondanceAnalysisDialog_0 = Correspondence analysis with {0}
8

  
9
ComputeCorrespondanceAnalysis_0       = Computing Correspondence analysis on {0} with property {1}
10
ComputeCorrespondanceAnalysis_1       = Can not compute CA with less than 4 rows in the table
11
ComputeCorrespondanceAnalysis_13      = Can not compute CA on lexical table with less than 4 columns
12
ComputeCorrespondanceAnalysis_14      = Opening the Correspondence Analysis results
13
ComputeCorrespondanceAnalysis_15      = Creating CA
14
ComputeCorrespondanceAnalysis_16      = Creating Lexical Table for the CA
15
ComputeCorrespondanceAnalysis_17      = Compute CA
16
ComputeCorrespondanceAnalysis_3       = ** Error
17
ComputeCorrespondanceAnalysis_4       = Can not compute factorial analysis with only {0} parts (the minimum is 4 parts).
18
ComputeCorrespondanceAnalysis_6       = OK
19
ComputeCorrespondanceAnalysis_8       = Loading correspondence analysis results...
20

  
21
CorrespondanceAnalysisEditorInput_0  = Eigenvalues
22
CorrespondanceAnalysisEditorInput_1  = Fact. plan
23
CorrespondanceAnalysisEditorInput_10 = CA
24
CorrespondanceAnalysisEditorInput_11 = ∑
25
CorrespondanceAnalysisEditorInput_2  = Eigenvalues histogram
26
CorrespondanceAnalysisEditorInput_3  = Correspondence analysis result cannot be null
27
CorrespondanceAnalysisEditorInput_4  = #
28
CorrespondanceAnalysisEditorInput_5  = Eigenvalue
29
CorrespondanceAnalysisEditorInput_8  = Rows infos
30
CorrespondanceAnalysisEditorInput_9  = Cols infos
31

  
32
PreferencePage_0                       = Quality column format
33
PreferencePage_1                       = Contribution column format
34
PreferencePage_2                       = Lexical table (created when called from a partition)
35
PreferencePage_3                       = Show the columns
36
PreferencePage_4                       = Show the rows
37
PreferencePage_5                       = Mass column format
38
PreferencePage_6                       = Distance column format
39
PreferencePage_7                       = Cos² column format
40
PreferencePage_8                       = Coord column format
41
PreferencePage_CHART_SHOW_POINT_SHAPES = Show point shapes
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/messages_ru.properties (revision 238)
1
CAPreferencePage_0=Формат колонки Качество
2
CAPreferencePage_1=Формат колонки Вклад
3
CAPreferencePage_3=Показать колонки в графике факторного плана
4
CAPreferencePage_4=Показать строчки в графике факторного плана
5
CAPreferencePage_5=Формат колонки Масса
6
CAPreferencePage_6=Формат колонки Дистанция
7
CAPreferencePage_7=Формат колонки Cos²
8
CAPreferencePage_8=Формат колонки Coord
9
ComputeCorrespondanceAnalysis_0=Расчет факторного анализа соответствий
10
ComputeCorrespondanceAnalysis_13=** Невозможно провести факторный анализ соответствий при наличии менее 4-х колонок
11
ComputeCorrespondanceAnalysis_14=Открытие результатов факторного анализа соответствий
12
ComputeCorrespondanceAnalysis_15=Создание окна ФАС
13
ComputeCorrespondanceAnalysis_16=Создание словарной таблицы для ФАС
14
ComputeCorrespondanceAnalysis_17=Расчет ФАС
15
ComputeCorrespondanceAnalysis_1=** Невозможно провести факторный анализ соответствий при наличии менее 4-х колонок в таблице
16
ComputeCorrespondanceAnalysis_3=** Ошибка
17
ComputeCorrespondanceAnalysis_4=** Невозможно провести факторный анализ соответствий при наличии только 
18
ComputeCorrespondanceAnalysis_6=ОК
19
ComputeCorrespondanceAnalysis_8=Загрузка результатов факторного анализа
20
ComputeCorrespondanceAnalysisDialog_0=Факторный анализ соответствий {0}
21
ComputeCorrespondanceAnalysisDialog_1=Свойства: 
22
ComputeCorrespondanceAnalysisDialog_2=Число строк:
23
CorrespondanceAnalysisEditorInput_0=Собственные значения
24
CorrespondanceAnalysisEditorInput_10=ФАС
25
CorrespondanceAnalysisEditorInput_1=Факт. план
26
CorrespondanceAnalysisEditorInput_26=Масса
27
CorrespondanceAnalysisEditorInput_27=Дист
28
CorrespondanceAnalysisEditorInput_29=Конт
29
CorrespondanceAnalysisEditorInput_2=Гистограмма собственных значений propres
30
CorrespondanceAnalysisEditorInput_30=Cos²
31
CorrespondanceAnalysisEditorInput_3=Результат анализа соответствий не может быть пустым 
32
CorrespondanceAnalysisEditorInput_4=Фактор
33
CorrespondanceAnalysisEditorInput_8=Инф Строчки
34
CorrespondanceAnalysisEditorInput_9=Инф Колонки
1

  
2
ComputeCorrespondanceAnalysisDialog_0 = Факторный анализ соответствий {0}
3

  
4
ComputeCorrespondanceAnalysis_0       = Расчет факторного анализа соответствий
5
ComputeCorrespondanceAnalysis_1       = ** Невозможно провести факторный анализ соответствий при наличии менее 4-х колонок в таблице
6
ComputeCorrespondanceAnalysis_13      = ** Невозможно провести факторный анализ соответствий при наличии менее 4-х колонок
7
ComputeCorrespondanceAnalysis_14      = Открытие результатов факторного анализа соответствий
8
ComputeCorrespondanceAnalysis_15      = Создание окна ФАС
9
ComputeCorrespondanceAnalysis_16      = Создание словарной таблицы для ФАС
10
ComputeCorrespondanceAnalysis_17      = Расчет ФАС
11
ComputeCorrespondanceAnalysis_3       = ** Ошибка
12
ComputeCorrespondanceAnalysis_4       = ** Невозможно провести факторный анализ соответствий при наличии только 
13
ComputeCorrespondanceAnalysis_6       = ОК
14
ComputeCorrespondanceAnalysis_8       = Загрузка результатов факторного анализа
15

  
16
CorrespondanceAnalysisEditorInput_0  = Собственные значения
17
CorrespondanceAnalysisEditorInput_1  = Факт. план
18
CorrespondanceAnalysisEditorInput_10 = ФАС
19
CorrespondanceAnalysisEditorInput_11 = ∑
20
CorrespondanceAnalysisEditorInput_2  = Гистограмма собственных значений
21
CorrespondanceAnalysisEditorInput_3  = Результат анализа соответствий не может быть пустым 
22
CorrespondanceAnalysisEditorInput_4  = Фактор
23
CorrespondanceAnalysisEditorInput_5  = Собственные значения
24
CorrespondanceAnalysisEditorInput_8  = Инф Строчки
25
CorrespondanceAnalysisEditorInput_9  = Инф Колонки
26

  
27
PreferencePage_0 = Формат колонки Качество
28
PreferencePage_1 = Формат колонки Вклад
29
PreferencePage_3 = Показать колонки в графике факторного плана
30
PreferencePage_4 = Показать строчки в графике факторного плана
31
PreferencePage_5 = Формат колонки Масса
32
PreferencePage_6 = Формат колонки Дистанция
33
PreferencePage_7 = Формат колонки Cos²
34
PreferencePage_8 = Формат колонки Coord
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/CAUIMessages.java (revision 238)
7 7

  
8 8
	private static final String BUNDLE_NAME = "org.txm.ca.rcp.messages.messages"; //$NON-NLS-1$
9 9

  
10

  
11
	public static String SWTChartsComponentProvider_CA_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL;
12
	public static String SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_LABEL;
13
	public static String SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP;
14
	public static String SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_LABEL;
15
	public static String SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP;
16

  
17

  
18
	public static String CAPreferencePage_0;
19
	public static String CAPreferencePage_1;
20
	public static String CAPreferencePage_2;
21
	public static String CAPreferencePage_3;
22
	public static String CAPreferencePage_4;
23
	public static String CAPreferencePage_5;
24
	public static String CAPreferencePage_6;
25
	public static String CAPreferencePage_7;
26
	public static String CAPreferencePage_8;
10
	public static String PreferencePage_0;
11
	public static String PreferencePage_1;
12
	public static String PreferencePage_2;
13
	public static String PreferencePage_3;
14
	public static String PreferencePage_4;
15
	public static String PreferencePage_5;
16
	public static String PreferencePage_6;
17
	public static String PreferencePage_7;
18
	public static String PreferencePage_8;
27 19
	
28
	public static String ComputeCorrespondanceAnalysisDialog_0;
29
	public static String ComputeCorrespondanceAnalysisDialog_1;
30
	public static String ComputeCorrespondanceAnalysisDialog_2;
31

  
20
	public static String CHART_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL;
21
	public static String CHART_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP;
22
	public static String CHART_TOOLBAR_BUTTON_SHOW_HIDE_POINT_SHAPES;
23
	public static String CHART_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP;
24
	
32 25
	public static String ComputeCorrespondanceAnalysis_0;
33
	public static String ComputeCorrespondanceAnalysis_1;
34 26
	public static String ComputeCorrespondanceAnalysis_13;
35 27
	public static String ComputeCorrespondanceAnalysis_14;
36 28
	public static String ComputeCorrespondanceAnalysis_15;
37 29
	public static String ComputeCorrespondanceAnalysis_16;
38 30
	public static String ComputeCorrespondanceAnalysis_17;
39
	public static String ComputeCorrespondanceAnalysis_2;
31
	public static String ComputeCorrespondanceAnalysis_1;
40 32
	public static String ComputeCorrespondanceAnalysis_3;
41 33
	public static String ComputeCorrespondanceAnalysis_4;
42 34
	public static String ComputeCorrespondanceAnalysis_6;
43 35
	public static String ComputeCorrespondanceAnalysis_8;
44

  
36
	
37
	public static String ComputeCorrespondanceAnalysisDialog_0;
38
	
45 39
	public static String CorrespondanceAnalysisEditorInput_0;
46 40
	public static String CorrespondanceAnalysisEditorInput_10;
47 41
	public static String CorrespondanceAnalysisEditorInput_11;
48 42
	public static String CorrespondanceAnalysisEditorInput_1;
49 43
	public static String CorrespondanceAnalysisEditorInput_2;
50 44
	public static String CorrespondanceAnalysisEditorInput_3;
51
	public static String CorrespondanceAnalysisEditorInput_44;
52
	public static String CorrespondanceAnalysisEditorInput_46;
53
	public static String CorrespondanceAnalysisEditorInput_47;
54
	public static String CorrespondanceAnalysisEditorInput_48;
55
	public static String CorrespondanceAnalysisEditorInput_49;
56 45
	public static String CorrespondanceAnalysisEditorInput_4;
57
	public static String CorrespondanceAnalysisEditorInput_50;
58
	public static String CorrespondanceAnalysisEditorInput_52;
59
	public static String CorrespondanceAnalysisEditorInput_53;
60
	public static String CorrespondanceAnalysisEditorInput_55;
61
	public static String CorrespondanceAnalysisEditorInput_56;
62
	public static String CorrespondanceAnalysisEditorInput_57;
63 46
	public static String CorrespondanceAnalysisEditorInput_5;
64 47
	public static String CorrespondanceAnalysisEditorInput_8;
65 48
	public static String CorrespondanceAnalysisEditorInput_9;
66

  
67 49
	
68
	public static String SHOW_POINT_SHAPES;
69
	public static String SHOW_HIDE_POINT_SHAPES;
50
	public static String PreferencePage_CHART_SHOW_POINT_SHAPES;
70 51
	
71 52
	
72 53
	static {
......
75 56
	}
76 57

  
77 58
	private CAUIMessages() {
59
		//no instantiation
78 60
	}
79 61
}
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/messages_fr.properties (revision 238)
1
CAPreferencePage_0=Format de la colonne Qualité
2
CAPreferencePage_1=Format de la colonne Contribution
3
CAPreferencePage_3=Afficher les colonnes
4
CAPreferencePage_4=Afficher les lignes
5
CAPreferencePage_5=Format de la colonne Masse
6
CAPreferencePage_6=Format de la colonne Distance
7
CAPreferencePage_7=Format de la colonne Cos²
8
CAPreferencePage_8=Format de la colonne Coord
9
ComputeCorrespondanceAnalysis_0=Calcul de l'analyse factorielle des correspondances
10
ComputeCorrespondanceAnalysis_13=** Impossible de calculer l'analyse factorielle des correspondances avec moins de 4 colonnes 
11
ComputeCorrespondanceAnalysis_14=Ouverture des résultats de l'analyse factorielle des correspondances
12
ComputeCorrespondanceAnalysis_15=Création de la fen\u00EAtre de l'AFC
13
ComputeCorrespondanceAnalysis_16=Création de la table lexicale pour l'AFC
14
ComputeCorrespondanceAnalysis_17=Calcul de l'AFC
15
ComputeCorrespondanceAnalysis_1=** Impossible de calculer l'analyse factorielle des correspondances avec moins de 4 colonnes dans la table
16
ComputeCorrespondanceAnalysis_3=** Erreur
17
ComputeCorrespondanceAnalysis_4=** Impossible de calculer l''analyse factorielle avec seulement {0} parties (minimum=4).
18
ComputeCorrespondanceAnalysis_6=OK
19
ComputeCorrespondanceAnalysis_8=Chargement des résultats de l'analyse factorielle
20
ComputeCorrespondanceAnalysisDialog_0=Analyse factorielle des correspondances avec {0}
21
ComputeCorrespondanceAnalysisDialog_1=Propriétés \: 
22
ComputeCorrespondanceAnalysisDialog_2=Nombre de lignes \: 
23
CorrespondanceAnalysisEditorInput_0=Valeurs propres
24
CorrespondanceAnalysisEditorInput_10=AFC
25
CorrespondanceAnalysisEditorInput_1=Plan fact.
26
CorrespondanceAnalysisEditorInput_2=Histogramme des valeurs propres
27
CorrespondanceAnalysisEditorInput_3=Le résultat de l'analyse des correspondances ne peut être nul 
28
CorrespondanceAnalysisEditorInput_44=Colonnes
29
CorrespondanceAnalysisEditorInput_46=Q12
30
CorrespondanceAnalysisEditorInput_47=Q13
31
CorrespondanceAnalysisEditorInput_48=Q23
32
CorrespondanceAnalysisEditorInput_49=Mass
33
CorrespondanceAnalysisEditorInput_4=#
34
CorrespondanceAnalysisEditorInput_50=Dist
35
CorrespondanceAnalysisEditorInput_52=Cont
36
CorrespondanceAnalysisEditorInput_53=Cos²
37
CorrespondanceAnalysisEditorInput_55=c1
38
CorrespondanceAnalysisEditorInput_56=c2
39
CorrespondanceAnalysisEditorInput_57=c3
40
CorrespondanceAnalysisEditorInput_5=Valeurs propres
41
CorrespondanceAnalysisEditorInput_8=Info lignes
42
CorrespondanceAnalysisEditorInput_9=Info colonnes
43
SHOW_HIDE_POINT_SHAPES=Afficher/masquer le tracé des points
44
SHOW_POINT_SHAPES=Afficher le tracé des points
45
SWTChartsComponentProvider_CA_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL=Axes : 
46
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_LABEL=Afficher les colonnes
47
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP=Afficher/masquer les points-colonnes
48
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_LABEL=Afficher les lignes
49
SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP=Afficher/masquer les points-lignes
1

  
2
CHART_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL = Axes : 
3

  
4
CHART_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP = Afficher/masquer les points-colonnes
5

  
6
CHART_TOOLBAR_BUTTON_SHOW_HIDE_POINT_SHAPES = Afficher/masquer le tracé des points
7

  
8
CHART_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP = Afficher/masquer les points-lignes
9

  
10
ComputeCorrespondanceAnalysisDialog_0 = Analyse factorielle des correspondances avec {0}
11

  
12
ComputeCorrespondanceAnalysis_0 = Calcul de l'analyse factorielle des correspondances sur {0} avec la propriété {1}
13

  
14
ComputeCorrespondanceAnalysis_1 = ** Impossible de calculer l'analyse factorielle des correspondances avec moins de 4 colonnes dans la table
15

  
16
ComputeCorrespondanceAnalysis_13 = ** Impossible de calculer l'analyse factorielle des correspondances avec moins de 4 colonnes 
17

  
18
ComputeCorrespondanceAnalysis_14 = Ouverture des résultats de l'analyse factorielle des correspondances
19

  
20
ComputeCorrespondanceAnalysis_15 = Création de la fenêtre de l'AFC
21

  
22
ComputeCorrespondanceAnalysis_16 = Création de la table lexicale pour l'AFC
23

  
24
ComputeCorrespondanceAnalysis_17 = Calcul de l'AFC
25

  
26
ComputeCorrespondanceAnalysis_3 = ** Erreur
27

  
28
ComputeCorrespondanceAnalysis_4 = ** Impossible de calculer l'analyse factorielle avec seulement {0} parties (minimum=4).
29

  
30
ComputeCorrespondanceAnalysis_6 = OK
31

  
32
ComputeCorrespondanceAnalysis_8 = Chargement des résultats de l'analyse factorielle
33

  
34
CorrespondanceAnalysisEditorInput_0 = Valeurs propres
35

  
36
CorrespondanceAnalysisEditorInput_1 = Plan fact.
37

  
38
CorrespondanceAnalysisEditorInput_10 = AFC
39

  
40
CorrespondanceAnalysisEditorInput_11 = ∑
41

  
42
CorrespondanceAnalysisEditorInput_2 = Histogramme des valeurs propres
43

  
44
CorrespondanceAnalysisEditorInput_3 = Le résultat de l'analyse des correspondances ne peut être nul
45

  
46
CorrespondanceAnalysisEditorInput_4 = #
47

  
48
CorrespondanceAnalysisEditorInput_5 = Valeur propre
49

  
50
CorrespondanceAnalysisEditorInput_8 = Info lignes
51

  
52
CorrespondanceAnalysisEditorInput_9 = Info colonnes
53

  
54
PreferencePage_0 = Format de la colonne Qualité
55

  
56
PreferencePage_1 = Format de la colonne Contribution
57

  
58
PreferencePage_2 = Table lexicale (si la commande est appelée depuis une partition)
59

  
60
PreferencePage_3 = Afficher les colonnes
61

  
62
PreferencePage_4 = Afficher les lignes
63

  
64
PreferencePage_5 = Format de la colonne Masse
65

  
66
PreferencePage_6 = Format de la colonne Distance
67

  
68
PreferencePage_7 = Format de la colonne Cos²
69

  
70
PreferencePage_8 = Format de la colonne Coord
71

  
72
PreferencePage_CHART_SHOW_POINT_SHAPES = Afficher le tracé des points
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAEditorInput.java (revision 238)
383 383

  
384 384
			@Override
385 385
			public String[] getColumnTitles() {
386
//				colnames = new ArrayList<String>();
387
//				colnames.add(Messages.ComputeClassification_5);
388
//				colnames.add(" "); //$NON-NLS-1$
389
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_46);
390
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_47);
391
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_25);
392
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_26);
393
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_27);
394
//				for (int c = 0; c < 3; c++)// seulement les 3 premiers axes
395
//				{
396
//					colnames.add(" "); //$NON-NLS-1$
397
//					colnames.add(Messages.CorrespondanceAnalysisEditorInput_29
398
//							+ (c + 1));
399
//					colnames.add(Messages.CorrespondanceAnalysisEditorInput_30
400
//							+ (c + 1));
401
//				}
402
//				colnames.add(" "); //$NON-NLS-1$
403
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_32);
404
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_33);
405
//				colnames.add(Messages.CorrespondanceAnalysisEditorInput_34);
406
//				colnames.add(""); //$NON-NLS-1$
407
//				String[] titles = colnames.toArray(new String[] {});
408
//				return titles;
409 386
				return ca.getColInfosTitles();
410
				// new String[]{"Rows"," ","Quality","Mass", "Dist", "Inertia"};
411 387
			}
412 388

  
413 389
			@Override
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/SingularValuesEditor.java (revision 238)
168 168
				@Override
169 169
				public void widgetSelected(SelectionEvent e)
170 170
				{
171
					StatusLine.setMessage(Messages.IndexEditor_36);
171
					StatusLine.setMessage(Messages.SORT_COLUMN);
172 172
					tableSorter.setColumn(index);
173 173
					int dir = viewer.getTable().getSortDirection();
174 174
					if (viewer.getTable().getSortColumn() == column.getColumn()) {
......
179 179
					viewer.getTable().setSortDirection(dir);
180 180
					viewer.getTable().setSortColumn(column.getColumn());
181 181
					viewer.refresh();
182
					StatusLine.setMessage(Messages.IndexEditor_37);
182
					StatusLine.setMessage(Messages.SORT_DONE);
183 183
				}
184 184
			});
185 185
		}
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAFactorialMapChartEditor.java (revision 238)
55 55
		final ToolItem showColumns = new ToolItem(this.toolBar, SWT.CHECK);
56 56
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
57 57
		//showColumns.setText(SWTComponentsProviderMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_LABEL);
58
		showColumns.setToolTipText(CAUIMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP);
58
		showColumns.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP);
59 59
		showColumns.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_columns.png"));
60 60
		showColumns.setSelection(TXMPreferences.getBoolean(CAPreferences.PREFERENCES_NODE, this.getResultData(), CAPreferences.SHOW_INDIVIDUALS));
61 61

  
......
63 63
		final ToolItem showRows = new ToolItem(this.toolBar, SWT.CHECK);
64 64
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
65 65
		//this.showRows.setText(SWTComponentsProviderMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_LABEL);
66
		showRows.setToolTipText(CAUIMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP);
66
		showRows.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP);
67 67
		showRows.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_rows.png"));
68 68
		showRows.setSelection(TXMPreferences.getBoolean(CAPreferences.PREFERENCES_NODE, this.getResultData(), CAPreferences.SHOW_VARIABLES));
69 69

  
......
71 71
		final ToolItem showPointShapes = new ToolItem(this.toolBar, SWT.CHECK);
72 72
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
73 73
		//showPointShapes.setText(CAUIMessages.SHOW_HIDE_POINT_SHAPES);
74
		showPointShapes.setToolTipText(CAUIMessages.SHOW_HIDE_POINT_SHAPES);
74
		showPointShapes.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_HIDE_POINT_SHAPES);
75 75
		showPointShapes.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_point_shapes.png"));
76 76
		showPointShapes.setSelection(TXMPreferences.getBoolean(CAPreferences.PREFERENCES_NODE, this.getResultData(), CAPreferences.SHOW_POINT_SHAPES));
77 77
		
......
81 81
		// Factors plane selection
82 82
		ToolItem itemSeparator = new ToolItem(this.toolBar, SWT.SEPARATOR);
83 83
		CLabel factorsLabel = new CLabel(this.toolBar, SWT.CENTER);
84
		factorsLabel.setText(CAUIMessages.SWTChartsComponentProvider_CA_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL);
84
		factorsLabel.setText(CAUIMessages.CHART_TOOLBAR_AXES_SELECTION_COMBO_BOX_LABEL);
85 85
		factorsLabel.pack();
86 86
		itemSeparator.setWidth(factorsLabel.getBounds().width);
87 87
	    itemSeparator.setControl(factorsLabel);
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/ColRowInfosLabelProvider.java (revision 238)
78 78
		super();
79 79
		this.names = names;
80 80
		for (int i = 0; i < names.length; i++) {
81
			if (names[i].startsWith(CACoreMessages.ColumnLabel_26)) {
81
			if (names[i].startsWith(CACoreMessages.ColumnLabel_MASS)) {
82 82
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.MASS_DISPLAY_FORMAT);
83 83
			if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
84 84
					masspattern = new DecimalFormat(pattern);
......
86 86
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.CHI_DISPLAY_FORMAT);
87 87
				if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
88 88
					chipattern = new DecimalFormat(pattern);
89
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_27)) {
89
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_DIST)) {
90 90
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.DIST_DISPLAY_FORMAT);
91 91
				if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
92 92
					distpattern = new DecimalFormat(pattern);
93
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_30)) {
93
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_COS2)) {
94 94
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.COS2_DISPLAY_FORMAT);
95 95
				if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
96 96
					cos2pattern = new DecimalFormat(pattern);
......
99 99
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.COORD_DISPLAY_FORMAT);
100 100
				if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
101 101
					coordpattern = new DecimalFormat(pattern);
102
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_29)) {
102
			} else if (names[i].startsWith(CACoreMessages.ColumnLabel_CONT)) {
103 103
				String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.CONTRIB_DISPLAY_FORMAT);
104 104
				if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$
105 105
					contribpattern = new DecimalFormat(pattern);
......
133 133
			DecimalFormat f;
134 134
			String name = names[columnIndex];
135 135
			f = new DecimalFormat("###.00"); //$NON-NLS-1$
136
			if (name.startsWith(CACoreMessages.ColumnLabel_26)) {
136
			if (name.startsWith(CACoreMessages.ColumnLabel_MASS)) {
137 137
				f = masspattern;
138 138
			} else if (name.startsWith(Messages.ColRowInfosLabelProvider_9)) {
139 139
				f = chipattern;
140
			} else if (name.startsWith(CACoreMessages.ColumnLabel_27)) {
140
			} else if (name.startsWith(CACoreMessages.ColumnLabel_DIST)) {
141 141
				f = distpattern;
142
			} else if (name.startsWith(CACoreMessages.ColumnLabel_30)) {
142
			} else if (name.startsWith(CACoreMessages.ColumnLabel_COS2)) {
143 143
				f = cos2pattern;
144 144
			} else if (name.startsWith("c") && name.length() == 2) //$NON-NLS-1$
145 145
			{
146 146
				f = coordpattern;
147
			} else if (name.startsWith(CACoreMessages.ColumnLabel_29)) {
147
			} else if (name.startsWith(CACoreMessages.ColumnLabel_CONT)) {
148 148
				f = contribpattern;
149 149
			} else if (name.startsWith(Messages.ColRowInfosLabelProvider_19)
150 150
					&& name.length() == 3) {
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/ColsRowsInfosEditor.java (revision 238)
156 156
			column.getColumn().addSelectionListener(new SelectionAdapter() {
157 157
				@Override
158 158
				public void widgetSelected(SelectionEvent e) {
159
					StatusLine.setMessage(Messages.IndexEditor_36 );
159
					StatusLine.setMessage(Messages.SORT_COLUMN );
160 160
					tableSorter.setColumn(index);
161 161
					int dir = viewer.getTable().getSortDirection();
162 162
					if (viewer.getTable().getSortColumn() == column.getColumn()) {
......
167 167
					viewer.getTable().setSortDirection(dir);
168 168
					viewer.getTable().setSortColumn(column.getColumn());
169 169
					viewer.refresh();
170
					StatusLine.setMessage(Messages.IndexEditor_37);
170
					StatusLine.setMessage(Messages.SORT_DONE);
171 171
				}
172 172
			});
173 173
		}
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/handlers/ComputeCA.java (revision 238)
27 27
//
28 28
package org.txm.ca.rcp.handlers;
29 29

  
30
import org.eclipse.core.commands.AbstractHandler;
31 30
import org.eclipse.core.commands.ExecutionEvent;
32 31
import org.eclipse.core.commands.ExecutionException;
33 32
import org.eclipse.core.runtime.IProgressMonitor;
......
41 40
import org.eclipse.ui.IWorkbenchPage;
42 41
import org.eclipse.ui.IWorkbenchWindow;
43 42
import org.eclipse.ui.handlers.HandlerUtil;
44
import org.txm.Toolbox;
45 43
import org.txm.ca.core.functions.CA;
46 44
import org.txm.ca.core.functions.ICAComputable;
47 45
import org.txm.ca.core.preferences.CAPreferences;
48 46
import org.txm.ca.rcp.editors.CAEditorInput;
49 47
import org.txm.ca.rcp.messages.CAUIMessages;
50 48
import org.txm.core.preferences.TXMPreferences;
49
import org.txm.lexicaltable.core.statsengine.data.LexicalTable;
50
import org.txm.lexicaltable.rcp.editors.LexicalTableDialog;
51
import org.txm.rcp.handlers.BaseAbstractHandler;
51 52
import org.txm.rcpapplication.JobsTimer;
52 53
import org.txm.rcpapplication.Messages;
53 54
import org.txm.rcpapplication.StatusLine;
54
import org.txm.rcpapplication.actions.LexicalTableDialog;
55 55
import org.txm.rcpapplication.utils.JobHandler;
56 56
import org.txm.rcpapplication.views.corpora.CorporaView;
57 57
import org.txm.searchengine.cqp.corpus.Corpus;
58 58
import org.txm.searchengine.cqp.corpus.Partition;
59 59
import org.txm.searchengine.cqp.corpus.Property;
60
import org.txm.stat.data.LexicalTable;
61 60
import org.txm.utils.logger.MessageBox;
62 61

  
63 62
/**
......
68 67
 * @author mdecorde
69 68
 * @author sjacquot
70 69
 */
71
public class ComputeCA extends AbstractHandler {
70
public class ComputeCA extends BaseAbstractHandler {
72 71

  
73
	/** The window. */
74
	private IWorkbenchWindow window;
75

  
76
	/** The selection. */
77
	private IStructuredSelection selection;
78

  
79
	/** The ca. */
72
	/** The CA. */
80 73
	private CA ca;
81 74

  
82 75
	/** The property. */
......
90 83

  
91 84
	/** The partition. */
92 85
	private Partition partition;
93
	private Corpus corpus;
94 86

  
95
	/** The lexicaltable. */
87
	/** The Lexical Table. */
96 88
	private LexicalTable lexicaltable;
97 89

  
98 90
	
......
110 102
	@Override
111 103
	public Object execute(ExecutionEvent event) throws ExecutionException {
112 104
		
113
		if (!Toolbox.isStatEngineInitialized()) {
114
			System.out.println(CAUIMessages.ComputeCorrespondanceAnalysis_2);
105
		if (!this.checkStatsEngine()) {
115 106
			return null;
116 107
		}
117 108
		
118
		window = HandlerUtil.getActiveWorkbenchWindow(event);
119
		selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
109
		final IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
110
		final IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
120 111
		int code = 0;
112
		// From partition
121 113
		if (selection.getFirstElement() instanceof Partition) {
122 114
			partition = (Partition) selection.getFirstElement();
123
			corpus = partition.getCorpus();
124 115
			//warning to few parts
125 116
			if (partition.getNPart() < 4) {
126 117
				MessageDialog d = new MessageDialog(
......
144 135
				fmin = d.getFmin();
145 136
				vmax = d.getMaxLines();
146 137
			}
147
		} else if (selection.getFirstElement() instanceof LexicalTable) {
138
		}
139
		// From Lexical Table
140
		else if (selection.getFirstElement() instanceof LexicalTable) {
148 141
			lexicaltable = (LexicalTable) selection.getFirstElement();
149 142
			property = lexicaltable.getProperty();
150 143
			partition = lexicaltable.getPartition();
151
			if (partition != null)
152
				corpus = partition.getCorpus();
153 144
			if (lexicaltable.getNColumns() < 4) {
154 145
				MessageBox.error(CAUIMessages.ComputeCorrespondanceAnalysis_13);
155 146
				return null;
......
159 150
				return null;
160 151
			}
161 152
			code = Window.OK;
162
		} else  if (selection.getFirstElement() instanceof ICAComputable) {
163
			corpus = ((ICAComputable) selection.getFirstElement()).getCorpus();
153
		}
154
		// From others 
155
		else if (selection.getFirstElement() instanceof ICAComputable) {
164 156
			partition = ((ICAComputable) selection.getFirstElement()).getPartition();
165 157
		}
166 158

  
tmp/org.txm.ca.rcp/OSGI-INF/l10n/bundle.properties (revision 238)
1 1
Bundle-Name=CA
2 2
command.name=CA
3
command.tooltip=CA
3
command.tooltip=Compute Correspondence Analysis
4 4
editor.name=CA
5 5
page.name=CA

Also available in: Unified diff