|
Lines 44-49
Link Here
|
| 44 |
import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties; |
44 |
import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties; |
| 45 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
45 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
| 46 |
import org.eclipse.jst.j2ee.project.EJBUtilities; |
46 |
import org.eclipse.jst.j2ee.project.EJBUtilities; |
|
|
47 |
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; |
| 47 |
import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation; |
48 |
import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation; |
| 48 |
import org.eclipse.wst.common.frameworks.datamodel.IDataModel; |
49 |
import org.eclipse.wst.common.frameworks.datamodel.IDataModel; |
| 49 |
import org.eclipse.wst.common.frameworks.internal.enablement.nonui.WFTWrappedException; |
50 |
import org.eclipse.wst.common.frameworks.internal.enablement.nonui.WFTWrappedException; |
|
Lines 191-197
Link Here
|
| 191 |
|
192 |
|
| 192 |
protected void generateInterfacesUsingTemplates(IProgressMonitor monitor, IPackageFragment fragment, CreateSessionBeanTemplateModel tempModel) |
193 |
protected void generateInterfacesUsingTemplates(IProgressMonitor monitor, IPackageFragment fragment, CreateSessionBeanTemplateModel tempModel) |
| 193 |
throws JETException, JavaModelException { |
194 |
throws JETException, JavaModelException { |
| 194 |
boolean useClientJar = EJBUtilities.hasEJBClientJARProject(getTargetProject()); |
195 |
IProject project = getTargetProject(); |
|
|
196 |
boolean useClientJar = false; |
| 197 |
if (JavaEEProjectUtilities.isEJBProject(project)) |
| 198 |
{ |
| 199 |
useClientJar = EJBUtilities.hasEJBClientJARProject(getTargetProject()); |
| 200 |
} |
| 195 |
List<BusinessInterface> interfaces = tempModel.getBusinessInterfaces(); |
201 |
List<BusinessInterface> interfaces = tempModel.getBusinessInterfaces(); |
| 196 |
for (BusinessInterface iface : interfaces) { |
202 |
for (BusinessInterface iface : interfaces) { |
| 197 |
if (!iface.exists()) { |
203 |
if (!iface.exists()) { |
|
Lines 217-223
Link Here
|
| 217 |
String remoteFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.REMOTE_HOME_INTERFACE); |
223 |
String remoteFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.REMOTE_HOME_INTERFACE); |
| 218 |
String remoteComponentFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.REMOTE_COMPONENT_INTERFACE); |
224 |
String remoteComponentFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.REMOTE_COMPONENT_INTERFACE); |
| 219 |
|
225 |
|
| 220 |
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(model.getStringProperty(INewSessionBeanClassDataModelProperties.PROJECT_NAME)); |
|
|
| 221 |
IJavaProject javaProject = JavaCore.create(project); |
226 |
IJavaProject javaProject = JavaCore.create(project); |
| 222 |
IType type = javaProject.findType(remoteFullName); |
227 |
IType type = javaProject.findType(remoteFullName); |
| 223 |
|
228 |
|
|
Lines 250-256
Link Here
|
| 250 |
String localFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.LOCAL_HOME_INTERFACE); |
255 |
String localFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.LOCAL_HOME_INTERFACE); |
| 251 |
String localComponentFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.LOCAL_COMPONENT_INTERFACE); |
256 |
String localComponentFullName = model.getStringProperty(INewSessionBeanClassDataModelProperties.LOCAL_COMPONENT_INTERFACE); |
| 252 |
|
257 |
|
| 253 |
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(model.getStringProperty(INewSessionBeanClassDataModelProperties.PROJECT_NAME)); |
|
|
| 254 |
IJavaProject javaProject = JavaCore.create(project); |
258 |
IJavaProject javaProject = JavaCore.create(project); |
| 255 |
IType type = javaProject.findType(localFullName); |
259 |
IType type = javaProject.findType(localFullName); |
| 256 |
|
260 |
|