Java 类org.eclipse.jface.text.ITextDoubleClickStrategy 实例源码

项目:Eclipse-Postfix-Code-Completion    文件:JavaSourceViewerConfiguration.java   
@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;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaSourceViewerConfiguration.java   
@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;
}
项目:JAADAS    文件:JimpleConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new JimpleDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:bts    文件:DoubleClickStrategyProvider.java   
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;
}
项目:dockerfoundry    文件:DockerfileConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new DockerfileDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:hssd    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:umple    文件:UmpleConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new UmpleDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:umple    文件:UMPConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new UMPDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:velocity-edit    文件:Configuration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new DoubleClickStrategy();
    return doubleClickStrategy;
}
项目:BYONDclipse    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:APICloud-Studio    文件:CSSSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
    if (fDoubleClickStrategy == null)
    {
        fDoubleClickStrategy = new CSSDoubleClickStrategy();
    }
    return fDoubleClickStrategy;
}
项目:APICloud-Studio    文件:HTMLSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
    if (fDoubleClickStrategy == null)
    {
        fDoubleClickStrategy = new HTMLDoubleClickStrategy();
    }
    return fDoubleClickStrategy;
}
项目:APICloud-Studio    文件:CommonSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType)
{
    if (fDoubleClickStrategy == null)
    {
        fDoubleClickStrategy = new CommonDoubleClickStrategy();
    }

    return fDoubleClickStrategy;
}
项目:Eclipse-Postfix-Code-Completion    文件:PropertiesFileSourceViewerConfiguration.java   
@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);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PropertiesFileSourceViewerConfiguration.java   
@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);
}
项目:ROADDesigner    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:ant-ivyde    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer,
        String contentType) {
    if (doubleClickStrategy == null) {
        doubleClickStrategy = new XMLDoubleClickStrategy();
    }
    return doubleClickStrategy;
}
项目:codeexamples-eclipse    文件:XMLConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:birt    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
        ISourceViewer sourceViewer, String contentType )
{
    if ( doubleClickStrategy == null )
        doubleClickStrategy = new XMLDoubleClickStrategy( );
    return doubleClickStrategy;
}
项目:byteman-editor    文件:BytemanRuleConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(
    ISourceViewer sourceViewer,
    String contentType) {
    if (doubleClickStrategy == null){
        doubleClickStrategy = new BytemanRuleDoubleClickStrategy();
    }
    return doubleClickStrategy;
}
项目:convertigo-eclipse    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
        ISourceViewer sourceViewer, String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:http4e    文件:HConfiguration.java   
/**
 * @Override
 */
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType){
   if (doubleClickStrategy == null)
      doubleClickStrategy = new HDoubleClickStrategy();
   return doubleClickStrategy;
}
项目:http4e    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
        ISourceViewer sourceViewer, String contentType){
    if( doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:ncl30-eclipse    文件:NCLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(
        ISourceViewer sourceViewer, String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new NCLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:fluentmark    文件:FluentMkSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    return new DoubleClickStrategy(editor);
}
项目:bts    文件:XtextSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    return doubleClickStrategyProvider.getStrategy(sourceViewer, contentType, getConfiguredDocumentPartitioning(sourceViewer));
}
项目:gwt-eclipse-plugin    文件:DelegatingTextViewer.java   
public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy,
    String contentType) {
  originalTextViewer.setTextDoubleClickStrategy(strategy, contentType);
}
项目:velocity-edit    文件:VelocityConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer aSourceViewer, String aContentType)
{
    return VelocityEditorEnvironment.getDoubleClickStrategy();
}
项目:velocity-edit    文件:VelocityEditorEnvironment.java   
/**
 * Returns the singleton double-click strategy.
 */
public static ITextDoubleClickStrategy getDoubleClickStrategy()
{
    return fgDoubleClickStrategy;
}
项目:BYONDclipse    文件:DMConfiguration.java   
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(final ISourceViewer sourceViewer, final String contentType)
{
    if (this.doubleClickStrategy == null)                                                   { this.doubleClickStrategy = new DMDoubleClickStrategy(); }

    return this.doubleClickStrategy;
}
项目:PDFReporter-Studio    文件:XMLConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new XMLDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:eclipse-kernelsyntax    文件:KernelSyntaxSourceViewerConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer,String contentType) {
    if (doubleClickStrategy == null) doubleClickStrategy = new KernelSyntaxTextDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:strutsclipse    文件:MockTextViewer.java   
@Override
public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy,
        String contentType) {
}
项目:idecore    文件:ApexSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    return new ApexDoubleClickSelector();
}
项目:Minetweaker-IDE    文件:MinetweakerConfiguration.java   
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    if (doubleClickStrategy == null)
        doubleClickStrategy = new MinetweakerDoubleClickStrategy();
    return doubleClickStrategy;
}
项目:Pydev    文件:ScriptConsoleViewerWrapper.java   
@Override
public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy, String contentType) {
    viewer.setTextDoubleClickStrategy(strategy, contentType);
}
项目:logan    文件:CustomTextSourceViewerConfiguration.java   
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    return new CustomTextDoubleClickStrategy();
}
项目:Pydev    文件:PyEditConfigurationWithoutEditor.java   
/**
 * Just the default double-click strategy for now. But we should be smarter.
 *
 * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)
 */
@Override
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) {
    return new PyDoubleClickStrategy(contentType);
}