forked from gwt-plugins/gwt-eclipse-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
31 additions
and
358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>GWT Eclilpse Plugin</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<style>@import url("web/site.css");</style> | ||
<script type="text/javascript"> | ||
var returnval = 0; | ||
var stylesheet, xmlFile, cache, doc; | ||
function init(){ | ||
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari | ||
// Use the standard DOM Level 2 technique, if it is supported | ||
if (document.implementation && document.implementation.createDocument) { | ||
xmlFile = document.implementation.createDocument("", "", null); | ||
stylesheet = document.implementation.createDocument("", "", null); | ||
if (xmlFile.load){ | ||
xmlFile.load("site.xml"); | ||
stylesheet.load("web/site.xsl"); | ||
} else { | ||
alert("Document could not be loaded by browser."); | ||
} | ||
xmlFile.addEventListener("load", transform, false); | ||
stylesheet.addEventListener("load", transform, false); | ||
} | ||
//IE 6.0+ solution | ||
else if (window.ActiveXObject) { | ||
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0"); | ||
xmlFile.async = false; | ||
xmlFile.load("site.xml"); | ||
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0"); | ||
stylesheet.async = false; | ||
stylesheet.load("web/site.xsl"); | ||
cache = new ActiveXObject("msxml2.XSLTemplate.3.0"); | ||
cache.stylesheet = stylesheet; | ||
transformData(); | ||
} | ||
} | ||
// separate transformation function for IE 6.0+ | ||
function transformData(){ | ||
var processor = cache.createProcessor(); | ||
processor.input = xmlFile; | ||
processor.transform(); | ||
data.innerHTML = processor.output; | ||
} | ||
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+ | ||
function transform(){ | ||
returnval+=1; | ||
if (returnval==2){ | ||
var processor = new XSLTProcessor(); | ||
processor.importStylesheet(stylesheet); | ||
doc = processor.transformToDocument(xmlFile); | ||
document.getElementById("data").innerHTML = doc.documentElement.innerHTML; | ||
} | ||
} | ||
</script> | ||
<title>GWT Eclipse Plugin</title> | ||
<style> | ||
* { | ||
font-family: sans-serif; | ||
} | ||
a:link, a:visited , a:hover, a:active { | ||
color: #2020c0; | ||
} | ||
h1 { | ||
font-size: 1.5em; | ||
} | ||
h2 { | ||
font-size: 1.3em; | ||
margin-top: 0,5em; | ||
} | ||
</style> | ||
</head> | ||
<body onload="init();"> | ||
<!--[insert static HTML here]--> | ||
<div id="data"><!-- this is where the transformed data goes --></div> | ||
<body> | ||
<h1>Welcome to the <b>GWT Eclipse Plugin</b> update site</h1> | ||
<p> | ||
This web page provides automatic distribution and updates for the <b>GWT Eclipse Plugin</b>. | ||
</p> | ||
<h2>Plugin installation</h2> | ||
<p> | ||
To install the plugin: | ||
<ol> | ||
<li> In Eclipse, click on <b> Help </b> -> <b> Install New Software... </b> -> <b> Add... </b> | ||
<li> (The "<b>Add Repository</b>" dialog will appear) | ||
<li> For "<b>Name</b>", enter "GWT Plugin" or something similar | ||
<li> For "<b>Location</b>", fill-in the URL of this web page | ||
</ol> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.