Initial commit
@@ -0,0 +1,2 @@
|
||||
org.eclipse.help.webapp/debug = true
|
||||
org.eclipse.help.webapp/debug/workingsets = false
|
||||
@@ -0,0 +1,561 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
|
||||
|
||||
<!DOCTYPE web-app
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
|
||||
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
|
||||
|
||||
<web-app>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>control</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.ControlServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>content</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.ContentServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>livehelp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.LiveHelpServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>toc</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.TocServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>search</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.SearchServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>context</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.servlet.ContextServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
|
||||
<!--
|
||||
Automatically created by Tomcat JspC.
|
||||
Place this fragement in the web.xml before all icon, display-name,
|
||||
description, distributable, and context-param elements.
|
||||
-->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.index_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.index_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.err_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.err_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.header_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.header_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.help_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.help_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.index_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.index_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.linksToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.linksToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.linksView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.linksView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.livehelp_js_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.livehelp_js_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.searchToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.searchToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.searchView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.searchView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tabs_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.tabs_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tocToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.tocToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tocView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.tocView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.toolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.toolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.view_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.basic.view_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.advanced_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.advanced_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.askShowAll_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.askShowAll_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.confirm_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.confirm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.confirmShowAll_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.confirmShowAll_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.content_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.content_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.contentToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.contentToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.err_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.err_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.fheader_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.fheader_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.header_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.header_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.help_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.help_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.index_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.index_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.linksToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.linksToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.linksView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.linksView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.livehelp_js_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.livehelp_js_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.nav_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.nav_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.search_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.search_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchScoped_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.searchScoped_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchSimple_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.searchSimple_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.searchToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.searchView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tabs_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.tabs_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocFragment_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.tocFragment_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocToolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.tocToolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocView_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.tocView_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.toolbar_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.toolbar_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.view_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.view_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.views_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.views_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.workingSet_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.workingSet_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.workingSetManager_jsp</servlet-name>
|
||||
<servlet-class>org.eclipse.help.internal.webapp.jsp.advanced.workingSetManager_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.index_jsp</servlet-name>
|
||||
<url-pattern>/index.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.err_jsp</servlet-name>
|
||||
<url-pattern>/basic/err.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.header_jsp</servlet-name>
|
||||
<url-pattern>/basic/header.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.help_jsp</servlet-name>
|
||||
<url-pattern>/basic/help.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.index_jsp</servlet-name>
|
||||
<url-pattern>/basic/index.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.linksToolbar_jsp</servlet-name>
|
||||
<url-pattern>/basic/linksToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.linksView_jsp</servlet-name>
|
||||
<url-pattern>/basic/linksView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.livehelp_js_jsp</servlet-name>
|
||||
<url-pattern>/basic/livehelp_js.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.searchToolbar_jsp</servlet-name>
|
||||
<url-pattern>/basic/searchToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.searchView_jsp</servlet-name>
|
||||
<url-pattern>/basic/searchView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tabs_jsp</servlet-name>
|
||||
<url-pattern>/basic/tabs.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tocToolbar_jsp</servlet-name>
|
||||
<url-pattern>/basic/tocToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.tocView_jsp</servlet-name>
|
||||
<url-pattern>/basic/tocView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.toolbar_jsp</servlet-name>
|
||||
<url-pattern>/basic/toolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.basic.view_jsp</servlet-name>
|
||||
<url-pattern>/basic/view.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.advanced_jsp</servlet-name>
|
||||
<url-pattern>/advanced/advanced.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.askShowAll_jsp</servlet-name>
|
||||
<url-pattern>/advanced/askShowAll.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksToolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/bookmarksToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.bookmarksView_jsp</servlet-name>
|
||||
<url-pattern>/advanced/bookmarksView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.confirm_jsp</servlet-name>
|
||||
<url-pattern>/advanced/confirm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.confirmShowAll_jsp</servlet-name>
|
||||
<url-pattern>/advanced/confirmShowAll.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.content_jsp</servlet-name>
|
||||
<url-pattern>/advanced/content.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.contentToolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/contentToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.err_jsp</servlet-name>
|
||||
<url-pattern>/advanced/err.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.fheader_jsp</servlet-name>
|
||||
<url-pattern>/advanced/fheader.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.header_jsp</servlet-name>
|
||||
<url-pattern>/advanced/header.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.help_jsp</servlet-name>
|
||||
<url-pattern>/advanced/help.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.index_jsp</servlet-name>
|
||||
<url-pattern>/advanced/index.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.linksToolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/linksToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.linksView_jsp</servlet-name>
|
||||
<url-pattern>/advanced/linksView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.livehelp_js_jsp</servlet-name>
|
||||
<url-pattern>/advanced/livehelp_js.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.nav_jsp</servlet-name>
|
||||
<url-pattern>/advanced/nav.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.search_jsp</servlet-name>
|
||||
<url-pattern>/advanced/search.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchScoped_jsp</servlet-name>
|
||||
<url-pattern>/advanced/searchScoped.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchSimple_jsp</servlet-name>
|
||||
<url-pattern>/advanced/searchSimple.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchToolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/searchToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.searchView_jsp</servlet-name>
|
||||
<url-pattern>/advanced/searchView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tabs_jsp</servlet-name>
|
||||
<url-pattern>/advanced/tabs.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocFragment_jsp</servlet-name>
|
||||
<url-pattern>/advanced/tocFragment.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocToolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/tocToolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.tocView_jsp</servlet-name>
|
||||
<url-pattern>/advanced/tocView.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.toolbar_jsp</servlet-name>
|
||||
<url-pattern>/advanced/toolbar.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.view_jsp</servlet-name>
|
||||
<url-pattern>/advanced/view.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.views_jsp</servlet-name>
|
||||
<url-pattern>/advanced/views.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.workingSet_jsp</servlet-name>
|
||||
<url-pattern>/advanced/workingSet.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>org.eclipse.help.internal.webapp.jsp.advanced.workingSetManager_jsp</servlet-name>
|
||||
<url-pattern>/advanced/workingSetManager.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!--
|
||||
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
|
||||
resource-ref, security-constraint, login-config, security-role,
|
||||
env-entry, and ejb-ref elements should follow this fragment.
|
||||
-->
|
||||
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>control</servlet-name>
|
||||
<url-pattern>/control.html</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content</servlet-name>
|
||||
<url-pattern>/content/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content</servlet-name>
|
||||
<url-pattern>/topic/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content</servlet-name>
|
||||
<url-pattern>/nftopic/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>livehelp</servlet-name>
|
||||
<url-pattern>/livehelp/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>toc</servlet-name>
|
||||
<url-pattern>/toc/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>search</servlet-name>
|
||||
<url-pattern>/search/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>context</servlet-name>
|
||||
<url-pattern>/context/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
</web-app>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>About</title>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
|
||||
</head>
|
||||
<body lang="EN-US">
|
||||
<h2>About This Content</h2>
|
||||
|
||||
<p>20th June, 2002</p>
|
||||
<h3>License</h3>
|
||||
<p>Eclipse.org makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
|
||||
Common Public License Version 1.0 ("CPL"). A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
|
||||
For purposes of the CPL, "Program" will mean the Content.</p>
|
||||
|
||||
<h3>Contributions</h3>
|
||||
|
||||
<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
|
||||
made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
|
||||
Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
|
||||
|
||||
<p>If this Content is licensed to you under license terms and conditions other than the CPL ("Other License"), any modifications, enhancements and/or
|
||||
other code and/or documentation ("Modifications") uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
|
||||
host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
|
||||
to others under the terms of the Other License. In addition, with regard to Modifications for which you are the copyright holder, you are also
|
||||
providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
|
||||
the CPL.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,235 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
<title><%=ServletResources.getString("Advanced", request)%></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
/* need this one for Mozilla */
|
||||
HTML {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
font: <%=prefs.getViewFont()%>;
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
border:1px solid ThreeDShadow;
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
TD, TR {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
FORM {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
|
||||
#searchTable {
|
||||
background:transparent;
|
||||
margin:10px 0px 20px 0px;
|
||||
}
|
||||
|
||||
#searchWord {
|
||||
border:1px solid ThreeDShadow;
|
||||
width:100%;
|
||||
font:icon;
|
||||
}
|
||||
|
||||
#booksContainer {
|
||||
background:<%=prefs.getViewBackground()%>;
|
||||
border:1px solid ThreeDShadow;
|
||||
margin:0px 10px;
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
.book {
|
||||
margin:0xp;
|
||||
border:0px;
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
.button {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
}
|
||||
|
||||
<%
|
||||
if (data.isMozilla()) {
|
||||
%>
|
||||
input[type="checkbox"] {
|
||||
border:2px solid ThreeDShadow;
|
||||
margin:0xp;
|
||||
padding:0px;
|
||||
height:12px;
|
||||
width:12px;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function doAdvancedSearch()
|
||||
{
|
||||
try
|
||||
{
|
||||
var form = document.forms["searchForm"];
|
||||
var searchWord = form.searchWord.value;
|
||||
var maxHits = form.maxHits.value;
|
||||
if (!searchWord || searchWord == "")
|
||||
return;
|
||||
|
||||
var scope = "";
|
||||
var buttons = document.getElementsByTagName("INPUT");
|
||||
for (var i=0; i<buttons.length; i++)
|
||||
{
|
||||
if (buttons[i].type != "checkbox") continue;
|
||||
if (buttons[i].checked == false) continue;
|
||||
scope += "&scope="+encodeURIComponent(buttons[i].name);
|
||||
}
|
||||
|
||||
// persist selection
|
||||
window.opener.saveSelectedBooks(getSelectedBooks());
|
||||
|
||||
window.opener.document.forms["searchForm"].searchWord.value = searchWord;
|
||||
var query = "searchWord="+encodeURIComponent(searchWord)+"&scopedSearch=true&maxHits="+maxHits + scope;
|
||||
window.opener.doSearch(query);
|
||||
window.opener.focus();
|
||||
window.close();
|
||||
} catch(ex) {}
|
||||
}
|
||||
|
||||
function restoreSelectedBooks()
|
||||
{
|
||||
var selectedBooks = window.opener.selectedBooks;
|
||||
var inputs = document.body.getElementsByTagName("INPUT");
|
||||
for (var i=0; i<inputs.length; i++) {
|
||||
if (inputs[i].type == "checkbox" && isSelected(inputs[i].name, selectedBooks))
|
||||
inputs[i].checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getSelectedBooks()
|
||||
{
|
||||
var selectedBooks = new Array();
|
||||
var inputs = document.body.getElementsByTagName("INPUT");
|
||||
for (var i=0; i<inputs.length; i++) {
|
||||
if (inputs[i].type == "checkbox" && inputs[i].checked)
|
||||
selectedBooks[selectedBooks.length] = inputs[i].name;
|
||||
}
|
||||
return selectedBooks;
|
||||
}
|
||||
|
||||
function isSelected(book, selectedBooks)
|
||||
{
|
||||
// the first time select all
|
||||
if (!selectedBooks)
|
||||
return true;
|
||||
|
||||
for (var i=0; i<selectedBooks.length; i++)
|
||||
if (book == selectedBooks[i])
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function onloadHandler()
|
||||
{
|
||||
// select the books from previous run, or all otherwise
|
||||
restoreSelectedBooks();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" onload="onloadHandler()">
|
||||
|
||||
<form name="searchForm" onsubmit="doAdvancedSearch()">
|
||||
<div style="overflow:auto;height:250px;">
|
||||
<table id="searchTable" width="100%" cellspacing=0 cellpading=0 border=0 align=center >
|
||||
<tr><td style="padding:0px 10px;"><label for="searchWord"><%=ServletResources.getString("SearchExpression", request)%></label>
|
||||
</td></tr>
|
||||
<tr><td style="padding:0px 10px;"><input type="text" id="searchWord" name="searchWord" value="<%=UrlUtil.htmlEncode(data.getSearchWord())%>" maxlength=256 alt='<%=ServletResources.getString("SearchExpression", request)%>' title='<%=ServletResources.getString("SearchExpression", request)%>'>
|
||||
<input type="hidden" name="maxHits" value="500" >
|
||||
</td></tr>
|
||||
<tr><td style="padding:0px 10px;"><%=ServletResources.getString("expression_label", request)%>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<table id="filterTable" width="100%" cellspacing=0 cellpading=0 border=0 align=center style="background:transparent;">
|
||||
<tr><td><div id="selectBook" style="margin-<%=isRTL?"right":"left"%>:10px;"><%=ServletResources.getString("Select", request)%></div>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<div id="booksContainer">
|
||||
<%
|
||||
TocData tocData = new TocData(application, request, response);
|
||||
for (int i=0; i<tocData.getTocCount(); i++)
|
||||
{
|
||||
String label = tocData.getTocLabel(i);
|
||||
%>
|
||||
<div class="book"><input class="checkbox" type="checkbox" name='<%=tocData.getTocHref(i)%>' id="checkbox<%=i%>" alt="<%=label%>"><label for="checkbox<%=i%>"><%=label%></label></div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="height:50px;">
|
||||
<table valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<tr id="buttonsTable" valign="bottom"><td valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<table cellspacing=10 cellpading=0 border=0 align=<%=isRTL?"left":"right"%> style="background:transparent;">
|
||||
<tr>
|
||||
<td>
|
||||
<input id="searchButton" class='button' type="button" onclick="doAdvancedSearch()" value='<%=ServletResources.getString("Search", request)%>' id="go" alt='<%=ServletResources.getString("Search", request)%>' title='<%=ServletResources.getString("Search", request)%>'>
|
||||
</td>
|
||||
<td>
|
||||
<input class='button' type="button" onclick="window.close()" type="button" value='<%=ServletResources.getString("Cancel", request)%>' id="cancel" alt='<%=ServletResources.getString("Cancel", request)%>' title='<%=ServletResources.getString("Cancel", request)%>'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<jsp:include page="confirm.jsp">
|
||||
<jsp:param name="title" value="confirmShowAllTitle"/>
|
||||
<jsp:param name="header" value="askShowAllQuestion"/>
|
||||
<jsp:param name="message" value="askShowAllExplanation"/>
|
||||
<jsp:param name="confirmCallback" value="<%=\"yesShowAll()\"%>"/>
|
||||
<jsp:param name="initialFocus" value="cancel"/>
|
||||
<jsp:param name="buttons" value="yesno"/>
|
||||
</jsp:include>
|
||||
@@ -0,0 +1,57 @@
|
||||
<!------------------------------------------------------------------------------
|
||||
! 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 Common Public License v1.0
|
||||
! which accompanies this distribution, and is available at
|
||||
! http://www.eclipse.org/legal/cpl-v10.html
|
||||
!
|
||||
! Contributors:
|
||||
! IBM Corporation - initial API and implementation
|
||||
------------------------------------------------------------------------------->
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<title>Banner</title>
|
||||
|
||||
<style type="text/css">
|
||||
/* need this one for Mozilla */
|
||||
HTML {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
background-color:#7168D1;
|
||||
text:white;
|
||||
height:60px;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
margin:0;
|
||||
border:0;
|
||||
padding:0;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body marginwidth="0" marginheight="0">
|
||||
|
||||
<table align="left" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td align=left valign="center"><img src="images/help_banner.jpg" alt="Eclipse icon" title="Eclipse icon">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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="bookmarks"/>
|
||||
|
||||
<jsp:param name="name" value="deleteBookmark"/>
|
||||
<jsp:param name="tooltip" value='deleteBookmark'/>
|
||||
<jsp:param name="image" value="bookmark_rem.gif"/>
|
||||
<jsp:param name="action" value="removeBookmark"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<jsp:param name="name" value="deleteAllBookmarks"/>
|
||||
<jsp:param name="tooltip" value='deleteAllBookmarks'/>
|
||||
<jsp:param name="image" value="bookmark_remall.gif"/>
|
||||
<jsp:param name="action" value="removeAllBookmarks"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<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>
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
BookmarksData data = new BookmarksData(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("Bookmarks", request)%></title>
|
||||
|
||||
<style type="text/css">
|
||||
<%@ include file="list.css"%>
|
||||
</style>
|
||||
|
||||
<base target="ContentViewFrame">
|
||||
|
||||
<script language="JavaScript" src="list.js"></script>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
/**
|
||||
* Removes bookmark
|
||||
*/
|
||||
function removeBookmark()
|
||||
{
|
||||
if (!active)
|
||||
return false;
|
||||
|
||||
var bookmark = active;
|
||||
active = null;
|
||||
|
||||
// Note: bookmark is an anchor "a"
|
||||
var url = bookmark.href;
|
||||
var i = url.indexOf("/topic/");
|
||||
if (i >=0 )
|
||||
url = url.substring(i+6);
|
||||
// remove any query string
|
||||
i = url.indexOf("?");
|
||||
if (i >= 0)
|
||||
url = url.substring(0, i);
|
||||
|
||||
var title = bookmark.title;
|
||||
if (title == null || title == "")
|
||||
title = url;
|
||||
|
||||
window.location.replace("bookmarksView.jsp?operation=remove&bookmark="+encodeURIComponent(url)+"&title="+encodeURIComponent(title));
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all bookmarks
|
||||
*/
|
||||
function removeAllBookmarks()
|
||||
{
|
||||
hidePopupMenu();
|
||||
//if(!confirm("<%=ServletResources.getString("confirmDeleteAllBookmarks",request)%>"))
|
||||
// return true;
|
||||
window.location.replace("bookmarksView.jsp?operation=removeAll");
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the Del key was pressed, remove the bookmark
|
||||
*/
|
||||
function bookmarkKeyDownHandler(e) {
|
||||
var key;
|
||||
|
||||
if (isIE) {
|
||||
key = window.event.keyCode;
|
||||
} else if (isMozilla) {
|
||||
key = e.keyCode;
|
||||
}
|
||||
|
||||
// Check if this is the Delete key (code 46)
|
||||
if (key != 46)
|
||||
return true;
|
||||
|
||||
if (isMozilla)
|
||||
e.cancelBubble = true;
|
||||
else if (isIE)
|
||||
window.event.cancelBubble = true;
|
||||
|
||||
return removeBookmark();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body dir="<%=direction%>">
|
||||
|
||||
<%
|
||||
if(data.getBookmarks().length == 0) {
|
||||
out.write(ServletResources.getString("addBookmark", request));
|
||||
} else {
|
||||
%>
|
||||
<table id='list' cellspacing='0' >
|
||||
|
||||
<%
|
||||
Topic[] bookmarks = data.getBookmarks();
|
||||
for (int i=0; i<bookmarks.length; i++)
|
||||
{
|
||||
%>
|
||||
|
||||
<tr class='list' id='r<%=i%>'>
|
||||
<td align='<%=isRTL?"right":"left"%>' class='label' nowrap>
|
||||
<a id='a<%=i%>'
|
||||
href='<%=bookmarks[i].getHref()%>'
|
||||
onmouseover="showStatus(event);return true;"
|
||||
onmouseout="clearStatus();return true;"
|
||||
onclick='parent.parent.parent.setContentToolbarTitle(" ")'
|
||||
oncontextmenu="contextMenuHandler(event);return false;"
|
||||
onkeydown="bookmarkKeyDownHandler(event);"
|
||||
title="<%=UrlUtil.htmlEncode(bookmarks[i].getLabel())%>">
|
||||
<img src="<%=prefs.getImagesDirectory()%>/topic.gif" alt=""><%=UrlUtil.htmlEncode(bookmarks[i].getLabel())%></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</table>
|
||||
<div id="menu">
|
||||
<div class="unselectedMenuItem" onmouseover="this.className='selectedMenuItem'" onmouseout="this.className='unselectedMenuItem'" onclick="removeBookmark()" ><nobr><%=ServletResources.getString("RemoveBookmark",request)%></nobr></div>
|
||||
<div class="unselectedMenuItem" onmouseover="this.className='selectedMenuItem'" onmouseout="this.className='unselectedMenuItem'" onclick="removeAllBookmarks()" ><nobr><%=ServletResources.getString("RemoveAllBookmarks",request)%></nobr></div>
|
||||
</div>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,150 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
RequestData data = new RequestData(application, request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
String okText="";
|
||||
String cancelText="";
|
||||
if("yesno".equalsIgnoreCase(request.getParameter("buttons"))){
|
||||
okText=ServletResources.getString("yes", request);
|
||||
cancelText=ServletResources.getString("no", request);
|
||||
}else{
|
||||
okText=ServletResources.getString("OK", request);
|
||||
cancelText=ServletResources.getString("Cancel", request);
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=ServletResources.getString(request.getParameter("title"), request)%></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
<%@ include file="list.css"%>
|
||||
</style>
|
||||
|
||||
<style type="text/css">
|
||||
HTML, BODY {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
background-color: <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
width:auto;
|
||||
}
|
||||
|
||||
TD, TR{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BUTTON {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function onloadHandler() {
|
||||
<%
|
||||
if(!data.isMozilla() || "1.3".compareTo(data.getMozillaVersion()) <=0){
|
||||
// buttons are not resized immediately on mozilla before 1.3
|
||||
%>
|
||||
sizeButtons();
|
||||
<%}%>
|
||||
document.getElementById("<%=request.getParameter("initialFocus")%>").focus();
|
||||
}
|
||||
|
||||
function sizeButtons() {
|
||||
var minWidth=60;
|
||||
|
||||
if(document.getElementById("ok").offsetWidth < minWidth){
|
||||
document.getElementById("ok").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("cancel").offsetWidth < minWidth){
|
||||
document.getElementById("cancel").style.width = minWidth+"px";
|
||||
}
|
||||
}
|
||||
|
||||
function confirmed(){
|
||||
try{
|
||||
<% if ("true".equalsIgnoreCase(request.getParameter("dontaskagain")) ){ %>
|
||||
if(document.getElementById("dontask").checked){
|
||||
window.opener.<%=request.getParameter("dontaskagainCallback")%>;
|
||||
}
|
||||
<% } %>
|
||||
window.opener.<%=request.getParameter("confirmCallback")%>;
|
||||
} catch(e) {}
|
||||
window.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" onload="onloadHandler()">
|
||||
<form onsubmit="confirmed();return false;">
|
||||
<div style="overflow:auto;height:220px;width:100%;">
|
||||
<div style="padding:10px;">
|
||||
<span style="font-weight:bold;"><%=ServletResources.getString(request.getParameter("header"), request)%></span>
|
||||
<br><br>
|
||||
<%=ServletResources.getString(request.getParameter("message"), request)%>
|
||||
</div>
|
||||
</div>
|
||||
<% if ("true".equalsIgnoreCase(request.getParameter("dontaskagain")) ){ %>
|
||||
<div style="height:30px;">
|
||||
<div style="padding-left:10px;padding-right:10px;">
|
||||
<input class='check'
|
||||
type="checkbox"
|
||||
id='dontask'
|
||||
name='dontask'>
|
||||
<label for="dontask"
|
||||
accesskey="<%=ServletResources.getAccessKey("dontask", request)%>">
|
||||
<%=ServletResources.getLabel("dontask", request)%>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
<div style="height:50px;">
|
||||
<table valign="bottom" align="<%=isRTL?"left":"right"%>" style="background:<%=prefs.getToolbarBackground()%>">
|
||||
<tr id="buttonsTable" valign="bottom"><td valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;">
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" id="ok"><%=okText%></button>
|
||||
</td>
|
||||
<td>
|
||||
<button type="reset" onclick="window.close()" id="cancel"><%=cancelText%></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<jsp:include page="confirm.jsp">
|
||||
<jsp:param name="title" value="confirmShowAllTitle"/>
|
||||
<jsp:param name="header" value="confirmShowAllQuestion"/>
|
||||
<jsp:param name="message" value="confirmShowAllExplanation"/>
|
||||
<jsp:param name="dontaskagain" value="true"/>
|
||||
<jsp:param name="dontaskagainCallback" value="<%=\"dontAskAgain()\"%>"/>
|
||||
<jsp:param name="confirmCallback" value="<%=\"showAll()\"%>"/>
|
||||
<jsp:param name="initialFocus" value="ok"/>
|
||||
</jsp:include>
|
||||
@@ -0,0 +1,70 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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 {
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
border-<%=isRTL?"left":"right"%>:1px solid ThreeDShadow;
|
||||
}
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
FRAMESET {
|
||||
border-top:1px solid ThreeDShadow;
|
||||
border-left:1px solid ThreeDShadow;
|
||||
border-right:1px solid ThreeDShadow;
|
||||
border-bottom:1px solid ThreeDShadow;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function onloadHandler(e)
|
||||
{
|
||||
<% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
|
||||
%> var h=window.ContentToolbarFrame.document.getElementById("titleText").offsetHeight; <%-- default 13 --%>
|
||||
if(h<=19){
|
||||
return; <%-- no need to resize up to 19px --%>
|
||||
}
|
||||
document.getElementById("contentFrameset").setAttribute("rows", (11+h)+",*"); <%-- default 24 --%>
|
||||
window.ContentToolbarFrame.document.getElementById("titleTextTableDiv").style.height=(9+h)+"px"; <%-- default 22 --%>
|
||||
<%}%>
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<frameset id="contentFrameset" onload="onloadHandler()" rows="24,*" frameborder="0" framespacing="0" border=0 spacing=0>
|
||||
<frame name="ContentToolbarFrame" title="<%=ServletResources.getString("topicViewToolbar", request)%>" src='<%="contentToolbar.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
|
||||
<frame ACCESSKEY="K" name="ContentViewFrame" title="<%=ServletResources.getString("topicView", request)%>" src='<%=data.getContentURL()%>' marginwidth="10" marginheight="0" frameborder="0" >
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/*******************************************************************************
|
||||
* 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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM 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;
|
||||
|
||||
var navVisible = true;
|
||||
|
||||
function goBack(button) {
|
||||
parent.history.back();
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
function goForward(button) {
|
||||
parent.history.forward();
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function bookmarkPage(button)
|
||||
{
|
||||
// Currently we pick up the url from the content page.
|
||||
// If the page is from outside the help domain, a script
|
||||
// exception is thrown. We need to catch it and ignore it.
|
||||
try
|
||||
{
|
||||
// use the url from plugin id only
|
||||
var url = parent.ContentViewFrame.location.href;
|
||||
var i = url.indexOf("/topic/");
|
||||
if (i >=0 )
|
||||
url = url.substring(i+6);
|
||||
// remove any query string
|
||||
i = url.indexOf("?");
|
||||
if (i >= 0)
|
||||
url = url.substring(0, i);
|
||||
|
||||
var title = parent.ContentViewFrame.document.title;
|
||||
if (title == null || title == "")
|
||||
title = url;
|
||||
|
||||
/********** HARD CODED VIEW NAME *************/
|
||||
parent.parent.NavFrame.ViewsFrame.bookmarks.bookmarksViewFrame.location.replace("bookmarksView.jsp?operation=add&bookmark="+encodeURIComponent(url)+"&title="+encodeURIComponent(title));
|
||||
}catch (e) {}
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
function bookmarkInfocenterPage(button)
|
||||
{
|
||||
// Currently we pick up the url from the content page.
|
||||
// If the page is from outside the help domain, a script
|
||||
// exception is thrown. We need to catch it and ignore it.
|
||||
try
|
||||
{
|
||||
// use the url from plugin id only
|
||||
var url = parent.ContentViewFrame.location.href;
|
||||
var i = url.indexOf("/topic/");
|
||||
if (i >=0 )
|
||||
url = url.substring(i+6);
|
||||
// remove any query string
|
||||
i = url.indexOf("?");
|
||||
if (i >= 0)
|
||||
url = url.substring(0, i);
|
||||
|
||||
var title = parent.ContentViewFrame.document.title;
|
||||
if (title == null || title == "")
|
||||
title = url;
|
||||
|
||||
/********** HARD CODED VIEW NAME *************/
|
||||
window.external.AddFavorite(parent.ContentViewFrame.location.href,title);
|
||||
}catch (e) {}
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
function resynch(button)
|
||||
{
|
||||
try {
|
||||
var topic = parent.ContentViewFrame.window.location.href;
|
||||
// remove the query, if any
|
||||
var i = topic.indexOf('?');
|
||||
if (i != -1)
|
||||
topic = topic.substring(0, i);
|
||||
parent.parent.NavFrame.displayTocFor(topic);
|
||||
} catch(e) {}
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
function printContent(button)
|
||||
{
|
||||
try {
|
||||
parent.ContentViewFrame.focus();
|
||||
parent.ContentViewFrame.print();
|
||||
} catch(e) {}
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
|
||||
function setTitle(label)
|
||||
{
|
||||
if( label == null) label = "";
|
||||
var title = document.getElementById("titleText");
|
||||
var text = title.lastChild;
|
||||
text.nodeValue = " "+label;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
RequestData data = new RequestData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
String forwardImage, backImage;
|
||||
if(isRTL) {
|
||||
forwardImage = "back.gif";
|
||||
backImage = "forward.gif";
|
||||
} else {
|
||||
forwardImage = "forward.gif";
|
||||
backImage = "back.gif";
|
||||
}
|
||||
boolean isBookmarkAction = prefs.isBookmarksView()
|
||||
|| prefs.isBookmarksAction() && data.isIE(); // for infocenter, add to favorites supported on IE
|
||||
String bookmarkButtonState = isBookmarkAction?"off":"hidden";
|
||||
String bookmarkAction = RequestData.MODE_INFOCENTER==data.getMode()?"bookmarkInfocenterPage":"bookmarkPage";
|
||||
%>
|
||||
<jsp:include page="toolbar.jsp">
|
||||
<jsp:param name="script" value="contentActions.js"/>
|
||||
<jsp:param name="toolbar" value="content"/>
|
||||
|
||||
<jsp:param name="name" value="back"/>
|
||||
<jsp:param name="tooltip" value='back_tip'/>
|
||||
<jsp:param name="image" value='<%=backImage%>'/>
|
||||
<jsp:param name="action" value="goBack"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<jsp:param name="name" value="forward"/>
|
||||
<jsp:param name="tooltip" value='forward_tip'/>
|
||||
<jsp:param name="image" value='<%=forwardImage%>'/>
|
||||
<jsp:param name="action" value="goForward"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<jsp:param name="name" value=""/>
|
||||
<jsp:param name="tooltip" value=""/>
|
||||
<jsp:param name="image" value=""/>
|
||||
<jsp:param name="action" value=""/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<jsp:param name="name" value="synch"/>
|
||||
<jsp:param name="tooltip" value='Synch'/>
|
||||
<jsp:param name="image" value="synch_toc_nav.gif"/>
|
||||
<jsp:param name="action" value="resynch"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
<jsp:param name="name" value="add_bkmrk"/>
|
||||
<jsp:param name="tooltip" value='BookmarkPage'/>
|
||||
<jsp:param name="image" value="add_bkmrk.gif"/>
|
||||
<jsp:param name="action" value="<%=bookmarkAction%>"/>
|
||||
<jsp:param name="state" value='<%=bookmarkButtonState%>'/>
|
||||
|
||||
<jsp:param name="name" value="print"/>
|
||||
<jsp:param name="tooltip" value='Print'/>
|
||||
<jsp:param name="image" value="print_edit.gif"/>
|
||||
<jsp:param name="action" value="printContent"/>
|
||||
<jsp:param name="state" value='off'/>
|
||||
|
||||
</jsp:include>
|
||||
@@ -0,0 +1,40 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title> Error </title>
|
||||
</head>
|
||||
<%
|
||||
String direction = "ltr";
|
||||
try{
|
||||
if(UrlUtil.isRTL(request, response)){
|
||||
direction = "rtl";
|
||||
}
|
||||
}catch(Exception e){
|
||||
}
|
||||
%>
|
||||
|
||||
<body dir="<%=direction%>">
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
|
||||
There was an error in your action:
|
||||
<p>
|
||||
<%= exception.toString() %>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%><%@
|
||||
page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"
|
||||
%><%
|
||||
request.setCharacterEncoding("UTF-8");
|
||||
boolean isRTL = UrlUtil.isRTL(request, response);
|
||||
String direction = isRTL?"rtl":"ltr";
|
||||
if (new RequestData(application,request, response).isMozilla()) {
|
||||
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<%
|
||||
} else {
|
||||
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
|
||||
<%
|
||||
}
|
||||
%><!------------------------------------------------------------------------------
|
||||
! 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 Common Public License v1.0
|
||||
! which accompanies this distribution, and is available at
|
||||
! http://www.eclipse.org/legal/cpl-v10.html
|
||||
!
|
||||
! Contributors:
|
||||
! IBM Corporation - initial API and implementation
|
||||
------------------------------------------------------------------------------->
|
||||
@@ -0,0 +1,32 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%><%@
|
||||
page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"
|
||||
%><%
|
||||
request.setCharacterEncoding("UTF-8");
|
||||
boolean isRTL = UrlUtil.isRTL(request, response);
|
||||
String direction = isRTL?"rtl":"ltr";
|
||||
if (new RequestData(application,request, response).isMozilla()) {
|
||||
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<%
|
||||
} else {
|
||||
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<%
|
||||
}
|
||||
%><!------------------------------------------------------------------------------
|
||||
! 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 Common Public License v1.0
|
||||
! which accompanies this distribution, and is available at
|
||||
! http://www.eclipse.org/legal/cpl-v10.html
|
||||
!
|
||||
! Contributors:
|
||||
! IBM Corporation - initial API and implementation
|
||||
------------------------------------------------------------------------------->
|
||||
@@ -0,0 +1,150 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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">
|
||||
|
||||
HTML {
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
<%
|
||||
if (data.isMozilla()){
|
||||
%>
|
||||
padding:<%=isRTL?"0px 4px 2px 4px":"0px 4px 2px 4px"%>;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
<%-- map of maximize listener functions indexed by name --%>
|
||||
var maximizeListeners=new Object();
|
||||
function registerMaximizeListener(name, listener){
|
||||
maximizeListeners[name]=listener;
|
||||
}
|
||||
function notifyMaximizeListeners(maximizedNotRestored){
|
||||
for(i in maximizeListeners){
|
||||
try{
|
||||
maximizeListeners[i](maximizedNotRestored);
|
||||
}catch(exc){}
|
||||
}
|
||||
}
|
||||
<%-- vars to keep track of frame sizes before max/restore --%>
|
||||
var leftCols = "<%=isRTL?"70.5%":"29.5%"%>";
|
||||
var rightCols = "<%=isRTL?"29.5%":"70.5%"%>";
|
||||
<%--
|
||||
param title "" for content frame
|
||||
--%>
|
||||
function toggleFrame(title)
|
||||
{
|
||||
var frameset = document.getElementById("helpFrameset");
|
||||
var navFrameSize = frameset.getAttribute("cols");
|
||||
var comma = navFrameSize.indexOf(',');
|
||||
var left = navFrameSize.substring(0,comma);
|
||||
var right = navFrameSize.substring(comma+1);
|
||||
|
||||
if (left == "*" || right == "*") {
|
||||
// restore frames
|
||||
frameset.frameSpacing="3";
|
||||
frameset.setAttribute("border", "6");
|
||||
frameset.setAttribute("cols", leftCols+","+rightCols);
|
||||
notifyMaximizeListeners(false);
|
||||
} else {
|
||||
// the "cols" attribute is not always accurate, especially after resizing.
|
||||
// offsetWidth is also not accurate, so we do a combination of both and
|
||||
// should get a reasonable behavior
|
||||
<%
|
||||
if(isRTL) {
|
||||
%>
|
||||
var leftSize = ContentFrame.document.body.offsetWidth;
|
||||
var rightSize = NavFrame.document.body.offsetWidth;
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
var leftSize = NavFrame.document.body.offsetWidth;
|
||||
var rightSize = ContentFrame.document.body.offsetWidth;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
leftCols = leftSize * 100 / (leftSize + rightSize);
|
||||
rightCols = 100 - leftCols;
|
||||
|
||||
// maximize the frame.
|
||||
//leftCols = left;
|
||||
//rightCols = right;
|
||||
// Assumption: the content toolbar does not have a default title.
|
||||
<%
|
||||
if(isRTL) {
|
||||
%>
|
||||
if (title != "") // this is the right side for right-to-left rendering
|
||||
frameset.setAttribute("cols", "*,100%");
|
||||
else // this is the content toolbar
|
||||
frameset.setAttribute("cols", "100%,*");
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
if (title != "") // this is the left side for left-to-right rendering
|
||||
frameset.setAttribute("cols", "100%,*");
|
||||
else // this is the content toolbar
|
||||
frameset.setAttribute("cols", "*,100%");
|
||||
<%
|
||||
}
|
||||
%>
|
||||
frameset.frameSpacing="0";
|
||||
frameset.setAttribute("border", "1");
|
||||
notifyMaximizeListeners(true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<frameset
|
||||
<%
|
||||
if (data.isIE()) {
|
||||
%>
|
||||
style="border-top: 0px solid <%=prefs.getToolbarBackground()%>;"
|
||||
style="border-right: 4px solid <%=prefs.getToolbarBackground()%>;"
|
||||
style="border-bottom: 4px solid <%=prefs.getToolbarBackground()%>;"
|
||||
style="border-left: 4px solid <%=prefs.getToolbarBackground()%>;"
|
||||
<%
|
||||
}
|
||||
%>
|
||||
id="helpFrameset" cols="<%=isRTL?"70.5%,29.5%":"29.5%,70.5%"%>" framespacing="3" border="6" frameborder="1" scrolling="no">
|
||||
<%
|
||||
if (isRTL) {
|
||||
%>
|
||||
<frame name="ContentFrame" title="<%=ServletResources.getString("ignore", "ContentFrame", request)%>" class="content" src='<%="content.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" resize=yes>
|
||||
<frame class="nav" name="NavFrame" title="<%=ServletResources.getString("ignore", "NavFrame", request)%>" src='<%="nav.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="1" resize=yes>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<frame class="nav" name="NavFrame" title="<%=ServletResources.getString("ignore", "NavFrame", request)%>" src='<%="nav.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="1" resize=yes>
|
||||
<frame name="ContentFrame" title="<%=ServletResources.getString("ignore", "ContentFrame", request)%>" class="content" src='<%="content.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" resize=yes>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
var isSafari = navigator.userAgent.indexOf('Safari/') != -1;
|
||||
var highlighted=false;
|
||||
var startTime;
|
||||
var MAX_DURATION=3000;
|
||||
onload=highlight;
|
||||
document.onreadystatechange=highlight;
|
||||
function highlight(){
|
||||
if(highlighted){
|
||||
return;
|
||||
}
|
||||
highlighted=true;
|
||||
if (!document.body) return;
|
||||
if(document.body.innerHTML.length < 50000){
|
||||
for(i=0; i<keywords.length; i++){
|
||||
word=keywords[i].toLowerCase();
|
||||
highlightWordInNode(word, document.body);
|
||||
}
|
||||
}else{
|
||||
startTime=new Date().getTime();
|
||||
for(i=0; i<keywords.length; i++){
|
||||
word=keywords[i].toLowerCase();
|
||||
highlightWordInNodeTimed(word, document.body);
|
||||
if(new Date().getTime()>startTime+MAX_DURATION) return;
|
||||
}
|
||||
}
|
||||
}
|
||||
function highlightWordInNode(aWord, aNode){
|
||||
if (aNode.nodeType == 1){
|
||||
var children = aNode.childNodes;
|
||||
for(var i=0; i < children.length; i++) {
|
||||
highlightWordInNode(aWord, children[i]);
|
||||
}
|
||||
}
|
||||
else if(aNode.nodeType==3){
|
||||
highlightWordInText(aWord, aNode);
|
||||
}
|
||||
|
||||
}
|
||||
function highlightWordInNodeTimed(aWord, aNode){
|
||||
if (aNode.nodeType == 1){
|
||||
var children = aNode.childNodes;
|
||||
for(var i=0; i < children.length; i++) {
|
||||
highlightWordInNodeTimed(aWord, children[i]);
|
||||
if(new Date().getTime()>startTime+MAX_DURATION) return;
|
||||
}
|
||||
}
|
||||
else if(aNode.nodeType==3){
|
||||
highlightWordInText(aWord, aNode);
|
||||
}
|
||||
|
||||
}
|
||||
function highlightWordInText(aWord, textNode){
|
||||
allText=new String(textNode.data);
|
||||
allTextLowerCase=allText.toLowerCase();
|
||||
index=allTextLowerCase.indexOf(aWord);
|
||||
if(index>=0){
|
||||
// create a node to replace the textNode so we end up
|
||||
// not changing number of children of textNode.parent
|
||||
replacementNode=document.createElement("span");
|
||||
textNode.parentNode.insertBefore(replacementNode, textNode);
|
||||
while(index>=0){
|
||||
before=allText.substring(0,index);
|
||||
newBefore=document.createTextNode(before);
|
||||
replacementNode.appendChild(newBefore);
|
||||
spanNode=document.createElement("span");
|
||||
if(isSafari){
|
||||
spanNode.style.color="#000000";
|
||||
spanNode.style.background="#B5D5FF";
|
||||
}else{
|
||||
spanNode.style.background="Highlight";
|
||||
spanNode.style.color="HighlightText";
|
||||
}
|
||||
replacementNode.appendChild(spanNode);
|
||||
boldText=document.createTextNode(allText.substring(index,index+aWord.length));
|
||||
spanNode.appendChild(boldText);
|
||||
allText=allText.substring(index+aWord.length);
|
||||
allTextLowerCase=allText.toLowerCase();
|
||||
index=allTextLowerCase.indexOf(aWord);
|
||||
}
|
||||
newAfter=document.createTextNode(allText);
|
||||
replacementNode.appendChild(newAfter);
|
||||
textNode.parentNode.removeChild(textNode);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 214 B |
|
After Width: | Height: | Size: 143 B |
|
After Width: | Height: | Size: 219 B |
|
After Width: | Height: | Size: 339 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 345 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 595 B |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 327 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 82 B |
|
After Width: | Height: | Size: 612 B |
|
After Width: | Height: | Size: 76 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 211 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 141 B |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 82 B |
|
After Width: | Height: | Size: 114 B |
|
After Width: | Height: | Size: 118 B |
|
After Width: | Height: | Size: 355 B |
|
After Width: | Height: | Size: 76 B |
|
After Width: | Height: | Size: 349 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 581 B |
|
After Width: | Height: | Size: 315 B |
@@ -0,0 +1,77 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="fheader.jsp"%>
|
||||
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
// Initiate test for persisted cookies
|
||||
if(data.getMode() == LayoutData.MODE_INFOCENTER){
|
||||
Cookie cookieTest=new Cookie("cookiesEnabled", "yes");
|
||||
cookieTest.setMaxAge(365*24*60*60);
|
||||
response.addCookie(cookieTest);
|
||||
}
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<noscript>
|
||||
<meta HTTP-EQUIV="REFRESH" CONTENT="0;URL=index.jsp?noscript=1">
|
||||
</noscript>
|
||||
<title><%=data.getWindowTitle()%></title>
|
||||
<jsp:include page="livehelp_js.jsp"/>
|
||||
|
||||
<style type="text/css">
|
||||
FRAMESET {
|
||||
border: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function onloadHandler(e)
|
||||
{
|
||||
<% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
|
||||
%> var h=window.SearchFrame.document.getElementById("searchLabel").offsetHeight; <%-- default 13 --%>
|
||||
if(h<=19){
|
||||
return; <%-- no need to resize up to 19px --%>
|
||||
}
|
||||
document.getElementById("indexFrameset").setAttribute("rows", <%="0".equals(data.getBannerHeight())?"":"\""+data.getBannerHeight()+",\"+"%>(11+h)+",*"); <%-- default 24 --%>
|
||||
<%}%>
|
||||
<%
|
||||
if (data.isMozilla()){
|
||||
// restore mozilla from minimized
|
||||
%>
|
||||
window.focus();
|
||||
<%
|
||||
}
|
||||
%>
|
||||
window.frames["SearchFrame"].document.getElementById("searchWord").focus();
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<frameset id="indexFrameset" onload="onloadHandler()" rows="<%="0".equals(data.getBannerHeight())?"":data.getBannerHeight()+","%>24,*" frameborder="0" framespacing="0" border=0 spacing=0>
|
||||
<%
|
||||
if(!("0".equals(data.getBannerHeight()))){
|
||||
%>
|
||||
<frame name="BannerFrame" title="<%=ServletResources.getString("Banner", request)%>" src='<%=data.getBannerURL()%>' tabIndex="3" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<frame name="SearchFrame" title="<%=ServletResources.getString("helpToolbarFrame", request)%>" src='<%="advanced/search.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
|
||||
<frame name="HelpFrame" title="<%=ServletResources.getString("ignore", "HelpFrame", request)%>" src='<%="advanced/help.jsp"+data.getQuery()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" >
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
@@ -0,0 +1,94 @@
|
||||
/*******************************************************************************
|
||||
* 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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM 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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-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;
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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){
|
||||
return;
|
||||
}
|
||||
|
||||
if(toolbarFrame.liveHelpFrame){
|
||||
toolbarFrame.liveHelpFrame.location=url;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
function showTopicInContentsInternal(topHelpWindow, topic) {
|
||||
try{
|
||||
topHelpWindow.HelpFrame.NavFrame.displayTocFor(topic);
|
||||
}catch(e){
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
@@ -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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-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();
|
||||
}
|
||||
}
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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);
|
||||
}
|
||||
%>
|
||||
@@ -0,0 +1,243 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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;
|
||||
}
|
||||
|
||||
#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)%>">
|
||||
<%=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 >
|
||||
<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("selectWorkingSet", request)%>' alt='<%=ServletResources.getString("selectWorkingSet", request)%>' onmouseover="window.status='<%=ServletResources.getString("selectWorkingSet", request)%>'; return true;" onmouseout="window.status='';" accessKey="<%=ServletResources.getAccessKey("Scope", request)%>"><%=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>
|
||||
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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)%>">
|
||||
<%=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 >
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
@@ -0,0 +1,120 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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="list.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"%>'><%=data.getTopicScore(topic)%></td>
|
||||
<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)%>"><%=data.getTopicLabel(topic)%></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<script language="JavaScript">
|
||||
selectTopicById('<%=data.getSelectedTopicId()%>');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,296 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
View[] views = data.getViews();
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title><%=ServletResources.getString("Tabs", request)%></title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
BODY {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
height:100%;
|
||||
<%
|
||||
if (data.isMozilla()){
|
||||
%>
|
||||
height:21px;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
/* tabs at the bottom */
|
||||
.tab {
|
||||
font-size:5px;<%-- needed to verticaly center icon image --%>
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border-top:1px solid ThreeDShadow;
|
||||
border-bottom:1px solid <%=data.isMozilla()?prefs.getToolbarBackground():"ThreeDShadow"%>;
|
||||
cursor:default;
|
||||
}
|
||||
|
||||
.pressed {
|
||||
font-size:5px;<%-- needed to verticaly center icon image (on IE--%>
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
cursor:default;
|
||||
background-color:<%=prefs.getViewBackground()%>;
|
||||
border-top:1px solid <%=prefs.getViewBackground()%>;
|
||||
border-bottom:1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
.separator {
|
||||
height:100%;
|
||||
background-color:ThreeDShadow;
|
||||
border-bottom:1px solid <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
.separator_pressed {
|
||||
height:100%;
|
||||
background-color:ThreeDShadow;
|
||||
border-top:1px solid <%=prefs.getViewBackground()%>;
|
||||
border-bottom:1px solid <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
A {
|
||||
text-decoration:none;
|
||||
vertical-align:middle;
|
||||
height:16px;
|
||||
width:16px;
|
||||
<%
|
||||
if (data.isIE()){
|
||||
%>
|
||||
writing-mode:tb-rl; <%-- needed to verticaly center icon image on IE--%>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
display:block;<%-- needed to verticaly center icon image (remove extra pixels below) on Mozilla--%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
IMG {
|
||||
border:0px;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:16px;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
var isMozilla = navigator.userAgent.indexOf('Mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5;
|
||||
var isIE = navigator.userAgent.indexOf('MSIE') != -1;
|
||||
var linksArray = new Array ("linktoc", "linksearch", "linklinks", "linkbookmarks");
|
||||
|
||||
if (isMozilla) {
|
||||
document.addEventListener('keydown', keyDownHandler, true);
|
||||
}
|
||||
else if (isIE){
|
||||
document.onkeydown = keyDownHandler;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
<%
|
||||
for (int i=0; i<views.length; i++) {
|
||||
%>
|
||||
var <%=views[i].getName()%> = new Image();
|
||||
<%=views[i].getName()%>.src = "<%=views[i].getOnImage()%>";
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
var lastTab = "";
|
||||
/*
|
||||
* Switch tabs.
|
||||
*/
|
||||
function showTab(tab)
|
||||
{
|
||||
if (tab == lastTab)
|
||||
return;
|
||||
|
||||
lastTab = tab;
|
||||
|
||||
// show the appropriate pressed tab
|
||||
var buttons = document.body.getElementsByTagName("TD");
|
||||
for (var i=0; i<buttons.length; i++)
|
||||
{
|
||||
if (buttons[i].id == tab) {
|
||||
buttons[i].className = "pressed";
|
||||
if (i > 0)
|
||||
buttons[i-1].className = "separator_pressed";
|
||||
if (i<buttons.length-1)
|
||||
buttons[i+1].className = "separator_pressed";
|
||||
} else if (buttons[i].className == "pressed") {
|
||||
buttons[i].className = "tab";
|
||||
if (i > 0)
|
||||
if (i > 1 && buttons[i-2].id == tab)
|
||||
buttons[i-1].className = "separator_pressed";
|
||||
else
|
||||
buttons[i-1].className = "separator";
|
||||
if (i<buttons.length-1)
|
||||
if (i<buttons.length-2 && buttons[i+2].id == tab)
|
||||
buttons[i+1].className = "separator_pressed";
|
||||
else
|
||||
buttons[i+1].className = "separator";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 > 39)
|
||||
return true;
|
||||
|
||||
var clickedNode = getTarget(e);
|
||||
if (!clickedNode) return true;
|
||||
|
||||
var linkId="";
|
||||
if (clickedNode.tagName == 'A')
|
||||
linkId=clickedNode.id;
|
||||
else if(clickedNode.tagName == 'TD')
|
||||
linkId="link"+clickedNode.id;
|
||||
|
||||
if (isMozilla)
|
||||
e.cancelBubble = true;
|
||||
else if (isIE)
|
||||
window.event.cancelBubble = true;
|
||||
if (key == 38 ) { // up arrow
|
||||
if(linkId.length>4){
|
||||
parent.showView(linkId.substring(4, linkId.length));
|
||||
clickedNode.blur();
|
||||
parent.frames.ViewsFrame.focus();
|
||||
}
|
||||
} else if (key == 39) { // Right arrow, expand
|
||||
var nextLink=getNextLink(linkId);
|
||||
if(nextLink!=null){
|
||||
document.getElementById(nextLink).focus();
|
||||
}
|
||||
} else if (key == 37) { // Left arrow,collapse
|
||||
var previousLink=getPreviousLink(linkId);
|
||||
if(previousLink!=null){
|
||||
document.getElementById(previousLink).focus();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getNextLink(currentLink){
|
||||
for(i=0; i<linksArray.length; i++){
|
||||
if(currentLink==linksArray[i]){
|
||||
if((i+1)<linksArray.length)
|
||||
return linksArray[i+1];
|
||||
}
|
||||
}
|
||||
return linksArray[0];
|
||||
}
|
||||
|
||||
function getPreviousLink(currentLink){
|
||||
for(i=0; i<linksArray.length; i++){
|
||||
if(currentLink==linksArray[i]){
|
||||
if(i>0)
|
||||
return linksArray[i-1];
|
||||
}
|
||||
}
|
||||
return linksArray[linksArray.length-1];
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%" valign="middle">
|
||||
<tr>
|
||||
|
||||
<%
|
||||
for (int i=0; i<views.length; i++)
|
||||
{
|
||||
String title = ServletResources.getString(views[i].getName(), request);
|
||||
if (i != 0) {
|
||||
%>
|
||||
<td width="1px" class="separator"><div style="width:1px;height:1px;display:block;"></div></td>
|
||||
<%-- div inside separator cell fixes top separator pixel that was not white on IE, or first separator not displayed when frame width happens to be even number of pixels --%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td title="<%=title%>"
|
||||
align="center"
|
||||
valign="middle"
|
||||
class="tab"
|
||||
id="<%=views[i].getName()%>"
|
||||
onclick="parent.showView('<%=views[i].getName()%>')"
|
||||
onmouseover="window.status='<%=title%>';return true;"
|
||||
onmouseout="window.status='';">
|
||||
<a href='javascript:parent.showView("<%=views[i].getName()%>");'
|
||||
onclick='this.blur();return false;'
|
||||
onmouseover="window.status='<%=title%>';return true;"
|
||||
onmouseout="window.status='';"
|
||||
id="link<%=views[i].getName()%>"
|
||||
<%=views[i].getKey()==View.NO_SHORTCUT?"":"ACCESSKEY=\""+views[i].getKey()+"\""%>>
|
||||
<img alt="<%=title%>"
|
||||
title="<%=title%>"
|
||||
src="<%=views[i].getOnImage()%>"
|
||||
id="img<%=views[i].getName()%>"
|
||||
height="16"
|
||||
>
|
||||
</a>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,580 @@
|
||||
/*******************************************************************************
|
||||
* 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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-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 oldActive;
|
||||
var oldActiveClass = "";
|
||||
|
||||
|
||||
// Preload images
|
||||
// **********************************************************
|
||||
// Note: code moved into the jsp, for dynamic image preferences
|
||||
|
||||
/**
|
||||
* 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 && ul.className == "expanded")
|
||||
return getDescendantNode(ul, "A");
|
||||
|
||||
// Try next sibling
|
||||
var li_sib = getNextSibling(li);
|
||||
if (li_sib != null)
|
||||
return getDescendantNode(li_sib, "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 "down" 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 {
|
||||
// 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) // text node
|
||||
sib = sib.nextSibling;
|
||||
return sib;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the next sibling element
|
||||
*/
|
||||
function getPrevSibling(node)
|
||||
{
|
||||
var sib = node.previousSibling;
|
||||
while (sib && sib.nodeType == 3) // text 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.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.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 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;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapses a tree rooted at the specified element
|
||||
*/
|
||||
function collapse(node) {
|
||||
node.className = "collapsed";
|
||||
node.src = plus.src;
|
||||
node.alt = altTopicClosed;
|
||||
// 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 = altTopicOpen;
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Expands the nodes from root to the specified node
|
||||
*/
|
||||
function expandPathTo(node, inclusive)
|
||||
{
|
||||
// when the node is a link, get the plus/minus image
|
||||
if (node.tagName == "A")
|
||||
{
|
||||
var img = getChildNode(node.parentNode, "IMG")
|
||||
if (img == null) return;
|
||||
expandPathTo(img, inclusive);
|
||||
return;
|
||||
}
|
||||
|
||||
if (inclusive && isCollapsed(node))
|
||||
expand(node);
|
||||
|
||||
var li = node.parentNode;
|
||||
if (li == null) return;
|
||||
var ul = li.parentNode;
|
||||
if (ul == null) return;
|
||||
li = ul.parentNode;
|
||||
if (li == null) return;
|
||||
var img = getChildNode(li, "IMG");
|
||||
if (img == null) return;
|
||||
|
||||
expandPathTo(img, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
window.getSelection().removeAllRanges();
|
||||
|
||||
var a = getAnchorNode(topic);
|
||||
if (a != null)
|
||||
{
|
||||
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 selectTopic(topic)
|
||||
{
|
||||
if (!topic)
|
||||
return false;
|
||||
|
||||
// remove the query, if any
|
||||
var i = topic.indexOf('?');
|
||||
if (i != -1)
|
||||
topic = topic.substring(0, i);
|
||||
|
||||
var links = document.getElementsByTagName("a");
|
||||
|
||||
for (var i=0; i<links.length; i++)
|
||||
{
|
||||
if (topic == links[i].href)
|
||||
{
|
||||
expandPathTo(links[i], false);
|
||||
highlightTopic(links[i]);
|
||||
scrollIntoView(links[i]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
expandPathTo(topic, false);
|
||||
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
* 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 (isPlusMinus(clickedNode) )
|
||||
{
|
||||
if (isCollapsed(clickedNode))
|
||||
expand(clickedNode);
|
||||
else if (isExpanded(clickedNode))
|
||||
collapse(clickedNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
var plus_minus = getPlusMinus(clickedNode);
|
||||
if (plus_minus != null)
|
||||
highlightTopic(plus_minus);
|
||||
}
|
||||
|
||||
if (isMozilla)
|
||||
e.cancelBubble = true;
|
||||
else if (isIE)
|
||||
window.event.cancelBubble = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* handler for expanding / collapsing topic tree
|
||||
*/
|
||||
function mouseDblClickHandler(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 (isExpanded(plus_minus))
|
||||
collapse(plus_minus);
|
||||
|
||||
highlightTopic(plus_minus);
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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)
|
||||
next.focus();
|
||||
|
||||
} else if (key == 38 ) { // up arrow
|
||||
var clickedNode = getTarget(e);
|
||||
if (!clickedNode) return;
|
||||
|
||||
var next = getNextUp(clickedNode);
|
||||
if (next)
|
||||
next.focus();
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isMozilla) {
|
||||
document.addEventListener('click', mouseClickHandler, true);
|
||||
document.addEventListener('dblclick', mouseDblClickHandler, true);
|
||||
document.addEventListener('mousemove', mouseMoveHandler, true);
|
||||
document.addEventListener('keydown', keyDownHandler, true);
|
||||
}
|
||||
else if (isIE){
|
||||
document.onclick = mouseClickHandler;
|
||||
document.ondblclick = mouseDblClickHandler;
|
||||
document.onmousemove = mouseMoveHandler;
|
||||
document.onkeydown = keyDownHandler;
|
||||
window.onfocus = focusHandler;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
<%
|
||||
TocData data = new TocData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=ServletResources.getString("partialContent", request)%></title>
|
||||
<script language="JavaScript">
|
||||
plus = new Image();
|
||||
plus.src = "<%=prefs.getImagesDirectory()%>"+"/plus.gif";
|
||||
folder_img = new Image();
|
||||
folder_img.src = "<%=prefs.getImagesDirectory()%>"+"/container_obj.gif";
|
||||
topic_img = new Image();
|
||||
topic_img.src = "<%=prefs.getImagesDirectory()%>"+"/topic.gif";
|
||||
|
||||
function onloadHandler()
|
||||
{
|
||||
var fragment = null;
|
||||
for (var i=0; i < document.body.childNodes.length; i++)
|
||||
if (document.body.childNodes[i].nodeName == "UL"){
|
||||
fragment = document.body.childNodes[i];
|
||||
break;
|
||||
}
|
||||
if(fragment == null) return;
|
||||
var path = fragment.id;
|
||||
var oldFragment = window.parent.document.getElementById(path);
|
||||
oldFragment.innerHTML = fragment.innerHTML;
|
||||
oldFragment.id = "";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body dir="<%=direction%>" onload="onloadHandler()">
|
||||
<%
|
||||
int toc=data.getSelectedToc();
|
||||
// Only generate the selected toc
|
||||
if (toc != -1 && data.getTocHref(data.getSelectedToc()).equals(data.getTocHref(toc)))
|
||||
{
|
||||
data.generateToc(toc, out);
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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="toc"/>
|
||||
|
||||
<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>
|
||||
@@ -0,0 +1,216 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
TocData data = new TocData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title><%=ServletResources.getString("Content", request)%></title>
|
||||
|
||||
<style type="text/css">
|
||||
<%@ include file="tree.css"%>
|
||||
</style>
|
||||
|
||||
<base target="ContentViewFrame">
|
||||
<script language="JavaScript">
|
||||
|
||||
// Preload images
|
||||
minus = new Image();
|
||||
minus.src = "<%=prefs.getImagesDirectory()%>"+"/minus.gif";
|
||||
plus = new Image();
|
||||
plus.src = "<%=prefs.getImagesDirectory()%>"+"/plus.gif";
|
||||
toc_open_img = new Image();
|
||||
toc_open_img.src = "<%=prefs.getImagesDirectory()%>"+"/toc_open.gif";
|
||||
toc_closed_img = new Image();
|
||||
toc_closed_img.src = "<%=prefs.getImagesDirectory()%>"+"/toc_closed.gif";
|
||||
folder_img = new Image();
|
||||
folder_img.src = "<%=prefs.getImagesDirectory()%>"+"/container_obj.gif";
|
||||
topic_img = new Image();
|
||||
topic_img.src = "<%=prefs.getImagesDirectory()%>"+"/topic.gif";
|
||||
altTopicClosed = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("topicClosed", request))%>";
|
||||
altTopicOpen = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("topicOpen", request))%>";
|
||||
</script>
|
||||
|
||||
<script language="JavaScript" src="toc.js"></script>
|
||||
<script language="JavaScript">
|
||||
|
||||
/**
|
||||
* Loads the specified table of contents
|
||||
*/
|
||||
function loadTOC(tocHref)
|
||||
{
|
||||
// navigate to this toc, if not already loaded
|
||||
if (window.location.href.indexOf("tocView.jsp?toc="+tocHref) != -1)
|
||||
return;
|
||||
window.location.replace("tocView.jsp?toc="+tocHref);
|
||||
}
|
||||
|
||||
var tocTitle = "";
|
||||
var tocId = "";
|
||||
|
||||
function onloadHandler()
|
||||
{
|
||||
<%
|
||||
if (data.getSelectedToc() != -1)
|
||||
{
|
||||
%>
|
||||
tocTitle = '<%=UrlUtil.JavaScriptEncode(data.getTocLabel(data.getSelectedToc()))%>';
|
||||
var tocTopic = "<%=data.getTocDescriptionTopic(data.getSelectedToc())%>";
|
||||
|
||||
// set title on the content toolbar
|
||||
parent.parent.parent.setContentToolbarTitle(tocTitle);
|
||||
|
||||
var topicSelected=false;
|
||||
// select specified topic, or else the book
|
||||
var topic = '<%=data.getSelectedTopic()%>';
|
||||
if (topic != "about:blank" && topic != tocTopic) {
|
||||
if (topic.indexOf(window.location.protocol) != 0 && topic.length > 2) {
|
||||
// remove the .. from topic
|
||||
topic = topic.substring(2);
|
||||
// remove advanced/tocView.jsp from path to obtain contextPath
|
||||
var contextPath = window.location.pathname;
|
||||
var slash = contextPath.lastIndexOf('/');
|
||||
if(slash > 0) {
|
||||
slash = contextPath.lastIndexOf('/', slash-1);
|
||||
if(slash >= 0) {
|
||||
contextPath = contextPath.substr(0, slash);
|
||||
topic = window.location.protocol + "//" +window.location.host + contextPath + topic;
|
||||
}
|
||||
}
|
||||
}
|
||||
topicSelected = selectTopic(topic);
|
||||
} else {
|
||||
topicSelected = selectTopicById(tocId);
|
||||
}
|
||||
// if topic failed to be selected, but we know it exist in some book,
|
||||
// offer to turn on "show all"
|
||||
<%
|
||||
// do not offer to show all just after it was manually turned off
|
||||
if (null==request.getParameter("showAll")) {
|
||||
%>
|
||||
if(!topicSelected){
|
||||
if(parent.parent.activityFiltering){
|
||||
askShowAll();
|
||||
}
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<%
|
||||
} else if ("yes".equals(request.getParameter("synch"))) {
|
||||
%>
|
||||
var message='<%=UrlUtil.JavaScriptEncode(ServletResources.getString("CannotSync", request))%>';
|
||||
// when we don't find the specified toc, we just restore navigation
|
||||
parent.parent.parent.restoreNavigation(message);
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
var askShowAllDialog;
|
||||
var w = 470;
|
||||
var h = 270;
|
||||
|
||||
function askShowAll(){
|
||||
<%
|
||||
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";
|
||||
askShowAllDialog = window.open("askShowAll.jsp", "askShowAllDialog", "resizeable=no,height="+h+",width="+w+",left="+l+",top="+t );
|
||||
askShowAllDialog.focus();
|
||||
}
|
||||
|
||||
function yesShowAll(){
|
||||
window.parent.parent.showAll();
|
||||
}
|
||||
|
||||
function closeAskShowAllDialog(){
|
||||
try {
|
||||
if (askShowAllDialog){
|
||||
askShowAllDialog.close();
|
||||
}
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
|
||||
function onunloadHandler() {
|
||||
closeAskShowAllDialog();
|
||||
<%
|
||||
// for large books, we want to avoid a long unload time
|
||||
if (data.isIE()){
|
||||
%>
|
||||
document.body.innerHTML = "";
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body dir="<%=direction%>" onload="onloadHandler()" onunload="onunloadHandler()">
|
||||
<ul class='expanded' id='root'>
|
||||
<%
|
||||
for (int toc=0; toc<data.getTocCount(); toc++) {
|
||||
boolean isSelected =data.getSelectedToc() != -1 &&
|
||||
data.getTocHref(data.getSelectedToc()).equals(data.getTocHref(toc));
|
||||
if(!data.isEnabled(toc)){
|
||||
// do not show
|
||||
continue;
|
||||
}
|
||||
if(isSelected) {
|
||||
%>
|
||||
<li>
|
||||
<img src="<%=prefs.getImagesDirectory()%>/toc_open.gif" alt="<%=ServletResources.getString("bookOpen", request)%>"><a id="b<%=toc%>" style="font-weight: bold;" href="<%=data.getTocDescriptionTopic(toc)%>" onclick=''><%=data.getTocLabel(toc)%></a>
|
||||
<%
|
||||
// Only generate the selected toc
|
||||
data.generateToc(toc, out);
|
||||
// keep track of the selected toc id
|
||||
%>
|
||||
<script language="JavaScript">tocId="b"+<%=toc%></script>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<li>
|
||||
<img src="<%=prefs.getImagesDirectory()%>/toc_closed.gif" alt="<%=ServletResources.getString("bookClosed", request)%>"><a id="b<%=toc%>" style="font-weight: bold;" href="<%=data.getTocDescriptionTopic(toc)%>" onclick='loadTOC("<%=data.getTocHref(toc)%>")'><%=data.getTocLabel(toc)%></a>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</li>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</ul>
|
||||
<iframe name="dynLoadFrame" title="<%=ServletResources.getString("ignore", "dynLoadFrame", request)%>" style="visibility:hidden" tabindex="-1" frameborder="no" width="0" height="0" scrolling="no">
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,304 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
ToolbarData data = new ToolbarData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title><%=ServletResources.getString("Toolbar", request)%></title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
/* need this one for Mozilla */
|
||||
HTML {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
#titleText {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.buttonOn a {
|
||||
display:block;
|
||||
margin-left:2px;
|
||||
margin-right:2px;
|
||||
width:<%=data.isMozilla()?18:20%>px;
|
||||
height:<%=data.isMozilla()?18:20%>px;
|
||||
border:1px solid Highlight;
|
||||
writing-mode:tb-rl;
|
||||
vertical-align:middle;
|
||||
background: <%=prefs.getViewBackground()%>;
|
||||
}
|
||||
|
||||
.button a {
|
||||
display:block;
|
||||
margin-left:2px;
|
||||
margin-right:2px;
|
||||
width:<%=data.isMozilla()?18:20%>px;
|
||||
height:<%=data.isMozilla()?18:20%>px;
|
||||
border:1px solid <%=prefs.getToolbarBackground()%>;
|
||||
writing-mode:tb-rl;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
.button a:hover {
|
||||
border-top:1px solid ButtonHighlight;
|
||||
border-<%=isRTL?"right":"left"%>:1px solid ButtonHighlight;
|
||||
border-<%=isRTL?"left":"right"%>:1px solid ButtonShadow;
|
||||
border-bottom:1px solid ButtonShadow;
|
||||
}
|
||||
|
||||
<% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
|
||||
// maximize (last) button should not jump
|
||||
%>
|
||||
#b<%=data.getButtons().length-1%>:hover{
|
||||
border:1px solid <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
<%}%>
|
||||
|
||||
.separator {
|
||||
background-color: ThreeDShadow;
|
||||
height:100%;
|
||||
width: 1px;
|
||||
border-top:2px solid <%=prefs.getToolbarBackground()%>;
|
||||
border-bottom:2px solid <%=prefs.getToolbarBackground()%>;
|
||||
border-left:3px solid <%=prefs.getToolbarBackground()%>;
|
||||
border-right:3px solid <%=prefs.getToolbarBackground()%>;
|
||||
|
||||
}
|
||||
|
||||
#container {
|
||||
border-bottom:1px solid ThreeDShadow;
|
||||
<%
|
||||
if (data.isIE()) {
|
||||
%>
|
||||
<%
|
||||
}else if (data.isMozilla()){
|
||||
%>
|
||||
border-top:1px solid ThreeDShadow;
|
||||
height:24px;
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
<%
|
||||
// workaround for adding right border on mozilla (ugly..)
|
||||
if (data.isMozilla() && "content".equals(request.getParameter("toolbar"))) {
|
||||
%>
|
||||
|
||||
/* need this one for Mozilla */
|
||||
HTML {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
// Preload images
|
||||
<%
|
||||
ToolbarButton[] buttons = data.getButtons();
|
||||
for (int i=0; i<buttons.length; i++) {
|
||||
if (!buttons[i].isSeparator()) {
|
||||
%>
|
||||
var <%=buttons[i].getName()%> = new Image();
|
||||
<%=buttons[i].getName()%>.src = "<%=buttons[i].getOnImage()%>";
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
|
||||
function setTitle(label)
|
||||
{
|
||||
if( label == null) label = "";
|
||||
var title = document.getElementById("titleText");
|
||||
if (title == null) return;
|
||||
var text = title.lastChild;
|
||||
if (text == null) return;
|
||||
text.nodeValue = label;
|
||||
}
|
||||
|
||||
<% if (data.isIE()
|
||||
|| data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0
|
||||
|| (data.isSafari() && "120".compareTo(data.getSafariVersion()) <= 0) ){
|
||||
%>
|
||||
function registerMaximizedChangedListener(){
|
||||
// get to the frameset
|
||||
var p = parent;
|
||||
while (p && !p.registerMaximizeListener)
|
||||
p = p.parent;
|
||||
|
||||
if (p!= null){
|
||||
p.registerMaximizeListener('<%=data.getName()%>Toolbar', maximizedChanged);
|
||||
}
|
||||
}
|
||||
registerMaximizedChangedListener();
|
||||
|
||||
/**
|
||||
* Handler for double click: maximize/restore this view
|
||||
* Note: Mozilla browsers prior to 1.2.1 do not support programmatic frame resizing well.
|
||||
*/
|
||||
function mouseDblClickHandler(e) {
|
||||
// ignore double click on buttons
|
||||
var target=<%=data.isIE()?"window.event.srcElement":"e.target"%>;
|
||||
if (target.tagName && (target.tagName == "A" || target.tagName == "IMG"))
|
||||
return;
|
||||
toggleFrame();
|
||||
return false;
|
||||
}
|
||||
function restore_maximize(button)
|
||||
{
|
||||
toggleFrame();
|
||||
if (isIE && button && document.getElementById(button)){
|
||||
document.getElementById(button).blur();
|
||||
}
|
||||
}
|
||||
function toggleFrame(){
|
||||
// get to the frameset
|
||||
var p = parent;
|
||||
while (p && !p.toggleFrame)
|
||||
p = p.parent;
|
||||
|
||||
if (p!= null){
|
||||
p.toggleFrame('<%=data.getTitle()%>');
|
||||
}
|
||||
document.selection.clear;
|
||||
}
|
||||
|
||||
function maximizedChanged(maximizedNotRestored){
|
||||
if(maximizedNotRestored){
|
||||
document.getElementById("maximize_restore").src="<%=data.getRestoreImage()%>";
|
||||
document.getElementById("maximize_restore").setAttribute("title", "<%=data.getRestoreTooltip()%>");
|
||||
document.getElementById("maximize_restore").setAttribute("alt", "<%=data.getRestoreTooltip()%>");
|
||||
}else{
|
||||
document.getElementById("maximize_restore").src="<%=data.getMaximizeImage()%>";
|
||||
document.getElementById("maximize_restore").setAttribute("title", "<%=data.getMaximizeTooltip()%>");
|
||||
document.getElementById("maximize_restore").setAttribute("alt", "<%=data.getMaximizeTooltip()%>");
|
||||
}
|
||||
}
|
||||
|
||||
<%=( data.isIE() || data.isSafari() )?
|
||||
"document.ondblclick = mouseDblClickHandler;"
|
||||
:
|
||||
"document.addEventListener('dblclick', mouseDblClickHandler, true);"%>
|
||||
<%}%>
|
||||
|
||||
function setButtonState(buttonName, pressed) {
|
||||
if(!document.getElementById("tdb_"+buttonName))
|
||||
return;
|
||||
if(pressed){
|
||||
document.getElementById("tdb_"+buttonName).className="buttonOn";
|
||||
}else{
|
||||
document.getElementById("tdb_"+buttonName).className="button";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<%
|
||||
if (data.getScript() != null) {
|
||||
%>
|
||||
<script language="JavaScript" src="<%=data.getScript()%>"></script>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</head>
|
||||
|
||||
<%
|
||||
if(buttons.length > 0){
|
||||
%>
|
||||
<body dir="<%=direction%>">
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
<body dir="<%=direction%>" tabIndex="-1">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<table id="container" width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" style='padding-<%=isRTL?"right":"left"%>:<%=data.isIE()?"5px":"8px"%>;'>
|
||||
|
||||
<tr>
|
||||
<td nowrap style="font: <%=prefs.getToolbarFont()%>" valign="middle">
|
||||
<div id="titleTextTableDiv" style="overflow:hidden; height:22px;"><table><tr><td nowrap style="font:<%=prefs.getToolbarFont()%>"><div id="titleText" > <%=data.getTitle()%></div></td></tr></table>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="position:absolute; top:1px; <%=isRTL?"left":"right"%>:0px;">
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
|
||||
<tr>
|
||||
<td align="<%=isRTL?"left":"right"%>">
|
||||
<table border="0" cellspacing="0" cellpadding="0" height="100%" style="background:<%=prefs.getToolbarBackground()%>">
|
||||
<tr>
|
||||
<%
|
||||
for (int i=0; i<buttons.length; i++) {
|
||||
if (buttons[i].isSeparator()) {
|
||||
%>
|
||||
<td align="middle" class="separator" valign="middle">
|
||||
</td>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<td align="middle" id="tdb_<%=buttons[i].getName()%>" class="<%=buttons[i].isOn()?"buttonOn":"button"%>" height=18>
|
||||
<a href="javascript:<%=buttons[i].getAction()%>('b<%=i%>');"
|
||||
onmouseover="window.status='<%=buttons[i].getTooltip()%>';return true;"
|
||||
onmouseout="window.status='';"
|
||||
id="b<%=i%>">
|
||||
<img src="<%=buttons[i].getOnImage()%>"
|
||||
alt='<%=buttons[i].getTooltip()%>'
|
||||
title='<%=buttons[i].getTooltip()%>'
|
||||
border="0"
|
||||
id="<%=buttons[i].getName()%>">
|
||||
</a>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%// special case for content toolbar - internally used live help frame
|
||||
if ("content".equals(request.getParameter("toolbar"))) {
|
||||
%>
|
||||
<iframe name="liveHelpFrame" title="<%=ServletResources.getString("ignore", "liveHelpFrame", request)%>" style="visibility:hidden" tabindex="-1" frameborder="no" width="0" height="0" scrolling="no">
|
||||
</iframe>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/*******************************************************************************
|
||||
* 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 Common Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/cpl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
BODY {
|
||||
background-color: <%=prefs.getViewBackground()%>;
|
||||
font: <%=prefs.getViewFont()%>;
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
UL {
|
||||
border-width:0;
|
||||
margin-<%=isRTL?"right":"left"%>:20px;
|
||||
}
|
||||
|
||||
#root {
|
||||
margin-top:5px;
|
||||
margin-<%=isRTL?"right":"left"%>:5px;
|
||||
}
|
||||
|
||||
UL.expanded {
|
||||
display:block;
|
||||
}
|
||||
|
||||
UL.collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
LI {
|
||||
margin-top:3px;
|
||||
list-style-image:none;
|
||||
list-style-type:none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
IMG {
|
||||
border:0px;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
margin-<%=isRTL?"left":"right"%>:4px;
|
||||
}
|
||||
|
||||
|
||||
A {
|
||||
text-decoration:none;
|
||||
color:WindowText;
|
||||
padding-<%=isRTL?"left":"right"%>:2px;
|
||||
/* this works in ie5.5, but not in ie5.0 */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
A:hover{
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
A.active{
|
||||
background:Highlight;
|
||||
color:HighlightText;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
A.active:hover{
|
||||
text-decoration:underline;
|
||||
background:Highlight;
|
||||
color:HighlightText;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
<%
|
||||
if (data.isMozilla()){
|
||||
%>
|
||||
UL {
|
||||
margin-<%=isRTL?"right":"left"%>:-20px;
|
||||
}
|
||||
#root{
|
||||
margin-<%=isRTL?"right":"left"%>:-35px;
|
||||
margin-top:5px;
|
||||
}
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
.h {
|
||||
visibility:hidden;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="fheader.jsp"%>
|
||||
|
||||
<%
|
||||
new ActivitiesData(application, request, response); // here it can turn filtering on or off
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
View view = data.getCurrentView();
|
||||
if (view == null) return;
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=ServletResources.getString(view.getName(), request)%></title>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function onloadHandler(e)
|
||||
{
|
||||
<% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
|
||||
%> var h=window.<%=view.getName()%>ToolbarFrame.document.getElementById("titleText").offsetHeight; <%-- default 13 --%>
|
||||
if(h<=19){
|
||||
return; <%-- no need to resize up to 19px --%>
|
||||
}
|
||||
document.getElementById("viewFrameset").setAttribute("rows", (11+h)+",*"); <%-- default 24 --%>
|
||||
window.<%=view.getName()%>ToolbarFrame.document.getElementById("titleTextTableDiv").style.height=(9+h)+"px"; <%-- default 22 --%>
|
||||
<%}%>
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<frameset id="viewFrameset" onload="onloadHandler()" rows="24,*" frameborder="0" framespacing="0" border=0 >
|
||||
<frame id="toolbar" name="<%=view.getName()%>ToolbarFrame" title="<%=ServletResources.getString(view.getName()+"ViewToolbar", request)%>" src='<%=view.getURL()+view.getName()+"Toolbar.jsp"%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
|
||||
<frame name='<%=view.getName()%>ViewFrame' title="<%=ServletResources.getString(view.getName()+"View", request)%>" src='<%=view.getURL()+view.getName()+"View.jsp?"+request.getQueryString()%>' marginwidth="10" marginheight="0" frameborder="0" >
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
View[] views = data.getViews();
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
|
||||
<title><%=ServletResources.getString("Views", request)%></title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
/* need this one for Mozilla */
|
||||
HTML {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
/* Mozilla does not like width:100%, so we set height only */
|
||||
height:100%;
|
||||
}
|
||||
|
||||
IFRAME {
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
visibility:hidden;
|
||||
width:0;
|
||||
height:0;
|
||||
}
|
||||
|
||||
.visible {
|
||||
visibility:visible;
|
||||
width:100%;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script language="Javascript">
|
||||
|
||||
var lastView = "";
|
||||
/**
|
||||
* Switches to specified view
|
||||
*/
|
||||
function showView(view)
|
||||
{
|
||||
if (view == lastView)
|
||||
return;
|
||||
|
||||
lastView = view;
|
||||
|
||||
// show appropriate frame
|
||||
var iframes = parent.ViewsFrame.document.body.getElementsByTagName("IFRAME");
|
||||
for (var i=0; i<iframes.length; i++)
|
||||
{
|
||||
if (iframes[i].id != view){
|
||||
iframes[i].className = "hidden";
|
||||
iframes[i].style.visibility="hidden";
|
||||
}else{
|
||||
iframes[i].className = "visible";
|
||||
iframes[i].style.visibility="visible";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var activityFiltering = <%=(new ActivitiesData(application, request, response)).isActivityFiltering()?"true":"false"%>;
|
||||
var displayShowAllConfirmation = <%=prefs.isDontConfirmShowAll()?"false":"true"%>;
|
||||
var regExp=/&(showAll|synch)=(on|off|yes|no)/gi;
|
||||
function toggleShowAll(){
|
||||
if(activityFiltering){
|
||||
if( displayShowAllConfirmation ){
|
||||
confirmShowAll();
|
||||
}else{
|
||||
showAll();
|
||||
}
|
||||
} else {
|
||||
dontShowAll();
|
||||
}
|
||||
}
|
||||
|
||||
function dontAskAgain(){
|
||||
displayShowAllConfirmation = false;
|
||||
}
|
||||
function showAll(){
|
||||
var displayConfirmParam;
|
||||
if(displayShowAllConfirmation){
|
||||
displayConfirmParam="";
|
||||
}else{
|
||||
displayConfirmParam="&showconfirm=false";
|
||||
}
|
||||
activityFiltering=false;
|
||||
try{
|
||||
window.frames.toc.tocToolbarFrame.setButtonState("show_all", true);
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.search.searchToolbarFrame.setButtonState("show_all", true);
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.toc.tocViewFrame.location.replace(window.frames.toc.tocViewFrame.location.href.replace(regExp, "")+"&showAll=on"+displayConfirmParam);
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.search.searchViewFrame.location.replace(window.frames.search.searchViewFrame.location.href.replace(regExp, "")+"&showAll=on");
|
||||
}catch(ex) {}
|
||||
}
|
||||
|
||||
function dontShowAll(){
|
||||
activityFiltering=true;
|
||||
try{
|
||||
window.frames.toc.tocToolbarFrame.setButtonState("show_all", false);
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.search.searchToolbarFrame.setButtonState("show_all", false);
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.toc.tocViewFrame.location.replace(window.frames.toc.tocViewFrame.location.href.replace(regExp, "")+"&showAll=off");
|
||||
}catch(ex) {}
|
||||
try{
|
||||
window.frames.search.searchViewFrame.location.replace(window.frames.search.searchViewFrame.location.href.replace(regExp, "")+"&showAll=off");
|
||||
}catch(ex) {}
|
||||
}
|
||||
|
||||
var confirmShowAllDialog;
|
||||
var w = 470;
|
||||
var h = 300;
|
||||
|
||||
function confirmShowAll()
|
||||
{
|
||||
<%
|
||||
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";
|
||||
confirmShowAllDialog = window.open("confirmShowAll.jsp", "confirmShowAllDialog", "resizeable=no,height="+h+",width="+w+",left="+l+",top="+t );
|
||||
confirmShowAllDialog.focus();
|
||||
}
|
||||
|
||||
function closeConfirmShowAllDialog(){
|
||||
try {
|
||||
if (confirmShowAllDialog){
|
||||
confirmShowAllDialog.close();
|
||||
}
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" tabIndex="-1" onunload="closeConfirmShowAllDialog()">
|
||||
<%
|
||||
for (int i=0; i<views.length; i++)
|
||||
{
|
||||
// normally we would hide the views first, but mozilla needs all iframes to be visible to load
|
||||
// other frames
|
||||
String className = "visible"; // data.getVisibleView().equals(views[i].getName()) ? "visible" : "visible";
|
||||
%>
|
||||
<iframe frameborder="0"
|
||||
class="<%=className%>"
|
||||
name="<%=views[i].getName()%>"
|
||||
title="<%=ServletResources.getString("ignore", views[i].getName(), request)%>"
|
||||
id="<%=views[i].getName()%>"
|
||||
src='<%="view.jsp?view="+views[i].getName()+(request.getQueryString()==null?"":("&"+request.getQueryString()))%>'>
|
||||
</iframe>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<iframe frameborder="0" style="visibility:hidden" tabindex="-1" name="temp" id="temp" title="<%=ServletResources.getString("ignore", "temp", request)%>"></iframe>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,428 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
WorkingSetData data = new WorkingSetData(application, request, response);
|
||||
TocData tocData = new TocData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=ServletResources.getString(data.isEditMode()?"EditWorkingSet":"NewWorkingSet", request)%></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
/* need this one for Mozilla */
|
||||
HTML, BODY {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
font: <%=prefs.getViewFont()%>;
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
background:<%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
TD, TR {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
|
||||
#workingSet {
|
||||
width:100%;
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
}
|
||||
|
||||
#booksContainer {
|
||||
background:Window;
|
||||
border: 2px inset ThreeDHighlight;
|
||||
margin:10px;
|
||||
margin-top:2px;
|
||||
padding-<%=isRTL?"right":"left"%>:5px;
|
||||
overflow:auto;
|
||||
height:350px;
|
||||
<%if (data.isIE()) {%>
|
||||
width:100%;
|
||||
<%}%>
|
||||
}
|
||||
|
||||
.book {
|
||||
margin:0xp;
|
||||
border:0px;
|
||||
padding:0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.topic {
|
||||
margin-<%=isRTL?"right":"left"%>:30px;
|
||||
border:0px;
|
||||
padding:0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
BUTTON {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
}
|
||||
|
||||
.expanded {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.collapsed {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.grayed {
|
||||
background-color: <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
<%
|
||||
if (data.isMozilla()) {
|
||||
%>
|
||||
input[type="checkbox"] {
|
||||
border:2px solid WindowText;
|
||||
margin:0xp;
|
||||
padding:0px;
|
||||
height:12px;
|
||||
width:12px;
|
||||
}
|
||||
|
||||
.grayed {
|
||||
background: <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</style>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
// Preload images
|
||||
var minus = new Image();
|
||||
minus.src = "<%=prefs.getImagesDirectory()%>"+"/minus.gif";
|
||||
var plus = new Image();
|
||||
plus.src = "<%=prefs.getImagesDirectory()%>"+"/plus.gif";
|
||||
|
||||
var oldName = '<%=data.isEditMode()?data.getWorkingSetName():""%>';
|
||||
var altBookClosed = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("bookClosed", request))%>";
|
||||
var altBookOpen = "<%=UrlUtil.JavaScriptEncode(ServletResources.getString("bookOpen", request))%>";
|
||||
|
||||
function onloadHandler() {
|
||||
<%if(!data.isMozilla() || "1.3".compareTo(data.getMozillaVersion()) <=0){
|
||||
// buttons are not resized immediately on mozilla before 1.3
|
||||
%>
|
||||
sizeButtons();
|
||||
<%}%>
|
||||
document.getElementById("workingSet").focus();
|
||||
enableOK();
|
||||
<%-- event handlers that call enableOK() are not invoked properly on Japanese --%>
|
||||
setInterval("enableOK()", 250);
|
||||
|
||||
}
|
||||
|
||||
function sizeButtons() {
|
||||
var minWidth=60;
|
||||
|
||||
if(document.getElementById("ok").offsetWidth < minWidth){
|
||||
document.getElementById("ok").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("cancel").offsetWidth < minWidth){
|
||||
document.getElementById("cancel").style.width = minWidth+"px";
|
||||
}
|
||||
}
|
||||
|
||||
function doSubmit()
|
||||
{
|
||||
try
|
||||
{
|
||||
var workingSet = document.getElementById("workingSet").value;
|
||||
if (!workingSet || workingSet == "")
|
||||
return false;
|
||||
|
||||
var hrefs = getSelectedResources();
|
||||
if (!hrefs || hrefs == "")
|
||||
return false;
|
||||
|
||||
var query = "operation="+'<%=data.getOperation()%>'+"&workingSet="+encodeURIComponent(workingSet)+ hrefs+"&oldName="+encodeURIComponent(oldName);
|
||||
window.opener.location.replace("workingSetManager.jsp?"+query);
|
||||
window.opener.focus();
|
||||
window.close();
|
||||
} catch(ex) {alert("Error..." + ex.message)}
|
||||
}
|
||||
|
||||
function getSelectedResources() {
|
||||
var hrefs = "";
|
||||
var inputs = document.getElementsByTagName("INPUT");
|
||||
for (var i=0; i<inputs.length; i++)
|
||||
{
|
||||
if (inputs[i].type != "checkbox") continue;
|
||||
if (inputs[i].checked == false) continue;
|
||||
if (getGrayed(inputs[i])) continue;
|
||||
if (isToc(inputs[i].name)) {
|
||||
hrefs += "&hrefs="+encodeURIComponent(inputs[i].name);
|
||||
} else if (!isParentTocSelected(inputs[i].name)) {
|
||||
hrefs += "&hrefs="+encodeURIComponent(inputs[i].name);
|
||||
}
|
||||
}
|
||||
return hrefs;
|
||||
}
|
||||
|
||||
// Assumption: last character of a toc reference cannot be underscore _
|
||||
function isToc(name) {
|
||||
return name.charAt(name.length-1) != "_";
|
||||
}
|
||||
|
||||
function isParentTocSelected(name) {
|
||||
var parentCheckbox = getParentCheckbox(name);
|
||||
return (parentCheckbox.checked && !getGrayed(parentCheckbox));
|
||||
}
|
||||
|
||||
function getParentCheckbox(name) {
|
||||
var parentId = name.substring(0, name.lastIndexOf("_", name.length-2));
|
||||
return document.getElementById(parentId);
|
||||
}
|
||||
|
||||
function collapseOrExpand(nodeId) {
|
||||
var node = document.getElementById("div"+nodeId);
|
||||
var img = document.getElementById("img"+nodeId);
|
||||
if (!node || !img) return;
|
||||
if (node.className == "expanded") {
|
||||
node.className = "collapsed";
|
||||
img.src = plus.src;
|
||||
img.alt = altBookClosed;
|
||||
} else {
|
||||
node.className = "expanded";
|
||||
img.src = minus.src;
|
||||
img.alt = altBookOpen;
|
||||
}
|
||||
}
|
||||
|
||||
function collapse(nodeId) {
|
||||
var node = document.getElementById("div"+nodeId);
|
||||
var img = document.getElementById("img"+nodeId);
|
||||
if (!node || !img) return;
|
||||
node.className = "collapsed";
|
||||
img.src = plus.src;
|
||||
img.alt = altBookClosed;
|
||||
}
|
||||
|
||||
function expand(nodeId) {
|
||||
var node = document.getElementById("div"+nodeId);
|
||||
var img = document.getElementById("img"+nodeId);
|
||||
if (!node || !img) return;
|
||||
node.className = "expanded";
|
||||
img.src = minus.src;
|
||||
img.alt = altBookOpen;
|
||||
}
|
||||
|
||||
function getParent(child) {
|
||||
var id = child.name;
|
||||
var parentId = id.substring(0, id.lastIndexOf("_", id.length-2));
|
||||
return document.getElementById(parentId);
|
||||
}
|
||||
|
||||
function updateParentState(checkbox,parentDiv) {
|
||||
|
||||
if (checkbox == null)
|
||||
return;
|
||||
|
||||
var baseChildState = checkbox.checked;
|
||||
var parent = getParent(checkbox);
|
||||
if (parent == null)
|
||||
return;
|
||||
|
||||
var allSameState = true;
|
||||
var children = document.getElementById(parentDiv).getElementsByTagName("INPUT");
|
||||
for (var i = children.length - 1; i >= 0; i--) {
|
||||
if (children[i].checked != baseChildState ) {
|
||||
allSameState = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
setGrayed(parent, !allSameState);
|
||||
parent.checked = !allSameState || baseChildState;
|
||||
}
|
||||
|
||||
function setSubtreeChecked(checkbox, parentDiv) {
|
||||
var state = checkbox.checked;
|
||||
var children = document.getElementById(parentDiv).getElementsByTagName("INPUT");
|
||||
for (var i = children.length - 1; i >= 0; i--) {
|
||||
var element = children[i];
|
||||
if (state) {
|
||||
element.checked = true;
|
||||
} else {
|
||||
element.checked = false;
|
||||
}
|
||||
}
|
||||
setGrayed(checkbox, false);
|
||||
}
|
||||
|
||||
function setGrayed(node, enableGray) {
|
||||
if (enableGray)
|
||||
node.className = "grayed";
|
||||
else
|
||||
node.className = "checkbox";
|
||||
}
|
||||
|
||||
function getGrayed(node) {
|
||||
return node.className == "grayed";
|
||||
}
|
||||
|
||||
function isExpanded(nodeId) {
|
||||
var node = document.getElementById("div"+nodeId);
|
||||
if (node == null) return false;
|
||||
return node.className == "expanded";
|
||||
}
|
||||
|
||||
function isCollapsed(nodeId) {
|
||||
var node = document.getElementById("div"+nodeId);
|
||||
if (node == null) return false;
|
||||
return node.className == "collapsed";
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for key down (arrows)
|
||||
*/
|
||||
function keyDownHandler(folderId, key, target)
|
||||
{
|
||||
if (key != 37 && key != 39)
|
||||
return true;
|
||||
|
||||
if (key == 39) { // Right arrow, expand
|
||||
if (isCollapsed(folderId))
|
||||
expand(folderId);
|
||||
target.focus();
|
||||
} else if (key == 37) { // Left arrow,collapse
|
||||
if (isExpanded(folderId))
|
||||
collapse(folderId);
|
||||
var parentCheckbox = getParentCheckbox(target.name);
|
||||
if (parentCheckbox != null)
|
||||
parentCheckbox.focus();
|
||||
else
|
||||
target.focus();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function enableOK() {
|
||||
var value = document.getElementById("workingSet").value;
|
||||
if (!value || value.length == 0 || value.charAt(0) == " ")
|
||||
document.getElementById("ok").disabled = true;
|
||||
else
|
||||
document.getElementById("ok").disabled = false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" onload="onloadHandler()">
|
||||
<form onsubmit="doSubmit();return false;">
|
||||
<table id="wsTable" width="100%" cellspacing=0 cellpading=0 border=0 align=center >
|
||||
<tr><td style="padding:5px 10px 0px 10px;"><label for="workingSet" accesskey="<%=ServletResources.getAccessKey("WorkingSetName", request)%>"><%=ServletResources.getLabel("WorkingSetName", request)%>:</label>
|
||||
</td></tr>
|
||||
<tr><td style="padding:0px 10px;"><input type="text" id="workingSet" name="workingSet" value='<%=data.isEditMode()?data.getWorkingSetName():""%>' maxlength=256 alt='<%=ServletResources.getString("WorkingSetName", request)%>' title='<%=ServletResources.getString("WorkingSetName", request)%>' onkeyup="enableOK();return true;">
|
||||
</td></tr>
|
||||
<tr><td><div id="selectBook" style="padding-top:5px; margin-<%=isRTL?"right":"left"%>:10px;"><%=ServletResources.getString("WorkingSetContent", request)%>:</div>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<div id="booksContainer" style="background:<%=prefs.getViewBackground()%>;">
|
||||
|
||||
<%
|
||||
for (int i=0; i<data.getTocCount(); i++)
|
||||
{
|
||||
if(!tocData.isEnabled(i)){
|
||||
// do not show
|
||||
continue;
|
||||
}
|
||||
String label = data.getTocLabel(i);
|
||||
short state = data.getTocState(i);
|
||||
String checked = state == WorkingSetData.STATE_CHECKED || state == WorkingSetData.STATE_GRAYED ? "checked" : "";
|
||||
String className = state == WorkingSetData.STATE_GRAYED ? "grayed" : "checkbox";
|
||||
%>
|
||||
<div class="book" id='<%="id"+i%>' >
|
||||
<img id='<%="img"+i%>' alt="<%=ServletResources.getString("bookClosed", request)%>" src="<%=prefs.getImagesDirectory()%>/plus.gif" onclick="collapseOrExpand('<%=i%>')">
|
||||
<input class='<%=className%>'
|
||||
type="checkbox"
|
||||
id='<%=data.getTocHref(i)%>'
|
||||
name='<%=data.getTocHref(i)%>'
|
||||
alt="<%=label%>" <%=checked%>
|
||||
onkeydown="keyDownHandler(<%=i%>, event.keyCode, this)"
|
||||
onclick="setSubtreeChecked(this, '<%="div"+i%>')">
|
||||
<label for="<%=data.getTocHref(i)%>"><%=label%></label>
|
||||
<div id='<%="div"+i%>' class="collapsed">
|
||||
<%
|
||||
for (int topic=0; topic<data.getTopicCount(i); topic++)
|
||||
{
|
||||
String topicLabel = data.getTopicLabel(i, topic);
|
||||
String topicChecked = (state == WorkingSetData.STATE_CHECKED) ||
|
||||
(state == WorkingSetData.STATE_GRAYED && data.getTopicState(i,topic) == WorkingSetData.STATE_CHECKED)
|
||||
? "checked" : "";
|
||||
%>
|
||||
<div class="topic" id='<%="id"+i+"_"+topic%>'>
|
||||
<input class="checkbox"
|
||||
type="checkbox"
|
||||
id='<%=data.getTocHref(i)+"_"+topic+"_"%>'
|
||||
name='<%=data.getTocHref(i)+"_"+topic+"_"%>'
|
||||
alt="<%=topicLabel%>" <%=topicChecked%>
|
||||
onkeydown="keyDownHandler(<%=i%>, event.keyCode, this)"
|
||||
onclick="updateParentState(this, '<%="div"+i%>')">
|
||||
<label for="<%=data.getTocHref(i)+"_"+topic+"_"%>"><%=topicLabel%></label>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</div>
|
||||
<div style="height:50px;">
|
||||
<table valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<tr id="buttonsTable" valign="bottom"><td valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;">
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" id="ok"><%=ServletResources.getString("OK", request)%></button>
|
||||
</td>
|
||||
<td>
|
||||
<button type="reset" onclick="window.close()" id="cancel"><%=ServletResources.getString("Cancel", request)%></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,319 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
<%
|
||||
WorkingSetManagerData data = new WorkingSetManagerData(application, request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
String dataSaveError = data.getSaveError();
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=ServletResources.getString("SelectWorkingSet", request)%></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<meta http-equiv="Expires" content="-1">
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
<%@ include file="list.css"%>
|
||||
</style>
|
||||
|
||||
<style type="text/css">
|
||||
HTML, BODY {
|
||||
width:100%;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
BODY {
|
||||
background-color: <%=prefs.getToolbarBackground()%>;
|
||||
}
|
||||
|
||||
TABLE {
|
||||
width:auto;
|
||||
}
|
||||
|
||||
TD, TR {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
border:0px;
|
||||
}
|
||||
TD.radio {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
BUTTON {
|
||||
font:<%=prefs.getViewFont()%>;
|
||||
}
|
||||
|
||||
#workingSetContainer {
|
||||
background:Window;
|
||||
border: 2px inset ThreeDHighlight;
|
||||
margin:0px 5px;
|
||||
padding:5px;
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script language="JavaScript" src="list.js"></script>
|
||||
<script language="JavaScript">
|
||||
|
||||
function highlightHandler()
|
||||
{
|
||||
document.getElementById('selectws').checked = true;
|
||||
enableButtons();
|
||||
}
|
||||
|
||||
// register handler
|
||||
_highlightHandler = highlightHandler;
|
||||
|
||||
function onloadHandler() {
|
||||
<%if(dataSaveError != null){%>
|
||||
alert("<%=dataSaveError%>");
|
||||
window.location="workingSetManager.jsp"
|
||||
<%}
|
||||
if(!data.isMozilla() || "1.3".compareTo(data.getMozillaVersion()) <=0){
|
||||
// buttons are not resized immediately on mozilla before 1.3
|
||||
%>
|
||||
sizeButtons();
|
||||
<%}%>
|
||||
enableButtons();
|
||||
document.getElementById("alldocs").focus();
|
||||
}
|
||||
|
||||
function sizeButtons() {
|
||||
var minWidth=60;
|
||||
|
||||
if(document.getElementById("ok").offsetWidth < minWidth){
|
||||
document.getElementById("ok").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("cancel").offsetWidth < minWidth){
|
||||
document.getElementById("cancel").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("edit").offsetWidth < minWidth){
|
||||
document.getElementById("edit").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("remove").offsetWidth < minWidth){
|
||||
document.getElementById("remove").style.width = minWidth+"px";
|
||||
}
|
||||
if(document.getElementById("new").offsetWidth < minWidth){
|
||||
document.getElementById("new").style.width = minWidth+"px";
|
||||
}
|
||||
}
|
||||
|
||||
function enableButtons() {
|
||||
if (document.getElementById('selectws').checked){
|
||||
document.getElementById("edit").disabled = (active == null);
|
||||
document.getElementById("remove").disabled = (active == null);
|
||||
document.getElementById("ok").disabled = (active == null);
|
||||
} else {
|
||||
document.getElementById("edit").disabled = true;
|
||||
document.getElementById("remove").disabled = true;
|
||||
document.getElementById("ok").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function getWorkingSet()
|
||||
{
|
||||
if (active != null && document.getElementById("selectws").checked)
|
||||
return active.title;
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
function selectWorkingSet() {
|
||||
var workingSet = getWorkingSet();
|
||||
|
||||
var search = window.opener.location.search;
|
||||
if (search && search.length > 0) {
|
||||
var i = search.indexOf("workingSet=");
|
||||
if (i >= 0)
|
||||
search = search.substring(0, i);
|
||||
else
|
||||
search += "&";
|
||||
} else {
|
||||
search = "?";
|
||||
}
|
||||
|
||||
search += "workingSet=" + encodeURIComponent(workingSet);
|
||||
var searchWord = window.opener.document.forms["searchForm"].searchWord.value;
|
||||
if (searchWord)
|
||||
search += "&searchWord="+encodeURIComponent(searchWord);
|
||||
|
||||
window.opener.location.replace(
|
||||
window.opener.location.protocol +
|
||||
"//" +
|
||||
window.opener.location.host +
|
||||
window.opener.location.pathname +
|
||||
search);
|
||||
|
||||
window.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
function removeWorkingSet() {
|
||||
window.location.replace("workingSetManager.jsp?operation=remove&workingSet="+encodeURIComponent(getWorkingSet()));
|
||||
}
|
||||
|
||||
var workingSetDialog;
|
||||
var w = 300;
|
||||
var h = 500;
|
||||
|
||||
function newWorkingSet() {
|
||||
<%
|
||||
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";
|
||||
workingSetDialog = window.open("workingSet.jsp?operation=add&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizeable=no,height="+h+",width="+w +",left="+l+",top="+t);
|
||||
workingSetDialog.focus();
|
||||
}
|
||||
|
||||
function editWorkingSet() {
|
||||
|
||||
<%
|
||||
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";
|
||||
workingSetDialog = window.open("workingSet.jsp?operation=edit&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizeable=no,height="+h+",width="+w+",left="+l+",top="+t );
|
||||
workingSetDialog.focus();
|
||||
}
|
||||
|
||||
function closeWorkingSetDialog()
|
||||
{
|
||||
try {
|
||||
if (workingSetDialog)
|
||||
workingSetDialog.close();
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" onload="onloadHandler()" onunload="closeWorkingSetDialog()">
|
||||
<form onsubmit="selectWorkingSet();return false;">
|
||||
<div style="overflow:auto;height:250px;width:100%;">
|
||||
<table id="filterTable" cellspacing=0 cellpading=0 border=0 align=center style="background:<%=prefs.getToolbarBackground()%>; font:<%=prefs.getToolbarFont()%>;margin-top:5px;width:100%;">
|
||||
<tr><td class="radio">
|
||||
<input id="alldocs" type="radio" name="workingSet" onclick="enableButtons()"><label for="alldocs" accesskey="<%=ServletResources.getAccessKey("selectAll", request)%>"><%=ServletResources.getLabel("selectAll", request)%></label>
|
||||
</td></tr>
|
||||
<tr><td class="radio">
|
||||
<input id="selectws" type="radio" name="workingSet" onclick="enableButtons()"><label for="selectws" accesskey="<%=ServletResources.getAccessKey("selectWorkingSet", request)%>"><%=ServletResources.getLabel("selectWorkingSet", request)%>:</label>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<div id="workingSetContainer" style="overflow:auto; height:140px; background:<%=prefs.getViewBackground()%>;">
|
||||
|
||||
<table id='list' cellspacing='0' style="width:100%;">
|
||||
<%
|
||||
String[] wsets = data.getWorkingSets();
|
||||
String workingSetId = "";
|
||||
for (int i=0; i<wsets.length; i++)
|
||||
{
|
||||
if (data.isCurrentWorkingSet(i))
|
||||
workingSetId = "a" + i;
|
||||
%>
|
||||
<tr class='list' id='r<%=i%>' style="width:100%;">
|
||||
<td align='<%=isRTL?"right":"left"%>' class='label' nowrap style="width:100%; padding-left:5px;">
|
||||
<a id='a<%=i%>'
|
||||
href='#'
|
||||
onclick="active=this;highlightHandler()"
|
||||
ondblclick="selectWorkingSet()"
|
||||
title="<%=wsets[i]%>">
|
||||
<%=wsets[i]%>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</td></tr>
|
||||
<tr id="actionsTable" valign="bottom"><td>
|
||||
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;">
|
||||
<tr>
|
||||
<td>
|
||||
<button type="button" onclick="newWorkingSet()" id="new" accesskey="<%=ServletResources.getAccessKey("NewWorkingSetButton", request)%>"><%=ServletResources.getLabel("NewWorkingSetButton", request)%>...</button>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" onclick="editWorkingSet()" id="edit" disabled='<%=data.getWorkingSet() == null ?"true":"false"%>' accesskey="<%=ServletResources.getAccessKey("EditWorkingSetButton", request)%>"><%=ServletResources.getLabel("EditWorkingSetButton", request)%>...</button>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" onclick="removeWorkingSet()" id="remove" disabled='<%=data.getWorkingSet() == null ?"true":"false"%>' accesskey="<%=ServletResources.getAccessKey("RemoveWorkingSetButton", request)%>"><%=ServletResources.getLabel("RemoveWorkingSetButton", request)%></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="height:50px;">
|
||||
<table valign="bottom" align="<%=isRTL?"left":"right"%>" style="background:<%=prefs.getToolbarBackground()%>">
|
||||
<tr id="buttonsTable" valign="bottom"><td valign="bottom" align="<%=isRTL?"left":"right"%>">
|
||||
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;">
|
||||
<tr>
|
||||
<td>
|
||||
<button type="submit" id="ok"><%=ServletResources.getString("OK", request)%></button>
|
||||
</td>
|
||||
<td>
|
||||
<button type="reset" onclick="window.close()" id="cancel"><%=ServletResources.getString("Cancel", request)%></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<script language="JavaScript">
|
||||
var selected = selectTopicById('<%=workingSetId%>');
|
||||
if (!selected)
|
||||
document.getElementById("alldocs").checked = true;
|
||||
else
|
||||
document.getElementById("selectws").checked = true;
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,68 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<form action="searchView.jsp" method="get" accept-charset="UTF-8" target="_self">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="searchWord"><%=ServletResources.getString("SearchExpression", request)%></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<input type="text" name="searchWord" id="searchWord" value='<%=data.getSearchWord()%>' maxlength=256 alt='<%=ServletResources.getString("SearchExpression", request)%>' title='<%=ServletResources.getString("SearchExpression", request)%>'>
|
||||
<input type="hidden" name="maxHits" value="500" >
|
||||
<input type="hidden" name="scopedSearch" value="true" >
|
||||
<input type="submit" value='<%=ServletResources.getString("GO", request)%>' alt='<%=ServletResources.getString("GO", request)%>' title='<%=ServletResources.getString("GO", request)%>'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<%=ServletResources.getString("expression_label", request)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<hr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b>
|
||||
<%=ServletResources.getString("Select", request)%>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
TocData tocData = new TocData(application, request, response);
|
||||
for (int toc=0; toc<tocData.getTocCount(); toc++)
|
||||
{
|
||||
//if(!tocData.isEnabled(toc)){
|
||||
// do not show
|
||||
// continue;
|
||||
//}
|
||||
String label = tocData.getTocLabel(toc);
|
||||
String checked="checked=\"yes\" ";
|
||||
if( data.isSearchRequest() && !data.isTocSelected(toc) ){
|
||||
checked="";
|
||||
}
|
||||
%>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<input type="checkbox" name='scope' id="checkbox<%=toc%>" value='<%=tocData.getTocHref(toc)%>' <%=checked%> alt="<%=label%>"><label for="checkbox<%=toc%>"><%=label%></label>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
@@ -0,0 +1,40 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title> Error </title>
|
||||
</head>
|
||||
<%
|
||||
String direction = "ltr";
|
||||
try{
|
||||
if(UrlUtil.isRTL(request, response)){
|
||||
direction = "rtl";
|
||||
}
|
||||
}catch(Exception e){
|
||||
}
|
||||
%>
|
||||
|
||||
<body dir="<%=direction%>">
|
||||
|
||||
<%@ page isErrorPage="true" %>
|
||||
|
||||
There was an error in your action:
|
||||
<p>
|
||||
<%= exception.toString() %>
|
||||
</P>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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 isRTL = UrlUtil.isRTL(request, response);
|
||||
String direction = isRTL?"rtl":"ltr";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!------------------------------------------------------------------------------
|
||||
! 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 Common Public License v1.0
|
||||
! which accompanies this distribution, and is available at
|
||||
! http://www.eclipse.org/legal/cpl-v10.html
|
||||
!
|
||||
! Contributors:
|
||||
! IBM Corporation - initial API and implementation
|
||||
------------------------------------------------------------------------------->
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=ServletResources.getString("Help", request)%></title>
|
||||
|
||||
</head>
|
||||
|
||||
<frameset cols="<%=isRTL?"*,300":"300,*"%>">
|
||||
<%
|
||||
if (isRTL) {
|
||||
%>
|
||||
<frame name="ContentViewFrame" title="<%=ServletResources.getString("aView", ServletResources.getString("topic", request), request)%>" src='<%=data.getContentURL()%>' marginwidth="5" marginheight="5">
|
||||
<frame name="ViewsFrame" title="<%=ServletResources.getString("ignore", "ViewsFrame", request)%>" src='<%="view.jsp?view="+data.getVisibleView()+"&"+request.getQueryString()%>' marginwidth="0" marginheight="0" scrolling="no">
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
<frame name="ViewsFrame" title="<%=ServletResources.getString("ignore", "ViewsFrame", request)%>" src='<%="view.jsp?view="+data.getVisibleView()+"&"+request.getQueryString()%>' marginwidth="0" marginheight="0" scrolling="no">
|
||||
<frame name="ContentViewFrame" title="<%=ServletResources.getString("aView", ServletResources.getString("topic", request), request)%>" src='<%=data.getContentURL()%>' marginwidth="5" marginheight="5">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 595 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 581 B |
|
After Width: | Height: | Size: 315 B |
@@ -0,0 +1,37 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
%>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title><%=data.getWindowTitle()%></title>
|
||||
<jsp:include page="livehelp_js.jsp"/>
|
||||
</head>
|
||||
|
||||
<frameset rows="<%="0".equals(data.getBannerHeight())?"":data.getBannerHeight()+","%>45,*">
|
||||
<%
|
||||
if(!("0".equals(data.getBannerHeight()))){
|
||||
%>
|
||||
<frame name="BannerFrame" title="<%=ServletResources.getString("Banner", request)%>" src='<%=data.getBannerURL()%>' marginwidth="0" marginheight="0" scrolling="no" frameborder="no" noresize>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<frame name="TabsFrame" title="<%=ServletResources.getString("helpToolbarFrame", request)%>" src='<%="basic/tabs.jsp"+data.getQuery()%>' marginwidth="5" marginheight="5" scrolling="no">
|
||||
<frame name="HelpFrame" title="<%=ServletResources.getString("ignore", "HelpFrame", request)%>" src='<%="basic/help.jsp"+data.getQuery()%>' frameborder="no" marginwidth="0" marginheight="0" scrolling="no">
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
|
||||
<jsp:include page="toolbar.jsp">
|
||||
<jsp:param name="view" value="links"/>
|
||||
</jsp:include>
|
||||
@@ -0,0 +1,67 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-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>
|
||||
|
||||
<base target="ContentViewFrame">
|
||||
</head>
|
||||
|
||||
|
||||
<body dir="<%=direction%>" bgcolor="<%=prefs.getBasicViewBackground()%>">
|
||||
|
||||
<%
|
||||
if(!data.isLinksRequest()) {
|
||||
out.write(ServletResources.getString("pressF1", request));
|
||||
} else if (data.getLinksCount() == 0){
|
||||
out.write(ServletResources.getString("Nothing_found", null));
|
||||
} else {
|
||||
%>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
|
||||
<%
|
||||
for (int link = 0; link < data.getLinksCount(); link++)
|
||||
{
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td align='<%=isRTL?"right":"left"%>' nowrap>
|
||||
<a href='<%=data.getTopicHref(link)%>'>
|
||||
<img src="<%=prefs.getImagesDirectory()%>/topic.gif" alt="" border=0>
|
||||
<%=data.getTopicLabel(link)%>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
</table>
|
||||
|
||||
<%
|
||||
|
||||
}
|
||||
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,63 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ page import="org.eclipse.help.internal.webapp.data.*" errorPage="/basic/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);
|
||||
if(data.getMode() == RequestData.MODE_INFOCENTER){
|
||||
%>
|
||||
alert("<%=UrlUtil.JavaScriptEncode(ServletResources.getString("noLiveHelpInInfocenter", 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;
|
||||
if(window.encodeURIComponent){
|
||||
encodedArg=encodeURIComponent(argument);
|
||||
}else{
|
||||
encodedArg=escape(argument);
|
||||
}
|
||||
url=url+"livehelp/?pluginID="+pluginId+"&class="+className+"&arg="+encodedArg+"&nocaching="+Math.random();
|
||||
|
||||
var tabsFrame = topHelpWindow.TabsFrame;
|
||||
if (!tabsFrame){
|
||||
return;
|
||||
}
|
||||
if(tabsFrame.liveHelpFrame){
|
||||
tabsFrame.liveHelpFrame.location=url;
|
||||
} else if(tabsFrame.document && tabsFrame.document.liveHelpFrame){
|
||||
tabsFrame.document.liveHelpFrame.src=url;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
function showTopicInContentsInternal(topHelpWindow, topic) {
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,16 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
|
||||
|
||||
<jsp:include page="toolbar.jsp">
|
||||
<jsp:param name="view" value="search"/>
|
||||
</jsp:include>
|
||||
@@ -0,0 +1,104 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
<%
|
||||
SearchData data = new SearchData(application, request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
LayoutData ldata = new LayoutData(application,request, response);
|
||||
%>
|
||||
|
||||
<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">
|
||||
|
||||
<%
|
||||
if (data.isProgressRequest()) {
|
||||
%>
|
||||
<meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=<%="searchView.jsp?"+request.getQueryString()%>">
|
||||
<%
|
||||
}
|
||||
%>
|
||||
|
||||
<title><%=ServletResources.getString("SearchResults", request)%></title>
|
||||
<base target="ContentViewFrame">
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" bgcolor="<%=prefs.getBasicViewBackground()%>">
|
||||
<%
|
||||
if (data.isProgressRequest()) {
|
||||
%>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<%=ServletResources.getString("Indexing", request)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<%=data.getIndexedPercentage()%>% <%=ServletResources.getString("complete", request)%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br>
|
||||
<%=ServletResources.getString("IndexingPleaseWait", request)%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<%
|
||||
return;
|
||||
} else {
|
||||
%>
|
||||
<%@ include file="advanced.inc"%>
|
||||
<%
|
||||
if (data.isSearchRequest()) {
|
||||
if (data.getResultsCount() == 0){
|
||||
out.write(ServletResources.getString("Nothing_found", request));
|
||||
} else {
|
||||
%>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<%
|
||||
//boolean disabledSearchResults = false;
|
||||
for (int topic = 0; topic < data.getResultsCount(); topic++){
|
||||
// if(!data.isEnabled(topic)){
|
||||
// continue;
|
||||
// }
|
||||
%>
|
||||
<tr>
|
||||
<td align='<%=isRTL?"left":"right"%>'><%=data.getTopicScore(topic)%></td>
|
||||
<td align='<%=isRTL?"right":"left"%>' nowrap>
|
||||
|
||||
<a <%=("a"+topic).equals(data.getSelectedTopicId())?" name=\"selectedItem\" ":""%>
|
||||
href='<%=data.getTopicHref(topic)%>'
|
||||
title="<%=data.getTopicTocLabel(topic)%>">
|
||||
<%=data.getTopicLabel(topic)%>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</table>
|
||||
<%
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
<%--
|
||||
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 Common Public License v1.0
|
||||
which accompanies this distribution, and is available at
|
||||
http://www.eclipse.org/legal/cpl-v10.html
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
--%>
|
||||
<%@ include file="header.jsp"%>
|
||||
<%
|
||||
LayoutData data = new LayoutData(application,request, response);
|
||||
WebappPreferences prefs = data.getPrefs();
|
||||
View[] views = data.getViews();
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title><%=ServletResources.getString("Tabs", request)%></title>
|
||||
|
||||
<base target="ViewsFrame">
|
||||
<SCRIPT TYPE="text/javascript">
|
||||
<!--
|
||||
function resynch()
|
||||
{
|
||||
var topic = parent.HelpFrame.ContentViewFrame.window.location.href;
|
||||
// remove the query, if any
|
||||
var i = topic.indexOf('?');
|
||||
if (i != -1)
|
||||
topic = topic.substring(0, i);
|
||||
// remove the fragment, if any
|
||||
var i = topic.indexOf('#');
|
||||
if (i != -1)
|
||||
topic = topic.substring(0, i);
|
||||
parent.HelpFrame.ViewsFrame.location="view.jsp?view=toc&topic="+topic;
|
||||
}
|
||||
//-->
|
||||
</SCRIPT>
|
||||
</head>
|
||||
|
||||
<body dir="<%=direction%>" bgcolor="<%=prefs.getBasicToolbarBackground()%>" link="#0000FF" vlink="#0000FF" alink="#0000FF">
|
||||
<table align="<%=isRTL?"right":"left"%>" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
|
||||
<%
|
||||
for (int i=0; i<views.length; i++)
|
||||
{
|
||||
// do not show booksmarks view
|
||||
if("bookmarks".equals(views[i].getName())){
|
||||
continue;
|
||||
}
|
||||
|
||||
// search view is not called "advanced view"
|
||||
String title = ServletResources.getString(views[i].getName(), request);
|
||||
if("search".equals(views[i].getName())){
|
||||
title=ServletResources.getString("Search", request);
|
||||
}
|
||||
|
||||
String viewHref="view.jsp?view="+views[i].getName();
|
||||
// always pass query string to "links view"
|
||||
if("links".equals(views[i].getName())){
|
||||
viewHref=viewHref+(request.getQueryString()!=null?"&"+request.getQueryString():"");
|
||||
}
|
||||
|
||||
%>
|
||||
<td nowrap>
|
||||
<b>
|
||||
<a href='<%=viewHref%>' >
|
||||
<img alt="<%=title%>"
|
||||
title="<%=title%>"
|
||||
src="<%=views[i].getOnImage()%>" border=0>
|
||||
|
||||
<%=title%>
|
||||
</a>
|
||||
|
||||
</b>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<SCRIPT TYPE="text/javascript">
|
||||
<!--
|
||||
document.write("<table align=\"<%=isRTL?"left":"right"%>\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap><b><a href='javascript:parent.parent.TabsFrame.resynch();' >");
|
||||
document.write("<img alt=\"\" title=\"<%=ServletResources.getString("Synch", request)%>\" src=\"images/e_synch_toc_nav.gif\" border=0> ");
|
||||
document.write("<%=ServletResources.getString("shortSynch", request)%></a> </b></td></tr></table>");
|
||||
//-->
|
||||
</SCRIPT>
|
||||
|
||||
<iframe name="liveHelpFrame" title="<%=ServletResources.getString("ignore", "liveHelpFrame", request)%>" frameborder="no" width="0" height="0" scrolling="no">
|
||||
<layer name="liveHelpFrame" frameborder="no" width="0" height="0" scrolling="no"></layer>
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||