1 23 package org.objectweb.clif.scenario.util.isac.loadprofile.gui; 24 25 import java.util.Vector ; 26 27 import org.apache.log4j.Category; 28 import org.eclipse.jface.wizard.Wizard; 29 import org.eclipse.swt.widgets.Combo; 30 import org.objectweb.clif.scenario.util.isac.loadprofile.GroupDescription; 31 32 38 public class GroupDescriptionWizard extends Wizard { 39 static Category cat = Category.getInstance(GroupDescriptionWizard.class.getName()) ; 41 private Vector behaviorIds ; 43 private GroupDescription groupDescription ; 44 private GroupDescriptionPage groupPage ; 45 private Combo idsCombo ; 46 47 52 public GroupDescriptionWizard(GroupDescription lpd, Vector ids) { 53 super(); 54 55 this.behaviorIds = ids ; 57 this.groupDescription = lpd ; 58 } 59 60 63 public void addPages() { 64 this.groupPage = new GroupDescriptionPage("behavior", behaviorIds, this.groupDescription) ; 66 addPage(this.groupPage); 67 } 68 69 72 public boolean performFinish() { 73 if (this.groupPage.isFinish()) { 74 this.groupDescription.setCurveColor(this.groupPage.getColor()) ; 75 this.groupDescription.setBehaviorId(this.groupPage.getBehaviorId()) ; 76 this.groupDescription.setForceStop(this.groupPage.isForceStopThread()) ; 77 return true ; 78 } 79 return false ; 80 } 81 } 82 | Popular Tags |