if (this.activity.hasOutputProducts()) { this.stateList.add(new PostConditionCheckerState (this, this.activity));  }   for(int i=0; i< this.stateList.size(); i++) { this.mfPagod.getButtonPanel().getCbDirectAccess(). addItem(this.stateList.get(i)); }  this.mfPagod.getButtonPanel().getCbDirectAccess().addActionListener( ActionManager.getInstance().getAction(Constants.ACTION_GOTOSTEP));  }
this.mfPagod.getButtonPanel().getCbDirectAccess().setSelectedIndex(this.currentActivityState); this.mfPagod.getButtonPanel().getCbDirectAccess().addActionListener( ActionManager.getInstance().getAction(Constants.ACTION_GOTOSTEP)); }
	 public void initComboBox()	 {		 		 //on remove l action listener de la combo pour eviter conflits et boucles infinies		this.mfPagod.getButtonPanel().getCbDirectAccess().removeActionListener(					ActionManager.getInstance().getAction(Constants.ACTION_GOTOSTEP));		//on vide la combo				// si has input, on remplit stateList		if (this.activity.hasInputProducts())		 {			 System.out.println(new PreConditionCheckerState (this, this.activity).toString());			  this.stateList.add(new PreConditionCheckerState (this, this.activity));			 			}		// on remplit statelist avec Activity presentation				 this.stateList.add(new ActivityPresentationState(this, this.activity));		 		 // si has steps , meme chose		 if(this.activity.hasSteps())		 {			 switch(this.stepList.size())			 {				 case 1:					 this.stateList.add(new LastStepState(this, this.activity));					 break;				 case 2:					 this.stateList.add(new FirstStepState(this, this.activity));					 this.stateList.add(new LastStepState(this, this.activity));					 break;				 default:					 this.stateList.add(new FirstStepState(this, this.activity));					 for(int i=0; i< this.stepList.size() -1; i++)					 {						 this.stateList.add(new MiddleStepState (this, this.activity, i));					 }					 this.stateList.add(new LastStepState(this, this.activity));					 break;			 }			 		 }		 		 // Meme chose pr les post conditions		 if (this.activity.hasOutputProducts())		 {			 this.stateList.add(new PostConditionCheckerState (this, this.activity));			 		 }		 		 // on remplit notre combo avec les elements de la statelist		 for(int i=0; i< this.stateList.size(); i++)		 {			 this.mfPagod.getButtonPanel().getCbDirectAccess(). 				addItem(this.stateList.get(i));		 }				 			this.mfPagod.getButtonPanel().getCbDirectAccess().addActionListener(					ActionManager.getInstance().getAction(Constants.ACTION_GOTOSTEP));	        	 }