List of usage examples for org.springframework.ide.eclipse.core SpringCoreUtils isManifest
public static boolean isManifest(IResource resource)
From source file:org.eclipse.virgo.ide.manifest.internal.core.validation.BundleManifestValidator.java
/** * {@inheritDoc}/*from ww w.j av a2 s.c o m*/ */ public Set<IResource> getAffectedResources(IResource resource, int kind, int deltaKind) throws CoreException { IJavaProject javaProject = JdtUtils.getJavaProject(resource); IResource bundleManifest = BundleManifestUtils.locateManifest(javaProject, false); Set<IResource> resources = new LinkedHashSet<IResource>(); if ((FacetUtils.isBundleProject(resource) && resource.equals(bundleManifest)) || (FacetUtils.isParProject(resource) && SpringCoreUtils.isManifest(resource))) { resources.add(resource); } else if (FacetUtils.isBundleProject(resource) && resource.getProjectRelativePath().toString().equals("template.mf")) { resources.add(resource); } return resources; }
From source file:org.eclipse.virgo.ide.beans.core.internal.locate.SpringOsgiBeansConfigLocator.java
/** * Returns <code>true</code> if the given <code>file</code> is a MANIFEST.MF. *//*from w ww.jav a 2 s . c om*/ public boolean requiresRefresh(IFile file) { return SpringCoreUtils.isManifest(file) || (file != null && file.getName().equals("template.mf")) || (file != null && ".settings/org.eclipse.wst.common.project.facet.core.xml" .equals(file.getProjectRelativePath().toString())); }