Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » editing ruler in a sourceViewer
editing ruler in a sourceViewer [message #461745] Tue, 16 January 2007 05:07
Eclipse UserFriend
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.
Previous Topic:Passing filename into RCP on startup
Next Topic:ruler in a SourceViewer
Goto Forum:
  


Current Time: Thu Mar 20 15:08:59 EDT 2025

Powered by FUDForum. Page generated in 0.03453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top