Search in sources :

Example 1 with ExternalProjectsViewState

use of com.intellij.openapi.externalSystem.view.ExternalProjectsViewState in project intellij-community by JetBrains.

the class ExternalProjectsManager method getState.

@NotNull
@Override
public ExternalProjectsState getState() {
    ApplicationManager.getApplication().assertIsDispatchThread();
    for (ExternalProjectsView externalProjectsView : myProjectsViews) {
        if (externalProjectsView instanceof ExternalProjectsViewImpl) {
            final ExternalProjectsViewState externalProjectsViewState = ((ExternalProjectsViewImpl) externalProjectsView).getState();
            final ExternalProjectsState.State state = myState.getExternalSystemsState().get(externalProjectsView.getSystemId().getId());
            assert state != null;
            state.setProjectsViewState(externalProjectsViewState);
        }
    }
    return myState;
}
Also used : ExternalProjectsViewImpl(com.intellij.openapi.externalSystem.view.ExternalProjectsViewImpl) ExternalProjectsView(com.intellij.openapi.externalSystem.view.ExternalProjectsView) ExternalProjectsViewState(com.intellij.openapi.externalSystem.view.ExternalProjectsViewState) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ExternalProjectsView (com.intellij.openapi.externalSystem.view.ExternalProjectsView)1 ExternalProjectsViewImpl (com.intellij.openapi.externalSystem.view.ExternalProjectsViewImpl)1 ExternalProjectsViewState (com.intellij.openapi.externalSystem.view.ExternalProjectsViewState)1 NotNull (org.jetbrains.annotations.NotNull)1