Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 423614
Collapse All | Expand All

(-)a/plugins/org.eclipse.jst.jee.ui/plugin.xml (-2 / +27 lines)
Lines 570-575 Link Here
570
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
570
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
571
                       value="jst.ejb:3.1">
571
                       value="jst.ejb:3.1">
572
                 </test>
572
                 </test>
573
                 <test
574
                       forcePluginActivation="true"
575
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
576
                       value="jst.ejb:3.2">
577
                 </test>
573
              </or>
578
              </or>
574
           </adapt>
579
           </adapt>
575
			<instanceof value="org.eclipse.jst.jee.ui.internal.navigator.AbstractDDNode" />
580
			<instanceof value="org.eclipse.jst.jee.ui.internal.navigator.AbstractDDNode" />
Lines 802-807 Link Here
802
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
807
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
803
                       value="jst.web:3.0">
808
                       value="jst.web:3.0">
804
                 </test>
809
                 </test>
810
                 <test
811
                       forcePluginActivation="true"
812
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
813
                       value="jst.web:3.1">
814
                 </test>
805
              </or>
815
              </or>
806
           </adapt>
816
           </adapt>
807
   <instanceof
817
   <instanceof
Lines 987-998 Link Here
987
                    forcePluginActivation="true"
997
                    forcePluginActivation="true"
988
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
998
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
989
                    value="jst.ear:5.0">
999
                    value="jst.ear:5.0">
990
              </test>
1000
                </test>
991
                <test
1001
                <test
992
                    forcePluginActivation="true"
1002
                    forcePluginActivation="true"
993
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
1003
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
994
                    value="jst.ear:6.0">
1004
                    value="jst.ear:6.0">
995
              </test>
1005
                </test>
1006
                <test
1007
                    forcePluginActivation="true"
1008
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
1009
                    value="jst.ear:7.0">
1010
                </test>
996
              </or>
1011
              </or>
997
           </adapt>
1012
           </adapt>
998
           <instanceof
1013
           <instanceof
Lines 1263-1268 Link Here
1263
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
1278
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
1264
                    value="jst.appclient:6.0">
1279
                    value="jst.appclient:6.0">
1265
              </test>
1280
              </test>
1281
              <test
1282
                    forcePluginActivation="true"
1283
                    property="org.eclipse.wst.common.project.facet.core.projectFacet"
1284
                    value="jst.appclient:7.0">
1285
              </test>
1266
              </or>
1286
              </or>
1267
           </adapt>
1287
           </adapt>
1268
           <instanceof
1288
           <instanceof
Lines 1322-1327 Link Here
1322
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
1342
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
1323
                       value="jst.connector:1.6">
1343
                       value="jst.connector:1.6">
1324
                 </test>
1344
                 </test>
1345
                 <test
1346
                       forcePluginActivation="true"
1347
                       property="org.eclipse.wst.common.project.facet.core.projectFacet"
1348
                       value="jst.connector:1.7">
1349
                 </test>
1325
              </or>
1350
              </or>
1326
           </adapt>
1351
           </adapt>
1327
           <instanceof
