KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > cheatsheet > comp > CompCSModelFactory


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.comp;
13
14 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCS;
15 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSDependency;
16 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSIntro;
17 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModel;
18 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory;
19 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject;
20 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSOnCompletion;
21 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSParam;
22 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSTask;
23 import org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSTaskGroup;
24
25 /**
26  * CompCSModelFactory
27  *
28  */

29 public class CompCSModelFactory implements ICompCSModelFactory {
30
31     private ICompCSModel fModel;
32     
33     /**
34      * @param model
35      */

36     public CompCSModelFactory(ICompCSModel model) {
37         fModel = model;
38     }
39     
40     /* (non-Javadoc)
41      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCS()
42      */

43     public ICompCS createCompCS() {
44         return new CompCS(fModel);
45     }
46
47     /* (non-Javadoc)
48      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSDependency(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
49      */

50     public ICompCSDependency createCompCSDependency(ICompCSObject parent) {
51         return new CompCSDependency(fModel, parent);
52     }
53
54     /* (non-Javadoc)
55      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSIntro(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
56      */

57     public ICompCSIntro createCompCSIntro(ICompCSObject parent) {
58         return new CompCSIntro(fModel, parent);
59     }
60
61     /* (non-Javadoc)
62      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSOnCompletion(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
63      */

64     public ICompCSOnCompletion createCompCSOnCompletion(ICompCSObject parent) {
65         return new CompCSOnCompletion(fModel, parent);
66     }
67
68     /* (non-Javadoc)
69      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSParam(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
70      */

71     public ICompCSParam createCompCSParam(ICompCSObject parent) {
72         return new CompCSParam(fModel, parent);
73     }
74
75     /* (non-Javadoc)
76      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSTask(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
77      */

78     public ICompCSTask createCompCSTask(ICompCSObject parent) {
79         return new CompCSTask(fModel, parent);
80     }
81
82     /* (non-Javadoc)
83      * @see org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSModelFactory#createCompCSTaskGroup(org.eclipse.pde.internal.core.icheatsheet.comp.ICompCSObject)
84      */

85     public ICompCSTaskGroup createCompCSTaskGroup(ICompCSObject parent) {
86         return new CompCSTaskGroup(fModel, parent);
87     }
88
89 }
90
Popular Tags