| <?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(); |
| include ($App->getProjectCommon()); |
| function update_manager($shortname, $longname, $extra_PRS = array (), $isIncubating = false, $replace = false, |
| $siteXMLs = array("Releases (R)" => "releases/", "Milestones & RCs (S)" => "milestones/", "Interim Builds (I & M)" => "interim/"), |
| $MP_id, $siteXMLsEclipse33 = array()) |
| { |
| global $App, $Nav, $Menu, $theme, $PR; |
| $PRS = array ( |
| $shortname => $PR, |
| |
| ); |
| $PRS = $replace ? $extra_PRS : array_merge($PRS, $extra_PRS); |
| |
| ob_start(); |
| ?> |
| <div id="midcolumn"> |
| <h1> |
| <?php print $shortname; ?> |
| Update Sites |
| </h1> |
| <?php |
| |
| if (function_exists("doRequirements")) |
| { |
| call_user_func("doRequirements"); |
| } |
| |
| if (function_exists("notes")) |
| { |
| notes(); |
| } |
| ?> |
| <div class="homeitem3col"> |
| <h3>Install Using Eclipse Update Manager</h3> |
| <p>To install these plugins, point your Install Manager at this site. |
| <!-- For more on how to do this, <a href="http://www.eclipse.org/modeling/emf/docs/misc/UsingUpdateManager/UsingUpdateManager.html">click here</a>. --> |
| <br>Help > Install new Software ... > Available Software > Add Site... |
| <p><?php |
| foreach ($PRS as $label => $thisPR) |
| { |
| print <<<EOHTML |
| |
| |
| EOHTML; |
| print "<h3>$label</h3>"; |
| print "<h4>Repository Locations: <br/></h4><ul>"; |
| foreach ($siteXMLs as $type => $sitexml) |
| { |
| print "<li>$type : <a href=\"http://download.eclipse.org/$thisPR/updates/$sitexml\">http://download.eclipse.org/$thisPR/updates/<acronym title=\"$type\">$sitexml</acronym></a></acronym></li>"; |
| |
| } |
| |
| print "</ul> \n"; |
| if (true) { |
| ?><p><h4>Install into a running Eclipse workspace</h4> |
| Just drag and drop this icon in to your Eclipse : |
| <a href="http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=<?= $MP_id?>" title="Drag and drop into a running Eclipse to install <?= $label?>"> |
| <img src="http://marketplace.eclipse.org/misc/installbutton.png"/> |
| </a></p> |
| <p><h4>Xtext HIPP</h4> |
| Visit our Hudson instance: |
| <a href="https://hudson.eclipse.org/xtext/view/Xtext-Xtend/">https://hudson.eclipse.org/xtext/view/Xtext-Xtend/</a> |
| </p> |
| <?php } |
| } ?> |
| </p> |
| </p> |
| </p> |
| </div> |
| <?php if ($siteXMLsEclipse33 && is_array($siteXMLsEclipse33) && sizeof($siteXMLsEclipse33 > 0)) { ?> |
| <div class="homeitem3col"> |
| <h3>Using Eclipse 3.3's Update Manager</h3> |
| <p>To install these plugins, point your Update Manager at this site. For more on how to do this, <a href="http://www.eclipse.org/modeling/emf/docs/misc/UsingUpdateManager/UsingUpdateManager.html">click here</a>. </p> |
| |
| <ul> |
| <li>Help > Software Updates > Find and Install... > Search for new features to install |
| <ul> |
| <?php |
| |
| foreach ($PRS as $label => $thisPR) |
| { |
| print <<<EOHTML |
| <li> |
| Add Update Site...<br/> |
| * Name: <b>$label Update Site</b><br/> |
| EOHTML; |
| $cnt=0; |
| foreach ($siteXMLsEclipse33 as $type => $sitexml) |
| { |
| print !$cnt ? "* URL: " : "     (or): "; |
| print "<b><a href=\"http://download.eclipse.org/$thisPR/updates/$sitexml\">http://download.eclipse.org/$thisPR/updates/<acronym title=\"$type\">$sitexml</acronym></a></b>"; |
| print $cnt < sizeof($siteXMLs) - 1 ? "<br/>\n" : ""; |
| $cnt++; |
| } |
| print "</li>\n"; |
| } |
| ?> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <?php } ?> |
| |
| </div> |
| |
| |
| <?php |
| |
| print "<div id=\"rightcolumn\">\n"; |
| |
| if (isset($isIncubating) && $isIncubating) |
| { |
| print ' |
| <div class="sideitem"> |
| <h6>Incubation</h6> |
| <p>Some components are currently in their <a href="http://www.eclipse.org/projects/dev_process/validation-phase.php">Validation (Incubation) Phase</a>.</p> |
| <div align="center"><a href="http://www.eclipse.org/projects/what-is-incubation.php"><img |
| align="center" src="http://www.eclipse.org/images/egg-incubation.png" |
| border="0" /></a></div> |
| </div> |
| '; |
| } |
| |
| $extras= array ( |
| "doBleedingEdge", "sidebar" |
| ); |
| foreach ($extras as $z) |
| { |
| if (function_exists($z)) |
| { |
| call_user_func($z); |
| } |
| } |
| print "</div>\n"; |
| $html= ob_get_contents(); |
| ob_end_clean(); |
| $pageTitle= "$longname - $shortname - Updates"; |
| $pageKeywords= ""; // TODO: add something here |
| $pageAuthor= "Dennis Huebner, Neil Skrypuch, Nick Boldt"; |
| $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/downloads.css"/>' . "\n"); |
| $App->AddExtraHtmlHeader('<script src="/modeling/includes/downloads.js" type="text/javascript"></script>' . "\n"); //ie doesn't understand self closing script tags, and won't even try to render the page if you use one |
| $App->AddExtraHtmlHeader('<style type="text/css"> div#midcolumn { width:570px; }</style>'."\n"); |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| } |
| |
| // deprecated URLs |
| function update_manager_old($shortname, $longname, $extra_PRS = array (), $isIncubating = false, $replace = false, $siteXMLs = array("Releases" => "site.xml","I, M, and S Builds" => "site-interim.xml")) |
| { |
| return update_manager($shortname, $longname, $extra_PRS, $isIncubating, $replace, $siteXMLs); |
| } |
| |
| ?> |