1352
           <instanceof
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/Ear5ContentProvider.java (-6 / +7 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.internal.navigator;
12
package org.eclipse.jst.jee.ui.internal.navigator;
12
13
Lines 38-43 Link Here
38
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
39
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
39
import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
40
import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
40
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
41
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
42
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
41
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
43
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
42
44
43
/**
45
/**
Lines 107-118 Link Here
107
				IFacetedProject facetedProject;
109
				IFacetedProject facetedProject;
108
				try {
110
				try {
109
					facetedProject = ProjectFacetsManager.create(project);
111
					facetedProject = ProjectFacetsManager.create(project);
112
					IProjectFacet earFacet = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE);
110
					if (facetedProject != null && 
113
					if (facetedProject != null && 
111
							(facetedProject.hasProjectFacet(
114
							(facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_5_0_TEXT)) 
112
									ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE).getVersion(
115
							|| facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_6_0_TEXT))
113
											J2EEVersionConstants.VERSION_5_0_TEXT)) || facetedProject.hasProjectFacet(
116
							|| facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_7_0_TEXT)))) {
114
													ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE).getVersion(
115
															J2EEVersionConstants.VERSION_6_0_TEXT)))) {
116
						AbstractGroupProvider element = getCachedContentProvider(project);
117
						AbstractGroupProvider element = getCachedContentProvider(project);
117
						if (element != null){
118
						if (element != null){
118
							children.add(element);	
119
							children.add(element);	
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/Ejb3LabelProvider.java (-1 / +12 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008, 2010 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.internal.navigator;
12
package org.eclipse.jst.jee.ui.internal.navigator;
12
13
Lines 48-53 Link Here
48
	
49
	
49
	private Image ejb30Image;
50
	private Image ejb30Image;
50
	private Image ejb31Image;
51
	private Image ejb31Image;
52
	private Image ejb32Image;
51
	private Image sessionBeanImage;
53
	private Image sessionBeanImage;
52
	private Image mdbImage;
54
	private Image mdbImage;
53
	private Image cmpImage;
55
	private Image cmpImage;
Lines 72-77 Link Here
72
				return getEjb30Image();
74
				return getEjb30Image();
73
			} else if (J2EEVersionConstants.VERSION_3_1_TEXT.equals(version)) {
75
			} else if (J2EEVersionConstants.VERSION_3_1_TEXT.equals(version)) {
74
				return getEjb31Image();
76
				return getEjb31Image();
77
			} else if (J2EEVersionConstants.VERSION_3_2_TEXT.equals(version)) {
78
				return getEjb32Image();
75
			}
79
			}
76
			return getEjb30Image();
80
			return getEjb30Image();
77
		} else if(element instanceof AbstractDDNode) {
81
		} else if(element instanceof AbstractDDNode) {
Lines 154-159 Link Here
154
		}
158
		}
155
		return ejb31Image;
159
		return ejb31Image;
156
	}
160
	}
161
162
	private Image getEjb32Image() {
163
		if (ejb32Image == null) {
164
			ejb32Image = JEEUIPlugin.getDefault().getImageDescriptor(JEEUIPluginIcons.IMG_EJBEE7MODEL).createImage();
165
		}
166
		return ejb32Image;
167
	}
157
	
168
	
158
	private Image getSessionBeanImage() {
169
	private Image getSessionBeanImage() {
159
		if (sessionBeanImage == null) {
170
		if (sessionBeanImage == null) {
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/appclient/GroupAppClientProvider.java (-2 / +12 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008, 2010 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.internal.navigator.appclient;
12
package org.eclipse.jst.jee.ui.internal.navigator.appclient;
12
13
Lines 47-52 Link Here
47
	
48
	
48
	private Image appClient50Image;
49
	private Image appClient50Image;
49
	private Image appClient60Image;
50
	private Image appClient60Image;
51
	private Image appClient70Image;
50
52
51
	private IFile ddFile;
53
	private IFile ddFile;
52
54
Lines 85-90 Link Here
85
			return getAppClient50Image();
87
			return getAppClient50Image();
86
		} else if (J2EEVersionConstants.VERSION_6_TEXT.equals(version)) {
88
		} else if (J2EEVersionConstants.VERSION_6_TEXT.equals(version)) {
87
			return getAppClient60Image();
89
			return getAppClient60Image();
90
		} else if (J2EEVersionConstants.VERSION_7_TEXT.equals(version)) {
91
			return getAppClient70Image();
88
		}
92
		}
89
		return getAppClient50Image();
93
		return getAppClient50Image();
90
	}
94
	}
Lines 122-126 Link Here
122
		}
126
		}
123
		return appClient60Image;
127
		return appClient60Image;
124
	}
128
	}
125
	
129
130
	private Image getAppClient70Image() {
131
		if (appClient70Image == null) {
132
			appClient70Image = JEEUIPlugin.getDefault().getImageDescriptor(JEEUIPluginIcons.APP_CLIENT70).createImage();
133
		}
134
		return appClient70Image;
135
	}
126
}
136
}
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/ear/GroupEARProvider.java (-6 / +16 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008, 2010 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.internal.navigator.ear;
12
package org.eclipse.jst.jee.ui.internal.navigator.ear;
12
13
Lines 30-35 Link Here
30
import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
31
import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
31
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
32
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
32
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
33
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
34
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
33
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
35
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
34
36
35
/**
37
/**
Lines 44-49 Link Here
44
	public final static String EAR_DEFAULT_LIB = "lib"; //$NON-NLS-1$
46
	public final static String EAR_DEFAULT_LIB = "lib"; //$NON-NLS-1$
45
	private static Image ear50Image;
47
	private static Image ear50Image;
46
	private static Image ear60Image;
48
	private static Image ear60Image;
49
	private static Image ear70Image;
47
	private EARVirtualComponent earComponent;
50
	private EARVirtualComponent earComponent;
48
	private IFile ddFile;
51
	private IFile ddFile;
49
	
52
	
Lines 75-87 Link Here
75
78
76
		try {
79
		try {
77
			IFacetedProject facetedProject = ProjectFacetsManager.create(project);
80
			IFacetedProject facetedProject = ProjectFacetsManager.create(project);
81
			IProjectFacet earFacet = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE);
78
			//EE6TODO
82
			//EE6TODO
79
			if (facetedProject != null && 
83
			if (facetedProject != null && 
80
					(facetedProject.hasProjectFacet(
84
					(facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_5_0_TEXT)) 
81
							ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE).getVersion(
85
					|| facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_6_0_TEXT))
82
									J2EEVersionConstants.VERSION_5_0_TEXT)) || facetedProject.hasProjectFacet(
86
					|| facetedProject.hasProjectFacet(earFacet.getVersion(J2EEVersionConstants.VERSION_7_0_TEXT)))) {
83
											ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE).getVersion(
84
													J2EEVersionConstants.VERSION_6_0_TEXT)))) {
85
87
86
				if (bundledLibsNode == null) {
88
				if (bundledLibsNode == null) {
87
					BundledNode bundledLibsDirectoryNode = new BundledNode(project, Messages.LIBRARY_DIRECTORY + ": " + EarUtilities.getEARLibDir(earComponent), null);//$NON-NLS-1$
89
					BundledNode bundledLibsDirectoryNode = new BundledNode(project, Messages.LIBRARY_DIRECTORY + ": " + EarUtilities.getEARLibDir(earComponent), null);//$NON-NLS-1$
Lines 112-117 Link Here
112
			return getEar50Image();
114
			return getEar50Image();
113
		} else if (J2EEVersionConstants.VERSION_6_TEXT.equals(version)) {
115
		} else if (J2EEVersionConstants.VERSION_6_TEXT.equals(version)) {
114
			return getEar60Image();
116
			return getEar60Image();
117
		} else if (J2EEVersionConstants.VERSION_7_TEXT.equals(version)) {
118
			return getEar70Image();
115
		}
119
		}
116
		return getEar50Image();
120
		return getEar50Image();
117
	}
121
	}
Lines 146-149 Link Here
146
		return ear60Image;
150
		return ear60Image;
147
	}
151
	}
148
152
153
	private Image getEar70Image() {
154
		if (ear70Image == null) {
155
			ear70Image = JEEUIPlugin.getDefault().getImageDescriptor(JEEUIPluginIcons.EAR7_IMAGE).createImage();
156
		}
157
		return ear70Image;
158
	}
149
}
159
}
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/ra/GroupRaContentProvider.java (-2 / +17 lines)
Lines 1-3 Link Here
1
/***********************************************************************
2
 * Copyright (c) 2010, 2013 by SAP AG, Walldorf. 
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
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
11
 ***********************************************************************/
1
package org.eclipse.jst.jee.ui.internal.navigator.ra;
12
package org.eclipse.jst.jee.ui.internal.navigator.ra;
2
13
3
import java.util.ArrayList;
14
import java.util.ArrayList;
Lines 62-66 Link Here
62
	public String getText() {
73
	public String getText() {
63
		return Messages.GroupRaContentProvider_RESOURCE_ADAPTER;
74
		return Messages.GroupRaContentProvider_RESOURCE_ADAPTER;
64
	}
75
	}
65
	
76
66
}
77
	public Connector getConnector()
