blob: b0f91f1a5cd7ec0bdeb9e921ef18072d0d91407e [file] [log] [blame]
/**
*
* Copyright (c) 2009-2010 Thales Corporate Services S.A.S.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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;
}
}
}