Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6068683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:44:29+00:00 2026-05-23T09:44:29+00:00

So I am working with Eclipse, and am trying to enable Java error highlighting

  • 0

So I am working with Eclipse, and am trying to enable Java error highlighting inside of a standalone SourceViewer. I have done quite a bit of searching the web, but nothing seems to come up. I have looked into dealing with Annotations, Markers, etc… Everything that comes up seems to be for implementing custom methods.

http://wiki.eclipse.org/Platform_Text

has helped a bit, but seems to be not exactly what I want.

The SourceViewer is going to be a basic Java editor, so it can be assumed that everything will be java code. I would just like the red squiggly lines to appear under syntax errors, maybe also have the red boxes on a ruler on the side. There should be a default easy way to enable this, but I cannot find it.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:44:29+00:00Added an answer on May 23, 2026 at 9:44 am

    It is doable, but it can be a bit of work. What makes it difficult is that a standalone SourceViewer widget doesn’t support the IDocumentProvider interface that does a lot of the work so you have to do all of that yourself.

    I found this post helpful as far as adding the red squiggly lines is concerned:
    http://www.eclipsezone.com/eclipse/forums/t30082.html

    For the squiggly lines you want to set up an AnnotationPainter.

    If you want the red boxes on a ruler, use the SourceViewer constructor that accepts an IOverviewRuler. There’s a standard OverviewRuler that should work for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on Eclipse recently. I am fairly new to java programming,
I'm trying to get the Boost library working in my C++ projects in Eclipse.
Currently, I have a machine on which I am working in Eclipse, it says
I am working on Android (with Eclipse and SDK) trying to stream video into
i'm currently working on a Eclipse RCP Project. I have a Plugin Fragment where
I am a brand new Java developer (I have been working in asp.net) and
I'm working on Windows XP I have portable version of Eclipse Galileo, but I
I have some time now working with the BlackBerry's Eclipse Plugin with no issues
I'm trying to get the ADT working in Eclipse, but I'm getting random hangs
I'm using GWT (currenly working with google's eclipse plugin), and I'm trying to throw

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.