Revision 1419

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1419)
108 108
	public final static String COMPUTING_PARAMETERS_GROUP_ID = TXMUIMessages.parameters;
109 109

  
110 110
	/**
111
	 * ID defined in plugin.xml for the compute button contribution.
112
	 */
113
	public final static String TOP_TOOLBAR_COMPUTE_BUTTON_ID = "compute"; //$NON-NLS-1$
114
	
115
	
116
	/**
111 117
	 * The editor main tool bar, positioned at the top of the editor.
112 118
	 */
113 119
	protected TXMEditorToolBar topToolBar;
......
377 383
				this.topToolBar.unInstallGroup(COMPUTING_PARAMETERS_GROUP_ID);
378 384
			}
379 385

  
386
			
387
			// disable the compute button, it will be re-enable or not later when the UI will check if the editor is dirty or not
388
			ToolItem computeButton = this.topToolBar.getItemByContributionId(TOP_TOOLBAR_COMPUTE_BUTTON_ID); //$NON-NLS-1$
389
			computeButton.setEnabled(false);
390

  
391
			
380 392
		} catch(Throwable e) {
381 393
			Log.severe("TXMEditor.createPartControl(): can not create the editor for result " + this.getResult() + "."); //$NON-NLS-1$  //$NON-NLS-2$
382 394
			e.printStackTrace();
......
540 552
//		IContributionItem[] items = manager.getItems(); 
541 553

  
542 554
		
543
		// enable/disable the compute boutton according to dirty state of the editor
544
		ToolItem computeButton = this.topToolBar.getItemByContributionId("compute"); //$NON-NLS-1$
555
		// enable/disable the compute button according to dirty state of the editor
556
		ToolItem computeButton = this.topToolBar.getItemByContributionId(TOP_TOOLBAR_COMPUTE_BUTTON_ID); //$NON-NLS-1$
545 557
		computeButton.setEnabled(dirty);
546 558
		
547 559
		

Also available in: Unified diff