Tabnine Logo
JavaElementHyperlinkDeclaredTypeDetector
Code IndexAdd Tabnine to your IDE (free)

How to use
JavaElementHyperlinkDeclaredTypeDetector
in
org.eclipse.jdt.internal.ui.javaeditor

Best Java code snippets using org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDeclaredTypeDetector (Showing top 4 results out of 315)

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

@Override
protected void addHyperlinks(List<IHyperlink> hyperlinksCollector, IRegion wordRegion, SelectionDispatchAction openAction, IJavaElement element, boolean qualify, JavaEditor editor) {
  try {
    if (element.getElementType() == IJavaElement.FIELD || element.getElementType() == IJavaElement.LOCAL_VARIABLE) {
      String typeSignature= getTypeSignature(element);
      if (!JavaModelUtil.isPrimitive(typeSignature) && SelectionConverter.canOperateOn(editor)) {
        if (Signature.getTypeSignatureKind(typeSignature) == Signature.INTERSECTION_TYPE_SIGNATURE) {
          String[] bounds= Signature.getIntersectionTypeBounds(typeSignature);
          qualify|= bounds.length >= 2;
          for (int i= 0; i < bounds.length; i++) {
            hyperlinksCollector.add(new JavaElementDeclaredTypeHyperlink(wordRegion, openAction, element, bounds[i], qualify));
          }
        } else {
          hyperlinksCollector.add(new JavaElementDeclaredTypeHyperlink(wordRegion, openAction, element, qualify));
        }
      }
    }
  } catch (JavaModelException e) {
    JavaPlugin.log(e);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected void addHyperlinks(List<IHyperlink> hyperlinksCollector, IRegion wordRegion, SelectionDispatchAction openAction, IJavaElement element, boolean qualify, JavaEditor editor) {
  try {
    if (element.getElementType() == IJavaElement.FIELD || element.getElementType() == IJavaElement.LOCAL_VARIABLE) {
      String typeSignature= getTypeSignature(element);
      if (!JavaModelUtil.isPrimitive(typeSignature) && SelectionConverter.canOperateOn(editor)) {
        if (Signature.getTypeSignatureKind(typeSignature) == Signature.INTERSECTION_TYPE_SIGNATURE) {
          String[] bounds= Signature.getIntersectionTypeBounds(typeSignature);
          qualify|= bounds.length >= 2;
          for (int i= 0; i < bounds.length; i++) {
            hyperlinksCollector.add(new JavaElementDeclaredTypeHyperlink(wordRegion, openAction, element, bounds[i], qualify));
          }
        } else {
          hyperlinksCollector.add(new JavaElementDeclaredTypeHyperlink(wordRegion, openAction, element, qualify));
        }
      }
    }
  } catch (JavaModelException e) {
    JavaPlugin.log(e);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

if (typeSignature == null) {
  try {
    typeSignature= JavaElementHyperlinkDeclaredTypeDetector.getTypeSignature(fElement);
  } catch (JavaModelException e) {
    JavaPlugin.log(e);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

if (typeSignature == null) {
  try {
    typeSignature= JavaElementHyperlinkDeclaredTypeDetector.getTypeSignature(fElement);
  } catch (JavaModelException e) {
    JavaPlugin.log(e);
org.eclipse.jdt.internal.ui.javaeditorJavaElementHyperlinkDeclaredTypeDetector

Javadoc

Java element variable declaration type hyperlink detector.

Most used methods

  • getTypeSignature
    Returns the type signature of the element.

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text plugins
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