Package org.appformer.client.context
Interface EditorContextProvider
-
- All Known Implementing Classes:
DefaultEditorContextProviderImpl
public interface EditorContextProviderProvide access to EditorContext properties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChannelgetChannel()Access the channel where the editor is running (e.g.Optional<OperatingSystem>getOperatingSystem()Access the operating system where the editor is running (e.g.booleanisReadOnly()Checks if the editor is in read only mode.
-
-
-
Method Detail
-
getChannel
Channel getChannel()
Access the channel where the editor is running (e.g. ONLINE, GITHUB or VSCODE).- Returns:
- The channel where the editor is running or DEFAULT if no channel is available.
-
getOperatingSystem
Optional<OperatingSystem> getOperatingSystem()
Access the operating system where the editor is running (e.g. MACOS, WINDOWS or LINUX).- Returns:
- The operating system where the editor is running or Optional.empty() if no information is available.
-
isReadOnly
boolean isReadOnly()
Checks if the editor is in read only mode.- Returns:
- If the editor is in read only mode or if is not.
-
-