1 11 12 package org.eclipse.pde.internal.core.cheatsheet.simple; 13 14 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCS; 15 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSAction; 16 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSCommand; 17 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSConditionalSubItem; 18 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSDescription; 19 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSIntro; 20 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSItem; 21 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModel; 22 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory; 23 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSObject; 24 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSOnCompletion; 25 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSPerformWhen; 26 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSRepeatedSubItem; 27 import org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSSubItem; 28 29 33 public class SimpleCSModelFactory implements ISimpleCSModelFactory { 34 35 private ISimpleCSModel fModel; 36 37 38 41 public SimpleCSModelFactory(ISimpleCSModel model) { 42 fModel = model; 43 } 44 45 48 public ISimpleCS createSimpleCS() { 49 return new SimpleCS(fModel); 50 } 51 52 55 public ISimpleCSAction createSimpleCSAction(ISimpleCSObject parent) { 56 return new SimpleCSAction(fModel, parent); 57 } 58 59 62 public ISimpleCSCommand createSimpleCSCommand(ISimpleCSObject parent) { 63 return new SimpleCSCommand(fModel, parent); 64 } 65 66 69 public ISimpleCSConditionalSubItem createSimpleCSConditionalSubItem(ISimpleCSObject parent) { 70 return new SimpleCSConditionalSubItem(fModel, parent); 71 } 72 73 76 public ISimpleCSIntro createSimpleCSIntro(ISimpleCSObject parent) { 77 return new SimpleCSIntro(fModel, parent); 78 } 79 80 83 public ISimpleCSItem createSimpleCSItem(ISimpleCSObject parent) { 84 return new SimpleCSItem(fModel, parent); 85 } 86 87 90 public ISimpleCSOnCompletion createSimpleCSOnCompletion(ISimpleCSObject parent) { 91 return new SimpleCSOnCompletion(fModel, parent); 92 } 93 94 97 public ISimpleCSPerformWhen createSimpleCSPerformWhen(ISimpleCSObject parent) { 98 return new SimpleCSPerformWhen(fModel, parent); 99 } 100 101 104 public ISimpleCSRepeatedSubItem createSimpleCSRepeatedSubItem(ISimpleCSObject parent) { 105 return new SimpleCSRepeatedSubItem(fModel, parent); 106 } 107 108 111 public ISimpleCSSubItem createSimpleCSSubItem(ISimpleCSObject parent) { 112 return new SimpleCSSubItem(fModel, parent); 113 } 114 115 118 public ISimpleCSDescription createSimpleCSDescription(ISimpleCSObject parent) { 119 return new SimpleCSDescription(fModel, parent); 120 } 121 122 } 123 | Popular Tags |