Examples of ProblemSeverity


Examples of org.eclipse.dltk.compiler.problem.ProblemSeverity

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setDefaultSeverity(ProblemSeverity newDefaultSeverity) {
    ProblemSeverity oldDefaultSeverity = defaultSeverity;
    defaultSeverity = newDefaultSeverity;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ValidatorsPackage.TYPE__DEFAULT_SEVERITY, oldDefaultSeverity, defaultSeverity));
  }
View Full Code Here

Examples of org.eclipse.dltk.compiler.problem.ProblemSeverity

    String filename = context.getFile().getName();
    int start = sourceStart+e.token.getCharPositionInLine();
    int end = start+e.token.getText().length();
   
    // retrieve severity from preferences
    ProblemSeverity severity = SymfonyCorePreferences.getAnnotationSeverity();
   
    IProblem problem = new DefaultProblem(filename, message, IProblem.Syntax,
        new String[0], severity, start+1, end+1, lineNo);
   
   
View Full Code Here

Examples of org.eclipse.dltk.compiler.problem.ProblemSeverity

            * this should be the way to create the problem without the deprecation
            * warning, but then our QuickFixProcessor doesn't get called.
            */
            //IProblem newProblem = new DefaultProblem(filename, message, DefaultProblemIdentifier.NULL, new String[0], ProblemSeverities.Error, start+1, end+1, lineNo, start);

            ProblemSeverity severity = SymfonyCorePreferences.getAnnotationSeverity();

            IProblem problem = new DefaultProblem(filename, message, IProblem.ImportRelated,
                    new String[0], severity, sourcePosition.startOffset + 1, sourcePosition.endOffset + 1, lineNo);

            context.getProblemReporter().reportProblem(problem);
View Full Code Here

Examples of org.eclipse.dltk.compiler.problem.ProblemSeverity

        // see https://github.com/pulse00/Twig-Eclipse-Plugin/issues/8
        if (!TwigCorePlugin.getDefault().isDLTK3()) {
            return;
        }

        ProblemSeverity severity = TwigCorePreferences.getSyntaxErrorSeverity();

        if (severity == null || severity == ProblemSeverity.IGNORE)
            return;

        IProblem problem = new DefaultProblem(filename, message,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.