78
	{
79
		return (Connector) javaee;
80
	}
81
}
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/ra/RaGroupContentProvider.java (-5 / +36 lines)
Lines 1-9 Link Here
1
/***********************************************************************
2
 * Copyright (c) 2010, 2013 by SAP AG, Walldorf. 
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
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
11
 ***********************************************************************/
1
package org.eclipse.jst.jee.ui.internal.navigator.ra;
12
package org.eclipse.jst.jee.ui.internal.navigator.ra;
2
13
3
import java.util.ArrayList;
14
import java.util.ArrayList;
4
import java.util.List;
15
import java.util.List;
5
16
6
import org.eclipse.core.resources.IProject;
17
import org.eclipse.core.resources.IProject;
18
import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
7
import org.eclipse.jst.javaee.core.JavaEEObject;
19
import org.eclipse.jst.javaee.core.JavaEEObject;
8
import org.eclipse.jst.javaee.jca.Connector;
20
import org.eclipse.jst.javaee.jca.Connector;
9
import org.eclipse.jst.jee.ui.internal.Messages;
21
import org.eclipse.jst.jee.ui.internal.Messages;
Lines 16-21 Link Here
16
28
17
	private IProject project;
29
	private IProject project;
18
	private Image CONNECTOR_IMAGE;
30
	private Image CONNECTOR_IMAGE;
