Author: rob.stryker(a)jboss.com
Date: 2007-05-24 17:14:43 -0400 (Thu, 24 May 2007)
New Revision: 2076
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/packages/NewEARAction.java
Log:
Changes regarding the archives API change
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/packages/NewEARAction.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/packages/NewEARAction.java 2007-05-24
21:14:11 UTC (rev 2075)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/packages/NewEARAction.java 2007-05-24
21:14:43 UTC (rev 2076)
@@ -7,7 +7,7 @@
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.PlatformUI;
-import org.jboss.ide.eclipse.archives.core.model.ArchivesCore;
+import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.model.IArchive;
import org.jboss.ide.eclipse.archives.core.model.IArchiveType;
import org.jboss.ide.eclipse.archives.ui.ArchivesSharedImages;
@@ -64,7 +64,7 @@
}
public boolean performFinish(IArchive pkg) {
- pkg.setArchiveType(ArchivesCore.getArchiveType(EarArchiveType.ID));
+ pkg.setArchiveType(ArchivesCore.getInstance().getExtensionManager().getArchiveType(EarArchiveType.ID));
return true;
}
@@ -80,8 +80,8 @@
ArchivesSharedImages.getImageDescriptor(ArchivesSharedImages.IMG_EAR));
}
protected void addToPackage() {
- IArchiveType type = ArchivesCore.getArchiveType(EarArchiveType.ID);
- type.fillDefaultConfiguration(wizard.getProject(), wizard.getArchive(), new
NullProgressMonitor());
+ IArchiveType type =
ArchivesCore.getInstance().getExtensionManager().getArchiveType(EarArchiveType.ID);
+ type.fillDefaultConfiguration(wizard.getProject().getName(), wizard.getArchive(),
new NullProgressMonitor());
}
protected String getDescriptionMessage() {
Show replies by date