blob: 0c692d2121ce7a5561d58aa16b10f351605bb9df (
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
|
/***********************************************************************
* Copyright (c) 2008 by SAP AG, Walldorf.
* 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:
* SAP AG - initial API and implementation
***********************************************************************/
package org.eclipse.jst.jee.ui.internal.navigator.ear;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.Path;
import org.eclipse.jst.jee.ui.internal.Messages;
import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
/**
*
* Modules sub-node of EAR Deployment descriptor node Java EE 5
*
* @author Dimitar Giormov
*
*/
public class ModulesNode extends AbstractEarNode {
public ModulesNode(IProject earProject) {
super(earProject);
type = MODULES_TYPE;
}
@Override
public String toString() {
return Messages.EAR_MODULES_NODE;
}
@Override
public String getText() {
return Messages.EAR_MODULES_NODE;
}
public List getModules() {
IVirtualComponent projectComponent = ComponentCore.createComponent(getEarProject());
return getComponentReferencesAsList(implicitUtilityReferenceTypes, projectComponent, new Path("/")); //$NON-NLS-1$
}
}
|