package com.dubture.composer.core.build; import org.eclipse.core.runtime.CoreException; import org.eclipse.dltk.core.IScriptProject; import org.eclipse.dltk.core.builder.IBuildParticipant; import org.eclipse.dltk.core.builder.IBuildParticipantFactory; import com.dubture.composer.core.ComposerNature; /** * This BuildParticipant parses the autoload_namespaces.php files to store the * namespace information for providing psr-0 Autoloading information (for * example in the PEX-Core Class/Interface wizards.) * * Other than this, it does nothing. * * @author Robert Gruendler <r.gruendler@gmail.com> */ public class BuildParticipantFactory implements IBuildParticipantFactory { @Override public IBuildParticipant createBuildParticipant(IScriptProject project) throws CoreException { if (!project.getProject().isAccessible()) { return null; } if (project.getProject().hasNature(ComposerNature.NATURE_ID) == false) { return null; } return new ComposerBuildParticipant(); } }