Révision 785

tmp/org.txm.core/src/java/org/txm/core/engines/EnginesManager.java (revision 785)
75 75

  
76 76
		IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(engineExtensionPointId);
77 77

  
78
		Log.finest("Looking for engines contributions with extension point id " + engineExtensionPointId + ".");
79
		Log.finest(contributions.length + " engines found.");
78
		Log.finest("Looking for engines contributions with extension point id " + engineExtensionPointId + "."); //$NON-NLS-1$
79
		Log.finest(contributions.length + " engines found."); //$NON-NLS-1$
80 80
		
81 81
		for (int i = 0; i < contributions.length; i++) {
82 82
			try {
......
88 88
					this.engines.put(e.getName(), e);
89 89
				}
90 90
				else {
91
					System.err.println("Failed to initialize " + e.getName() + " engine.");
91
					Log.severe("Failed to initialize " + e.getName() + " engine.");
92 92
				}
93 93
			} catch(Exception e) {
94 94
				Log.severe("Error: failed to instantiate " + contributions[i].getName() + ".");
......
108 108
		for (Engine engine : this.engines.values()) {
109 109
			
110 110
			String log = "Starting " + engine.getName() + " engine...";
111
			Log.finest(log);
111
			Log.info(log);
112 112
			
113 113
			if (monitor != null) {
114 114
				monitor.subTask(log);
......
131 131
	public boolean stopEngines() {
132 132
		for (Engine engine : this.engines.values()) {
133 133
			
134
			Log.finest("Stopping " + engine.getName() + " engine...");
134
			Log.finest("Stopping " + engine.getName() + " engine..."); //$NON-NLS-1$
135 135
			
136 136
			try {
137 137
				engine.stop();
......
150 150
	 * @return
151 151
	 */
152 152
	public boolean restartEngines() {
153
		Log.finest("Restarting the " + this.engines.size() + " engine(s).");
153
		Log.finest("Restarting " + this.engines.size() + " engine(s)."); //$NON-NLS-1$
154 154
		return stopEngines() && startEngines(null);
155 155
	}
156 156
	
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEnginesManager.java (revision 785)
46 46

  
47 47
	@Override
48 48
	public EngineType getEnginesType() {
49
		// TODO Auto-generated method stub
50
		return null;
49
		return EngineType.CHARTS;
51 50
	}
52 51

  
53 52
}
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 785)
211 211
	 * Creates and stores charts engines from installed extension contributions.
212 212
	 * @param outputFormat
213 213
	 */
214
	@Deprecated
214 215
	public static void createChartsEngines()	{
215 216

  
216 217
		Log.finest("Looking for charts engines contributions with extension point id " + ChartsEngine.EXTENSION_POINT_ID + ".");
......
238 239
	 * Gets the current charts engine.
239 240
	 * @return the current charts engine
240 241
	 */
242
	@Deprecated
241 243
	public static ChartsEngine getCurrent()	{
242 244
		return ChartsEngine.chartsEngines.get(ChartsEngine.currentChartsEngineIndex);
243 245
	}
......
246 248
	 * Sets the current charts engine according to its internal name. 
247 249
	 * @param name the name of the charts engine to set as current
248 250
	 */
251
	@Deprecated
249 252
	public static void setCurrrentChartsEngine(String name)	{
250 253
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
251 254
			if(chartsEngines.get(i).getName().equals(name))	{
......
261 264
	 * @param type
262 265
	 * @return the installed charts engine according to its class type if it exists otherwise null
263 266
	 */
267
	@Deprecated
264 268
	public static ChartsEngine getChartsEngine(Class type)	{
265 269
		ChartsEngine chartsEngine = null;
266 270
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
......
277 281
	 * @param outputFormat
278 282
	 * @return
279 283
	 */
284
	@Deprecated
280 285
	public static ChartsEngine getChartsEngine(String outputFormat)	{
281 286
		ChartsEngine chartsEngine = null;
282 287
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
......
294 299
	 * @param type
295 300
	 * @return the installed charts engine according to its name if it exists otherwise null
296 301
	 */
302
	@Deprecated
297 303
	public static ChartsEngine getChartsEngineByName(String name)	{
298 304
		ChartsEngine chartsEngine = null;
299 305
		for(int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
......
310 316
	 * @param result
311 317
	 * @return
312 318
	 */
319
	@Deprecated
313 320
	public static ChartsEngine getChartsEngine(ChartResult result)	{
314 321
		ChartsEngine chartsEngine = null;
315 322
		for (int i = 0; i < ChartsEngine.chartsEngines.size(); i++) {
......
326 333
	 * Returns the installed charts engine contributions.
327 334
	 * @return
328 335
	 */
336
	@Deprecated
329 337
	public static ArrayList<ChartsEngine> getChartsEngines()	{
330 338
		return ChartsEngine.chartsEngines;
331 339
	}

Formats disponibles : Unified diff