NC060726: Small fixes :
authornsimic
Thu, 27 Jul 2006 18:38:26 +0200
changeset 36411c9136644c78
parent 3640 1b48a7731afb
child 3642 d14265f468b6
NC060726: Small fixes :
- calcheadpanel size,
- append formula,
- object manager arguments
- window application object manager address
src/java/isac/wsdialog/WorksheetDialog.java
     1.1 --- a/src/java/isac/wsdialog/WorksheetDialog.java	Thu Jul 27 18:38:26 2006 +0200
     1.2 +++ b/src/java/isac/wsdialog/WorksheetDialog.java	Thu Jul 27 18:38:26 2006 +0200
     1.3 @@ -517,15 +517,6 @@
     1.4  			throws RemoteException {
     1.5  		ui_control_listener_ = listener;
     1.6  		buildUIElementsContextCalcElements();
     1.7 -		switch( phase_ ) {
     1.8 -		case DIALOGPHASE_SOLVE:
     1.9 -			startSolving();
    1.10 -			break;
    1.11 -		case DIALOGPHASE_SPECIFY:
    1.12 -			startSpecifying( this.calc_tree_.resetCalcHead() );
    1.13 -			break;
    1.14 -		}
    1.15 -
    1.16  		return true;
    1.17  	}
    1.18  
    1.19 @@ -768,8 +759,10 @@
    1.20  		case UI_SOLVE_CHANGE_CONTEXT_FORMULA: {
    1.21  			UserActionOnPosition uaop 	= (UserActionOnPosition) action;
    1.22  			Position activePosition 	= uaop.getPosition();
    1.23 -			context_formula_ = new CalcIterator( calc_tree_, activePosition );
    1.24 -			notifyContextPresenter();
    1.25 +			if( activePosition != null ) {
    1.26 +				context_formula_ = new CalcIterator( calc_tree_, activePosition );	
    1.27 +				notifyContextPresenter();
    1.28 +			}
    1.29  		}
    1.30  		break;
    1.31