Package com.google.collide.client.code

Examples of com.google.collide.client.code.Participant


  private void createCursor(final String userId, Line line, int lineNumber, int column) {
    final CursorView cursorView = CursorView.create(appContext, false);
    cursorView.setVisibility(true);

    Participant participant = participantModel.getParticipantByUserId(userId);
    if (participant != null) {
      /*
       * If the participant exists already, set his color (otherwise the
       * participant model listener will set the color)
       */
      cursorView.setColor(participant.getColor());
    }

    Anchor anchor =
        document.getAnchorManager().createAnchor(COLLABORATOR_CURSOR_ANCHOR_TYPE, line, lineNumber,
            column);
View Full Code Here

TOP

Related Classes of com.google.collide.client.code.Participant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.