Java 类org.eclipse.swt.custom.LineBackgroundListener 实例源码

项目:e4macs    文件:EmacsPlusConsole.java   
public void addBackground(LineBackgroundListener listener) {
    if (getWidget() != null && !myWidget.isDisposed()) {
        myWidget.addLineBackgroundListener(listener);
        background = listener;
    }
}
项目:e4macs    文件:EmacsPlusConsole.java   
public void removeBackground(LineBackgroundListener listener) {
    if (getWidget() != null && !myWidget.isDisposed()) {
        myWidget.removeLineBackgroundListener(listener);
    }
}