Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvbhadrir2005-06-17 15:32:40 +0000
committervbhadrir2005-06-17 15:32:40 +0000
commit8533ebab4e8bcb06217168d4210b2e0fa93e4ae5 (patch)
tree913d5dd2d52e52d214a6be3bccec7bc8f006ff39 /plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java
parent30fea059b81c6fb26b61883a280b755275598ba8 (diff)
downloadwebtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.tar.gz
webtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.tar.xz
webtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.zip
[87474]commited for NA
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java')
-rw-r--r--plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java b/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java
index 0cdb91b2f..84d7da7fd 100644
--- a/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java
+++ b/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java
@@ -43,7 +43,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im
IVirtualComponent component = ComponentCore.createComponent(getProject(), getModuleDeployName());
component.create(0, null);
//create and link META-INF folder
- IVirtualFolder root = component.getFolder(new Path("/")); //$NON-NLS-1$
+ IVirtualFolder root = component.getRootFolder().getFolder(new Path("/")); //$NON-NLS-1$
root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$
IVirtualFolder metaInfFolder = root.getFolder(J2EEConstants.META_INF);
@@ -54,9 +54,9 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im
IVirtualComponent component = ComponentCore.createComponent(getProject(), getModuleDeployName());
component.create(0, null);
//create and link META-INF folder
- IVirtualFolder root = component.getFolder(new Path("/")); //$NON-NLS-1$
- root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$
-
+ IVirtualFolder root = component.getRootFolder().getFolder(new Path("/")); //$NON-NLS-1$
+ root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$
+
IVirtualFolder metaInfFolder = root.getFolder(J2EEConstants.META_INF);
metaInfFolder.create(IResource.FORCE, null);
}
@@ -103,7 +103,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im
IDataModel dm = (IDataModel)model.getProperty(NESTED_ADD_COMPONENT_TO_EAR_DM);
IVirtualComponent component = ComponentCore.createComponent(getProject(), model.getStringProperty(COMPONENT_DEPLOY_NAME));
dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT_HANDLE, component.getComponentHandle());
-
+
List modulesList = (List)model.getProperty(J2EE_COMPONENT_LIST);
if (modulesList != null && !modulesList.isEmpty()) {
dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_HANDLE_LIST, modulesList);
@@ -111,9 +111,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im
if( stat != OK_STATUS )
return stat;
dm.getDefaultOperation().execute(monitor, null);
- }
-
-
+ }
List javaProjectsList = (List)model.getProperty(JAVA_PROJECT_LIST);
if( !javaProjectsList.isEmpty()){

Back to the top