Tabnine Logo
ReorgCorrectionsSubProcessor$ClasspathFixCorrectionProposal
Code IndexAdd Tabnine to your IDE (free)

How to use
ReorgCorrectionsSubProcessor$ClasspathFixCorrectionProposal
in
org.eclipse.jdt.internal.ui.text.correction

Best Java code snippets using org.eclipse.jdt.internal.ui.text.correction.ReorgCorrectionsSubProcessor$ClasspathFixCorrectionProposal (Showing top 4 results out of 315)

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

public static void addProjectSetupFixProposal(IInvocationContext context, IProblemLocation problem, String missingType, Collection<ICommandAccess> proposals) {
  proposals.add(new ClasspathFixCorrectionProposal(context.getCompilationUnit(), problem.getOffset(), problem.getLength(), missingType));
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void apply(IDocument document) {
  IRunnableContext context= JavaPlugin.getActiveWorkbenchWindow();
  if (context == null) {
    context= new BusyIndicatorRunnableContext();
  }
  Shell shell= JavaPlugin.getActiveWorkbenchShell();
  if (ClasspathFixSelectionDialog.openClasspathFixSelectionDialog(shell, getCompilationUnit().getJavaProject(), fMissingType, context)) {
    if (fMissingType.indexOf('.') == -1) {
      try {
        IChooseImportQuery query= AddImportOnSelectionAction.newDialogQuery(shell);
        AddImportsOperation op= new AddImportsOperation(getCompilationUnit(), fOffset, fLength, query, false, false);
        IProgressService progressService= PlatformUI.getWorkbench().getProgressService();
        progressService.runInUI(context, new WorkbenchRunnableAdapter(op, op.getScheduleRule()), op.getScheduleRule());
        fResultingEdit= op.getResultingEdit();
        super.apply(document);
      } catch (InvocationTargetException e) {
        JavaPlugin.log(e);
      } catch (InterruptedException e) {
        // ignore
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void apply(IDocument document) {
  IRunnableContext context= JavaPlugin.getActiveWorkbenchWindow();
  if (context == null) {
    context= new BusyIndicatorRunnableContext();
  }
  Shell shell= JavaPlugin.getActiveWorkbenchShell();
  if (ClasspathFixSelectionDialog.openClasspathFixSelectionDialog(shell, getCompilationUnit().getJavaProject(), fMissingType, context)) {
    if (fMissingType.indexOf('.') == -1) {
      try {
        IChooseImportQuery query= AddImportOnSelectionAction.newDialogQuery(shell);
        AddImportsOperation op= new AddImportsOperation(getCompilationUnit(), fOffset, fLength, query, false, false);
        IProgressService progressService= PlatformUI.getWorkbench().getProgressService();
        progressService.runInUI(context, new WorkbenchRunnableAdapter(op, op.getScheduleRule()), op.getScheduleRule());
        fResultingEdit= op.getResultingEdit();
        super.apply(document);
      } catch (InvocationTargetException e) {
        JavaPlugin.log(e);
      } catch (InterruptedException e) {
        // ignore
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static void addProjectSetupFixProposal(IInvocationContext context, IProblemLocation problem, String missingType, Collection<ICommandAccess> proposals) {
  proposals.add(new ClasspathFixCorrectionProposal(context.getCompilationUnit(), problem.getOffset(), problem.getLength(), missingType));
}
org.eclipse.jdt.internal.ui.text.correctionReorgCorrectionsSubProcessor$ClasspathFixCorrectionProposal

Most used methods

  • <init>
  • getCompilationUnit

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • 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