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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Eclipse: StyledText setLineBackground

  • 22-08-2004 5: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