congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ClasspathFixProcessor.getFixImportProposals
Code IndexAdd Tabnine to your IDE (free)

How to use
getFixImportProposals
method
in
org.eclipse.jdt.ui.text.java.ClasspathFixProcessor

Best Java code snippets using org.eclipse.jdt.ui.text.java.ClasspathFixProcessor.getFixImportProposals (Showing top 2 results out of 315)

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

@Override
public void run() throws Exception {
  ClasspathFixProcessor processor= curr.getProcessor(project);
  if (processor != null) {
    ClasspathFixProposal[] fixProposals= processor.getFixImportProposals(project, missingType);
    if (fixProposals != null) {
      for (int k= 0; k < fixProposals.length; k++) {
        proposals.add(fixProposals[k]);
      }
      overriddenIds.addAll(curr.getOverridenIds());
    }
  }
}
@Override
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void run() throws Exception {
  ClasspathFixProcessor processor= curr.getProcessor(project);
  if (processor != null) {
    ClasspathFixProposal[] fixProposals= processor.getFixImportProposals(project, missingType);
    if (fixProposals != null) {
      for (int k= 0; k < fixProposals.length; k++) {
        proposals.add(fixProposals[k]);
      }
      overriddenIds.addAll(curr.getOverridenIds());
    }
  }
}
@Override
org.eclipse.jdt.ui.text.javaClasspathFixProcessorgetFixImportProposals

Javadoc

Returns proposal that can fix non-resolvable imports. The proposal is expected to change the class path or a classpath container so that the missing type can be resolved. A proposal should also consider to fix related types. For example, when a reference to junit.framework.TestCase is requested, it makes sense to import the full JUnit library, not just fixing the missing type.

Popular methods of ClasspathFixProcessor

    Popular in Java

    • Making http requests using okhttp
    • scheduleAtFixedRate (ScheduledExecutorService)
    • onRequestPermissionsResult (Fragment)
    • scheduleAtFixedRate (Timer)
    • BufferedReader (java.io)
      Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • TimerTask (java.util)
      The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    • JList (javax.swing)
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Top 17 Free Sublime Text Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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