blob: 19a4b4926be0c159fc9c7351451d2228b819c4bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/*******************************************************************************
* Copyright (c) 2003, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.j2ee.internal.web.providers;
import java.util.Collection;
import java.util.Vector;
import org.eclipse.emf.edit.provider.ItemProvider;
import org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit;
import org.eclipse.jst.j2ee.webapplication.WebApp;
/**
* Insert the type's description here. Creation date: (6/18/2001 5:53:02 PM)
*
* @author: Administrator
*/
public class ItemHolder extends ItemProvider {
protected WebApp webApp;
protected WebArtifactEdit webArtifactEdit;
public ItemHolder() {
super();
}
/**
* Jarholder constructor comment.
*/
public ItemHolder(WebApp webApp) {
super();
setWebApp(webApp);
}
public ItemHolder(WebArtifactEdit webArtifactEdit) {
super();
setWebArtifactEdit(webArtifactEdit);
}
public Collection getChildren(Object element) {
WebApp testElement;
Vector v = new Vector();
if (element instanceof ItemHolder) {
testElement = ((ItemHolder) element).getWebApp();
v.add(testElement);
}
return v;
}
/**
* Insert the method's description here. Creation date: (6/18/2001 6:00:43 PM)
*
* @return org.eclipse.jst.j2ee.internal.internal.ejb.EJBJar
*/
public WebApp getWebApp() {
return webApp;
}
/**
* Insert the method's description here. Creation date: (6/18/2001 6:00:43 PM)
*
* @param newJar
* org.eclipse.jst.j2ee.internal.internal.ejb.EJBJar
*/
public void setWebApp(WebApp aWebApp) {
webApp = aWebApp;
}
public WebArtifactEdit getWebArtifactEdit() {
return webArtifactEdit;
}
public void setWebArtifactEdit(WebArtifactEdit webArtifactEdit) {
this.webArtifactEdit = webArtifactEdit;
}
}
|