-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2797dce
commit 9252546
Showing
8 changed files
with
145 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/gwt/src/org/rstudio/studio/client/workbench/views/tutorial/TutorialPane.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* TutorialPane.java | ||
* | ||
* Copyright (C) 2009-19 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.workbench.views.tutorial; | ||
|
||
import org.rstudio.core.client.widget.RStudioFrame; | ||
import org.rstudio.studio.client.common.AutoGlassPanel; | ||
import org.rstudio.studio.client.workbench.ui.WorkbenchPane; | ||
|
||
import com.google.gwt.user.client.ui.Widget; | ||
import com.google.inject.Inject; | ||
|
||
public class TutorialPane | ||
extends WorkbenchPane | ||
implements TutorialPresenter.Display | ||
{ | ||
@Inject | ||
protected TutorialPane() | ||
{ | ||
super("Tutorial"); | ||
ensureWidget(); | ||
} | ||
|
||
@Override | ||
protected Widget createMainWidget() | ||
{ | ||
frame_ = new RStudioFrame("Tutorial Pane"); | ||
frame_.setSize("100%", "100%"); | ||
frame_.addStyleName("ace_editor_theme"); | ||
frame_.setUrl("about:blank"); | ||
return new AutoGlassPanel(frame_); | ||
} | ||
|
||
private RStudioFrame frame_; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/gwt/src/org/rstudio/studio/client/workbench/views/tutorial/TutorialPresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* TutorialPresenter.java | ||
* | ||
* Copyright (C) 2009-19 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.workbench.views.tutorial; | ||
|
||
import org.rstudio.studio.client.workbench.WorkbenchView; | ||
import org.rstudio.studio.client.workbench.views.BasePresenter; | ||
|
||
import com.google.inject.Inject; | ||
|
||
public class TutorialPresenter | ||
extends BasePresenter | ||
{ | ||
public interface Display extends WorkbenchView | ||
{ | ||
} | ||
|
||
@Inject | ||
protected TutorialPresenter(Display display) | ||
{ | ||
super(display); | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
src/gwt/src/org/rstudio/studio/client/workbench/views/tutorial/TutorialTab.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* TutorialTab.java | ||
* | ||
* Copyright (C) 2009-18 by RStudio, Inc. | ||
* | ||
* This program is licensed to you under the terms of version 3 of the | ||
* GNU Affero General Public License. This program is distributed WITHOUT | ||
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the | ||
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details. | ||
* | ||
*/ | ||
package org.rstudio.studio.client.workbench.views.tutorial; | ||
|
||
import org.rstudio.studio.client.workbench.ui.DelayLoadTabShim; | ||
import org.rstudio.studio.client.workbench.ui.DelayLoadWorkbenchTab; | ||
|
||
import com.google.inject.Inject; | ||
|
||
public class TutorialTab extends DelayLoadWorkbenchTab<TutorialPresenter> | ||
{ | ||
public abstract static class Shim | ||
extends DelayLoadTabShim<TutorialPresenter, TutorialTab> | ||
{ | ||
} | ||
|
||
@Inject | ||
public TutorialTab(Shim shim) | ||
{ | ||
super("Tutorial", shim); | ||
shim_ = shim; | ||
} | ||
|
||
|
||
@SuppressWarnings("unused") | ||
private final Shim shim_; | ||
} |