directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r475822 [4/8] - in /directory/sandbox/pamarcelot/ldapstudio: ./ dependencies/ dependencies/eclipse/ dependencies/eclipse/3.2/ dependencies/eclipse/3.2/features/ dependencies/eclipse/3.2/features/org.eclipse.rcp_3.2.0.v20060511-2000-VDNgUi84...
Date Thu, 16 Nov 2006 17:15:31 GMT
Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.js
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.js?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.js (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.js Thu Nov 16 09:15:03 2006
@@ -0,0 +1,546 @@
+/*******************************************************************************
+ * Copyright (c) 2005, 2006 Intel Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     Intel Corporation - initial API and implementation
+ *******************************************************************************/
+ 
+var isMozilla = parent.isMozilla;
+var isIE = parent.isIE;
+
+var oldActive;
+var oldActiveClass = "";
+
+/**
+ * Returns the target node of an event
+ */
+function getTarget(e) {
+	var target;
+  	if (isMozilla)
+  		target = e.target;
+  	else if (isIE)
+   		target = window.event.srcElement;
+
+	return target;
+}
+
+/**
+ * Returns the next tree node "down" from current one
+ */
+function getNextDown(node) {
+	var a = getAnchorNode(node);
+	if (!a) return null;
+
+	// Try visible child first
+	var li = a.parentNode;
+	var ul = getChildNode(li, "UL");
+	if (ul) {
+		if (ul.className == "expanded") {
+			return getDescendantNode(ul, "A");
+		} else {
+			var ulNext = getNextSibling(ul);
+			if (ulNext && ulNext.nodeType == 1 && ulNext.tagName == "UL") {
+				return getDescendantNode(ulNext, "A");
+			}
+		}
+	}
+
+	// Try next sibling in current UL
+	var li_sib = getNextSibling(li);
+	if (li_sib != null) {
+		return getDescendantNode(li_sib, "A");
+	}
+
+	// Try child from next UL
+	var ulNext = getNextSibling(li.parentNode);
+	if (ulNext && ulNext.nodeType == 1 && ulNext.tagName == "UL") {
+		return getDescendantNode(ulNext, "A");
+	}
+
+	// Try looking to parent's sibling
+	while (li_sib == null) {
+		var ul = li.parentNode;
+		li = ul.parentNode;
+		if (li.tagName != "LI") // reached the top, nothing else to do
+			return null;
+
+		li_sib = getNextSibling(li);
+	}
+
+	// found the next down sibling
+	return getDescendantNode(li_sib, "A");
+}
+
+/**
+ * Returns the next tree node "up" from current one
+ */
+function getNextUp(node) {
+	var a = getAnchorNode(node);
+	if (!a) return null;
+
+	// Get previous sibling first
+	var li = a.parentNode;
+	var li_sib = getPrevSibling(li);
+	if (li_sib != null) {
+		// try to get the deepest node that preceeds this current node
+		var candidate = getDescendantNode(li_sib, "A");
+		var nextDown = getNextDown(candidate);
+		while (nextDown != null && nextDown != node) {
+			candidate = nextDown;
+			nextDown = getNextDown(nextDown);
+		}
+		return getDescendantNode(candidate, "A");
+	} else {
+		// look into previous UL
+		var ulPrev = getPrevSibling(li.parentNode);
+		if (ulPrev && ulPrev.nodeType == 1 && ulPrev.tagName == "UL" && ulPrev.className == "expanded") {
+			var li = getChildNode(ulPrev, "LI");
+			var candidate = getDescendantNode(li, "A");
+			var nextDown = getNextDown(candidate);
+			while (nextDown != null && nextDown != node) {
+				candidate = nextDown;
+				nextDown = getNextDown(nextDown);
+			}
+			return getDescendantNode(candidate, "A");
+		} else {
+			// get the parent
+			var li = li.parentNode.parentNode;
+			if (li && li.tagName == "LI")
+				return getDescendantNode(li, "A");
+			else
+				return null;
+		}
+	}
+}
+
+/**
+ * Returns the next sibling element
+ */
+function getNextSibling(node) {
+	var sib = node.nextSibling;
+	while (sib && (sib.nodeType == 3 || sib.tagName == "SCRIPT")) // text or script node
+		sib = sib.nextSibling;
+	return sib;
+}
+
+/**
+ * Returns the next sibling element
+ */
+function getPrevSibling(node) {
+	var sib = node.previousSibling;
+	while (sib && (sib.nodeType == 3 || sib.tagName == "SCRIPT")) // text or script node
+		sib = sib.previousSibling;
+	return sib;
+}
+
+
+/**
+ * Returns the child node with specified tag
+ */
+function getChildNode(parent, childTag) {
+	var list = parent.childNodes;
+	if (list == null) return null;
+	for (var i = 0; i < list.length; i++)
+		if (list.item(i).tagName == childTag)
+			return list.item(i);
+	return null;
+}
+
+/**
+ * Returns the descendat node with specified tag (depth-first searches)
+ */
+function getDescendantNode(parent, childTag) {	
+	if (parent == null) return null;
+
+	if (parent.tagName == childTag)
+		return parent;
+
+	var list = parent.childNodes;
+	if (list == null) return null;
+	for (var i = 0; i < list.length; i++) {
+		var child = list.item(i);
+		if (child.tagName == childTag)
+			return child;
+
+		child = getDescendantNode(child, childTag);
+		if (child != null)
+			return child;
+	}
+	return null;
+}
+
+/**
+ * Returns the anchor of this click
+ * NOTE: MOZILLA BUG WITH A:focus and A:active styles
+ */
+function getAnchorNode(node) {
+	if (node == null) return null;
+
+	if (node.nodeType == 3)  //"Node.TEXT_NODE")
+		return node.parentNode;
+	else if (node.tagName == "A")
+		return node;
+	else if (node.tagName == "IMG")
+		return getChildNode(node.parentNode, "A");
+	return null;
+}
+
+/**
+ * Returns true when the node is the plus or minus icon
+ */
+function isPlusMinus(node) {
+	return (node.nodeType != 3 && node.tagName == "IMG" && (node.className == "expanded" || node.className == "collapsed"));
+}
+
+/**
+ * Returns the plus/minus icon for this tree node
+ */
+function getPlusMinus(node) {
+	if (isPlusMinus(node))
+		return node;
+	else if (node.nodeType == 3)  //"Node.TEXT_NODE")
+		return getChildNode(node.parentNode.parentNode, "IMG");
+	else if (node.tagName == "IMG")
+		return getChildNode(node.parentNode.parentNode, "IMG");
+	else if (node.tagName == "A")
+		return getChildNode(node.parentNode, "IMG");
+
+	return null;
+}
+
+/**
+ * Collapses a tree rooted at the specified element
+ */
+function collapse(node) {
+	node.className = "collapsed";
+	node.src = plus.src;
+	node.alt = altExpandTopicTitles;
+	// set the UL as well
+	var ul = getChildNode(node.parentNode, "UL");
+	if (ul != null) ul.className = "collapsed";
+}
+
+/**
+ * Expands a tree rooted at the specified element
+ */
+function expand(node) {
+	node.className = "expanded";
+	node.src = minus.src;
+	node.alt = altCollapseTopicTitles;
+	// set the UL as well
+	var ul = getChildNode(node.parentNode, "UL");
+	if (ul != null) {
+		ul.className = "expanded";
+		if (ul.id.length > 0) {
+			if (!frames.dynLoadFrame) {
+				return;
+			}
+			var ix = window.location.href.indexOf('?');
+			if (ix < 0) {
+				return;
+			}
+			var query = window.location.href.substr(ix);
+			frames.dynLoadFrame.location = "tocFragment.jsp" + query + "&path=" + ul.id;
+		}
+	}
+}
+
+/**
+ * Returns true when this is an expanded tree node
+ */
+function isExpanded(node) {
+	return node.className == "expanded";
+}
+
+/**
+ * Returns true when this is a collapsed tree node
+ */
+function isCollapsed(node) {
+	return  node.className == "collapsed";
+}
+
+/**
+ * Highlights link
+ */
+function highlightTopic(topic) {
+	if (isMozilla) {
+		// try-catch is a workaround for the getSelection() problem
+		// reported for Safari 2.0.3
+		try {
+			window.getSelection().removeAllRanges();
+		} catch (e) {}
+	}
+
+	var a = getAnchorNode(topic);
+	if (a != null) {
+		// TO DO:
+		// parent.parent.parent.parent.setContentToolbarTitle(tocTitle);
+		if (oldActive)
+			oldActive.className = oldActiveClass;
+
+		oldActive = a;
+		oldActiveClass = a.className;
+		a.className += " active";
+
+		// it looks like the onclick event is not handled in mozilla
+		// *** TO DO: handle failed synchronization, do not select in that case
+		if (isMozilla && a.onclick)
+			a.onclick()
+		//if (isIE)
+		//	a.hideFocus = "true";
+	}
+}
+
+/**
+ * Selects a topic in the tree: expand tree and highlight it
+ * returns true if success
+ */
+function selectTopicById(id) {
+	var topic = document.getElementById(id);
+	if (topic) {
+		highlightTopic(topic);
+		scrollToViewTop(topic);
+		return true;
+	}
+	return false;
+}
+/**
+ * Returns the horizontal offset on which the page should be scrolled to show the node.
+ * Returns 0 if the node is already visible.
+ */
+function getVerticalScroll(node) {
+	var nodeTop = node.offsetTop;
+	var nodeBottom = nodeTop + node.offsetHeight;
+	var pageTop = 0;
+	var pageBottom = 0;
+
+	if (isIE) {
+		pageTop = document.body.scrollTop;
+		pageBottom = pageTop + document.body.clientHeight;
+	} else if (isMozilla) {
+		pageTop = window.pageYOffset;
+		pageBottom = pageTop + window.innerHeight - node.offsetHeight;
+	}
+
+	var scroll = 0;
+	if (nodeTop >= pageTop) {
+		if (nodeBottom <= pageBottom)
+			scroll = 0; // already in view
+		else
+			scroll = nodeBottom - pageBottom;
+	} else {
+		scroll = nodeTop - pageTop;
+	}
+
+	return scroll;
+}
+
+
+/**
+ * Scrolls the page to show the specified element
+ */
+function scrollIntoView(node) {
+	var scroll = getVerticalScroll(node);
+	if (scroll != 0)
+		window.scrollBy(0, scroll);
+}
+
+/**
+ * Scrolls the page so the node gets to the first line
+ */
+function scrollToViewTop(node) {
+	window.scrollTo(0, node.offsetTop);
+}
+
+/*
+ * Currently called on IE only
+ */
+function focusHandler(e)
+{
+	/*if (isMozilla)
+		return;
+	*/
+		
+	try{
+		if (oldActive){
+			// only focus when the element is visible
+			var scroll = getVerticalScroll(oldActive);
+			if (scroll == 0)
+				oldActive.focus();
+		}		
+	}
+	catch(e){}
+}
+
+
+/**
+ * display topic label in the status line on mouse over topic
+ */
+function mouseMoveHandler(e) {
+	var overNode = getTarget(e);
+	if (!overNode) return;
+
+	overNode = getAnchorNode(overNode);
+	if (overNode == null) {
+		window.status = "";
+		return;
+	}
+
+	if (isMozilla)
+		e.cancelBubble = false;
+
+	if (overNode.title == "") {
+		if (overNode.innerText)
+			overNode.title = overNode.innerText;
+		else if (overNode.text)
+			overNode.title = overNode.text;
+	}
+	window.status = overNode.title;
+}
+
+/**
+ * handler for expanding / collapsing topic tree
+ */
+function mouseClickHandler(e) {
+	var clickedNode = getTarget(e);
+	if (!clickedNode) return;
+
+	var plus_minus = getPlusMinus(clickedNode);
+	if (plus_minus != null) {
+		if (isCollapsed(plus_minus)) 
+			expand(plus_minus);
+		else if (isPlusMinus(clickedNode) && isExpanded(plus_minus))
+			// collapse only if click on minus image
+			collapse(plus_minus);
+	}
+
+	var anchorNode = getAnchorNode(clickedNode);
+	if (anchorNode) {
+		highlightTopic(anchorNode);
+		parent.setTypeinValue(anchorNode);
+	}
+
+	if (isMozilla)
+		e.cancelBubble = true;
+	else if (isIE)
+		window.event.cancelBubble = true;
+}
+
+/**
+ * Handler for key down (arrows)
+ */
+function keyDownHandler(e) {
+	var key;
+
+	if (isIE) {
+		key = window.event.keyCode;
+	} else if (isMozilla) {
+		key = e.keyCode;
+	}
+
+	if (key <37 || key > 40)
+		return true;
+
+	if (isMozilla)
+		e.cancelBubble = true;
+	else if (isIE)
+		window.event.cancelBubble = true;
+
+	if (key == 39) { // Right arrow, expand
+		var clickedNode = getTarget(e);
+		if (!clickedNode) return;
+		if (isIE) {
+			if (clickedNode.id != null) {
+				if (clickedNode.id.charAt(0) == 'b') {
+					if (clickedNode.name != "opened") {
+						loadTOC(clickedNode.name);
+						return true;
+					}
+				}
+			}
+		}
+
+		var plus_minus = getPlusMinus(clickedNode);
+		if (plus_minus != null)
+		{
+			if (isCollapsed(plus_minus))
+				expand(plus_minus);
+
+			highlightTopic(plus_minus);
+			scrollIntoView(clickedNode);
+		}
+	} else if (key == 37) { // Left arrow,collapse
+		var clickedNode = getTarget(e);
+		if (!clickedNode) return;
+
+		if (clickedNode.id != null){
+			if (clickedNode.id.charAt(0) == 'b'){
+				if(clickedNode.name == "opened"){
+					loadTOC(" ");
+					return true;
+				} else {
+					return true;
+				}
+			}
+		}
+
+		var plus_minus = getPlusMinus(clickedNode);
+		if (plus_minus != null) {
+			if (isExpanded(plus_minus))
+				collapse(plus_minus);
+
+			highlightTopic(plus_minus);
+			scrollIntoView(clickedNode);
+		}
+	} else if (key == 40 ) { // down arrow
+		var clickedNode = getTarget(e);
+		if (!clickedNode) return;
+
+		var next = getNextDown(clickedNode);
+		if (next) {
+			highlightTopic(next);
+			parent.setTypeinValue(next);
+			next.focus();
+		}
+
+	} else if (key == 38) { // up arrow
+		var clickedNode = getTarget(e);
+		if (!clickedNode) return;
+
+		var next = getNextUp(clickedNode);
+		if (next) {
+			highlightTopic(next);
+			parent.setTypeinValue(next);
+			next.focus();
+		}
+	}
+
+
+	return true;
+}
+
+/**
+ * IndexListFrame onload handler
+ */
+function onloadHandler() {
+	parent.listFrame = window;
+
+	var node = document.getElementsByTagName("A").item(0);
+	highlightTopic(node);
+	scrollToViewTop(node);
+
+	if (isMozilla) {
+		document.addEventListener('click', mouseClickHandler, true);
+		document.addEventListener('mousemove', mouseMoveHandler, true);
+		document.addEventListener('keydown', keyDownHandler, true);
+	} else if (isIE) {
+		document.onclick = mouseClickHandler;
+		document.onmousemove = mouseMoveHandler;
+		document.onkeydown = keyDownHandler;
+		//window.onfocus = focusHandler;
+	}
+}

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexList.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,50 @@
+<%--
+ Copyright (c) 2005, 2006 Intel Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     Intel Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<%
+	IndexData data = new IndexData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+<title><%=ServletResources.getString("IndexListTitle", request)%></title>
+
+<style type="text/css">
+<%@ include file="indexList.css"%>
+</style>  
+    
+<base target="ContentViewFrame">
+
+<script language="JavaScript">
+var ids = [<%data.generateIds(out);%>];
+minus = new Image();
+minus.src = "<%=prefs.getImagesDirectory()%>" + "/minus.gif";
+plus = new Image();
+plus.src = "<%=prefs.getImagesDirectory()%>" + "/plus.gif";
+altExpandTopicTitles = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("expandTopicTitles", request))%>";
+altCollapseTopicTitles = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("collapseTopicTitles", request))%>";
+usePlusMinus = <%=prefs.isIndexPlusMinus()%>;
+</script>
+<script language="JavaScript" src="indexList.js"></script>
+
+</head>
+<body dir="<%=direction%>" onload="onloadHandler()">
+	<ul dir="<%=direction%>" id="root" class="expanded">
+<%
+		data.generateIndex(out);
+%>
+	</ul>
+</body>
+</html>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexToolbar.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexToolbar.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexToolbar.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexToolbar.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,29 @@
+<%--
+ Copyright (c) 2005 Intel Corporation.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     Intel Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+
+<jsp:include page="toolbar.jsp">
+	<jsp:param name="script" value="navActions.js"/>
+	<jsp:param name="view" value="index"/>
+
+	<jsp:param name="name"     value="show_all"/>
+	<jsp:param name="tooltip"  value='show_all'/>
+	<jsp:param name="image"    value="show_all.gif"/>
+	<jsp:param name="action"   value="toggleShowAll"/>
+	<jsp:param name="state"    value="<%=(new ActivitiesData(application, request, response)).getButtonState()%>"/>
+
+	<jsp:param name="name"     value="synchnav"/>
+	<jsp:param name="tooltip"  value='SynchNav'/>
+	<jsp:param name="image"    value="synch_nav.gif"/>
+	<jsp:param name="action"   value="resynchNav"/>
+	<jsp:param name="state"    value='off'/>
+</jsp:include>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.css
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.css?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.css (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.css Thu Nov 16 09:15:03 2006
@@ -0,0 +1,66 @@
+/*******************************************************************************
+ * Copyright (c) 2005 Intel Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     Intel Corporation - initial API and implementation
+ *******************************************************************************/
+
+BODY {
+	background-color:<%=prefs.getViewBackground()%>;
+	font:<%=prefs.getViewFont()%>;
+	margin-top:5px;
+	margin-<%=isRTL?"right":"left"%>:5px;
+	padding:0;
+	border:0;
+}
+
+TABLE, TR, TD, P {
+	margin:0;
+	padding:0;
+	border:0;
+}
+
+TABLE {
+	font:<%=prefs.getViewFont()%>;
+	width:100%;
+}
+
+TR {
+	height:21px;
+}
+
+INPUT {
+	font:<%=prefs.getViewFont()%>;
+	margin:0;
+	padding:0;
+	border:1px solid ThreeDShadow;
+}
+
+#instruction {
+	white-space:nowrap;
+}
+
+#typein {
+	width:100%;
+}
+
+#button {
+	background:ThreeDShadow;
+	color:Window;
+	font-weight:bold;
+	margin-left:1px;
+}
+
+<%
+	if (data.isIE()) {
+%>
+#go {
+	padding-<%=isRTL?"right":"left"%>:1px;
+}
+<%
+	}
+%>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.js
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.js?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.js (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.js Thu Nov 16 09:15:03 2006
@@ -0,0 +1,138 @@
+/*******************************************************************************
+ * Copyright (c) 2005, 2006 Intel Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     Intel Corporation - initial API and implementation
+ *******************************************************************************/
+ 
+var isMozilla = parent.isMozilla;
+var isIE = parent.isIE;
+
+var typein;
+var currentId;
+
+function compare(keyword, pattern) {
+	var kI = 0, pI = 0;
+	var kCh, pCh;
+
+	while (kI < keyword.length && pI < pattern.length) {
+		kCh = keyword.charAt(kI).toLowerCase();
+		pCh = pattern.charAt(pI).toLowerCase();
+		if (kCh > pCh) {
+			return 1;
+		} else if (kCh < pCh) {
+			return -1;
+		}
+		kI++;
+		pI++;
+	}
+	if (keyword.length >= pattern.length) {
+		return 0;
+	} else {
+		return -1;
+	}
+}
+
+function searchPattern(pattern) {
+    if (!parent.listFrame) return null;
+
+	var from = 0;
+	var to = parent.listFrame.ids.length;
+	var i;
+	var res;
+
+	while (to > from) {
+		i = Math.floor((to + from) / 2);
+		res = compare(parent.listFrame.ids[i], pattern);
+		if (res == 0) {
+			while (i > 0) {
+				res = compare(parent.listFrame.ids[--i], pattern);
+				if (res != 0) {
+					i++;
+					break;
+				}
+			}
+			return parent.listFrame.ids[i];
+		} else if (res < 0) {
+			from = i + 1;
+		} else {
+			to = i;
+		}
+	}
+
+	return null;
+}
+
+function keyDownHandler(e) {
+	var key;
+
+	if (isIE) {
+		key = window.event.keyCode;
+	} else if (isMozilla) {
+		key = e.keyCode;
+	}
+
+	if (key != 13 && key != 38 && key != 40)
+		return true;
+
+	if (isMozilla)
+		e.cancelBubble = true;
+	else if (isIE)
+		window.event.cancelBubble = true;
+
+	if (key == 13) { // enter
+		// display topic corresponded to selected list item
+		parent.setTypeinValue(parent.getSelection());
+		parent.doDisplay();
+	} if (key == 38) { // up arrow
+		parent.selectNextUp();
+	} else if (key == 40) { // down arrow
+		parent.selectNextDown();
+	}
+
+	return false;
+}
+
+/**
+  * Select the corresponding item in the index list on typein value change.
+  * Check is performed periodically in short interval.
+  */
+function intervalHandler() {
+	if (typein.value != typein.previous) {
+		// typein value has been changed
+		typein.previous = typein.value;
+		var id = searchPattern(typein.value);
+		if (id && id != currentId) {
+			// the value has became to fit to other item
+			if (parent.selectTopicById(id)) {
+				currentId = id;
+			}
+		}
+	}
+}
+
+/**
+ * IndexTypeinFrame onload handler
+ */
+function onloadHandler() {
+	parent.typeinFrame = window;
+
+	typein = document.getElementById("typein");
+
+	typein.value = "";
+	typein.previous = "";
+
+	currentId = "";
+
+	if (isMozilla) {
+		document.addEventListener("keydown", keyDownHandler, true);
+	} else if (isIE) {
+		document.onkeydown = keyDownHandler;
+	}
+
+	setInterval("intervalHandler()", 200);
+}

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexTypein.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,49 @@
+<%--
+ Copyright (c) 2005, 2006 Intel Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     Intel Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<%
+	RequestData data = new RequestData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+<title><%=ServletResources.getString("IndexTypeinTitle", request)%></title>
+
+<style type="text/css">
+<%@ include file="indexTypein.css"%>
+</style>
+
+<script language="JavaScript" src="indexTypein.js"></script>
+
+</head>
+
+<body dir="<%=direction%>" onload="onloadHandler()">
+
+<table>
+<%if (prefs.isIndexInstruction()) {%>
+	<tr>
+		<td colspan="2"><p id="instruction"><%=ServletResources.getString("IndexTypeinInstructions", request)%></p></td>
+	</tr>
+<%}%>
+	<tr>
+		<td width="100%"><input type="text" id="typein"></td>
+	<%if (prefs.isIndexButton()) {%>
+		<td><input type="button" id="button" value="<%=ServletResources.getString("IndexTypeinButton", request)%>" onclick="this.blur();parent.doDisplay()"></td>
+	<%}%>
+	</tr>
+</table>
+
+</body>
+</html>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.js
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.js?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.js (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.js Thu Nov 16 09:15:03 2006
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2005, 2006 Intel Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     Intel Corporation - initial API and implementation
+ *******************************************************************************/
+ 
+var isMozilla = navigator.userAgent.indexOf("Mozilla") != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
+var isIE = navigator.userAgent.indexOf("MSIE") != -1;
+
+/**
+ * Global references to IndexTypein and IndexList child frames.
+ * Are intialized by the child frames on theirs load.
+ */
+var typeinFrame;
+var listFrame;
+
+/**
+ * Selects a topic in the index list
+ */
+function selectTopicById(id) {
+	if (!listFrame) return false;
+
+	return listFrame.selectTopicById(id);
+}
+
+/**
+ * Selects the next index list node "up" from current one
+ */
+function selectNextUp() {
+	if (!listFrame) return false;
+
+	var next = listFrame.getNextUp(listFrame.oldActive);
+	if (next) {
+		listFrame.highlightTopic(next);
+		listFrame.scrollIntoView(next);
+		setTypeinValue(next);
+	}
+}
+
+/**
+ * Selects the next index list node "down" from current one
+ */
+function selectNextDown() {
+	if (!listFrame) return false;
+
+	var next = listFrame.getNextDown(listFrame.oldActive);
+	if (next) {
+		listFrame.highlightTopic(next);
+		listFrame.scrollIntoView(next);
+		setTypeinValue(next);
+	}
+}
+
+/**
+ * Returns selected list item
+ */
+function getSelection() {
+	if (!listFrame) return null;
+
+	return listFrame.oldActive;
+}
+
+/**
+ * Set value of the typein input field.
+ * The value can be anchor's id or anchor's text.
+ */
+function setTypeinValue(anchor) {
+	if (!typeinFrame) return;
+
+	if (!anchor) return;
+
+	var value = anchor.getAttribute("id");
+	if (value) {
+		typeinFrame.currentId = value;
+	} else {
+		typeinFrame.currentId = "";
+		if (isIE)
+			value = anchor.innerText;
+		else if (isMozilla)
+			value = anchor.lastChild.nodeValue;
+		if (!value)
+			value = "";
+	}
+	typeinFrame.typein.value = value;
+	typeinFrame.typein.previous = value;
+}
+
+/**
+ * Open current selected item in the content frame
+ */
+function doDisplay() {
+	if (!listFrame) return;
+	if (!listFrame.oldActive) return;
+
+	parent.parent.parent.parent.ContentFrame.ContentViewFrame.location.replace(listFrame.oldActive);
+}

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/indexView.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,38 @@
+<%--
+ Copyright (c) 2005, 2006 Intel Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     Intel Corporation - initial API and implementation
+--%>
+<%@ include file="fheader.jsp"%>
+
+<%
+	RequestData data = new RequestData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+<title><%=ServletResources.getString("IndexViewTitle", request)%></title>
+
+<script language="JavaScript" src="indexView.js"></script>
+</head>
+
+<frameset id="indexViewFrameset"
+<%if (prefs.isIndexInstruction()){%>
+		rows="52,*"
+<%} else {%>
+		rows="32,*"
+<%}%>
+		frameborder="0" framespacing="0" border="0">
+	<frame name="IndexTypeinFrame" src="indexTypein.jsp" title='<%=ServletResources.getString("IndexTypeinTitle", request)%>' frameborder="0" marginheiht="0" marginwidth="0" noresize scrolling="no">
+	<frame name="IndexListFrame" src="indexList.jsp" title='<%=ServletResources.getString("IndexListTitle", request)%>' frameborder="0" marginheiht="0" marginwidth="0">
+</frameset>
+
+</html>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksToolbar.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksToolbar.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksToolbar.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksToolbar.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,23 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+
+<jsp:include page="toolbar.jsp">
+	<jsp:param name="script" value="navActions.js"/>
+	<jsp:param name="view" value="links"/>
+
+	<jsp:param name="name"     value="synchnav"/>
+	<jsp:param name="tooltip"  value='SynchNav'/>
+	<jsp:param name="image"    value="synch_nav.gif"/>
+	<jsp:param name="action"   value="resynchNav"/>
+	<jsp:param name="state"    value='off'/>
+</jsp:include>
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksView.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksView.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksView.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/linksView.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,82 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<% 	
+	LinksData data = new LinksData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta http-equiv="Pragma" content="no-cache">
+<meta http-equiv="Expires" content="-1">
+
+<title><%=ServletResources.getString("Links", request)%></title>
+
+<style type="text/css">
+<%@ include file="list.css"%>
+</style>
+
+<base target="ContentViewFrame">
+<script language="JavaScript" src="list.js"></script>
+
+</head>
+
+
+<body dir="<%=direction%>">
+ 
+<%
+if(!data.isLinksRequest()) {
+	out.write(ServletResources.getString("pressF1", request));
+} else if (data.getLinksCount() == 0){
+	out.write(ServletResources.getString("Nothing_found", null));
+} else {
+%>
+
+<table id='list'  cellspacing='0' >
+
+<%
+	for (int topic = 0; topic < data.getLinksCount(); topic++) 
+	{
+%>
+
+<tr class='list' id='r<%=topic%>'>
+	<td align='<%=isRTL?"right":"left"%>' class='label' nowrap>
+		<a id='a<%=topic%>' 
+		   href='<%=data.getTopicHref(topic)%>' 
+		   onmouseover="showStatus(event);return true;"
+		   onmouseout="clearStatus();return true;"
+		   onclick='parent.parent.parent.setContentToolbarTitle(this.title)'
+		   title="<%=data.getTopicTocLabel(topic)%>">
+		   <img src="<%=prefs.getImagesDirectory()%>/topic.gif" alt=""><%=data.getTopicLabel(topic)%></a>
+	</td>
+</tr>
+
+<%
+	}
+%>
+
+</table>
+
+<%
+
+}
+
+%>
+
+<script language="JavaScript">
+	selectTopicById('<%=data.getSelectedTopicId()%>');
+</script>
+
+</body>
+</html>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.css
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.css?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.css (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.css Thu Nov 16 09:15:03 2006
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+BODY {
+	background-color: <%=prefs.getViewBackground()%>;
+	color:WindowText;
+	font: <%=prefs.getViewFont()%>;
+	margin-top:5px;
+	margin-<%=isRTL?"right":"left"%>:5px;
+	padding:0;
+	border:0;
+	cursor:default;
+}
+
+A {
+	text-decoration:none; 
+	color:WindowText; 
+	padding:0px;
+	white-space: nowrap;
+}
+
+A:hover {
+	text-decoration:underline; 
+}
+
+IMG {
+	border:0px;
+	margin:0px;
+	padding:0px;
+	margin-<%=isRTL?"left":"right"%>:4px;
+}
+
+TABLE {
+	background-color: <%=prefs.getViewBackground()%>;
+	font: <%=prefs.getViewFont()%>;
+	width:100%;
+}
+
+.list {
+	background-color: <%=prefs.getViewBackground()%>;
+	padding:2px;
+}
+
+.sectiontitle {
+	background-color: <%=prefs.getToolbarBackground()%>;
+	font-weight:bold;
+	margin-top:7px;
+}
+     
+.active { 
+	background:Highlight;
+	color:HighlightText;
+	width:100%;
+	height:100%;
+}
+
+.label {
+	margin-<%=isRTL?"right":"left"%>:4px;
+}
+
+#menu {
+	position:absolute;
+	display:none;
+	background:<%=prefs.getToolbarBackground()%>;
+	border:2px outset;
+	padding:2px 0px;
+}
+
+.selectedMenuItem {
+	background:Highlight;
+	color:HighlightText;
+	padding-left:10px;
+	padding-right:10px;
+}
+
+.unselectedMenuItem {
+	background:<%=prefs.getToolbarBackground()%>;
+	color:WindowText;
+	padding-left:10px;
+	padding-right:10px;
+}
+
+.score {
+	padding-<%=isRTL?"left":"right"%>:5px;
+}
+
+ 
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.js
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.js?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.js (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/list.js Thu Nov 16 09:15:03 2006
@@ -0,0 +1,427 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+ 
+// Common scripts for IE and Mozilla.
+
+var isMozilla = navigator.userAgent.indexOf('Mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
+var isIE = navigator.userAgent.indexOf('MSIE') != -1;
+var isSafari = navigator.userAgent.indexOf('Safari') != -1;
+
+// selected node
+var active;
+var oldActive;
+
+/**
+ * Returns the target node of an event
+ */
+function getTarget(e) {
+	var target;
+  	if (isMozilla)
+  		target = e.target;
+  	else if (isIE)
+   		target = window.event.srcElement;
+
+	return target;
+}
+
+
+/**
+ * Returns the row of this click
+ */
+function getTRNode(node) {
+  if (node.nodeType == 3)  //"Node.TEXT_NODE") 
+	return node.parentNode.parentNode.parentNode;
+  else if (node.tagName == "A")
+  	return node.parentNode.parentNode;
+  else if (node.tagName == "TD") 
+    return node.parentNode;
+  else if (node.tagName == "TR") 
+    return node;
+  else if (node.tagName == "IMG")
+  	return node.parentNode.parentNode.parentNode;
+  else
+  	return null;
+}
+
+/**
+ * Returns the anchor node in this row
+ */
+function getAnchorNode(tr)
+{
+	var id = tr.id.substring(1);
+	return document.getElementById("a"+id);
+}
+
+
+/**
+ * Return next item in the list
+ */
+function getNextDown(node)
+{
+	var tr = getTRNode(node);
+	if (tr == null) return null;
+	
+	var id = tr.id.substring(1);
+	var next = 1 + eval(id);
+	return document.getElementById("a"+next);
+}
+
+/**
+ * Return previous item in the list
+ */
+function getNextUp(node)
+{
+	var tr = getTRNode(node);
+	if (tr == null) return null;
+	
+	var id = tr.id.substring(1);
+	var next = eval(id) - 1;
+	if (next >= 0)
+		return document.getElementById("a"+next);
+	else
+		return null;
+}
+
+
+/**
+ * Highlights link. Returns true if highlights.
+ */
+function highlightTopic(topic)
+{
+  	if (!topic || (topic.tagName != "A" && topic.parentNode.tagName != "A"))
+		return false;
+	
+  	var tr = getTRNode(topic); 
+  	if (tr != null)
+  	{
+  	   	if (oldActive && oldActive != tr) {
+    		oldActive.className="list";
+    		var oldA = getAnchorNode(oldActive);
+    		if (oldA) oldA.className = "";
+  	   	}
+    
+		oldActive = tr;		
+  		tr.className = "active";
+  		var a = getAnchorNode(tr);
+  		if (a)
+  		{
+  			a.className = "active";
+  			// set toolbar title
+  			if (a.onclick)
+  				a.onclick();
+  			//if (isIE)
+  			//	a.hideFocus = "true";
+   		}
+   		active = a;
+   		return true;
+  	}
+  	return false;
+}
+
+/**
+ * Selects a topic in the tree: expand tree and highlight it
+ */
+function selectTopic(topic) 
+{
+	if (!topic || topic == "") return;
+	
+	var links = document.getElementsByTagName("a");
+
+	for (var i=0; i<links.length; i++)
+	{
+		// take into account the extra ?toc=.. or &toc=
+		if (links[i].href.indexOf(topic+"?toc=") == 0 ||
+			links[i].href.indexOf(topic+"&toc=") == 0 ||
+			links[i].href.indexOf(topic+"/?toc=") == 0)
+		{
+			highlightTopic(links[i]);
+			scrollIntoView(links[i]);
+			links[i].scrollIntoView(true);
+			return true;
+		}
+	}
+	return false;
+}
+
+/**
+ * Selects a topic in the list
+ */
+function selectTopicById(id)
+{
+	var topic = document.getElementById(id);
+	if (topic)
+	{
+		highlightTopic(topic);
+		scrollIntoView(topic);
+		return true;
+	}
+	return false;
+}
+
+
+/**
+ * Scrolls the page to show the specified element
+ */
+function scrollIntoView(node)
+{
+	var scroll = getVerticalScroll(node);
+	if (scroll != 0)
+		window.scrollBy(0, scroll);
+}
+
+/**
+ * Scrolls the page to show the specified element
+ */
+function getVerticalScroll(node)
+{
+	// Use the parent element for getting the offsetTop, as it appears
+	// that tables get their own layout measurements.
+
+	//var nodeTop = node.offsetTop;
+	var nodeTop = node.parentNode.offsetTop;
+		
+	//var nodeBottom = nodeTop + node.offsetHeight;
+	var nodeBottom = nodeTop + node.parentNode.offsetHeight;
+	
+	var pageTop = 0;
+	var pageBottom = 0;
+		
+	if (isIE)
+	{
+		pageTop = document.body.scrollTop; 
+		pageBottom = pageTop + document.body.clientHeight;
+	
+	} 
+	else if (isMozilla)
+	{
+		pageTop = window.pageYOffset;
+		pageBottom = pageTop + window.innerHeight - node.offsetHeight;
+	}
+	
+	var scroll = 0;
+	if (nodeTop >= pageTop )
+	{
+		if (nodeBottom <= pageBottom)
+			scroll = 0; // already in view
+		else
+			scroll = nodeBottom - pageBottom/2;
+	}
+	else
+	{
+		scroll = nodeTop - pageTop;
+	}
+	
+	return scroll;
+}
+
+function hidePopupMenu() {
+	// hide popup if open
+	var menu = document.getElementById("menu");
+	if (!menu)
+		return;
+	if (menu.style.display == "block")
+		menu.style.display = "none";
+}
+
+var popupMenuTarget;
+
+function showPopupMenu(e) {
+	// show the menu
+	var x = e.clientX;
+	var y = e.clientY;
+
+	e.cancelBubble = true;
+
+	var menu = document.getElementById("menu");
+	if (!menu) 
+		return;	
+	menu.style.left = (x+1)+"px";
+	menu.style.top = (y+1)+"px";
+	menu.style.display = "block";
+	if (isMozilla)
+		popupMenuTarget = e.target;
+}
+
+/**
+ * display topic label in the status line on mouse over topic
+ */
+function showStatus(e) {
+	try {
+		var overNode;
+		if (isMozilla)
+			overNode = e.target;
+		else if (isIE)
+			overNode = window.event.srcElement;
+		else
+			return true;
+
+		overNode = getTRNode(overNode);
+		if (overNode == null) {
+			window.status = "";
+			return true;
+		}
+
+		if (isMozilla)
+			e.cancelBubble = false;
+
+		var a = getAnchorNode(overNode);
+		var statusText = "";
+		if (isIE)
+			statusText = a.innerText;
+		else if (isMozilla)
+			statusText = a.lastChild.nodeValue;
+			
+		if (statusText != a.title)
+			statusText += " - " + a.title;
+			
+		window.status = statusText;
+	} catch (e) {
+	}
+
+	return true;
+}
+
+function clearStatus() {
+	window.status="";
+}
+
+/**
+ * Popup a menu on right click over a bookmark.
+ * This handler assumes the list.js script has been loaded.
+ */
+function contextMenuHandler(e)
+{
+	// hide popup if open
+	hidePopupMenu();
+
+	if (isIE)
+		e = window.event;
+		
+  	var clickedNode;
+  	if (isMozilla)
+  		clickedNode = e.target;
+  	else if (isIE)
+   		clickedNode = e.srcElement;
+
+  	if (!clickedNode)
+  		return true;
+  	
+  	// call the click handler to select node
+  	mouseClickHandler(e);
+  	
+  	if(clickedNode.tagName == "A")
+  		active = clickedNode;
+  	else if (clickedNode.parentNode.tagName == "A")
+  		active = clickedNode.parentNode;
+  	else
+  		return true;
+	
+	showPopupMenu(e);
+	
+	return false;
+}
+
+/**
+ * handler for clicking on a node
+ */
+function mouseClickHandler(e) {
+
+	if (!isMozilla || e && e.target && e.target != popupMenuTarget)
+		hidePopupMenu();
+		
+  	var clickedNode;
+ 	if (isMozilla)
+  		clickedNode = e.target;
+  	else if (isIE)
+   		clickedNode = window.event.srcElement;
+  	else 
+  		return true;
+  	
+  	highlightTopic(clickedNode);
+}
+
+
+function focusHandler(e)
+{
+	if (oldActive){
+		try{
+			oldActive.focus();
+		} catch (e) {
+		}
+	}
+}
+
+/**
+ * Handler for key down (arrows)
+ */
+function keyDownHandler(e)
+{
+	var key;
+
+	if (isIE) {
+		key = window.event.keyCode;
+	} else if (isMozilla) {
+		key = e.keyCode;
+	}
+
+	if (key <37 || key > 40)
+		return true;
+		
+	if (isMozilla)
+  		e.cancelBubble = true;
+  	else if (isIE)
+  		window.event.cancelBubble = true;
+  		
+  	if (key == 40 ) { // down arrow
+  		var clickedNode = getTarget(e);
+  		if (!clickedNode) return;
+
+		var next = getNextDown(clickedNode);
+		highlightTopic(next);
+		if (next)
+			next.focus();
+		else
+			return true;
+
+  	} else if (key == 38 ) { // up arrow
+  		var clickedNode = getTarget(e);
+  		if (!clickedNode) return;
+
+		var next = getNextUp(clickedNode);
+		highlightTopic(next);
+		if (next)
+			next.focus();
+		else
+			return true;
+  	} else
+  		return true;
+  				
+  	return false;
+}
+
+
+// listen for events
+if (isMozilla) {
+  document.addEventListener('click', mouseClickHandler, true);
+  document.addEventListener('keydown', keyDownHandler, true);
+  //document.addEventListener("focus", focusHandler, true);
+	if (isSafari) {
+		// workaround for lack of good system colors in Safari
+		document.write('<style type="text/css">');
+		document.write('.active {background:#B5D5FF;color:#000000;}');
+		document.write('</style>');
+	}
+}
+else if (isIE){
+  document.onclick = mouseClickHandler;
+  document.onkeydown = keyDownHandler;
+  window.onfocus = focusHandler;
+}

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/livehelp_js.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/livehelp_js.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/livehelp_js.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/livehelp_js.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,70 @@
+<%--
+ Copyright (c) 2000, 2005 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ page import="org.eclipse.help.internal.webapp.data.*" errorPage="/advanced/err.jsp" contentType="text/html; charset=UTF-8"%>
+<%
+	request.setCharacterEncoding("UTF-8");
+%>
+<script language="JavaScript">
+function liveActionInternal(topHelpWindow, pluginId, className, argument)
+{
+<%
+	RequestData data = new RequestData(application,request, response);
+	WebappPreferences prefs = data.getPrefs();
+	if(data.getMode() == RequestData.MODE_INFOCENTER){
+%>
+	alert("<%=UrlUtil.JavaScriptEncode(ServletResources.getString("noLiveHelpInInfocenter", request))%>");
+	return;
+<%
+	}else if(!prefs.isActiveHelp()){
+%>
+	alert("<%=UrlUtil.JavaScriptEncode(ServletResources.getString("noLiveHelp", request))%>");
+	return;
+<%
+	}else {
+%>
+	// construct the proper url for communicating with the server	
+	var url= window.location.href;
+	
+	var i = url.indexOf("?");
+	if(i>0)
+		url=url.substring(0, i);
+	
+	i = url.indexOf("/topic/");
+	if(i < 0)
+		i = url.lastIndexOf("/");
+
+	url=url.substring(0, i+1);
+	var encodedArg=encodeURIComponent(argument);
+	url=url+"livehelp/?pluginID="+pluginId+"&class="+className+"&arg="+encodedArg+"&nocaching="+Math.random();
+
+	// we need to find the toolbar frame.
+	// to do: cleanup this, including the location of the hidden livehelp frame.	
+	var toolbarFrame = topHelpWindow.HelpFrame.ContentFrame.ContentToolbarFrame;
+	if (!toolbarFrame){
+		window.location=url;
+		return;
+	}
+
+	if(toolbarFrame.liveHelpFrame){
+		toolbarFrame.liveHelpFrame.location=url;
+	}
+<%
+	}
+%>
+}
+function showTopicInContentsInternal(topHelpWindow, topic) {
+	try{
+		topHelpWindow.HelpFrame.NavFrame.displayTocFor(topic);
+	}catch(e){
+	}
+}
+
+</script>

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/nav.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/nav.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/nav.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/nav.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,149 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="fheader.jsp"%>
+
+<% 
+	LayoutData data = new LayoutData(application,request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title><%=ServletResources.getString("Help", request)%></title>
+
+<style type="text/css">
+<% 
+if (data.isMozilla()) {
+%>
+HTML {
+	border-<%=isRTL?"right":"left"%>:1px solid ThreeDShadow;
+	background:<%=prefs.getToolbarBackground()%>;
+}
+<% 
+} else {
+%>
+FRAMESET {
+	border-top:1px solid ThreeDShadow;
+	border-left:1px solid ThreeDShadow;
+	border-right:1px solid ThreeDShadow;
+}
+<%
+}
+%>
+</style>
+
+<script language="JavaScript">
+var isMozilla = navigator.userAgent.indexOf('Mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
+var isMozilla10 = isMozilla && navigator.userAgent.indexOf('rv:1') != -1;
+var isIE = navigator.userAgent.indexOf('MSIE') != -1;
+
+/**
+ * Views can call this to set the title on the content toolbar
+ */
+function setContentToolbarTitle(title)
+{
+	if(parent.ContentFrame.ContentToolbarFrame && parent.ContentFrame.ContentToolbarFrame.setTitle ){
+		parent.ContentFrame.ContentToolbarFrame.setTitle(title);
+	}
+}
+
+/**
+ * Shows specified view. Called from actions that switch the view
+ */
+function showView(view)
+{
+	// Note: assumes the same id shared by tabs and iframes
+	ViewsFrame.showView(view);
+	TabsFrame.showTab(view);
+}
+
+var temp;
+var tempActiveId;
+var tempView = "";
+
+/**
+ * Shows the TOC frame, loads appropriate TOC, and selects the topic
+ */
+function displayTocFor(topic)
+{
+	tempView = ViewsFrame.lastView;
+	
+	/******** HARD CODED VIEW NAME *********/
+	showView("toc");
+	
+	var tocView = ViewsFrame.toc.tocViewFrame;
+
+	if (tocView.selectTopic && tocView.selectTopic(topic))
+		return;
+	else {
+		// save the current navigation, so we can retrieve it when synch does not work
+		saveNavigation();
+
+		var advIndex=window.location.href.indexOf("/advanced/nav.jsp");
+		if(advIndex < 0)
+			return;
+		var tocURL = window.location.href.substr(0, advIndex) + "/advanced/tocView.jsp";
+		tocView.location.replace(tocURL + "?topic="+topic+"&synch=yes");			
+	}
+}
+
+function saveNavigation()
+{
+	/**** HARD CODED VIEW NAME *********/
+	var tocView = ViewsFrame.toc.tocViewFrame;
+	
+	if (tocView.oldActive) {
+		tempActiveId = tocView.oldActive.id;
+		tocView.oldActive.className = tocView.oldActiveClass;
+		tocView.oldActive = null;
+	}
+		
+	if (isIE)
+		temp = tocView.document.body.innerHTML;
+	else if (isMozilla)
+		temp = tocView.document.documentElement.innerHTML;
+}
+
+function restoreNavigation(errorMessage)
+{	
+	// switch to saved view
+	showView(tempView);
+
+	/**** HARD CODED VIEW NAME *********/	
+	var tocView = ViewsFrame.toc.tocViewFrame;
+
+	if (temp && (isIE || isMozilla10)) {
+		// Restore old navigation
+		if (isIE) {
+			tocView.document.body.innerHTML = temp;
+		} else if (isMozilla10) {
+			tocView.document.documentElement.innerHTML = temp;
+		}
+		if (tempActiveId){
+			tocView.selectTopicById(tempActiveId);
+		}
+	} else {
+		// fail back case
+		tocView.location.replace("tocView.jsp");
+	}
+	window.status=errorMessage;	
+}
+</script>
+</head>
+
+<frameset onload="showView('<%=data.getVisibleView()%>')" id="navFrameset" rows="*,21"  framespacing="0" border="0"  frameborder="0" scrolling="no">
+   <frame name="ViewsFrame" title="<%=ServletResources.getString("ignore", "ViewsFrame", request)%>" src='<%="views.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" resize=yes>
+   <frame name="TabsFrame" title="<%=ServletResources.getString("TabsFrame", request)%>" src='<%="tabs.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize>
+</frameset>
+
+</html>
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/navActions.js
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/navActions.js?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/navActions.js (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/navActions.js Thu Nov 16 09:15:03 2006
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+var isIE = navigator.userAgent.indexOf('MSIE') != -1;
+
+function resynchNav(button)
+{
+	try {
+		parent.parent.parent.parent.ContentFrame.ContentToolbarFrame.resynch(button);
+	} catch(e){
+	}
+	if (isIE && button && document.getElementById(button)){
+		document.getElementById(button).blur();
+	}
+}
+
+function toggleShowAll(button){
+	window.parent.parent.toggleShowAll();
+	if (isIE && button && document.getElementById(button)){
+		document.getElementById(button).blur();
+	}
+}
+
+function removeBookmark(button){
+	try {
+		parent.bookmarksViewFrame.removeBookmark();
+	} catch(e){
+	}
+	if (isIE && button && document.getElementById(button)){
+		document.getElementById(button).blur();
+	}
+}
+
+function removeAllBookmarks(button){
+	try {
+		parent.bookmarksViewFrame.removeAllBookmarks();
+	} catch(e){
+	}
+	if (isIE && button && document.getElementById(button)){
+		document.getElementById(button).blur();
+	}
+}
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/search.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/search.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/search.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/search.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,29 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ page import="org.eclipse.help.internal.webapp.data.*" errorPage="/advanced/err.jsp" contentType="text/html; charset=UTF-8"%>
+<%
+	request.setCharacterEncoding("UTF-8");
+	boolean cookiesEnabled = false;
+	Cookie[] cookies = request.getCookies();
+	if (cookies != null) {
+		for (int i = 0; i < cookies.length; i++) {
+			if ("cookiesEnabled".equals(cookies[i].getName()) && "yes".equals(cookies[i].getValue())) {
+				cookiesEnabled = true;
+				break;
+			}
+		}
+	}
+	if(cookiesEnabled || (new RequestData(application, request, response)).getMode() != RequestData.MODE_INFOCENTER){
+		request.getRequestDispatcher("/advanced/searchScoped.jsp").forward(request, response);
+	}else{
+		request.getRequestDispatcher("/advanced/searchSimple.jsp").forward(request, response);
+	}
+%>
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchList.css
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchList.css?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchList.css (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchList.css Thu Nov 16 09:15:03 2006
@@ -0,0 +1,91 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+BODY {
+	background-color: <%=prefs.getViewBackground()%>;
+	color:WindowText;
+	font: <%=prefs.getViewFont()%>;
+	margin-top:5px;
+	margin-<%=isRTL?"right":"left"%>:5px;
+	padding:0;
+	border:0;
+	cursor:default;
+}
+
+A {
+	text-decoration:none; 
+	padding:0px;
+}
+
+A:hover {
+	text-decoration:underline; 
+}
+
+IMG {
+	border:0px;
+	margin:0px;
+	padding:0px;
+	margin-<%=isRTL?"left":"right"%>:4px;
+}
+
+TABLE {
+	background-color: <%=prefs.getViewBackground()%>;
+	font: <%=prefs.getViewFont()%>;
+	width:100%;
+}
+
+.list {
+	background-color: <%=prefs.getViewBackground()%>;
+	padding:2px;
+}
+
+.sectiontitle {
+	background-color: <%=prefs.getToolbarBackground()%>;
+	font-weight:bold;
+	margin-top:7px;
+}
+     
+.active { 
+	background:Highlight;
+	color:HighlightText;
+	width:100%;
+	height:100%;
+}
+
+.label {
+	margin-<%=isRTL?"right":"left"%>:4px;
+}
+
+#menu {
+	position:absolute;
+	display:none;
+	background:<%=prefs.getToolbarBackground()%>;
+	border:2px outset;
+	padding:2px 0px;
+}
+
+.selectedMenuItem {
+	background:Highlight;
+	color:HighlightText;
+	padding-left:10px;
+	padding-right:10px;
+}
+
+.unselectedMenuItem {
+	background:<%=prefs.getToolbarBackground()%>;
+	color:WindowText;
+	padding-left:10px;
+	padding-right:10px;
+}
+
+.score {
+	padding-<%=isRTL?"left":"right"%>:5px;
+}
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchScoped.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchScoped.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchScoped.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchScoped.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,247 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<% 
+	SearchData data = new SearchData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+<title><%=ServletResources.getString("Search", request)%></title>
+     
+<style type="text/css">
+/* need this one for Mozilla */
+HTML { 
+	width:100%;
+	height:100%;
+	margin:0px;
+	padding:0px;
+	border:0px;
+ }
+
+BODY {
+	background:<%=prefs.getToolbarBackground()%>;
+	border:0px;
+	text:white;
+	height:100%;
+}
+
+TABLE {
+	font: <%=prefs.getToolbarFont()%>;
+	background:<%=prefs.getToolbarBackground()%>;
+	margin: 0px;
+	padding: 0px;
+	height:100%;
+}
+
+FORM {
+	background:<%=prefs.getToolbarBackground()%>;
+	height:100%;
+	margin:0px;
+}
+
+INPUT {
+	font: <%=prefs.getToolbarFont()%>;
+	margin:0px;
+	padding:0px;
+}
+
+A {
+	color:WindowText;
+	text-decoration:none;
+}
+
+#searchTD {
+	padding-<%=isRTL?"right":"left"%>:7px;
+	padding-<%=isRTL?"left":"right"%>:4px;
+}
+
+#searchWord {
+	padding-left:4px;
+	padding-right:4px;
+	border:1px solid ThreeDShadow;
+}
+
+#searchLabel {
+	color:WindowText;
+}
+
+#go {
+	background:ThreeDShadow;
+	color:Window;
+	font-weight:bold;
+	border:1px solid ThreeDShadow;
+	margin-left:1px;
+}
+
+#scopeLabel {
+	text-decoration:underline; 
+	color:#0066FF; 
+	cursor:hand;
+	padding-left:15px;   /* This should be the same for both RTL and LTR. */
+}
+
+#scope { 
+	text-align:<%=isRTL?"left":"right"%>;
+	margin-<%=isRTL?"right":"left"%>:5px;
+	border:0px;
+	color:WindowText;
+	text-decoration:none;
+}
+
+<%
+	if (data.isIE()) {
+%>
+#go {
+	padding-<%=isRTL?"right":"left"%>:1px;
+}
+<%
+	}
+%>
+</style>
+
+<script language="JavaScript">
+var isIE = navigator.userAgent.indexOf('MSIE') != -1;
+var isMozilla = navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
+
+var advancedDialog;
+var w = 300;
+var h = 300;
+
+function openAdvanced()
+{
+	var scope = document.getElementById("scope").firstChild;
+	var workingSet = "";
+	if (scope != null)
+	 	workingSet = document.getElementById("scope").firstChild.nodeValue;
+	 	
+<%
+if (data.isIE()){
+%>
+	var l = top.screenLeft + (top.document.body.clientWidth - w) / 2;
+	var t = top.screenTop + (top.document.body.clientHeight - h) / 2;
+<%
+} else {
+%>
+	var l = top.screenX + (top.innerWidth - w) / 2;
+	var t = top.screenY + (top.innerHeight - h) / 2;
+<%
+}
+%>
+	// move the dialog just a bit higher than the middle
+	if (t-50 > 0) t = t-50;
+	
+	window.location="javascript://needModal";
+	advancedDialog = window.open("workingSetManager.jsp?workingSet="+encodeURIComponent(workingSet), "advancedDialog", "resizeable=no,height="+h+",width="+w+",left="+l+",top="+t );
+	advancedDialog.focus(); 
+}
+
+function closeAdvanced()
+{
+	try {
+		if (advancedDialog)
+			advancedDialog.close();
+	}
+	catch(e) {}
+}
+
+/**
+ * This function can be called from this page or from
+ * the advanced search page. When called from the advanced
+ * search page, a query is passed.
+ */
+function doSearch(query)
+{
+	var workingSet = document.getElementById("scope").firstChild.nodeValue;
+
+	if (!query || query == "")
+	{
+		var form = document.forms["searchForm"];
+		var searchWord = form.searchWord.value;
+		var maxHits = form.maxHits.value;
+		if (!searchWord || searchWord == "")
+			return;
+		query ="searchWord="+encodeURIComponent(searchWord)+"&maxHits="+maxHits;
+		if (workingSet != '<%=ServletResources.getString("All", request)%>')
+			query = query +"&scope="+encodeURIComponent(workingSet);
+	}
+		
+	/******** HARD CODED VIEW NAME *********/
+	// do some tests to ensure the results are available
+	if (parent.HelpFrame && 
+		parent.HelpFrame.NavFrame && 
+		parent.HelpFrame.NavFrame.showView &&
+		parent.HelpFrame.NavFrame.ViewsFrame && 
+		parent.HelpFrame.NavFrame.ViewsFrame.search && 
+		parent.HelpFrame.NavFrame.ViewsFrame.search.searchViewFrame) 
+	{
+		parent.HelpFrame.NavFrame.showView("search");
+		var searchView = parent.HelpFrame.NavFrame.ViewsFrame.search.searchViewFrame;
+		searchView.location.replace("searchView.jsp?"+query);
+	}
+}
+
+function fixHeights()
+{
+	if (!isIE) return;
+	
+	var h = document.getElementById("searchWord").offsetHeight;
+	document.getElementById("go").style.height = h;
+}
+
+function onloadHandler(e)
+{
+	var form = document.forms["searchForm"];
+	form.searchWord.value = '<%=UrlUtil.JavaScriptEncode(data.getSearchWord())%>';
+	fixHeights();
+}
+
+</script>
+
+</head>
+
+<body dir="<%=direction%>" onload="onloadHandler()"  onunload="closeAdvanced()">
+
+	<form  name="searchForm"   onsubmit="doSearch()">
+		<table id="searchTable" align="<%=isRTL?"right":"left"%>" valign="middle" cellspacing="0" cellpadding="0" border="0">
+			<tr nowrap  valign="middle">
+				<td <%=isRTL?"nowrap":""%> id="searchTD">
+					<label id="searchLabel" for="searchWord" accesskey="<%=ServletResources.getAccessKey("Search", request)%>">
+					&nbsp;<%=ServletResources.getLabel("Search", request)%>:
+					</label>
+				</td>
+				<td>
+					<input type="text" id="searchWord" name="searchWord" value='' size="24" maxlength="256" alt='<%=ServletResources.getString("SearchExpression", request)%>' title='<%=ServletResources.getString("SearchExpression", request)%>'>
+				</td>
+				<td >
+					&nbsp;<input type="button" onclick="this.blur();doSearch()" value='<%=ServletResources.getString("GO", request)%>' id="go" alt='<%=ServletResources.getString("GO", request)%>' title='<%=ServletResources.getString("GO", request)%>'>
+					<input type="hidden" name="maxHits" value="500" >
+				</td>
+				<td nowrap>
+					<a id="scopeLabel" href="javascript:openAdvanced();" title='<%=ServletResources.getString("ScopeTooltip", request)%>' alt='<%=ServletResources.getString("ScopeTooltip", request)%>' onmouseover="window.status='<%=ServletResources.getString("ScopeTooltip", request)%>'; return true;" onmouseout="window.status='';"><%=ServletResources.getLabel("Scope", request)%>:</a>
+				</td>
+				<td nowrap>
+					<input type="hidden" name="workingSet" value='<%=data.getScope()%>'>
+					<div id="scope" ><%=data.getScope()%></div>
+				</td>
+			</tr>
+
+		</table>
+	</form>		
+
+</body>
+</html>
+

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchSimple.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchSimple.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchSimple.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchSimple.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,225 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<% 
+	SearchData data = new SearchData(application, request, response);
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+<title><%=ServletResources.getString("Search", request)%></title>
+     
+<style type="text/css">
+/* need this one for Mozilla */
+HTML { 
+	width:100%;
+	height:100%;
+	margin:0px;
+	padding:0px;
+	border:0px;
+ }
+
+BODY {
+	background:<%=prefs.getToolbarBackground()%>;
+	border:0px;
+	text:white;
+	height:100%;
+}
+
+TABLE {
+	font: <%=prefs.getToolbarFont()%>;
+	background:<%=prefs.getToolbarBackground()%>;
+	margin: 0px;
+	padding: 0px;
+	height:100%;
+}
+
+FORM {
+	background:<%=prefs.getToolbarBackground()%>;
+	height:100%;
+	margin:0px;
+}
+
+INPUT {
+	font: <%=prefs.getToolbarFont()%>;
+	margin:0px;
+	padding:0px;
+}
+
+
+#searchTable {
+	padding-<%=isRTL?"right":"left"%>:5;
+}
+
+#searchWord {	
+	padding-left:4px;
+	padding-right:4px;
+	border:1px solid ThreeDShadow;
+}
+
+#go {
+	background:ThreeDShadow;
+	color:Window;
+	font-weight:bold;
+	border:1px solid ThreeDShadow;
+}
+
+
+#advanced {
+	text-decoration:underline; 
+	text-align:<%=isRTL?"left":"right"%>;
+	color:#0066FF; 
+	cursor:hand;
+	margin-<%=isRTL?"right":"left"%>:4px;
+	border:0px;
+}
+
+<%
+	if (data.isIE()) {
+%>
+#go {
+	padding-<%=isRTL?"right":"left"%>:1px;
+}
+<%
+	}
+%>
+</style>
+
+<script language="JavaScript">
+var isIE = navigator.userAgent.indexOf('MSIE') != -1;
+var isMozilla = navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
+
+<%
+	String[] selectedBooks = data.getSelectedTocs();
+%>
+// create list of books initilize selectedBooks variable used by advances search
+var selectedBooks = new Array(<%=selectedBooks.length%>);
+<%
+for (int i=0; i<selectedBooks.length; i++) 
+{
+%>
+	selectedBooks[<%=i%>] = "<%=UrlUtil.JavaScriptEncode(selectedBooks[i])%>";
+<%
+}
+%>
+
+var advancedDialog;
+var w = 400;
+var h = 300;
+
+function saveSelectedBooks(books)
+{
+	selectedBooks = new Array(books.length);
+	for (var i=0; i<selectedBooks.length; i++){
+		selectedBooks[i] = new String(books[i]);
+	}
+}
+
+function openAdvanced()
+{
+	window.location="javascript://needModal";
+	advancedDialog = window.open("advanced.jsp?searchWord="+encodeURIComponent(document.getElementById("searchWord").value), "advancedDialog", "resizeable=no,height="+h+",width="+w );
+	advancedDialog.focus(); 
+}
+
+function closeAdvanced()
+{
+	try {
+		if (advancedDialog)
+			advancedDialog.close();
+	}
+	catch(e) {}
+}
+
+/**
+ * This function can be called from this page or from
+ * the advanced search page. When called from the advanced
+ * search page, a query is passed.
+ */
+function doSearch(query)
+{
+	if (!query || query == "")
+	{
+		var form = document.forms["searchForm"];
+		var searchWord = form.searchWord.value;
+		var maxHits = form.maxHits.value;
+		if (!searchWord || searchWord == "")
+			return;
+		query ="searchWord="+encodeURIComponent(searchWord)+"&maxHits="+maxHits;
+	}
+		
+	/******** HARD CODED VIEW NAME *********/
+	// do some tests to ensure the results are available
+	if (parent.HelpFrame && 
+		parent.HelpFrame.NavFrame && 
+		parent.HelpFrame.NavFrame.showView &&
+		parent.HelpFrame.NavFrame.ViewsFrame && 
+		parent.HelpFrame.NavFrame.ViewsFrame.search && 
+		parent.HelpFrame.NavFrame.ViewsFrame.search.searchViewFrame) 
+	{
+		parent.HelpFrame.NavFrame.showView("search");
+		var searchView = parent.HelpFrame.NavFrame.ViewsFrame.search.searchViewFrame;
+		searchView.location.replace("searchView.jsp?"+query);
+	}
+}
+
+function fixHeights()
+{
+	if (!isIE) return;
+	
+	var h = document.getElementById("searchWord").offsetHeight;
+	document.getElementById("go").style.height = h;
+}
+
+function onloadHandler(e)
+{
+	var form = document.forms["searchForm"];
+	form.searchWord.value = '<%=UrlUtil.JavaScriptEncode(data.getSearchWord())%>';
+	fixHeights();
+}
+
+</script>
+
+</head>
+
+<body dir="<%=direction%>" onload="onloadHandler()"  onunload="closeAdvanced()">
+
+	<form  name="searchForm"   onsubmit="doSearch()">
+		<table id="searchTable" align="<%=isRTL?"right":"left"%>" valign="middle" cellspacing="0" cellpadding="0" border="0">
+			<tr nowrap  valign="middle">
+				<td <%=isRTL?"nowrap":""%>>
+					<label id="searchLabel" for="searchWord" accesskey="<%=ServletResources.getAccessKey("Search", request)%>">
+					&nbsp;<%=ServletResources.getLabel("Search", request)%>:
+					</label>
+				</td>
+				<td>
+					<input type="text" id="searchWord" name="searchWord" value='' size="20" maxlength="256" alt='<%=ServletResources.getString("SearchExpression", request)%>' title='<%=ServletResources.getString("SearchExpression", request)%>'>
+				</td>
+				<td >
+					&nbsp;<input type="button" onclick="this.blur();doSearch()" value='<%=ServletResources.getString("GO", request)%>' id="go" alt='<%=ServletResources.getString("GO", request)%>' title='<%=ServletResources.getString("GO", request)%>'>
+					<input type="hidden" name="maxHits" value="500" >
+				</td>
+				<td nowrap>
+					<a id="advanced" href="javascript:openAdvanced();" alt='<%=ServletResources.getString("Advanced", request)%>' title='<%=ServletResources.getString("Advanced", request)%>' onmouseover="window.status='<%=ServletResources.getString("Advanced", request)%>'; return true;" onmouseout="window.status='';"><%=ServletResources.getString("Advanced", request)%></a>&nbsp;
+				</td>
+			</tr>
+
+		</table>
+	</form>		
+
+</body>
+</html>
+

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchToolbar.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchToolbar.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchToolbar.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchToolbar.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,29 @@
+<%--
+ Copyright (c) 2000, 2004 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+
+<jsp:include page="toolbar.jsp">
+	<jsp:param name="script" value="navActions.js"/>
+	<jsp:param name="view" value="search"/>
+
+	<jsp:param name="name"     value="show_all"/>
+	<jsp:param name="tooltip"  value='show_all'/>
+	<jsp:param name="image"    value="show_all.gif"/>
+	<jsp:param name="action"   value="toggleShowAll"/>
+	<jsp:param name="state"    value="<%=(new ActivitiesData(application, request, response)).getButtonState()%>"/>
+
+	<jsp:param name="name"     value="synchnav"/>
+	<jsp:param name="tooltip"  value='SynchNav'/>
+	<jsp:param name="image"    value="synch_nav.gif"/>
+	<jsp:param name="action"   value="resynchNav"/>
+	<jsp:param name="state"    value='off'/>
+</jsp:include>
\ No newline at end of file

