|
Lines 17-22
Link Here
|
| 17 |
|
17 |
|
| 18 |
package org.eclipse.jst.ws.internal.creation.ui.extension; |
18 |
package org.eclipse.jst.ws.internal.creation.ui.extension; |
| 19 |
|
19 |
|
|
|
20 |
import org.eclipse.core.resources.IProject; |
| 21 |
import org.eclipse.core.resources.ResourcesPlugin; |
| 20 |
import org.eclipse.core.runtime.IAdaptable; |
22 |
import org.eclipse.core.runtime.IAdaptable; |
| 21 |
import org.eclipse.core.runtime.IProgressMonitor; |
23 |
import org.eclipse.core.runtime.IProgressMonitor; |
| 22 |
import org.eclipse.core.runtime.IStatus; |
24 |
import org.eclipse.core.runtime.IStatus; |
|
Lines 25-45
Link Here
|
| 25 |
import org.eclipse.jst.ws.internal.consumption.command.common.AssociateModuleWithEARCommand; |
27 |
import org.eclipse.jst.ws.internal.consumption.command.common.AssociateModuleWithEARCommand; |
| 26 |
import org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand; |
28 |
import org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand; |
| 27 |
import org.eclipse.jst.ws.internal.consumption.command.common.SkeletonMergeCommand; |
29 |
import org.eclipse.jst.ws.internal.consumption.command.common.SkeletonMergeCommand; |
|
|
30 |
import org.eclipse.jst.ws.internal.consumption.common.FacetUtils; |
| 28 |
import org.eclipse.jst.ws.internal.consumption.common.RequiredFacetVersion; |
31 |
import org.eclipse.jst.ws.internal.consumption.common.RequiredFacetVersion; |
|
|
32 |
import org.eclipse.jst.ws.internal.consumption.ui.widgets.test.wssample.AddModuleDependenciesCommand; |
| 29 |
import org.eclipse.wst.common.environment.IEnvironment; |
33 |
import org.eclipse.wst.common.environment.IEnvironment; |
| 30 |
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; |
34 |
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation; |
| 31 |
import org.eclipse.wst.ws.internal.wsrt.IContext; |
35 |
import org.eclipse.wst.ws.internal.wsrt.IContext; |
| 32 |
import org.eclipse.wst.ws.internal.wsrt.IWebService; |
36 |
import org.eclipse.wst.ws.internal.wsrt.IWebService; |
|
|
37 |
import org.eclipse.wst.ws.internal.wsrt.TestInfo; |
| 33 |
import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario; |
38 |
import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario; |
| 34 |
|
39 |
|
| 35 |
public class PreServiceAssembleCommand extends AbstractDataModelOperation |
40 |
public class PreServiceAssembleCommand extends AbstractDataModelOperation |
| 36 |
{ |
41 |
{ |
| 37 |
private IWebService webService_; |
42 |
private IWebService webService_; |
| 38 |
private String project_; |
43 |
private String project_; |
| 39 |
private String module_; |
44 |
private String module_; |
| 40 |
private String earProject_; |
45 |
private String earProject_; |
| 41 |
private String ear_; |
46 |
private String ear_; |
| 42 |
private IContext context_; |
47 |
private IContext context_; |
|
|
48 |
private IProject initialProject_; |
| 43 |
|
49 |
|
| 44 |
public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) |
50 |
public IStatus execute( IProgressMonitor monitor, IAdaptable adaptable ) |
| 45 |
{ |
51 |
{ |
|
Lines 102-111
Link Here
|
| 102 |
environment.getStatusHandler().reportError(status); |
108 |
environment.getStatusHandler().reportError(status); |
| 103 |
} |
109 |
} |
| 104 |
|
110 |
|
|
|
111 |
// add the module |
| 112 |
|
| 113 |
AddModuleDependenciesCommand addMod = new AddModuleDependenciesCommand(new TestInfo()); |
| 114 |
|
| 115 |
//make sure the ear file has been created. |
| 116 |
IProject earProject = ResourcesPlugin.getWorkspace().getRoot().getProject(earProject_); |
| 117 |
if(FacetUtils.isJavaProject(initialProject_)) |
| 118 |
addMod.addJavaProjectAsUtilityJar(initialProject_, earProject, monitor); |
| 119 |
|
| 120 |
|
| 121 |
|
| 105 |
} |
122 |
} |
| 106 |
return status; |
123 |
return status; |
| 107 |
} |
124 |
} |
| 108 |
|
125 |
|
|
|
126 |
public void setInitialProject(IProject initialProject) |
| 127 |
{ |
| 128 |
initialProject_ = initialProject; |
| 129 |
} |
| 130 |
|
| 131 |
public IProject getInitialProject() |
| 132 |
{ |
| 133 |
return initialProject_; |
| 134 |
} |
| 135 |
|
| 136 |
|
| 109 |
public void setProject( String project ) |
137 |
public void setProject( String project ) |
| 110 |
{ |
138 |
{ |
| 111 |
project_ = project; |
139 |
project_ = project; |