31
	private Image CONNECTOR_17_IMAGE;
19
32
20
	public RaGroupContentProvider(JavaEEObject javaee, IProject project) {
33
	public RaGroupContentProvider(JavaEEObject javaee, IProject project) {
21
		super(javaee);
34
		super(javaee);
Lines 34-43 Link Here
34
47
35
	@Override
48
	@Override
36
	public Image getImage() {
49
	public Image getImage() {
37
		if (CONNECTOR_IMAGE == null) {
50
		// default to 1.7
38
			CONNECTOR_IMAGE = JEEUIPlugin.getDefault().getImage(JEEUIPluginIcons.IMG_CONNECTOR);
51
		Image retVal = getConnector17Image();
39
		}
52
		String version = ((Connector)javaee).getVersion();
40
		return CONNECTOR_IMAGE;
53
		if (J2EEVersionConstants.VERSION_1_6_TEXT.equals(version)) {
54
			retVal = getConnector16Image();
55
		} else if (J2EEVersionConstants.VERSION_1_7_TEXT.equals(version)) {
56
			retVal = getConnector17Image();
57
		} 
58
		return retVal;
41
	}
59
	}
42
	
60
	
43
	
61
	
Lines 46-49 Link Here
46
		return NLS.bind(Messages.DEPLOYMENT_DESCRIPTOR, project.getName());
64
		return NLS.bind(Messages.DEPLOYMENT_DESCRIPTOR, project.getName());
47
	}
65
	}
48
66
49
}
67
	private Image getConnector16Image() {
68
		if (CONNECTOR_IMAGE == null) {
69
			CONNECTOR_IMAGE = JEEUIPlugin.getDefault().getImage(JEEUIPluginIcons.IMG_CONNECTOR);
70
		}
71
		return CONNECTOR_IMAGE;
72
	}
73
74
	private Image getConnector17Image() {
75
		if (CONNECTOR_17_IMAGE == null) {
76
			CONNECTOR_17_IMAGE = JEEUIPlugin.getDefault().getImage(JEEUIPluginIcons.IMG_EE7CONNECTOR);
77
		}
78
		return CONNECTOR_17_IMAGE;
79
	}
80
}
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/internal/navigator/web/WebAppProvider.java (-1 / +12 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008, 2010 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.internal.navigator.web;
12
package org.eclipse.jst.jee.ui.internal.navigator.web;
12
13
Lines 54-59 Link Here
54
	
55
	
55
	private Image web25Image;
56
	private Image web25Image;
56
	private Image web30Image;
57
	private Image web30Image;
58
	private Image web31Image;
57
	
59
	
58
	private IProject prjct = null;
60
	private IProject prjct = null;
59
	private IFile ddFile = null;
61
	private IFile ddFile = null;
Lines 99-104 Link Here
99
			return getWeb25Image();
101
			return getWeb25Image();
100
		} else if (J2EEVersionConstants.VERSION_3_0_TEXT.equals(version)) {
102
		} else if (J2EEVersionConstants.VERSION_3_0_TEXT.equals(version)) {
101
			return getWeb30Image();
103
			return getWeb30Image();
104
		} else if (J2EEVersionConstants.VERSION_3_1_TEXT.equals(version)) {
105
			return getWeb31Image();
102
		}
106
		}
103
		return getWeb25Image();
107
		return getWeb25Image();
104
	}
108
	}
Lines 144-147 Link Here
144
		}
148
		}
145
		return web30Image;
149
		return web30Image;
146
	}
150
	}