Added: directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchView.jsp
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchView.jsp?view=auto&rev=475822
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchView.jsp (added)
+++ directory/sandbox/pamarcelot/ldapstudio/dependencies/eclipse/3.2/plugins/org.eclipse.help.webapp_3.2.0.v20060510b/advanced/searchView.jsp Thu Nov 16 09:15:03 2006
@@ -0,0 +1,164 @@
+<%--
+ Copyright (c) 2000, 2006 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials 
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+ 
+ Contributors:
+     IBM Corporation - initial API and implementation
+--%>
+<%@ include file="header.jsp"%>
+
+<% 
+	SearchData data = new SearchData(application, request, response);
+	// After each search we preserve the scope (working set), if any
+	// this need to be at the beginning, otherwise cookie is not written
+	if (data.isSearchRequest())
+		data.saveScope();
+
+	WebappPreferences prefs = data.getPrefs();
+%>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta http-equiv="Pragma" content="no-cache">
+<meta http-equiv="Expires" content="-1">
+
+<title><%=ServletResources.getString("SearchResults", request)%></title>
+
+<style type="text/css">
+<%@ include file="searchList.css"%>
+</style>
+
+
+<base target="ContentViewFrame">
+<script language="JavaScript" src="list.js"></script>
+<script language="JavaScript">		
+
+function refresh() 
+{ 
+	window.location.replace("searchView.jsp?<%=request.getQueryString()%>");
+}
+</script>
+
+
+</head>
+
+<body dir="<%=direction%>">
+
+<%
+if (!data.isSearchRequest()) {
+	out.write(ServletResources.getString("doSearch", request));
+} else if (data.getQueryExceptionMessage()!=null) {
+	out.write(data.getQueryExceptionMessage());
+} else if (data.isProgressRequest()) {
+%>
+
+<CENTER>
+<TABLE BORDER='0'>
+	<TR><TD><%=ServletResources.getString("Indexing", request)%></TD></TR>
+	<TR><TD ALIGN='<%=isRTL?"RIGHT":"LEFT"%>'>
+		<DIV STYLE='width:100px;height:16px;border:1px solid ThreeDShadow;'>
+			<DIV ID='divProgress' STYLE='width:<%=data.getIndexedPercentage()%>px;height:100%;background-color:Highlight'></DIV>
+		</DIV>
+	</TD></TR>
+	<TR><TD><%=data.getIndexedPercentage()%>% <%=ServletResources.getString("complete", request)%></TD></TR>
+	<TR><TD><br><%=ServletResources.getString("IndexingPleaseWait", request)%></TD></TR>
+</TABLE>
+</CENTER>
+<script language='JavaScript'>
+setTimeout('refresh()', 2000);
+</script>
+</body>
+</html>
+
+<%
+	return;
+} else if (data.getResultsCount() == 0){
+	out.write(ServletResources.getString("Nothing_found", request));
+} else {
+%>
+
+<table id='list'  cellspacing='0' >
+
+<%
+	for (int topic = 0; topic < data.getResultsCount(); topic++)
+	{
+		if(data.isActivityFiltering() && !data.isEnabled(topic)){
+			continue;
+		}
+%>
+
+<tr class='list' id='r<%=topic%>'>
+	<td class='score' align='<%=isRTL?"left":"right"%>'>
+
+<%
+		boolean isPotentialHit = data.isPotentialHit(topic);
+		if (isPotentialHit) {
+%>
+
+
+	<img src="<%=prefs.getImagesDirectory()%>/d_topic.gif" alt=""/>
+
+<%
+		}
+		else {
+%>
+
+	<img src="<%=prefs.getImagesDirectory()%>/topic.gif" alt=""/>
+
+<%
+		}
+%>
+
+	</td>
+	<td align='<%=isRTL?"right":"left"%>'>
+		<a class='link' id='a<%=topic%>' 
+		   href="<%=data.getTopicHref(topic)%>" 
+		   onmouseover="showStatus(event);return true;"
+		   onmouseout="clearStatus();return true;"
+		   onclick='parent.parent.parent.setContentToolbarTitle(this.title)' 
+		   title="<%=data.getTopicTocLabel(topic)%>">
+
+<%
+		String label = null;
+		if (isPotentialHit) {
+            label = ServletResources.getString("PotentialHit", data.getTopicLabel(topic), request);
+        }
+        else {
+            label = data.getTopicLabel(topic);
+        }
+%>
+
+        <%=label%></a>
+	</td>
+</tr>
+
+<%
+		String desc = data.getTopicDescription(topic);
+		if (desc!=null) {
+%>
+<tr class='description' id='d<%=topic%>'>
+	<td class='score'>
+	</td>
+	<td align='<%=isRTL?"right":"left"%>' class='label'>
+		<%=desc%>
+	</td>
+<%
+		}
+	}
+%>
+</table>
+
+<%
+}
+%>
+
+<script language="JavaScript">
+	selectTopicById('<%=data.getSelectedTopicId()%>');
+</script>
+
+</body>
+</html>



Mime
View raw message