Révision 3870

TXM/trunk/bundles/org.txm.chartsengine.raster.rcp/src/org/txm/chartsengine/raster/rcp/swt/RasterComposite.java (revision 3870)
12 12
import org.eclipse.swt.widgets.Composite;
13 13
import org.eclipse.swt.widgets.Display;
14 14
import org.eclipse.swt.widgets.Label;
15
import org.txm.chartsengine.raster.rcp.Messages;
15 16
import org.txm.chartsengine.rcp.IChartComponent;
16 17
import org.txm.chartsengine.rcp.editors.ChartEditor;
17 18
import org.txm.chartsengine.rcp.events.EventCallBackHandler;
......
124 125
		if (chart instanceof File) {
125 126
			this.loadRasterFile((File) chart);
126 127
		} else {
127
			Log.warning("RasterComposite can't load a chart which is not a file: "+chart);
128
			Log.warning(Messages.CantLoadAChartWhichIsNotAFile+chart);
128 129
		}
129 130
	}
130 131
	
......
156 157
	 */
157 158
	public void loadRasterFile(File file) {
158 159
		
159
		Log.info(TXMCoreMessages.bind("Loading raster image from file: {0}...", file));
160
		Log.info(TXMCoreMessages.bind(Messages.LoadingRasterImageFromFileP0, file));
160 161
		
161 162
		this.file = file;
162 163
		if (this.image != null) {
......
178 179
	@Override
179 180
	public void copyChartViewToClipboard() {
180 181
		// TODO Auto-generated method stub
181
		System.err.println("RasterComposite.copyChartViewToClipboard(): not implemented.");
182
		System.err.println("RasterComposite.copyChartViewToClipboard(): not implemented."); //$NON-NLS-1$
182 183
	}
183 184
	
184 185
	
......
202 203
	@Override
203 204
	public void clearChartItemsSelection() {
204 205
		// TODO Auto-generated method stub
205
		System.err.println("RasterComposite.clearChartItemsSelection(): not implemented.");
206
		System.err.println("RasterComposite.clearChartItemsSelection(): not implemented."); //$NON-NLS-1$
206 207
	}
207 208
	
208 209
	@Override
209 210
	public File exportView(File file, String fileFormat) {
210
		System.out.println("RasterComposite.exportView(): not yet implemented.");
211
		System.out.println("RasterComposite.exportView(): not yet implemented."); //$NON-NLS-1$
211 212
		return null;
212 213
	}
213 214
	
TXM/trunk/bundles/org.txm.chartsengine.raster.rcp/src/org/txm/chartsengine/raster/rcp/messages.properties (revision 3870)
1
CantLoadAChartWhichIsNotAFile=RasterComposite can't load a chart which is not a file: 
2
LoadingRasterImageFromFileP0=Loading raster image from file: {0}...
0 3

  
TXM/trunk/bundles/org.txm.chartsengine.raster.rcp/src/org/txm/chartsengine/raster/rcp/Messages.java (revision 3870)
1
package org.txm.chartsengine.raster.rcp;
2

  
3
import org.eclipse.osgi.util.NLS;
4

  
5
public class Messages extends NLS {
6
	private static final String BUNDLE_NAME = Messages.class.getPackageName() + ".messages"; //$NON-NLS-1$
7
	public static String CantLoadAChartWhichIsNotAFile;
8
	public static String LoadingRasterImageFromFileP0;
9
	static {
10
		// initialize resource bundle
11
		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
12
	}
13

  
14
	private Messages() {
15
	}
16
}
0 17

  

Formats disponibles : Unified diff