trait IClientConnection extends ILogger
Connection for Scala and Java clients
- Alphabetic
- By Inheritance
- IClientConnection
- ILogger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
allAvailableActions(): Future[Seq[IExecutableAction]]
Calculates the list of all available actions.
-
abstract
def
calculateEditorContextActions(uri: String, position: Int): Future[Seq[IExecutableAction]]
Calculates the list of executable actions avilable in the current context.
Calculates the list of executable actions avilable in the current context.
- uri
- document uri.
- position
- optional position in the document. If not provided, the last reported by positionChanged method will be used.
-
abstract
def
changeDetailValue(uri: String, position: Int, itemID: String, value: AnyVal): Future[Seq[IChangedDocument]]
Changes value of details item.
Changes value of details item.
- uri
- uri of the document to change
- position
- position of the value to change
- itemID
- identifier of the value to change
- value
- new value
-
abstract
def
debug(message: String, component: String, subcomponent: String): Unit
Logs a DEBUG severity message.
Logs a DEBUG severity message.
- message
- message text
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
-
abstract
def
debugDetail(message: String, component: String, subcomponent: String): Unit
Logs a DEBUG_DETAIL severity message.
Logs a DEBUG_DETAIL severity message.
- message
- message text
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
-
abstract
def
debugOverview(message: String, component: String, subcomponent: String): Unit
Logs a DEBUG_OVERVIEW severity message.
Logs a DEBUG_OVERVIEW severity message.
- message
- message text
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
-
abstract
def
documentChanged(document: IChangedDocument): Unit
Notifies the server that document is changed.
-
abstract
def
documentClosed(uri: String): Unit
Notified the server that document is closed.
-
abstract
def
documentOpened(document: IOpenedDocument): Unit
Notifies the server that document is opened.
-
abstract
def
error(message: String, component: String, subcomponent: String): Unit
Logs an ERROR severity message.
Logs an ERROR severity message.
- message
- message text
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
-
abstract
def
executeContextAction(uri: String, action: IExecutableAction, position: Int): Future[Seq[IChangedDocument]]
Executes the specified action.
Executes the specified action. If action has UI, causes a consequent server->client UI message resulting in onDisplayActionUI listener call.
- uri
- document uri
- action
- action to execute.
- position
- optional position in the document. If not provided, the last reported by positionChanged method will be used.
-
abstract
def
executeContextActionByID(uri: String, actionID: String, position: Int): Future[Seq[IChangedDocument]]
Executes the specified action.
Executes the specified action. If action has UI, causes a consequent server->client UI message resulting in onDisplayActionUI listener call.
- uri
- document uri
- actionID
- actionID to execute.
- position
- optional position in the document. If not provided, the last reported by positionChanged method will be used.
-
abstract
def
executeDetailsAction(uri: String, actionID: String, position: Int): Future[Seq[IChangedDocument]]
Executes the specified details action.
Executes the specified details action.
- uri
- document uri
- actionID
- ID of the action to execute.
- position
- optional position in the document. If not provided, the last reported by positionChanged method will be used.
-
abstract
def
findReferences(uri: String, position: Int): Future[Seq[ILocation]]
Requests server for the positions of the references of the element defined at the given document position.
Requests server for the positions of the references of the element defined at the given document position.
- uri
- document uri
- position
- position in the document
-
abstract
def
getDetails(uri: String, position: Int): Future[IDetailsItem]
Requests server for the document+position details.
-
abstract
def
getLatestVersion(uri: String): Future[Int]
Gets latest document version.
-
abstract
def
getStructure(uri: String): Future[Map[String, StructureNodeJSON]]
Requests server for the document structure.
-
abstract
def
getSuggestions(uri: String, position: Int): Future[Seq[ISuggestion]]
Requests server for the suggestions.
Requests server for the suggestions.
- uri
- document uri
- position
- offset in the document, starting from 0
-
abstract
def
log(message: String, severity: common.logger.MessageSeverity.Value, component: String, subcomponent: String): Unit
Logs a message
Logs a message
- message
- message text
- severity
- message severity
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
-
abstract
def
markOccurrences(uri: String, position: Int): Future[Seq[IRange]]
Requests server for the occurrences of the element defined at the given document position.
Requests server for the occurrences of the element defined at the given document position.
- uri
- document uri
- position
- position in the document
-
abstract
def
onContent(listener: (String) ⇒ Future[String], unsubscribe: Boolean = false): Unit
Listens to the server requests for file contents, answering what contents file has.
-
abstract
def
onDetailsReport(listener: (IDetailsReport) ⇒ Unit, unsubscribe: Boolean = false): Unit
Report from the server that the new details are calculated for particular document and position.
-
abstract
def
onDisplayActionUI(listener: (IUIDisplayRequest) ⇒ Future[Any], unsubscribe: Boolean = false): Unit
Adds a listener to display action UI.
Adds a listener to display action UI.
- listener
- accepts UI display request, should result in a promise returning final UI state to be transferred to the server.
-
abstract
def
onExists(listener: (String) ⇒ Future[Boolean], unsubscribe: Boolean = false): Unit
Listens to the server requests for FS path existence, answering whether a particular path exists on FS.
-
abstract
def
onIsDirectory(listener: (String) ⇒ Future[Boolean], unsubscribe: Boolean = false): Unit
Listens to the server requests for directory check, answering whether a particular path is a directory.
-
abstract
def
onReadDir(listener: (String) ⇒ Future[Seq[String]], unsubscribe: Boolean = false): Unit
Listens to the server requests for directory contents, answering with a list of files in a directory.
-
abstract
def
onStructureReport(listener: (IStructureReport) ⇒ Unit, unsubscribe: Boolean = false): Unit
Instead of calling getStructure to get immediate structure report for the document, this method allows to launch to the new structure reports when those are available.
-
abstract
def
onValidationReport(listener: (IValidationReport) ⇒ Unit, unsubscribe: Boolean = false): Unit
Adds a listener for validation report coming from the server.
-
abstract
def
openDeclaration(uri: String, position: Int): Future[Seq[ILocation]]
Requests server for the positions of the declaration of the element defined at the given document position.
Requests server for the positions of the declaration of the element defined at the given document position.
- uri
- document uri
- position
- position in the document
-
abstract
def
positionChanged(uri: String, position: Int): Unit
Reports to the server the position (cursor) change on the client.
Reports to the server the position (cursor) change on the client.
- uri
- document uri.
- position
- curtsor position, starting from 0.
-
abstract
def
rename(uri: String, position: Int, newName: String): Future[Seq[IChangedDocument]]
Requests server for rename of the element at the given document position.
Requests server for rename of the element at the given document position.
- uri
- document uri
- position
- position in the document
-
abstract
def
setLoggerConfiguration(loggerSettings: ILoggerSettings): Unit
Sets logger configuration, both for the server and for the client.
Sets logger configuration, both for the server and for the client.
- Definition Classes
- ILogger
-
abstract
def
setServerConfiguration(serverSettings: IServerConfiguration): Unit
Sets server configuration.
-
abstract
def
stop(): Unit
Stops the server.
-
abstract
def
warning(message: String, component: String, subcomponent: String): Unit
Logs a WARNING severity message.
Logs a WARNING severity message.
- message
- message text
- component
- component name
- subcomponent
- sub-component name
- Definition Classes
- ILogger
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )