Révision 3112

tmp/org.txm.edition.rcp/src/org/txm/edition/rcp/editors/EditionPanel.java (revision 3112)
312 312
				Log.finest("EditionPanel " + currentEdition.getName() + " reload " + getCurrentPage().getName());
313 313
				Object rez = evaluate("return typeof sheet;"); //$NON-NLS-1$
314 314
				if ("undefined".equals(rez)) { //$NON-NLS-1$
315
					Object loadResult = execute(functions);
315
					Object loadResult = evaluate(functions);
316 316
					Object testloadResult = evaluate("return typeof txmGetSelection;");
317
					if (loadResult == null || testloadResult == null) { // build the sheet if not present in the HTML DOM
318
						Log.fine("JS execution (init) error with=" + functions); //$NON-NLS-1$
317
					if (loadResult == null || testloadResult == null || "undefined".equals(testloadResult.toString())) { // build the sheet if not present in the HTML DOM
318
						Log.severe("JS execution (init) error with=" + functions); //$NON-NLS-1$
319 319
					}
320 320
					else {
321 321
						Log.finer("JS functions loaded.");
......
620 620
			@Override
621 621
			public void keyPressed(KeyEvent e) {
622 622
				if (debug) Log.finest(" KEY PRESSED: " + e); //$NON-NLS-1$
623
				System.out.println(""+e.keyCode+" "+e.stateMask);
623 624
				if (e.keyCode == 'f' && (e.stateMask & SWT.CTRL) != 0) {
624 625
					synopticEditionEditor.getSearchEditionToolbar().openSearch(getTextSelection());
625 626
				}

Formats disponibles : Unified diff