/** * Insert the method's description here. Creation date: (11/29/00 6:35:08 PM) * * @param newExportStrategy * com.ibm.etools.archive.ExportStrategy */ public void setExportStrategy(org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ExportStrategy newExportStrategy) { exportStrategy = newExportStrategy; if (newExportStrategy != null) { newExportStrategy.setArchive(this); } }
public void save(SaveStrategy aSaveStrategy) throws SaveFailureException { setSaveStrategy(aSaveStrategy); if (getExportStrategy() != null) getExportStrategy().preSave(aSaveStrategy); super.save(aSaveStrategy); }
protected boolean shouldSave(File aFile) { boolean loaded = isLoadedResourceOrManifest(aFile); if (loaded) { Resource res = archive.getLoadStrategy().getExistingMofResource(aFile.getURI()); if (res == null) return false; //must be manifest return !shouldSave(res); } if (getArchive().isModuleFile()) { ModuleFile m = (ModuleFile) getArchive(); if (m.getExportStrategy() != null && m.getExportStrategy().hasSaved(aFile.getURI())) return false; } return shouldSave(aFile.getURI()); }