KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > cheatsheet > simple > SimpleCSModelFactory


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 /**
30  * SimpleCSModelFactory
31  *
32  */

33 public class SimpleCSModelFactory implements ISimpleCSModelFactory {
34
35     private ISimpleCSModel fModel;
36
37     
38     /**
39      *
40      */

41     public SimpleCSModelFactory(ISimpleCSModel model) {
42         fModel = model;
43     }
44     
45     /* (non-Javadoc)
46      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCS()
47      */

48     public ISimpleCS createSimpleCS() {
49         return new SimpleCS(fModel);
50     }
51
52     /* (non-Javadoc)
53      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSAction()
54      */

55     public ISimpleCSAction createSimpleCSAction(ISimpleCSObject parent) {
56         return new SimpleCSAction(fModel, parent);
57     }
58
59     /* (non-Javadoc)
60      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSCommand()
61      */

62     public ISimpleCSCommand createSimpleCSCommand(ISimpleCSObject parent) {
63         return new SimpleCSCommand(fModel, parent);
64     }
65
66     /* (non-Javadoc)
67      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSConditionalSubItem()
68      */

69     public ISimpleCSConditionalSubItem createSimpleCSConditionalSubItem(ISimpleCSObject parent) {
70         return new SimpleCSConditionalSubItem(fModel, parent);
71     }
72
73     /* (non-Javadoc)
74      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSIntro()
75      */

76     public ISimpleCSIntro createSimpleCSIntro(ISimpleCSObject parent) {
77         return new SimpleCSIntro(fModel, parent);
78     }
79
80     /* (non-Javadoc)
81      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSItem()
82      */

83     public ISimpleCSItem createSimpleCSItem(ISimpleCSObject parent) {
84         return new SimpleCSItem(fModel, parent);
85     }
86
87     /* (non-Javadoc)
88      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSOnCompletion()
89      */

90     public ISimpleCSOnCompletion createSimpleCSOnCompletion(ISimpleCSObject parent) {
91         return new SimpleCSOnCompletion(fModel, parent);
92     }
93
94     /* (non-Javadoc)
95      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSPerformWhen()
96      */

97     public ISimpleCSPerformWhen createSimpleCSPerformWhen(ISimpleCSObject parent) {
98         return new SimpleCSPerformWhen(fModel, parent);
99     }
100
101     /* (non-Javadoc)
102      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSRepeatedSubItem()
103      */

104     public ISimpleCSRepeatedSubItem createSimpleCSRepeatedSubItem(ISimpleCSObject parent) {
105         return new SimpleCSRepeatedSubItem(fModel, parent);
106     }
107
108     /* (non-Javadoc)
109      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSSubItem()
110      */

111     public ISimpleCSSubItem createSimpleCSSubItem(ISimpleCSObject parent) {
112         return new SimpleCSSubItem(fModel, parent);
113     }
114
115     /* (non-Javadoc)
116      * @see org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSModelFactory#createSimpleCSDescription(org.eclipse.pde.internal.core.icheatsheet.simple.ISimpleCSObject)
117      */

118     public ISimpleCSDescription createSimpleCSDescription(ISimpleCSObject parent) {
119         return new SimpleCSDescription(fModel, parent);
120     }
121     
122 }
123
Popular Tags