1 /*
2  * EnvironmentObjectsObserver.java
3  *
4  * Copyright (C) 2021 by RStudio, PBC
5  *
6  * Unless you have received this program directly from RStudio pursuant
7  * to the terms of a commercial license agreement with RStudio, then
8  * this program is licensed to you under the terms of version 3 of the
9  * GNU Affero General Public License. This program is distributed WITHOUT
10  * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
11  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
12  * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
13  *
14  */
15 package org.rstudio.studio.client.workbench.views.environment.view;
16 
17 import org.rstudio.core.client.widget.Operation;
18 import org.rstudio.studio.client.workbench.views.environment.model.RObject;
19 
20 public interface EnvironmentObjectsObserver
21 {
viewObject(String action, String objectName)22    void viewObject(String action, String objectName);
setObjectExpanded(String objectName)23    void setObjectExpanded(String objectName);
setObjectCollapsed(String objectName)24    void setObjectCollapsed(String objectName);
setPersistedScrollPosition(int scrollPosition)25    void setPersistedScrollPosition(int scrollPosition);
changeContextDepth(int newDepth)26    void changeContextDepth(int newDepth);
setViewDirty()27    void setViewDirty();
getShowInternalFunctions()28    boolean getShowInternalFunctions();
setShowInternalFunctions(boolean show)29    void setShowInternalFunctions(boolean show);
fillObjectContents(RObject object, Operation onCompleted)30    void fillObjectContents(RObject object, Operation onCompleted);
31 }
32