本文整理汇总了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;
}
示例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;
}
示例4: getDoubleClickStrategy
import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
ISourceViewer sourceViewer,
String contentType) {
if (doubleClickStrategy == null)
doubleClickStrategy = new DockerfileDoubleClickStrategy();
return doubleClickStrategy;
}
示例5: getDoubleClickStrategy
import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
ISourceViewer sourceViewer,
String contentType) {
if (doubleClickStrategy == null)
doubleClickStrategy = new XMLDoubleClickStrategy();
return doubleClickStrategy;
}
示例6: getDoubleClickStrategy
import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
ISourceViewer sourceViewer,
String contentType) {
if (doubleClickStrategy == null)
doubleClickStrategy = new UmpleDoubleClickStrategy();
return doubleClickStrategy;
}
示例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;
}
示例8: getDoubleClickStrategy
import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
ISourceViewer sourceViewer,
String contentType) {
if (doubleClickStrategy == null)
doubleClickStrategy = new DoubleClickStrategy();
return doubleClickStrategy;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例15: getDoubleClickStrategy
import org.eclipse.jface.text.ITextDoubleClickStrategy; //导入依赖的package包/类
public ITextDoubleClickStrategy getDoubleClickStrategy(
ISourceViewer sourceViewer, String contentType )
{
if ( doubleClickStrategy == null )
doubleClickStrategy = new XMLDoubleClickStrategy( );
return doubleClickStrategy;
}