Codota Logo
ProblemLocationCore.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.jdt.internal.ui.text.correction.ProblemLocationCore
constructor

Best Java code snippets using org.eclipse.jdt.internal.ui.text.correction.ProblemLocationCore.<init> (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: eclipse/eclipse.jdt.ls

/**
 * Convert set of IProblems to IProblemLocations
 *
 * @param problems
 *            the problems to convert
 * @return the converted set
 */
protected static IProblemLocationCore[] convertProblems(IProblem[] problems) {
  IProblemLocationCore[] result = new IProblemLocationCore[problems.length];
  for (int i = 0; i < problems.length; i++) {
    result[i] = new ProblemLocationCore(problems[i]);
  }
  return result;
}
origin: eclipse/eclipse.jdt.ls

public static ICleanUpFixCore createCleanUp(CompilationUnit compilationUnit, boolean insertInferredTypeArguments, boolean removeRedundantTypeArguments) {
  IProblem[] problems= compilationUnit.getProblems();
  IProblemLocationCore[] locations = new IProblemLocationCore[problems.length];
  for (int i= 0; i < problems.length; i++) {
    locations[i] = new ProblemLocationCore(problems[i]);
  }
  return createCleanUp(compilationUnit, locations,
      insertInferredTypeArguments,
      removeRedundantTypeArguments);
}
origin: eclipse/eclipse.jdt.ls

private IProblemLocationCore[] getProblemLocationCores(ICompilationUnit unit, List<Diagnostic> diagnostics) {
  IProblemLocationCore[] locations = new IProblemLocationCore[diagnostics.size()];
  for (int i = 0; i < diagnostics.size(); i++) {
    Diagnostic diagnostic = diagnostics.get(i);
    int problemId = getProblemId(diagnostic);
    int start = DiagnosticsHelper.getStartOffset(unit, diagnostic.getRange());
    int end = DiagnosticsHelper.getEndOffset(unit, diagnostic.getRange());
    boolean isError = diagnostic.getSeverity() == DiagnosticSeverity.Error;
    locations[i] = new ProblemLocationCore(start, end - start, problemId, new String[0], isError, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
  }
  return locations;
}
origin: eclipse/eclipse.jdt.ls

public static ICleanUpFixCore createCleanUp(CompilationUnit compilationUnit, boolean addSerialVersionIds) {
  IProblem[] problems = compilationUnit.getProblems();
  IProblemLocationCore[] locations = new IProblemLocationCore[problems.length];
  for (int i = 0; i < problems.length; i++) {
    // locations[i]= new ProblemLocationCore(problems[i]);
    boolean isError = problems[i].isError();
    int problemId = problems[i].getID();
    int length = problems[i].getSourceEnd() - problems[i].getSourceStart();
    int offset = problems[i].getSourceStart();
    locations[i] = new ProblemLocationCore(offset, length, problemId, new String[0], isError, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
  }
  return createCleanUp(compilationUnit, locations, addSerialVersionIds);
}
org.eclipse.jdt.internal.ui.text.correctionProblemLocationCore<init>

Popular methods of ProblemLocationCore

  • getErrorCode

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • JComboBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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