Révision 1857

tmp/org.txm.core/src/java/org/txm/core/engines/EnginesManager.java (revision 1857)
5 5
import org.eclipse.core.runtime.IConfigurationElement;
6 6
import org.eclipse.core.runtime.IProgressMonitor;
7 7
import org.eclipse.core.runtime.RegistryFactory;
8
import org.txm.core.messages.TXMCoreMessages;
8 9
import org.txm.utils.LogMonitor;
9 10
import org.txm.utils.logger.Log;
10 11

  
......
44 45
	public abstract boolean fetchEngines();
45 46

  
46 47
	/**
47
	 * Creates and initializes the engines from contributions with the specified
48
	 * extension point id.
48
	 * Creates and initializes the engines from contributions with the specified extension point id.
49 49
	 * 
50 50
	 * @param engineExtensionPointId
51 51
	 * @return true if at least one engine has been created otherwise false
......
54 54

  
55 55
		IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(engineExtensionPointId);
56 56

  
57
		Log.finest("Looking for " + this.getEnginesDescription() + " engines contributions with extension point id " //$NON-NLS-1$
58
				+ engineExtensionPointId + ".");
57
		Log.finest(TXMCoreMessages.bind("Looking for {0} engines contributions with extension point id {1}...", this.getEnginesDescription(), engineExtensionPointId)); //$NON-NLS-1$
59 58
		Log.finest(contributions.length + " engine(s) found."); //$NON-NLS-1$
60 59

  
61 60
		for (int i = 0; i < contributions.length; i++) {
......
63 62
				@SuppressWarnings("unchecked")
64 63
				T e = (T) contributions[i].createExecutableExtension("class"); //$NON-NLS-1$
65 64

  
66
				Log.fine("Initializing engine: " + e);
65
				Log.fine(TXMCoreMessages.bind("Initializing engine: {0}...", e));
67 66

  
68 67
				if (e.initialize()) {
69 68
					this.put(e.getName(), e);
tmp/org.txm.core/src/java/org/txm/core/engines/Engine.java (revision 1857)
36 36

  
37 37
	/**
38 38
	 * 
39
	 * @return details about the engine (eg, the elements managed)
39
	 * @return details about the engine (eg. the elements managed)
40 40
	 */
41 41
	public String getDetails();
42 42
}

Formats disponibles : Unified diff