|
Lines 22-33
Link Here
|
| 22 |
import org.eclipse.core.runtime.Path; |
22 |
import org.eclipse.core.runtime.Path; |
| 23 |
import org.eclipse.jdt.core.IJavaProject; |
23 |
import org.eclipse.jdt.core.IJavaProject; |
| 24 |
import org.eclipse.jem.workbench.utility.JemProjectUtilities; |
24 |
import org.eclipse.jem.workbench.utility.JemProjectUtilities; |
| 25 |
import org.eclipse.jst.common.internal.modulecore.AddClasspathFoldersParticipant; |
|
|
| 26 |
import org.eclipse.jst.common.internal.modulecore.AddClasspathLibReferencesParticipant; |
| 27 |
import org.eclipse.jst.common.internal.modulecore.AddMappedOutputFoldersParticipant; |
| 28 |
import org.eclipse.jst.common.internal.modulecore.IgnoreJavaInSourceFolderParticipant; |
| 29 |
import org.eclipse.jst.common.internal.modulecore.ReplaceManifestExportParticipant; |
| 30 |
import org.eclipse.jst.common.internal.modulecore.SingleRootExportParticipant; |
| 31 |
import org.eclipse.jst.common.internal.modulecore.SingleRootUtil; |
25 |
import org.eclipse.jst.common.internal.modulecore.SingleRootUtil; |
| 32 |
import org.eclipse.jst.common.jdt.internal.javalite.JavaLiteUtilities; |
26 |
import org.eclipse.jst.common.jdt.internal.javalite.JavaLiteUtilities; |
| 33 |
import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit; |
27 |
import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit; |
|
Lines 35-42
Link Here
|
| 35 |
import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; |
29 |
import org.eclipse.jst.j2ee.internal.EjbModuleExtensionHelper; |
| 36 |
import org.eclipse.jst.j2ee.internal.IEJBModelExtenderManager; |
30 |
import org.eclipse.jst.j2ee.internal.IEJBModelExtenderManager; |
| 37 |
import org.eclipse.jst.j2ee.internal.J2EEConstants; |
31 |
import org.eclipse.jst.j2ee.internal.J2EEConstants; |
| 38 |
import org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyEnablement; |
|
|
| 39 |
import org.eclipse.jst.j2ee.internal.common.exportmodel.JEEHeirarchyExportParticipant; |
| 40 |
import org.eclipse.jst.j2ee.internal.common.exportmodel.JavaEESingleRootCallback; |
32 |
import org.eclipse.jst.j2ee.internal.common.exportmodel.JavaEESingleRootCallback; |
| 41 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
33 |
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; |
| 42 |
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; |
34 |
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities; |
|
Lines 50-56
Link Here
|
| 50 |
import org.eclipse.wst.common.componentcore.ArtifactEdit; |
42 |
import org.eclipse.wst.common.componentcore.ArtifactEdit; |
| 51 |
import org.eclipse.wst.common.componentcore.ComponentCore; |
43 |
import org.eclipse.wst.common.componentcore.ComponentCore; |
| 52 |
import org.eclipse.wst.common.componentcore.internal.flat.IChildModuleReference; |
44 |
import org.eclipse.wst.common.componentcore.internal.flat.IChildModuleReference; |
| 53 |
import org.eclipse.wst.common.componentcore.internal.flat.IFlattenParticipant; |
|
|
| 54 |
import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities; |
45 |
import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities; |
| 55 |
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; |
46 |
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent; |
| 56 |
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; |
47 |
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder; |
|
Lines 100-119
Link Here
|
| 100 |
} |
91 |
} |
| 101 |
|
92 |
|
| 102 |
@Override |
93 |
@Override |
| 103 |
protected IFlattenParticipant[] getParticipants() { |
94 |
protected String[] getDefaultFlattenParticipantIDs() { |
| 104 |
List<IFlattenParticipant> participants = new ArrayList<IFlattenParticipant>(); |
95 |
String[] defaultParticipants = new String[]{ |
| 105 |
|
96 |
JEEFlattenParticipantProvider.JEESingleRootParticipant, |
| 106 |
participants.add(new SingleRootExportParticipant(new JavaEESingleRootCallback())); |
97 |
JEEFlattenParticipantProvider.JEEHeirarchyExportParticipant, |
| 107 |
participants.add(new JEEHeirarchyExportParticipant()); |
98 |
JEEFlattenParticipantProvider.AddClasspathLibReferencesParticipant, |
| 108 |
participants.add(new AddClasspathLibReferencesParticipant()); |
99 |
JEEFlattenParticipantProvider.AddClasspathFoldersParticipant, |
| 109 |
participants.add(new AddClasspathFoldersParticipant()); |
100 |
JEEFlattenParticipantProvider.AddMappedOutputFoldersParticipant, |
| 110 |
participants.add(new AddMappedOutputFoldersParticipant()); |
101 |
JEEFlattenParticipantProvider.IgnoreJavaInSourceFolderParticipant, |
| 111 |
participants.add(new IgnoreJavaInSourceFolderParticipant()); |
102 |
JEEFlattenParticipantProvider.JEEReplaceManifestExportParticipant |
| 112 |
if (ClasspathDependencyEnablement.isAllowClasspathComponentDependency()) { |
103 |
}; |
| 113 |
participants.add(new ReplaceManifestExportParticipant(new Path(J2EEConstants.MANIFEST_URI))); |
104 |
return defaultParticipants; |
| 114 |
} |
|
|
| 115 |
|
| 116 |
return participants.toArray(new IFlattenParticipant[participants.size()]); |
| 117 |
} |
105 |
} |
| 118 |
|
106 |
|
| 119 |
@Override |
107 |
@Override |