本文整理汇总了Java中org.eclipse.core.runtime.content.IContentTypeMatcher类的典型用法代码示例。如果您正苦于以下问题:Java IContentTypeMatcher类的具体用法?Java IContentTypeMatcher怎么用?Java IContentTypeMatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IContentTypeMatcher类属于org.eclipse.core.runtime.content包,在下文中一共展示了IContentTypeMatcher类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getContentTypes
点赞 2
import org.eclipse.core.runtime.content.IContentTypeMatcher; //导入依赖的package包/类
protected IContentType[] getContentTypes() throws CoreException
{
// TODO Cache this?
IProject theProject = getProject();
if (theProject != null)
{
IContentTypeMatcher matcher = theProject.getContentTypeMatcher();
return matcher.findContentTypesFor(getName());
}
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
if (ArrayUtil.isEmpty(projects))
{
return Platform.getContentTypeManager().findContentTypesFor(getName());
}
for (IProject project : projects)
{
try
{
IContentType[] type = project.getContentTypeMatcher().findContentTypesFor(getName());
if (type != null)
{
return type;
}
}
catch (CoreException e)
{
IdeLog.logError(IndexPlugin.getDefault(), e);
}
}
return NO_CONTENT_TYPES;
}
开发者ID:apicloudcom,
项目名称:APICloud-Studio,
代码行数:34,
代码来源:BuildContext.java
示例2: getContentTypeMatcher
点赞 2
import org.eclipse.core.runtime.content.IContentTypeMatcher; //导入依赖的package包/类
@Override
public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
throw new UnsupportedOperationException();
}
开发者ID:eclipse,
项目名称:che,
代码行数:5,
代码来源:Project.java
示例3: getContentTypeMatcher
点赞 2
import org.eclipse.core.runtime.content.IContentTypeMatcher; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
return resource().getContentTypeMatcher();
}
开发者ID:sealuzh,
项目名称:PerformanceHat,
代码行数:8,
代码来源:AbstractProjectDecorator.java
示例4: getContentTypeMatcher
点赞 2
import org.eclipse.core.runtime.content.IContentTypeMatcher; //导入依赖的package包/类
@Override
public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
throw new RuntimeException("Not implemented");
}
开发者ID:fabioz,
项目名称:Pydev,
代码行数:5,
代码来源:AbstractIProjectStub.java
示例5: getContentTypeMatcher
点赞 1
import org.eclipse.core.runtime.content.IContentTypeMatcher; //导入依赖的package包/类
/**
* Returns this project's content type matcher. This content type matcher takes project specific
* preferences and nature-content type associations into account.
*
* @return the content type matcher for this project
* @exception CoreException if this method fails. Reasons include:
* <ul>
* <li>This project does not exist.
* <li>This project is not open.
* </ul>
*
* @see IContentTypeMatcher
* @since 3.1
*/
public IContentTypeMatcher getContentTypeMatcher() throws CoreException;
开发者ID:eclipse,
项目名称:che,
代码行数:16,
代码来源:IProject.java