editing ruler in a sourceViewer [message #461745] |
Tue, 16 January 2007 05:07 |
Eclipse User |
|
|
|
Originally posted by: peter_ossipov.mail.ru
Hello everybody!
Is there a possibility to edit inline the numbers on a ruler, I mean I
have overloaded the function
protected String createDisplayString(int line)
so I can display whatever I want after editing.
The problem is, I cannot display a text box on the ruler. I tried to
create is directly
@Override
public Control createControl(CompositeRuler parentRuler,
Composite parentControl)
{
Control control = super.createControl(parentRuler, parentControl);
new Text(parentControl, SWT.BORDER);
return control;
}
and using ControlEditor on a click event, but nothing works.
Is that possible at all?
Thanks very much in advance for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds