Tabnine Logo
PartitionDoubleClickSelector.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jdt.internal.ui.text.java.PartitionDoubleClickSelector
constructor

Best Java code snippets using org.eclipse.jdt.internal.ui.text.java.PartitionDoubleClickSelector.<init> (Showing top 4 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

@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);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@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);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@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;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@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;
}
org.eclipse.jdt.internal.ui.text.javaPartitionDoubleClickSelector<init>

Javadoc

Creates a new partition double click selector for the given document partitioning.

Popular methods of PartitionDoubleClickSelector

  • findExtendedDoubleClickSelection

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now