@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; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new JimpleDoubleClickStrategy(); return doubleClickStrategy; }
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; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new DockerfileDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new XMLDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new UmpleDoubleClickStrategy(); return doubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new UMPDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new DoubleClickStrategy(); return doubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (fDoubleClickStrategy == null) { fDoubleClickStrategy = new CSSDoubleClickStrategy(); } return fDoubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (fDoubleClickStrategy == null) { fDoubleClickStrategy = new HTMLDoubleClickStrategy(); } return fDoubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (fDoubleClickStrategy == null) { fDoubleClickStrategy = new CommonDoubleClickStrategy(); } return fDoubleClickStrategy; }
@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); }
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) { doubleClickStrategy = new XMLDoubleClickStrategy(); } return doubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new XMLDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType ) { if ( doubleClickStrategy == null ) doubleClickStrategy = new XMLDoubleClickStrategy( ); return doubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null){ doubleClickStrategy = new BytemanRuleDoubleClickStrategy(); } return doubleClickStrategy; }
/** * @Override */ public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType){ if (doubleClickStrategy == null) doubleClickStrategy = new HDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType){ if( doubleClickStrategy == null) doubleClickStrategy = new XMLDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy( ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new NCLDoubleClickStrategy(); return doubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { return new DoubleClickStrategy(editor); }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { return doubleClickStrategyProvider.getStrategy(sourceViewer, contentType, getConfiguredDocumentPartitioning(sourceViewer)); }
public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy, String contentType) { originalTextViewer.setTextDoubleClickStrategy(strategy, contentType); }
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer aSourceViewer, String aContentType) { return VelocityEditorEnvironment.getDoubleClickStrategy(); }
/** * Returns the singleton double-click strategy. */ public static ITextDoubleClickStrategy getDoubleClickStrategy() { return fgDoubleClickStrategy; }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(final ISourceViewer sourceViewer, final String contentType) { if (this.doubleClickStrategy == null) { this.doubleClickStrategy = new DMDoubleClickStrategy(); } return this.doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new XMLDoubleClickStrategy(); return doubleClickStrategy; }
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer,String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new KernelSyntaxTextDoubleClickStrategy(); return doubleClickStrategy; }
@Override public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy, String contentType) { }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { return new ApexDoubleClickSelector(); }
public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { if (doubleClickStrategy == null) doubleClickStrategy = new MinetweakerDoubleClickStrategy(); return doubleClickStrategy; }
@Override public void setTextDoubleClickStrategy(ITextDoubleClickStrategy strategy, String contentType) { viewer.setTextDoubleClickStrategy(strategy, contentType); }
@Override public ITextDoubleClickStrategy getDoubleClickStrategy(ISourceViewer sourceViewer, String contentType) { return new CustomTextDoubleClickStrategy(); }
/** * 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); }