Révision 918

tmp/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 918)
1139 1139
	public static void deleteAllResultsNodes()	{
1140 1140
		ArrayList<String> resultsNodesQualifier = getAllResultsNodesQualifiers();
1141 1141
		for (int i = 0; i < resultsNodesQualifier.size(); i++) {
1142
			TXMResult.getResult(resultsNodesQualifier.get(i)).isPersistable();
1143 1142
			delete(scope.getNode(resultsNodesQualifier.get(i)));
1144 1143
		}
1145 1144
	}
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 918)
251 251
	}
252 252
	
253 253
	
254
//	/**
255
//	 * Gets an installed charts engine according to its class type.
256
//	 * @param type
257
//	 * @return the installed charts engine according to its class type if it exists otherwise null
258
//	 */
259
//	@Deprecated
260
//	public static ChartsEngine getChartsEngine(Class type)	{
261
//		ChartsEngine chartsEngine = null;
262
//		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
263
//			if(ChartsEngine.chartsEngines.get(i).getClass().equals(type))	{
264
//				chartsEngine = ChartsEngine.chartsEngines.get(i);
265
//				break;
266
//			}
267
//		}
268
//		return chartsEngine;
269
//	}
254
	/**
255
	 * Gets an installed charts engine according to its class type.
256
	 * @param type
257
	 * @return the installed charts engine according to its class type if it exists otherwise null
258
	 */
259
	@Deprecated
260
	public static ChartsEngine getChartsEngine(Class type)	{
261
		ChartsEngine chartsEngine = null;
262
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
263
			if(ChartsEngine.chartsEngines.get(i).getClass().equals(type))	{
264
				chartsEngine = ChartsEngine.chartsEngines.get(i);
265
				break;
266
			}
267
		}
268
		return chartsEngine;
269
	}
270 270
	
271 271
	/**
272 272
	 * Gets an installed charts engine that supports the specified output format.
tmp/org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/events/DefaultChartMouseListener.java (revision 918)
243 243
			public void run() {
244 244
				chartComponent.getChartEditor().getComposite().setCurrentContextMenu(a);
245 245
				if(!t.isEmpty() && chartComponent.getChartEditor().getComposite().getMenu() != null
246
						//&& chartComponent.getChartEditor().getComposite().getMenu().getItemCount() > 0
246
						&& chartComponent.getChartEditor().getComposite().getMenu().getItemCount() > 0
247 247
						)	{
248 248

  
249 249
					// FIXME: Debug
tmp/org.txm.chartsengine.jfreechart.rcp/src/org/txm/chartsengine/jfreechart/rcp/handlers/OpenJFCChartPropertiesEditor.java (revision 918)
11 11
import org.txm.chartsengine.jfreechart.core.JFCChartsEngine;
12 12
import org.txm.chartsengine.rcp.SWTChartsComponentsProvider;
13 13
import org.txm.chartsengine.rcp.editors.ChartEditor;
14
import org.txm.utils.OSDetector;
15
import org.txm.utils.logger.Log;
14 16

  
15 17
/**
16
 * Resets the chart view of the active chart editor part.
18
 * Opens the built-in JFC chart properties components.
17 19
 * 
18 20
 * @author sjacquot
19 21
 *
20 22
 */
21 23
public class OpenJFCChartPropertiesEditor extends AbstractHandler {
22 24

  
23
//	static {
24
//		System.out.println("OpenJFCChartPropertiesEditor.enclosing_method() setting System L&F.	");
25
//		try {
26
//			// Set System L&F
27
//			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
28
//		}
29
//		catch(UnsupportedLookAndFeelException e) {
30
//			// handle exception
31
//		}
32
//		catch(ClassNotFoundException e) {
33
//			// handle exception
34
//		}
35
//		catch(InstantiationException e) {
36
//			// handle exception
37
//		}
38
//		catch(IllegalAccessException e) {
39
//			// handle exception
40
//		}
41
//	}
25
	
26
	// FIXME: warning, commented because it crashes TXM on Linux
27
	static {
28
		if(!OSDetector.isFamilyUnix())	{
29
			Log.finest("OpenJFCChartPropertiesEditor.enclosing_method() setting System L&F.	");
30
			try {
31
				// Set System L&F
32
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
33
			}
34
			catch(UnsupportedLookAndFeelException e) {
35
				// handle exception
36
			}
37
			catch(ClassNotFoundException e) {
38
				// handle exception
39
			}
40
			catch(InstantiationException e) {
41
				// handle exception
42
			}
43
			catch(IllegalAccessException e) {
44
				// handle exception
45
			}
46
		}
47
	}
42 48

  
43 49
	@Override
44 50
	public Object execute(ExecutionEvent event) throws ExecutionException {
......
62 68
			});
63 69
		}
64 70
		else	{
65
			System.err.println("OpenJFCChartPropertiesEditor.execute(): Can not open chart properties interface for the current chart engine."); //$NON-NLS-1$
71
			Log.severe("OpenJFCChartPropertiesEditor.execute(): Can not open chart properties interface for the current chart engine."); //$NON-NLS-1$
66 72
		}
67 73

  
68 74
		return null;
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/RWorkspace.java (revision 918)
1408 1408
	 * @throws RException the r exception
1409 1409
	 * @throws REXPMismatchException the rEXP mismatch exception
1410 1410
	 */
1411
	public REXP safeEval(String expr) throws RserveException, RException,
1411
	public synchronized REXP safeEval(String expr) throws RserveException, RException,
1412 1412
	REXPMismatchException {
1413 1413
		if (logging && inputLogger != null ) inputLogger.printMessage(expr); //$NON-NLS-1$
1414 1414
		lastSafeevalExpr = expr;

Formats disponibles : Unified diff