blob: cea5c40d45cc2b0b89f6867fc47ff35fc4c38e9f [file] [log] [blame]
/**
*
* Copyright (c) 2009-2010 Thales Corporate Services S.A.S.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Thales Corporate Services S.A.S - initial API and implementation
*
*/
package org.eclipse.egf.core.natures;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.egf.core.EGFCorePlugin;
public class EGFNatures {
public static final String EGF_NATURE = "org.eclipse.egf.core.EGFNature"; //$NON-NLS-1$
public static final String PATTERN_BUILDER_ID = "org.eclipse.egf.pattern.ui.PatternBuilder"; //$NON-NLS-1$
public static boolean hasFactoryComponentNature(IProject project) {
try {
return project.hasNature(EGF_NATURE);
} catch (CoreException ce) {
EGFCorePlugin.getDefault().logError(ce);
return false;
}
}
}