Author: rob.stryker(a)jboss.com
Date: 2007-05-01 14:54:16 -0400 (Tue, 01 May 2007)
New Revision: 1979
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/types/EjbArchiveType.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml
Log:
quick api change to allow filling of already created archive stubs
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/types/EjbArchiveType.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/types/EjbArchiveType.java
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/types/EjbArchiveType.java 2007-05-01
18:54:16 UTC (rev 1979)
@@ -0,0 +1,32 @@
+package org.jboss.ide.eclipse.as.core.packages.types;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.jboss.ide.eclipse.archives.core.model.IArchive;
+
+public class EjbArchiveType extends J2EEArchiveType {
+
+ public final static String ID =
"org.jboss.ide.eclipse.as.core.packages.ejbPackageType";
+ public String getAssociatedModuleType() {
+ return "jst.ejb";
+ }
+
+ public String getId() {
+ return ID;
+ }
+
+ public String getLabel() {
+ return "EJB JAR";
+ }
+
+ public IArchive createDefaultConfiguration(IProject project, IProgressMonitor monitor)
{
+ IArchive topLevel = createGenericIArchive(project, null, project.getName() +
".jar");
+ return fillDefaultConfiguration(project, topLevel, monitor);
+ }
+
+ public IArchive fillDefaultConfiguration(IProject project, IArchive topLevel,
IProgressMonitor monitor) {
+
+ return topLevel;
+ }
+
+}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2007-05-01 18:54:13 UTC (rev
1978)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.xml 2007-05-01 18:54:16 UTC (rev
1979)
@@ -493,12 +493,8 @@
id="org.jboss.ide.eclipse.as.core.packages.warArchive"
label="WAR"/>
<packageType
-
class="org.jboss.ide.eclipse.as.core.packages.types.EarArchiveType"
- id="org.jboss.ide.eclipse.as.core.packages.earArchive"
- label="EAR"/>
- <packageType
-
class="org.jboss.ide.eclipse.as.core.packages.types.Ejb30PackageType"
- id="org.jboss.ide.eclipse.as.core.packages.types.ejbPackageType"
- label="EJB 3.0 JAR"/>
+
class="org.jboss.ide.eclipse.as.core.packages.types.EjbArchiveType"
+ id="org.jboss.ide.eclipse.as.core.packages.ejbPackageType"
+ label="EJB JAR"/>
</extension>
</plugin>
Show replies by date