Created
August 14, 2019 14:38
-
-
Save pcdavid/cfbfb54cf1aaf5735d4244f629cd1649 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From capella/core/plugins/org.polarsys.capella.core.model.handler/src/org/polarsys/capella/core/model/handler/command/CapellaResourceHelper.java | |
/** | |
* Returns whether the given project is a Capella project (project or library) | |
*/ | |
public static boolean isCapellaProject(IProject targetProject) { | |
try { | |
return targetProject.hasNature(CAPELLA_PROJECT_NATURE) || targetProject.hasNature(CAPELLA_LIBRARY_PROJECT_NATURE); | |
} catch (CoreException exception) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment