Codota Logo
QualifiedTypeNameHistory.getNormalizedPosition
Code IndexAdd Codota to your IDE (free)

How to use
getNormalizedPosition
method
in
org.eclipse.jdt.internal.corext.util.QualifiedTypeNameHistory

Best Java code snippets using org.eclipse.jdt.internal.corext.util.QualifiedTypeNameHistory.getNormalizedPosition (Showing top 6 results out of 315)

  • Common ways to obtain QualifiedTypeNameHistory
private void myMethod () {
QualifiedTypeNameHistory q =
  • Codota IconString str;new QualifiedTypeNameHistory(str)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse/org.eclipse.jdt.ui

protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   * 
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   * 
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  
  return baseRelevance +  rhsBoost + recencyBoost;
}

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

@Override
protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   *
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   *
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  return baseRelevance +  rhsBoost + recencyBoost;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   *
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   *
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  return baseRelevance +  rhsBoost + recencyBoost;
}
org.eclipse.jdt.internal.corext.utilQualifiedTypeNameHistorygetNormalizedPosition

Popular methods of QualifiedTypeNameHistory

  • getBoost
  • getDefault
  • remember
  • <init>
  • accessed
  • load
  • save

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now