Révision 1049

tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/adapters/CAAdapterFactory.java (revision 1049)
21 21
	
22 22
	public static final ImageDescriptor ICON =
23 23
			AbstractUIPlugin.imageDescriptorFromPlugin(FrameworkUtil.getBundle(CAAdapterFactory.class).getSymbolicName(),
24
					"platform:/plugin/"+ FrameworkUtil.getBundle(CAAdapterFactory.class).getSymbolicName() + "/icons/ca.png"); //$NON-NLS-1$
24
					"platform:/plugin/"+ FrameworkUtil.getBundle(CAAdapterFactory.class).getSymbolicName() + "/icons/ca.png"); //$NON-NLS-1$ //$NON-NLS-2$
25 25
	
26 26
	/**
27 27
	 * Gets the adapter.
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/messages.properties (revision 1049)
31 31
CorrespondanceAnalysisEditorInput_5  = Eigenvalue
32 32
CorrespondanceAnalysisEditorInput_8  = Rows infos
33 33
CorrespondanceAnalysisEditorInput_9  = Cols infos
34
error_cannot_compute_with=Error: cannot compute CA with 
35
error_cannot_compute_with_selection=Error: cannot compute CA with current selection: 
36
error_opening=Error: cannot open CAEditor with 
34 37

  
35 38
PreferencePage_0                       = Quality column format
36 39
PreferencePage_1                       = Contribution column format
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/messages/CAUIMessages.java (revision 1049)
59 59
	public static String CaEditor_0;
60 60

  
61 61
	
62
	public static String error_cannot_compute_with;
63

  
64
	public static String error_cannot_compute_with_selection;
65

  
66
	public static String error_opening;
67

  
68

  
62 69
	static {
63 70
		Utf8NLS.initializeMessages(BUNDLE_NAME, CAUIMessages.class);
64 71
	}
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAEditor.java (revision 1049)
700 700

  
701 701
	@Override
702 702
	public void refresh() {
703
		System.out.println("ca.refresh() not implemented.");
703
		System.out.println("ca.refresh() not implemented."); //$NON-NLS-1$
704 704
	}
705 705

  
706 706

  
707 707
	@Override
708 708
	public void synchronize() {
709
		System.out.println("ca.synchronize() not implemented.");
709
		System.out.println("ca.synchronize() not implemented."); //$NON-NLS-1$
710 710
	}
711 711

  
712 712
	@Override
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAFactorialMapChartEditor.java (revision 1049)
80 80
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
81 81
		//showColumns.setText(SWTComponentsProviderMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_COLUMS_LABEL);
82 82
		showIndividuals.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_COLUMS_TOOLTIP);
83
		showIndividuals.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_columns.png"));
83
		showIndividuals.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_columns.png")); //$NON-NLS-1$
84 84
		showIndividuals.addSelectionListener(new ComputeSelectionListener(this));
85 85

  
86 86
		// Show/hide rows
......
88 88
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
89 89
		//this.showRows.setText(SWTComponentsProviderMessages.SWTChartsComponentProvider_CA_TOOLBAR_BUTTON_SHOW_ROWS_LABEL);
90 90
		showVariables.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_ROWS_TOOLTIP);
91
		showVariables.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_rows.png"));
91
		showVariables.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_rows.png")); //$NON-NLS-1$
92 92
		showVariables.addSelectionListener(new ComputeSelectionListener(this));
93 93

  
94 94
		
......
97 97
		// FIXME: keep this for offering an option "large icons" with text in buttons ?
98 98
		//showPointShapes.setText(CAUIMessages.SHOW_HIDE_POINT_SHAPES);
99 99
		showPointShapes.setToolTipText(CAUIMessages.CHART_TOOLBAR_BUTTON_SHOW_HIDE_POINT_SHAPES);
100
		showPointShapes.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_point_shapes.png"));
100
		showPointShapes.setImage(IImageKeys.getImage(CAFactorialMapChartEditor.class, "icons/show_point_shapes.png")); //$NON-NLS-1$
101 101
		showPointShapes.addSelectionListener(new ComputeSelectionListener(this));
102 102

  
103 103
		
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/handlers/ComputeCA.java (revision 1049)
82 82
				Partition partition = (Partition) selection;
83 83

  
84 84
				if (partition.getNPart() < 4) { // error to few parts
85
					MessageDialog d = new MessageDialog(window.getShell(), TXMCoreMessages.error_error2, null,
86
							NLS.bind(CAUIMessages.ComputeCorrespondanceAnalysis_4, partition.getNPart()), 0, new String[] { TXMCoreMessages.common_ok}, 0);
85
					MessageDialog d = new MessageDialog(window.getShell(), "", null, //$NON-NLS-1$
86
							NLS.bind(CAUIMessages.ComputeCorrespondanceAnalysis_4, partition.getNPart()), 0, new String[] { ""}, 0); //$NON-NLS-1$
87 87
					d.open();
88 88
					return null;
89 89
				}
......
127 127
				ca = (CA) selection;
128 128
			}
129 129
			else {
130
				Log.severe("Error: cannot compute a CA with current selection: " + selection);
130
				Log.severe(CAUIMessages.error_cannot_compute_with_selection + selection);
131 131
				return null;
132 132
			}
133 133
			// compute the CA
......
146 146
				
147 147
			}
148 148
			catch (Throwable e) {
149
				System.out.println("Error while opening CAEditor with " + ca);
149
				System.out.println(CAUIMessages.error_opening + ca);
150 150
				Log.printStackTrace(e);
151 151
			}
152 152

  
153 153
		}
154 154
		catch (Throwable e) {
155
			Log.severe("Error while computing CA with " + selection);
155
			Log.severe(CAUIMessages.error_cannot_compute_with + selection);
156 156
			Log.printStackTrace(e);
157 157
		}
158 158
		return null;

Formats disponibles : Unified diff