MainViewModel

Instantiates a class representing the whole main view of the plugin.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bannerViewModel: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val courseViewModel: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val disposing: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
val modules: <Error class: unknown class>?
Link copied to clipboard
val newsTreeViewModel: <Error class: unknown class><<Error class: unknown class>?>
Link copied to clipboard
val progressViewModel: <Error class: unknown class>
Link copied to clipboard
val toolWindowCardViewModel: <Error class: unknown class>

Functions

Link copied to clipboard
fun dispose()
Link copied to clipboard
fun setAuthenticated(authenticated: Boolean)

Sets the ToolWindowCardCViewModel authenticated.

Link copied to clipboard
fun setProjectReady(isReady: Boolean)

Calling this method informs the main view model that the corresponding project has been initialized (by InitializationActivity).

Link copied to clipboard

Creates a new ExercisesTreeViewModel with the given exercise groups, which is then set to MainViewModel.exercisesViewModel.

Link copied to clipboard

Creates a new NewsTreeViewModel from the NewsTree from the CourseProject, which is then set to MainViewModel.newsTreeViewModel.

Link copied to clipboard
fun userChanged(user: <Error class: unknown class>?)