diff options
author | Stephan Wahlbrink | 2019-03-28 08:28:38 +0000 |
---|---|---|
committer | Stephan Wahlbrink | 2019-03-28 08:28:38 +0000 |
commit | a88c5e9134c38010ea98c7e1d97f8719f9b97f53 (patch) | |
tree | 2331ada463cf9dfa1adbb386e2ef060bd08eaee0 | |
parent | f5acac43c0c5f7245056ade127e06a978df7cb3c (diff) | |
download | statet-a88c5e9134c38010ea98c7e1d97f8719f9b97f53.tar.gz statet-a88c5e9134c38010ea98c7e1d97f8719f9b97f53.tar.xz statet-a88c5e9134c38010ea98c7e1d97f8719f9b97f53.zip |
Add 'New and Noteworthy' for StatET 4.0
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | news/_noteworthyCommon.php | 61 | ||||
-rw-r--r-- | news/images/debug-language_objects.png | bin | 0 -> 18835 bytes | |||
-rw-r--r-- | news/images/debug-nested_codeblock.png | bin | 0 -> 38374 bytes | |||
-rw-r--r-- | news/images/debug-promise.png | bin | 0 -> 11985 bytes | |||
-rw-r--r-- | news/images/r_app-tools.png | bin | 0 -> 43413 bytes | |||
-rw-r--r-- | news/images/r_package_project-config.png | bin | 0 -> 68774 bytes | |||
-rw-r--r-- | news/noteworthy-4.0.html | 136 | ||||
-rw-r--r-- | news/noteworthy-4.0.php | 9 | ||||
-rw-r--r-- | news/noteworthy.css | 70 |
10 files changed, 276 insertions, 1 deletions
@@ -1,4 +1,3 @@ <?php header('Location: https://projects.eclipse.org/projects/science.statet', true, 302); exit(); -?> diff --git a/news/_noteworthyCommon.php b/news/_noteworthyCommon.php new file mode 100644 index 0000000..aca885d --- /dev/null +++ b/news/_noteworthyCommon.php @@ -0,0 +1,61 @@ +<?php +function innerHTML($el) { + $doc = new DOMDocument(); + $doc->appendChild($doc->importNode($el, TRUE)); + $html = trim($doc->saveHTML()); + $tag = $el->nodeName; + $html = preg_replace('@^<' . $tag . '[^>]*>|</' . $tag . '>$@', '', $html); + return $html; +} +function enhanceDoc($doc) { + $docXPath = new DomXPath($doc); + $titles = $docXPath->query("//*[contains(@class, 'title')]"); + foreach ($titles as $title) { + $id = $title->parentNode->getAttribute('id'); + if ($id != '') { + $link = $title->firstChild; + $link->setAttribute('href', '#' . $id); + } + } +} + +if(!isset($keywords) OR $keywords == '') { + $keywords = "eclipse, statet, news, new and noteworthy"; +} +if (!isset($theme)) { + $theme = "solstice"; +} +$Theme = $App->getThemeClass($theme); + +$file = basename($App->getScriptName(), '.php').'.html'; + +$doc = new DOMDocument; +$doc->loadhtmlfile($file); +enhanceDoc($doc); + +$title = $doc->getElementsByTagName('title')->item(0); +$title = innerHTML($title); + +$body = $doc->getElementsByTagName('body')->item(0); +$body = innerHTML($body); +$html = $body; +$html = mb_convert_encoding($html, 'HTML-ENTITIES', 'auto'); + +# Begin: page-specific settings. Change these. +$Theme->setPageAuthor(""); +$Theme->setPageKeywords($keywords); +$Theme->setPageTitle($title); +$Theme->setHtml($html); + +if (isset($Nav)) { + $Theme->setNav($Nav); +} +if (isset($Menu)) { + $Theme->setMenu($Menu); +} + +$right_nav = FALSE; +$App->Promotion = FALSE; +$App->AddExtraHtmlHeader('<link rel="stylesheet" href="noteworthy.css" type="text/css">'); + +$Theme->generatePage(); diff --git a/news/images/debug-language_objects.png b/news/images/debug-language_objects.png Binary files differnew file mode 100644 index 0000000..90b9296 --- /dev/null +++ b/news/images/debug-language_objects.png diff --git a/news/images/debug-nested_codeblock.png b/news/images/debug-nested_codeblock.png Binary files differnew file mode 100644 index 0000000..051a877 --- /dev/null +++ b/news/images/debug-nested_codeblock.png diff --git a/news/images/debug-promise.png b/news/images/debug-promise.png Binary files differnew file mode 100644 index 0000000..fb74b35 --- /dev/null +++ b/news/images/debug-promise.png diff --git a/news/images/r_app-tools.png b/news/images/r_app-tools.png Binary files differnew file mode 100644 index 0000000..ead9bd4 --- /dev/null +++ b/news/images/r_app-tools.png diff --git a/news/images/r_package_project-config.png b/news/images/r_package_project-config.png Binary files differnew file mode 100644 index 0000000..03f8bf0 --- /dev/null +++ b/news/images/r_package_project-config.png diff --git a/news/noteworthy-4.0.html b/news/noteworthy-4.0.html new file mode 100644 index 0000000..d98f4de --- /dev/null +++ b/news/noteworthy-4.0.html @@ -0,0 +1,136 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + +<meta name="copyright" content="Copyright (c) Eclipse contributors and others 2018, 2019."/> +<meta http-equiv="Content-Language" content="en-us"/> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +<link rel="STYLESHEET" href="noteworthy.css" type="text/css"/> +<title>StatET 4.0 - New and Noteworthy</title> + +</head> +<body> + +<h1>StatET 4.0 - New and Noteworthy</h1> +<ul> + <li><a href="#general">General</a></li> + <li><a href="#r_package">R Package Development</a></li> + <li><a href="#r_app">R App Development</a></li> + <li><a href="#debug">Debugger</a></li> + <li><a href="#remote">Remote Console</a></li> +</ul> +<p>For the RJ/RServi development library see its <a href="https://git.eclipse.org/c/statet/org.eclipse.statet-rj.git/tree/CHANGES.md">CHANGES</a> file.</p> +<p>For other information about the release see the <a href="https://projects.eclipse.org/projects/science.statet/releases/4.0.0">release page</a> for StatET 4.0.0.</p> + +<table class="news"> +<colgroup> + <col class="title" /> + <col /> +</colgroup> +<tbody> + + <tr> + <td id="general" class="section" colspan="2"> + <h2>General</h2> + </td> + </tr> + <tr id="general-preferences"> + <td class="title"><a>Preferences and Other Configuration</a></td> + <td class="content"> + The preferences and other configuration settings made in previous version of StatET will + <i>not been taken over</i> to StatET 4.0. This also includes the R code snippets, launch + configurations, project natures and project properties. + </td> + </tr> + + <tr> + <td id="r_package" class="section" colspan="2"> + <h2>R Package Development</h2> + </td> + </tr> + <tr id="r_package-project_setup"> + <td class="title"><a>Setup of R Package Projects</a></td> + <td class="content"> + The package name of R packages is parsed automatically from the DESCRIPTION file now. + It is no longer required to enter the name in the project properties, only the package + root folder must be specified correctly: + <p><img src="images/r_package_project-config.png"/></p> + <p>The wizards to create, convert and import R package projects are following the new + configuration; the New R Package Project wizard generates automatically the DESCRIPTION + file.</p> + </td> + </tr> + <tr id="r_package-variables"> + <td class="title"><a>Variables for R Packages</a></td> + <td class="content"> + The Eclipse variable for the R package root, which can be used for example in the + R code snippets, is renamed from <code>r_pkg_base_path</code> to <code>r_pkg_root_path</code>. + </td> + </tr> + + <tr> + <td id="r_app" class="section" colspan="2"> + <h2>R App Development</h2> + </td> + </tr> + <tr id="r-"> + <td class="title"><a>Tools for R Apps</a></td> + <td class="content"> + The IDE provides several tools for development of R apps like Shiny. + This includes tools to start, restart and stop the app with support of different + <b>launch profiles</b> (as known e.g. from Document Processing Tools) as well as an + <b>app viewer</b>. + <p><img src="images/r_app-tools.png"/></p> + </td> + </tr> + + <tr> + <td id="debug" class="section" colspan="2"> + <h2>Debugger</h2> + </td> + </tr> + <tr id="debugger-variables"> + <td class="title"><a>Detail of Variables</a></td> + <td class="content"> + The Variables view shows more information about some objects. For + <b>language objects</b> it shows the source code, if possible: + <p><img src="images/debug-language_objects.png"/></p> + <p>For <b>promise variables</b> it is possible to inspect their expression and + environment:</p> + <p><img src="images/debug-promise.png"/></p> + </td> + </tr> + <tr id="debugger-nested"> + <td class="title"><a>Breakpoints in Nested Functions</a></td> + <td class="content"> + The debugger provides improved support for breakpoint in <b>nested functions and code + blocks</b>. + <p>This allows for example to set line breakpoints in code of Shiny apps while the + app is running.</p> + <p><img src="images/debug-nested_codeblock.png"/></p> + </td> + </tr> + + <tr> + <td id="remote" class="section" colspan="2"> + <h2>Remote Console</h2> + </td> + </tr> + <tr id="remote-r_help_server"> + <td class="title"><a>R Help Server</a></td> + <td class="content"> + The R help server allows to index and share the <b>R help for R remote consoles</b> + at server side. This can simplify and accelerate the setup and distribution of remote + console servers. + <p>This is the recommend solution to store the R help index at server side or to access + it by multiple client now. + The option to specify a network folder for the R help index for remote R environments + in the IDE is deprecated and will be removed in future releases.</p> + </td> + </tr> + +</tbody> +</table> + +</body> +</html> diff --git a/news/noteworthy-4.0.php b/news/noteworthy-4.0.php new file mode 100644 index 0000000..f42a38b --- /dev/null +++ b/news/noteworthy-4.0.php @@ -0,0 +1,9 @@ +<?php +require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); +require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); +require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); +$App = new App(); +$Nav = new Nav(); +$Menu = new Menu(); +$keywords = 'eclipse, statet, news, new and noteworthy, statet 4.0'; +require("_noteworthyCommon.php"); diff --git a/news/noteworthy.css b/news/noteworthy.css new file mode 100644 index 0000000..e4e0cea --- /dev/null +++ b/news/noteworthy.css @@ -0,0 +1,70 @@ + +.indextop { + font-size: x-large; + font-family: verdana, arial, helvetica, sans-serif; + font-weight: bold +} + +.indexsub { + font-size: xx-small; + font-family: verdana, arial, helvetica, sans-serif; + color: #8080FF +} + +a.bar:link { + text-decoration: none; + color: #FFFFFF +} + +a.bar:visited { + text-decoration: none + color: #FFFFFF; +} + +a.bar:hover { + text-decoration: underline + color: #FFFFFF; +} + +a.bar { + color: #FFFFFF +} + +p { + margin: 1em 0; /* undo styles.min.css */ +} + +table.news { + table-layout: fixed; + border-collapse: collapse; + width: 100%; + margin-top: 30px; +} + +table.news col.title { + width: 25%; +} + +table.news td { + padding: 10px; /* undo styles.min.css */ + border-top: solid thin black; + overflow: visible; +} + +table.news tr { + vertical-align: top; +} + +table.news tr td.section { + font-size: 20px; + font-weight: bold; +} + +table.news tr td.title { + vertical-align: top; + font-weight: bold; +} + +table.news tr td.content { + vertical-align: top; +} |