|
Lines 22-27
Link Here
|
| 22 |
import org.eclipse.core.runtime.IPath; |
22 |
import org.eclipse.core.runtime.IPath; |
| 23 |
import org.eclipse.core.runtime.IStatus; |
23 |
import org.eclipse.core.runtime.IStatus; |
| 24 |
import org.eclipse.core.runtime.NullProgressMonitor; |
24 |
import org.eclipse.core.runtime.NullProgressMonitor; |
|
|
25 |
import org.eclipse.core.runtime.Path; |
| 25 |
import org.eclipse.core.runtime.Platform; |
26 |
import org.eclipse.core.runtime.Platform; |
| 26 |
import org.eclipse.jem.util.emf.workbench.ProjectUtilities; |
27 |
import org.eclipse.jem.util.emf.workbench.ProjectUtilities; |
| 27 |
import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties; |
28 |
import org.eclipse.jst.common.project.facet.IJavaFacetInstallDataModelProperties; |
|
Lines 32-37
Link Here
|
| 32 |
import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainerUtils; |
33 |
import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainerUtils; |
| 33 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
34 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
| 34 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences; |
35 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences; |
|
|
36 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences.Keys; |
| 35 |
import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; |
37 |
import org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities; |
| 36 |
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; |
38 |
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; |
| 37 |
import org.eclipse.osgi.util.NLS; |
39 |
import org.eclipse.osgi.util.NLS; |
|
Lines 209-214
Link Here
|
| 209 |
if( config instanceof JavaFacetInstallConfig ) |
211 |
if( config instanceof JavaFacetInstallConfig ) |
| 210 |
{ |
212 |
{ |
| 211 |
this.javaFacetInstallConfig = (JavaFacetInstallConfig) config; |
213 |
this.javaFacetInstallConfig = (JavaFacetInstallConfig) config; |
|
|
214 |
|
| 215 |
String providerId = model.getID(); |
| 216 |
if(providerId != "") //$NON-NLS-1$ |
| 217 |
{ |
| 218 |
if (providerId.indexOf("WebFacetInstallDataModelProvider") != -1) //$NON-NLS-1$ |
| 219 |
{ this.javaFacetInstallConfig.setDefaultOutputFolder(new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(Keys.DYN_WEB_OUTPUT_FOLDER))); } |
| 220 |
else |
| 221 |
if(providerId.indexOf("EjbFacetInstallDataModelProvider") != -1) //$NON-NLS-1$ |
| 222 |
{ this.javaFacetInstallConfig.setDefaultOutputFolder(new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(Keys.EJB_OUTPUT_FOLDER))); } |
| 223 |
else |
| 224 |
if(providerId.indexOf("AppClientFacetInstallDataModelProvider") != -1) //$NON-NLS-1$ |
| 225 |
{ this.javaFacetInstallConfig.setDefaultOutputFolder(new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(Keys.APP_CLIENT_OUTPUT_FOLDER))); } |
| 226 |
else |
| 227 |
if(providerId.indexOf("ConnectorFacetInstallDataModelProvider") != -1) //$NON-NLS-1$ |
| 228 |
{ this.javaFacetInstallConfig.setDefaultOutputFolder(new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getString(Keys.JCA_OUTPUT_FOLDER))); } |
| 229 |
else |
| 230 |
if(providerId.indexOf("UtilityFacetInstallDataModelProvider") != -1) //$NON-NLS-1$ |
| 231 |
{ this.javaFacetInstallConfig.setDefaultOutputFolder(new Path(J2EEPlugin.getDefault().getJ2EEPreferences().getUtilityOutputFolderName())); } |
| 232 |
} |
| 212 |
} |
233 |
} |
| 213 |
else |
234 |
else |
| 214 |
{ |
235 |
{ |