当前位置: 首页>>代码示例>>Java>>正文


Java ITextDoubleClickStrategy类代码示例

本文整理汇总了Java中org.eclipse.jface.text.ITextDoubleClickStrategy的典型用法代码示例。如果您正苦于以下问题:Java ITextDoubleClickStrategy类的具体用法?Java ITextDoubleClickStrategy怎么用?Java ITextDoubleClickStrategy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ITextDoubleClickStrategy类属于org.eclipse.jface.text包,在下文中一共展示了ITextDoubleClickStrategy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
	if (IJavaPartitions.JAVA_DOC.equals(contentType))
		return new JavadocDoubleClickStrategy(getConfiguredDocumentPartitioning(sourceViewer));
	if (IJavaPartitions.JAVA_SINGLE_LINE_COMMENT.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 0, 0);
	if (IJavaPartitions.JAVA_MULTI_LINE_COMMENT.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 0, 0);
	else if (IJavaPartitions.JAVA_STRING.equals(contentType) || IJavaPartitions.JAVA_CHARACTER.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 1, 1);
	if (fJavaDoubleClickSelector == null) {
		fJavaDoubleClickSelector= new JavaDoubleClickSelector();
		fJavaDoubleClickSelector.setSourceVersion(fPreferenceStore.getString(JavaCore.COMPILER_SOURCE));
	}
	return fJavaDoubleClickSelector;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:JavaSourceViewerConfiguration.java

示例2: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new JimpleDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:8,代码来源:JimpleConfiguration.java

示例3: getStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getStrategy(ISourceViewer sourceViewer, String contentType, String documentPartitioning) {
	if (TerminalsTokenTypeToPartitionMapper.COMMENT_PARTITION.equals(contentType))
		return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 0, 0);
	if (TerminalsTokenTypeToPartitionMapper.SL_COMMENT_PARTITION.equals(contentType))
		return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 0, 0);
	if (TerminalsTokenTypeToPartitionMapper.STRING_LITERAL_PARTITION.equals(contentType))
		return new FixedCharCountPartitionDoubleClickSelector(documentPartitioning, 1, 1);
	return defaultDoubleClickStrategy;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:10,代码来源:DoubleClickStrategyProvider.java

示例4: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new DockerfileDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:osswangxining,项目名称:dockerfoundry,代码行数:8,代码来源:DockerfileConfiguration.java

示例5: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new XMLDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:insweat,项目名称:hssd,代码行数:8,代码来源:XMLConfiguration.java

示例6: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new UmpleDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:umple,项目名称:umple,代码行数:8,代码来源:UmpleConfiguration.java

示例7: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new UMPDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:umple,项目名称:umple,代码行数:9,代码来源:UMPConfiguration.java

示例8: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new DoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:ninneko,项目名称:velocity-edit,代码行数:8,代码来源:Configuration.java

示例9: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
	if (fDoubleClickStrategy == null)
	{
		fDoubleClickStrategy = new CSSDoubleClickStrategy();
	}
	return fDoubleClickStrategy;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:10,代码来源:CSSSourceViewerConfiguration.java

示例10: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
	if (fDoubleClickStrategy == null)
	{
		fDoubleClickStrategy = new HTMLDoubleClickStrategy();
	}
	return fDoubleClickStrategy;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:10,代码来源:HTMLSourceViewerConfiguration.java

示例11: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
	if (fDoubleClickStrategy == null)
	{
		fDoubleClickStrategy = new CommonDoubleClickStrategy();
	}

	return fDoubleClickStrategy;
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:11,代码来源:CommonSourceViewerConfiguration.java

示例12: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
	if (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 0, 0, 0);
	if (IPropertiesFilePartitions.COMMENT.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 0, 0);
	if (IPropertiesFilePartitions.PROPERTY_VALUE.equals(contentType))
		return new PartitionDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer), 1, -1);

	return super.getDoubleClickStrategy(sourceViewer, contentType);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:PropertiesFileSourceViewerConfiguration.java

示例13: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer,
        String contentType) {
    if (doubleClickStrategy == null) {
        doubleClickStrategy = new XMLDoubleClickStrategy();
    }
    return doubleClickStrategy;
}
 
开发者ID:apache,项目名称:ant-ivyde,代码行数:8,代码来源:XMLConfiguration.java

示例14: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(
	ISourceViewer sourceViewer,
	String contentType) {
	if (doubleClickStrategy == null)
		doubleClickStrategy = new XMLDoubleClickStrategy();
	return doubleClickStrategy;
}
 
开发者ID:vogellacompany,项目名称:codeexamples-eclipse,代码行数:9,代码来源:XMLConfiguration.java

示例15: getDoubleClickStrategy

import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
		ISourceViewer sourceViewer, String contentType )
{
	if ( doubleClickStrategy == null )
		doubleClickStrategy = new XMLDoubleClickStrategy( );
	return doubleClickStrategy;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:8,代码来源:XMLConfiguration.java


注:本文中的org.eclipse.jface.text.ITextDoubleClickStrategy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。