Revision 949

tmp/org.txm.core/src/java/org/txm/Toolbox.java (revision 949)
284 284
					Log.finest("Toolbox.initialize(): parent_uuid = " + TXMPreferences.getString(TXMPreferences.PARENT_UUID, nodeQualifier));
285 285
					Log.finest("Toolbox.initialize(): bundle_id = " + TXMPreferences.getString(TXMPreferences.BUNDLE_ID, nodeQualifier));
286 286
					Bundle bundle = Platform.getBundle(TXMPreferences.getString(TXMPreferences.BUNDLE_ID, nodeQualifier));
287
					Class<?> cl = bundle.loadClass(TXMPreferences.getString("class", nodeQualifier));
287
					if (bundle == null) {
288
						System.out.println("Warning: can not restore object with bundle name "+TXMPreferences.getString(TXMPreferences.BUNDLE_ID, nodeQualifier));
289
						continue;
290
					}
291
					String className = TXMPreferences.getString("class", nodeQualifier);
292
					Class<?> cl = bundle.loadClass(className);
288 293
					Constructor<?> cons = cl.getConstructor(String.class);
289 294
					cons.newInstance(nodeQualifier);
290 295
				}
tmp/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 949)
929 929
	/**
930 930
	 * print TxmPreferences in the console.
931 931
	 */
932
	public static String dumpToString(String nodeQualifier) {
933
		StringBuilder sb = new StringBuilder();
934
		IEclipsePreferences preferences = scope.getNode(nodeQualifier);
935

  
936
		try {
937
			String[] keys = preferences.keys();
938
			for(int i = 0; i < keys.length; i++) {
939
				sb.append(keys[i] + " = " + preferences.get(keys[i], "")+"\t");
940
			}
941
		}
942
		catch(BackingStoreException e) {
943
			// TODO Auto-generated catch block
944
			e.printStackTrace();
945
		}
946
		return sb.toString();
947
	}
948
	
949
	/**
950
	 * print TxmPreferences in the console.
951
	 */
932 952
	public static void dump() {
933 953
		try {
934 954
			IPreferencesService service = Platform.getPreferencesService();
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/GLComposite.java (revision 949)
38 38
	 * Warning : this composite layout cannot be changed
39 39
	 */
40 40
	public final void setLayout(Layout layout) {
41
		System.out.println("Warning: GLComposite.setLayout is called without effect: "+name);
41 42
		//super.setLayout(layout);
42 43
	}
43 44

  

Also available in: Unified diff