Révision 1749

tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/editors/ChartEditor.java (revision 1749)
486 486
	 * @param swingComponent
487 487
	 */
488 488
	protected void initializeAWTDelegationListeners()	{
489
		this.getChartComposite().getChartComponent().setChartEditor(this);
490
		SWTChartsComponentsProvider.initializeAWTDelegationListeners(this, (JComponent) this.getEditorInput().getChartContainer());
489
		try {
490
			this.getChartComposite().getChartComponent().setChartEditor(this);
491
			SWTChartsComponentsProvider.initializeAWTDelegationListeners(this, (JComponent) this.getEditorInput().getChartContainer());
492
		}
493
		catch (Exception e) {
494
			Log.severe("ChartEditor.initializeAWTDelegationListeners(): can not initialize events delegation.");
495
		}
491 496
	}
492 497

  
493 498
	/**
tmp/org.txm.chartsengine.raster.rcp/src/org/txm/chartsengine/raster/rcp/swt/RasterComposite.java (revision 1749)
86 86
	 * @param file the file to load
87 87
	 */
88 88
	public void loadRasterFile(File file) {
89
		
89 90
		Log.info(TXMCoreMessages.bind("Loading Raster image from file: {0}...", file));
90 91
		
91 92
		this.file = file;
tmp/org.txm.chartsengine.r.core/src/org/txm/stat/engine/r/RWorkspaceRenderer.java (revision 1749)
36 36
import org.rosuda.REngine.REXP;
37 37
import org.rosuda.REngine.REXPMismatchException;
38 38
import org.txm.chartsengine.core.ChartsEngine;
39
import org.txm.core.messages.TXMCoreMessages;
39 40
import org.txm.statsengine.core.StatException;
40 41
import org.txm.statsengine.r.core.RWorkspace;
41 42
import org.txm.statsengine.r.core.exceptions.RWorkspaceException;
......
102 103
	{
103 104
		try {
104 105
			file.createNewFile();
105
		} catch (IOException e1) {
106
		}
107
		catch (IOException e1) {
106 108
			org.txm.utils.logger.Log.printStackTrace(e1);
107 109
			return;
108 110
		}
109 111
		if (!file.canWrite()) {
110
			Log.severe("Error: "+ file +" cannot be written "); //$NON-NLS-1$ //$NON-NLS-2$
112
			Log.severe(TXMCoreMessages.bind("** Error: can not write in file {0}.", file));
111 113
		}
112 114
		String devicename = device.getName();
113 115

  
114 116
		String name;
115 117
		Log.info(RCoreMessages.bind(RCoreMessages.info_savingChartToFile, file.getAbsolutePath()));
116
		if (OSDetector.isFamilyWindows()) { //$NON-NLS-1$ //$NON-NLS-2$
118
		if (OSDetector.isFamilyWindows()) {
117 119
			try {
118 120
				name = StringEscapeUtils.escapeJava(file.getCanonicalPath());
119
			} catch (IOException e) {
121
			}
122
			catch (IOException e) {
120 123
				throw new StatException(e);
121 124
			}
122
		} else {
125
		}
126
		else {
123 127
			name = file.getAbsolutePath();
124 128
		}
125 129

  

Formats disponibles : Unified diff