Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Eclipse: StyledText setLineBackground

Options
  • 22-08-2004 6:51pm
    #1
    Closed Accounts Posts: 1,325 ✭✭✭


    Well I've run into a slight problem and I'm a bit baffled as to what
    is wrong so I am looking to yeerselves for some insight.

    I have as follows.....

    One editor
    A getter that returns the StyledText of said editor.
    Code to set the line background ...

    IWorkbench wb = org.eclipse.ui.PlatformUI.getWorkbench();
    Device dev = wb.getDisplay();
    Color orange = new Color(dev, 255, 127, 0);

    editor.getTextWidget().setLineBackground(10, 5, orange);

    I'm at a loss as to why it's not working, any advise
    welcome.

    Thanks for you time,
    A.


Advertisement