congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
QualifiedTypeNameHistory
Code IndexAdd Tabnine to your IDE (free)

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

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

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.jdt/org.eclipse.jdt.ui

private void rememberSelection() {
  QualifiedTypeNameHistory.remember(getQualifiedTypeName());
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static QualifiedTypeNameHistory getDefault() {
  if (fgInstance == null)
    fgInstance= new QualifiedTypeNameHistory("QualifiedTypeNameHistory.xml"); //$NON-NLS-1$
  return fgInstance;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public static void remember(String fullyQualifiedTypeName) {
  getDefault().accessed(fullyQualifiedTypeName);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

QualifiedTypeNameHistory.getDefault().save();
origin: org.eclipse/org.eclipse.ajdt.ui

public int compare(Object o1, Object o2) {
  if (((String)o1).equals(o2))
    return 0;
  
  History history= QualifiedTypeNameHistory.getDefault();
  
  int pos1= history.getPosition(o1);
  int pos2= history.getPosition(o2);
  
  if (pos1 == pos2)
    return Collator.getInstance().compare(o1, o2);
  
  if (pos1 > pos2) {
    return -1;
  } else {
    return 1;
  }
}

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

String label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_importtype_description, arg);
Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL);
int boost= QualifiedTypeNameHistory.getBoost(fullName, 0, maxProposals);
proposal= new AddImportCorrectionProposal(label, cu, relevance + 100 + boost, image, packName, simpleName, (SimpleName)node);
proposal.setCommandId(ADD_IMPORT_ID);
origin: org.eclipse/org.eclipse.jdt.ui

public QualifiedTypeNameHistory(String fileName) {
  super(fileName, NODE_ROOT, NODE_TYPE_INFO);
  load();
}
origin: org.eclipse/org.eclipse.jdt.ui

public static void remember(String fullyQualifiedTypeName) {
  getDefault().accessed(fullyQualifiedTypeName);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

QualifiedTypeNameHistory.getDefault().save();
origin: org.eclipse/org.eclipse.jdt.ui

public int compare(Object o1, Object o2) {
  if (((String)o1).equals(o2))
    return 0;
  
  History history= QualifiedTypeNameHistory.getDefault();
  
  int pos1= history.getPosition(o1);
  int pos2= history.getPosition(o2);
  
  if (pos1 == pos2)
    return Collator.getInstance().compare(o1, o2);
  
  if (pos1 > pos2) {
    return -1;
  } else {
    return 1;
  }
}

origin: org.eclipse/org.eclipse.ajdt.ui

String label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_importtype_description, arg);
Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL);
int boost= QualifiedTypeNameHistory.getBoost(fullName, 0, maxProposals);
proposal= new AddImportCorrectionProposal(label, cu, relevance + 100 + boost, image, packName, simpleName, (SimpleName)node);
proposal.setCommandId(ADD_IMPORT_ID);
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public QualifiedTypeNameHistory(String fileName) {
  super(fileName, NODE_ROOT, NODE_TYPE_INFO);
  load();
}
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

private void rememberSelection() throws CoreException {
  QualifiedTypeNameHistory.remember(getQualifiedTypeName());
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static void remember(String fullyQualifiedTypeName) {
  getDefault().accessed(fullyQualifiedTypeName);
}
origin: org.eclipse/org.eclipse.jdt.ui

QualifiedTypeNameHistory.getDefault().save();
origin: org.eclipse/org.eclipse.jdt.ui

public int compare(Object o1, Object o2) {
  if (((String)o1).equals(o2))
    return 0;
  
  History history= QualifiedTypeNameHistory.getDefault();
  
  int pos1= history.getPosition(o1);
  int pos2= history.getPosition(o2);
  
  if (pos1 == pos2)
    return Collator.getInstance().compare(o1, o2);
  
  if (pos1 > pos2) {
    return -1;
  } else {
    return 1;
  }
}

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

String label= Messages.format(CorrectionMessages.UnresolvedElementsSubProcessor_importtype_description, arg);
Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL);
int boost= QualifiedTypeNameHistory.getBoost(fullName, 0, maxProposals);
proposal= new AddImportCorrectionProposal(label, cu, relevance + 100 + boost, image, packName, simpleName, (SimpleName)node);
proposal.setCommandId(ADD_IMPORT_ID);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public QualifiedTypeNameHistory(String fileName) {
  super(fileName, NODE_ROOT, NODE_TYPE_INFO);
  load();
}
org.eclipse.jdt.internal.corext.utilQualifiedTypeNameHistory

Most used methods

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • String (java.lang)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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