@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); }
@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 (IDocument.DEFAULT_CONTENT_TYPE.equals(contentType)) return new JavaStringDoubleClickSelector(getConfiguredDocumentPartitioning(sourceViewer)); return super.getDoubleClickStrategy(sourceViewer, contentType); }
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) { PresentationReconciler reconciler= new JavaPresentationReconciler(); reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); DefaultDamagerRepairer dr= new DefaultDamagerRepairer(getPropertyKeyScanner()); reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE); reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE); dr= new DefaultDamagerRepairer(getCommentScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.COMMENT); reconciler.setRepairer(dr, IPropertiesFilePartitions.COMMENT); dr= new DefaultDamagerRepairer(getPropertyValueScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.PROPERTY_VALUE); reconciler.setRepairer(dr, IPropertiesFilePartitions.PROPERTY_VALUE); return reconciler; }
@Override public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) { PresentationReconciler reconciler= new JavaPresentationReconciler(); reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); DefaultDamagerRepairer dr= new DefaultDamagerRepairer(getPropertyKeyScanner()); reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE); reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE); dr= new DefaultDamagerRepairer(getCommentScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.COMMENT); reconciler.setRepairer(dr, IPropertiesFilePartitions.COMMENT); dr= new DefaultDamagerRepairer(getPropertyValueScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.PROPERTY_VALUE); reconciler.setRepairer(dr, IPropertiesFilePartitions.PROPERTY_VALUE); return reconciler; }
@Override public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) { PresentationReconciler reconciler= new JavaPresentationReconciler(); reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); DefaultDamagerRepairer dr= new DefaultDamagerRepairer(getPropertyKeyScanner()); reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE); reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE); dr= new DefaultDamagerRepairer(getCommentScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.COMMENT); reconciler.setRepairer(dr, IPropertiesFilePartitions.COMMENT); dr= new DefaultDamagerRepairer(getPropertyValueScanner()); reconciler.setDamager(dr, IPropertiesFilePartitions.PROPERTY_VALUE); reconciler.setRepairer(dr, IPropertiesFilePartitions.PROPERTY_VALUE); return reconciler; }