Révision 3263

tmp/org.txm.edition.rcp/src/org/txm/edition/rcp/editors/EditionLink.java (revision 3263)
26 26
	
27 27
	TXMEditor<? extends TXMResult> synopticEditionEditor;
28 28
	
29
	public static final String FCT = "txmedition";
30
		
29 31
	EditionLink(TXMEditor<? extends TXMResult> synopticEditionEditor, Browser browser) {
30
		super(browser, "txmedition"); //$NON-NLS-1$
32
		super(browser, FCT); //$NON-NLS-1$
31 33
		this.browser = browser;
32 34
		this.synopticEditionEditor = synopticEditionEditor;
33 35
	}
tmp/org.txm.edition.rcp/src/org/txm/edition/rcp/editors/EditionPanel.java (revision 3263)
302 302
		
303 303
		progressListener = new ProgressListener() {
304 304
			
305
			private CommandLink cmdLink;
306
			private EditionLink editionLink;
307

  
308 305
			@Override
309 306
			public void changed(ProgressEvent event) {}
310 307
			
311 308
			@Override
312
			public void completed(ProgressEvent event) {
309
			public synchronized void completed(ProgressEvent event) {
310
				Object o = getBrowser().evaluate("return typeof "+CommandLink.FCT+";");
311
				if ("undefined".equals(o)) {
312
					new CommandLink(synopticEditionEditor, getBrowser());
313
				}
314
				o = getBrowser().evaluate("return typeof "+EditionLink.FCT+";");
315
				if ("undefined".equals(o)) {
316
					new EditionLink(synopticEditionEditor, getBrowser());
317
				}
313 318
				
314
					cmdLink = new CommandLink(synopticEditionEditor, getBrowser());
315
					editionLink = new EditionLink(synopticEditionEditor, getBrowser());
316 319
				Log.finest("EditionPanel " + currentEdition.getName() + " reload " + getCurrentPage().getName());
317 320
				Object rez = evaluate("return typeof sheet;"); //$NON-NLS-1$
318 321
				if ("undefined".equals(rez)) { //$NON-NLS-1$
......
331 334
					pl.completed(event);
332 335
				}
333 336
				
334
				
335 337
				// System.out.println("highlight: "+highlightedColorPerWordIDS);
336 338
				StringBuilder buffer = new StringBuilder();
337 339
				// buffer.append("alert(\"\"+sheet);\n");

Formats disponibles : Unified diff