151
152
	private Image getWeb31Image() {
153
		if (web31Image == null) {
154
			web31Image = JEEUIPlugin.getDefault().getImageDescriptor(JEEUIPluginIcons.IMG_WEBEE7MODEL).createImage();
155
		}
156
		return web31Image;
157
	}
147
}
158
}
(-)a/plugins/org.eclipse.jst.jee.ui/src/org/eclipse/jst/jee/ui/plugin/JEEUIPluginIcons.java (-2 / +8 lines)
Lines 1-5 Link Here
1
/***********************************************************************
1
/***********************************************************************
2
 * Copyright (c) 2008, 2010 by SAP AG, Walldorf. 
2
 * Copyright (c) 2008, 2013 by SAP AG, Walldorf. 
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     SAP AG - initial API and implementation
9
 *     SAP AG - initial API and implementation
10
 *     IBM - Java EE 7 support
10
 ***********************************************************************/
11
 ***********************************************************************/
11
package org.eclipse.jst.jee.ui.plugin;
12
package org.eclipse.jst.jee.ui.plugin;
12
13
Lines 14-22 Link Here
14
15
15
	public static String IMG_EJBEEMODEL = "30_ejbjar_obj"; //$NON-NLS-1$
16
	public static String IMG_EJBEEMODEL = "30_ejbjar_obj"; //$NON-NLS-1$
16
	public static String IMG_EJBEE6MODEL = "31_ejbjar_obj"; //$NON-NLS-1$
17
	public static String IMG_EJBEE6MODEL = "31_ejbjar_obj"; //$NON-NLS-1$
18
	public static String IMG_EJBEE7MODEL = "32_ejbjar_obj"; //$NON-NLS-1$
17
	public static String IMG_WEBEEMODEL = "webapp_25"; //$NON-NLS-1$
19
	public static String IMG_WEBEEMODEL = "webapp_25"; //$NON-NLS-1$
18
	public static String IMG_WEBEE6MODEL = "webapp_30"; //$NON-NLS-1$
20
	public static String IMG_WEBEE6MODEL = "webapp_30"; //$NON-NLS-1$
21
	public static String IMG_WEBEE7MODEL = "webapp_31"; //$NON-NLS-1$
19
	public static String IMG_CONNECTOR = "connection"; //$NON-NLS-1$
22
	public static String IMG_CONNECTOR = "connection"; //$NON-NLS-1$
23
	public static String IMG_EE7CONNECTOR = "connector_17"; //$NON-NLS-1$
20
	public static String IMG_CONFIG_PROP = "config_prop_obj"; //$NON-NLS-1$
24
	public static String IMG_CONFIG_PROP = "config_prop_obj"; //$NON-NLS-1$
21
	public static String IMG_LICENSE = "license_obj"; //$NON-NLS-1$
25
	public static String IMG_LICENSE = "license_obj"; //$NON-NLS-1$
22
	public static String IMG_RESOURCE_ADAPTER = "resource_adapter_obj"; //$NON-NLS-1$
26
	public static String IMG_RESOURCE_ADAPTER = "resource_adapter_obj"; //$NON-NLS-1$
Lines 40-46 Link Here
40
	public static String LOCAL_HOME = "ovr/local_home_ovr"; //$NON-NLS-1$
44
	public static String LOCAL_HOME = "ovr/local_home_ovr"; //$NON-NLS-1$
41
	public static String EAR_IMAGE = "ear_50"; //$NON-NLS-1$
45
	public static String EAR_IMAGE = "ear_50"; //$NON-NLS-1$
42
	public static String EAR6_IMAGE = "ear_60"; //$NON-NLS-1$
46
	public static String EAR6_IMAGE = "ear_60"; //$NON-NLS-1$
47
	public static String EAR7_IMAGE = "ear_70"; //$NON-NLS-1$
43
	public static String APP_CLIENT50 = "appclient_50"; //$NON-NLS-1$
48
	public static String APP_CLIENT50 = "appclient_50"; //$NON-NLS-1$
44
	public static String APP_CLIENT60 = "appclient_60"; //$NON-NLS-1$
49
	public static String APP_CLIENT60 = "appclient_60"; //$NON-NLS-1$
50
	public static String APP_CLIENT70 = "appclient_70"; //$NON-NLS-1$
45
51
46
}
52
}

Return to bug 423614