Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Getting the cursor offset when there is a click.

Hello Randika,

You may look at
https://github.com/eclipse/che/blob/master/core/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorCursorModel.java
and
https://github.com/eclipse/che/blob/master/core/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/texteditor/TextEditorPresenter.java#L622-624

Regards,

Florent

On Tue, Jun 7, 2016 at 8:11 PM, Randika Navagamuwa <randika.12@xxxxxxxxxxxxx> wrote:
Hi all,
 I am trying to add multi cursor feature for eclipse che as my GSOC project and I managed to do some changes to my mentor's plugin[1]. This plugin enables the pair programming on eclipse che. Here DocumentReadyHandler() is used to get notified when there is character addition or a removal. I managed to add multiple cursors to the editor using annotations and used addMarker()  method to add the annotations. Now I'm having following problems.
  • How to get the cursor offset when there is a click on the editor. Now this get notified only when there is a character change.
  • What is the best way to remove an added marker? 

Thanks and regards,
Randika

--
Best Regards
Randika Navagamuwa,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.

_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev



Back to the top