public final class ContributionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isFragmentProject(org.eclipse.core.resources.IProject project)
Checks whether the project is a fragment project.
|
static boolean |
isPluginProject(org.eclipse.core.resources.IProject project)
Checks whether the project is a plugin project.
|
static Optional<String> |
parseIFile(org.eclipse.core.resources.IFile file)
Util method which allows to parse an IFile.
|
public static boolean isPluginProject(org.eclipse.core.resources.IProject project)
project
- the project to checkspublic static boolean isFragmentProject(org.eclipse.core.resources.IProject project)
project
- the project to checkspublic static Optional<String> parseIFile(org.eclipse.core.resources.IFile file) throws IOException, org.eclipse.core.runtime.CoreException
file
- the IFile to parseUnsupportedEncodingException
IOException
- Thrown if file is not readableorg.eclipse.core.runtime.CoreException
- Thrown if eclipse cannot read the fileCopyright © 2019. All rights reserved.