Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-03-12 13:27:25 -0500
committerrescobar2010-03-12 13:27:25 -0500
commit205aa057fa925d37a3a5375aa8418b9567e99c6d (patch)
treed33f80b9f727c479b8031aeb352494c38ad9878d /plugins/org.eclipse.osee.framework.help.ui
parent0e6d2b595cfb4d54eccdf3479e7c5d74d9c736a5 (diff)
downloadorg.eclipse.osee-205aa057fa925d37a3a5375aa8418b9567e99c6d.tar.gz
org.eclipse.osee-205aa057fa925d37a3a5375aa8418b9567e99c6d.tar.xz
org.eclipse.osee-205aa057fa925d37a3a5375aa8418b9567e99c6d.zip
Diffstat (limited to 'plugins/org.eclipse.osee.framework.help.ui')
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/.classpath7
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/.project28
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/META-INF/MANIFEST.MF9
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/about.html27
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/build-helper.xml73
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/build.properties12
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/contexts/contexts.xml136
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/customBuildCallbacks.xml161
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/css/overview.css15
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/css/tutorials.css15
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/css/whatsnew.css7
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/overviewExtensionContent.xml20
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/tutorialsExtensionContent.xml26
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/intro/whatsnewExtensionContent.xml18
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/plugin.xml58
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/ant.setup.txt13
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/home.gifbin0 -> 582 bytes
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/next.gifbin0 -> 327 bytes
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/prev.gifbin0 -> 327 bytes
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/extract-markup.xsl9
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml117
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OSEEWikiImageFetcher.java151
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OseeGet.java35
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties2
-rw-r--r--plugins/org.eclipse.osee.framework.help.ui/toc.xml44
26 files changed, 990 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.help.ui/.classpath b/plugins/org.eclipse.osee.framework.help.ui/.classpath
new file mode 100644
index 0000000000..8a8f1668cd
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/.project b/plugins/org.eclipse.osee.framework.help.ui/.project
new file mode 100644
index 0000000000..4eb7e0423e
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.framework.help.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.osee.framework.help.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..34505109b5
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Mon Apr 20 17:59:14 MST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/plugins/org.eclipse.osee.framework.help.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.help.ui/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..a36f7da356
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: org.eclipse.osee.framework.help.ui
+Bundle-SymbolicName: org.eclipse.osee.framework.help.ui;singleton:=true
+Bundle-Version: 0.9.2.qualifier
+Bundle-Vendor: %Bundle-Vendor
+Require-Bundle: org.apache.ant;bundle-version="1.7.0";resolution:=optional
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
diff --git a/plugins/org.eclipse.osee.framework.help.ui/about.html b/plugins/org.eclipse.osee.framework.help.ui/about.html
new file mode 100644
index 0000000000..a96ffa40a2
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/about.html
@@ -0,0 +1,27 @@
+<!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>June 25, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml b/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml
new file mode 100644
index 0000000000..ab0f0a6e5b
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/build-helper.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="org.eclipse.osee.framework.help.ui" basedir="."
+ default="all">
+ <property name="osee.base.help.plugin" value="." />
+ <property name="ant.file.imported" value="${osee.base.help.plugin}/scripts" />
+ <import file="${ant.file.imported}/help-build-common.xml" />
+
+ <description>
+ Generate Eclipse help content for the OSEE user guide
+ </description>
+
+ <property name="osee.help.doc.url.base" value="http://wiki.eclipse.org" />
+ <property name="osee.help.userguide.folder" value="userguide" />
+ <property name="osee.help.image.folder" value="images" />
+
+ <property name="osee.help.doc.intro" value="OSEE/Users_Guide/Getting_Started" />
+ <property name="osee.help.doc.concepts" value="OSEE/Users_Guide/Concepts" />
+ <property name="osee.help.doc.features" value="OSEE/Users_Guide/Features" />
+ <property name="osee.help.doc.tips" value="OSEE/Users_Guide/Tips" />
+ <property name="osee.help.doc.new" value="OSEE/Users_Guide/New" />
+ <property name="osee.help.doc.update" value="OSEE/Users_Guide/Update" />
+
+ <property name="osee.help.intro.file.name" value="OSEE Intro" />
+ <property name="osee.help.concepts.file.name" value="OSEE Concepts" />
+ <property name="osee.help.features.file.name" value="OSEE Features" />
+ <property name="osee.help.tips.file.name" value="OSEE Tips" />
+ <property name="osee.help.new.file.name" value="OSEE New" />
+ <property name="osee.help.update.file.name" value="OSEE Update" />
+
+ <target name="all"
+ description="Generate Eclipse help content for the OSEE user guide">
+ <sequential>
+ <delete>
+ <fileset dir="userguide" />
+ </delete>
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.features}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.features}"
+ help.doc.filenameNoExtension="${osee.help.features.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.intro}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.intro}"
+ help.doc.filenameNoExtension="${osee.help.intro.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.concepts}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.concepts}"
+ help.doc.filenameNoExtension="${osee.help.concepts.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.tips}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.tips}"
+ help.doc.filenameNoExtension="${osee.help.tips.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.new}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.new}"
+ help.doc.filenameNoExtension="${osee.help.new.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+
+ <eclipse-wiki-to-help help.doc.url.base="${osee.help.doc.url.base}"
+ wiki.url.base="${osee.help.doc.url.base}/OSEE" help.doc.url.html="${osee.help.doc.url.base}/${osee.help.doc.update}"
+ help.doc.url.xml="${osee.help.doc.url.base}/Special:Export/${osee.help.doc.update}"
+ help.doc.filenameNoExtension="${osee.help.update.file.name}"
+ help.imagefolder="${osee.help.image.folder}" targetfolder="userguide" />
+ </sequential>
+ </target>
+</project>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/build.properties b/plugins/org.eclipse.osee.framework.help.ui/build.properties
new file mode 100644
index 0000000000..903d50b571
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/build.properties
@@ -0,0 +1,12 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ userguide/,\
+ intro/,\
+ images/,\
+ cheatsheets/,\
+ about.html,\
+ toc.xml,\
+ scripts/
diff --git a/plugins/org.eclipse.osee.framework.help.ui/contexts/contexts.xml b/plugins/org.eclipse.osee.framework.help.ui/contexts/contexts.xml
new file mode 100644
index 0000000000..2af787a59f
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/contexts/contexts.xml
@@ -0,0 +1,136 @@
+<contexts>
+ <context id="table_customization" title="Table Customization">
+ <description>Allows the table to be customized, saved and loaded.</description>
+ <topic label="Table Customization" href="userguide/OSEE Features.html#Table_Customizations"/>
+ </context>
+ <context id="mass_artifact_editor" title="Mass Artifact Editor">
+ <description>Allows viewing and editing of attributes from multiple artifacts.</description>
+ <topic label="Mass Artifact Editor" href="userguide/OSEE Features.html#Mass_Artifact_Editor"/>
+ <topic label="Table Customization" href="userguide/OSEE Features.html#Table_Customizations"/>
+ <topic label="Table Customization" href="userguide/OSEE Features.html#Table_Customizations"/>
+ </context>
+
+ <context id="artifact_editor" title="Artifact Editor">
+ <description>Artifact Editor</description>
+ <topic href="userguide/Views-and-Editors.html#Artifact Editor" label="Details"/>
+<!-- <topic href="reference/creating_new_links.html" label="Creating a new Link"/>
+ <topic href="reference/reorder_links.html" label="Reordering links"/>
+ <topic label="Report a bug" href="../osee.ats/reference/report_a_bug.html"/>-->
+ </context>
+
+ <context id="artifact_explorer_tree" title="Artifact Explorer">
+ <description>Displays artifacts in a relational hierarchy for navigation.</description>
+ <topic href="userguide/Views-and-Editors.html#Artifact Explorer View" label="Details"/>
+<!-- <topic label="Report a bug" href="../osee.ats/reference/report_a_bug.html"/>-->
+ </context>
+
+ <context id="xResultView" title="Result View">
+ <description>Show reports, errors, metrics and other data in a multi-paged view with print, email and exporting capabilities.</description>
+ <topic href="userguide/Views-and-Editors.html#Result View" label="Result View"/>
+ </context>
+
+<!--
+ <context id="oseeBranchGraph" title="OSEE Branch Graph">
+ <description>Shows a graphical representation of branches in the system</description>
+ <topic href="help/oseeBranchGraph.html" label="OSEE Branch Graph"/>
+ </context>
+-->
+<!--
+ <context id="oseeDataModelEditor" title="OSEE Data Model Editor">
+ <description>Create and modify OSEE Data Types</description>
+ <topic href="help/oseeDataModelEditor.html" label="OSEE Data Model Editor"/>
+ </context>
+-->
+<!-- <context id="artifact_editor" title="Artifact Editor">
+ <description>Artifact Editor</description>
+ <topic href="reference/creating_new_links.html" label="Creating a new Link"/>
+ <topic href="reference/reorder_links.html" label="Reordering links"/>
+ <topic label="Report a bug" href="../osee.ats/reference/report_a_bug.html"/>
+ </context>
+ <context id="artifact_explorer_tree" title="Artifact Explorer">
+ <description>Displays artifacts in a relational hierarchy for navigation.</description>
+ <topic href="reference/artifact_explorer_tree.html" label="Drag and Drop"/>
+ <topic label="Report a bug" href="../osee.ats/reference/report_a_bug.html"/>
+ </context>
+ <context id="xResultView" title="Result View">
+ <description>Show reports, errors, metrics and other data in a multi-paged view with print, email and exporting capabilities.</description>
+ <topic href="reference/result_view.html" label="Result View"/>
+ </context>-->
+
+ <context id="table_customization" title="Table Customization">
+ <description>Allows the table to be customized, saved and loaded.</description>
+ <topic label="Table Customization" href="userguide/OSEE Features.html#Table_Customizations"/>
+ </context>
+
+ <context id="mass_artifact_editor" title="Mass Artifact Editor">
+ <description>Allows viewing and editing of attributes from multiple artifacts.</description>
+ <topic label="Mass Artifact Editor" href="userguide/OSEE Features.html#Mass_Artifact_Editor"/>
+ <topic label="Table Customization" href="userguide/OSEE Features.html#Table_Customizations"/>
+ </context>
+
+ <context id="quick_search_text" title="Quick Search">
+ <description>Provides quick access to search for artifacts</description>
+ <topic label="Quick Search" href="userguide/Views-and-Editors.html#Quick_Search_View"/>
+ </context>
+
+ <context id="query_log_table" title="Query Log">
+ <description>Displays queries that have been run, along with their run time, bind variables, and the time when they were ran. If a SQLException occurred during execution then it will also be shown.</description>
+ <topic label="Query Log" href="userguide/Views-and-Editors.html#Query Log View"/>
+ <topic label="Refreshing the log" href="userguide/Views-and-Editors.html#Refresh_Query_Log"/>
+ <topic label="Deleting the log" href="userguide/Views-and-Editors.html#Delete_Query_Log"/>
+ </context>-
+
+ <context id="oteNavigator" title="OTE Navigator">
+ <description>Shortcut view to common OTE tasks.</description>
+ <topic href="src/org/eclipse/osee/ote/ui/navigate/package.html" label="OTE Navigator"/>
+ </context>
+<!--
+ <context id="testRunView" title="Test Run View">
+ <description>View current and saved test runs.</description>
+ <topic href="help/testRunView.html" label="Test Run View"/>
+ </context>
+-->
+<!--
+ <context id="messageView" title="Message View">
+ <description>Message View</description>
+ <topic href="reference/messageView/index.html" label="Message View Overview"/>
+ <topic href="reference/messageView/watch.html" label="Watching Messages/Elements"/>
+ <topic href="reference/messageView/search.html" label="Search"/>
+ </context>
+ <context id="messageViewSearch" title="Search">
+ <description>Message View Search</description>
+ <topic href="reference/messageView/search.html" label="Search"/>
+ <topic href="reference/messageView/index.html" label="Message View Overview"/>
+ </context>
+ <context id="messageViewWatch" title="Watch">
+ <description>Message View Right-Click Menu</description>
+ <topic href="reference/messageView/watch.html" label="Watching Messages/Elements"/>
+ <topic href="reference/messageView/index.html" label="Message View Overview"/>
+ </context>
+
+ <context id="messageWatch" title="Message Watch">
+ <description>Message View Right-Click Menu</description>
+ <topic href="reference/messageWatch/index.html" label="Message Watch Overview"/>
+ <topic href="reference/messageWatch/sort.html" label="Sorting the Table"/>
+ <topic href="reference/messageWatch/read_vs_write.html" label="Reader vs. Writer"/>
+ <topic href="reference/messageWatch/set.html" label="Set Value"/>
+ <topic href="reference/messageWatch/add.html" label="Add Elements"/>
+ <topic href="reference/messageWatch/remove.html" label="Removing Items"/>
+ </context>-->
+
+ <!--
+ <context id="muxView" title="Mux View">
+ <description>Mux View</description>
+ <topic href="help/package.html" label="Mux View"/>
+ </context>
+ -->
+ <!--
+ <context id="artifact_explorer_tree_viewer" title="Artifact Explorer">
+ <description>Displays artifacts in a relational hierarchy for navigation.</description>
+ <topic href="reference/creating_new_artifact.html" label="Creating a new artifact"/>
+ <topic href="reference/deleting_artifacts.html" label="Deleting artifacts"/>
+ <topic href="reference/go_into.html" label="Rooting on an artifact"/>
+ <topic label="Report a bug" href="../org.eclipse.osee.ats/reference/report_a_bug.html"/>
+ </context>
+-->
+</contexts> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/customBuildCallbacks.xml b/plugins/org.eclipse.osee.framework.help.ui/customBuildCallbacks.xml
new file mode 100644
index 0000000000..26354d8105
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/customBuildCallbacks.xml
@@ -0,0 +1,161 @@
+<!-- ===================================================================== -->
+<!-- Custom targets called from a project's generated build.xml -->
+<!-- Set customBuildCallbacks=<path/to/this/file> in your build.properties.-->
+<!-- ===================================================================== -->
+<project name="Build specific targets and properties" default="noDefault">
+
+ <!-- ===================================================================== -->
+ <!-- Default target -->
+ <!-- ===================================================================== -->
+ <target name="noDefault">
+ <echo message="This file must be called with explicit targets" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target build.jars -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder to contain the build results -->
+ <!-- ===================================================================== -->
+ <target name="pre.build.jars">
+ <!-- automatic generation of the user guide is disabled, see bug 242979
+ <ant antfile="build-helper.xml" target="all"/>
+ -->
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target build.jars -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder to contain the build results -->
+ <!-- ===================================================================== -->
+ <target name="post.build.jars">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target build.sources -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder to contain the build results -->
+ <!-- ===================================================================== -->
+ <target name="pre.build.sources">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target build.sources -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder to contain the build results -->
+ <!-- ===================================================================== -->
+ <target name="post.build.sources">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the compilation target <name> -->
+ <!-- Substitute "name" with the name of the compilation target, eg @dot -->
+ <!-- Available parameters : -->
+ <!-- source.foldern : n = 1 ... N, the source folders -->
+ <!-- target.folder : where the results of the compilation go -->
+ <!-- <name>.classpath : name = name of the compilation target. A -->
+ <!-- reference to the classpath structure. -->
+ <!-- ===================================================================== -->
+ <target name="pre.name">
+ </target>
+
+ <target name="pre.@dot">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do during the compilation target <name>, after the compile -->
+ <!-- but before jaring. Substitute "name" with the name of the compilation-->
+ <!-- target, eg @dot -->
+ <!-- Available parameters : -->
+ <!-- source.foldern : n = 1 ... N, the source folders -->
+ <!-- target.folder : where the results of the compilation go -->
+ <!-- <name>.classpath : name = name of the compilation target. A -->
+ <!-- reference to the classpath structure. -->
+ <!-- ===================================================================== -->
+ <target name="post.compile.name">
+ </target>
+
+ <target name="post.compile.@dot">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the compilation target <name> -->
+ <!-- Substitute "name" with the name of the compilation target, eg @dot -->
+ <!-- Available parameters : -->
+ <!-- jar.location - the location of the compilation results -->
+ <!-- <name>.classpath : name = name of the compilation target. A -->
+ <!-- reference to the classpath structure. -->
+ <!-- ===================================================================== -->
+ <target name="post.name">
+ </target>
+
+ <target name="post.@dot">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target gather.bin.parts -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder containing the build results -->
+ <!-- target.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="pre.gather.bin.parts">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target gather.bin.parts -->
+ <!-- Available parameters : -->
+ <!-- build.result.folder - folder containing the build results -->
+ <!-- target.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="post.gather.bin.parts">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target gather.sources -->
+ <!-- Available parameters : -->
+ <!-- destination.temp.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="pre.gather.sources">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target gather.sources -->
+ <!-- Available parameters : -->
+ <!-- destination.temp.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="post.gather.sources">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target gather.logs -->
+ <!-- Available parameters : -->
+ <!-- destination.temp.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="pre.gather.logs">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target gather.logs -->
+ <!-- Available parameters : -->
+ <!-- destination.temp.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="post.gather.logs">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target clean -->
+ <!-- Available parameters : -->
+ <!-- destination.temp.folder - destination folder -->
+ <!-- ===================================================================== -->
+ <target name="pre.clean">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the target clean -->
+ <!-- Available parameters : -->
+ <!-- plugin.destination - final destination of the build -->
+ <!-- build.result.folder - results of the compilation -->
+ <!-- temp.folder - temporary folder -->
+ <!-- ===================================================================== -->
+ <target name="post.clean">
+ </target>
+</project>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/css/overview.css b/plugins/org.eclipse.osee.framework.help.ui/intro/css/overview.css
new file mode 100644
index 0000000000..52d9c82061
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/css/overview.css
@@ -0,0 +1,15 @@
+a#osee-overview img {
+ background-image: url(../../images/topiclabel/ov_mylyn48.gif);
+}
+
+a#osee-overview:hover img {
+ background-image: url(../../images/topiclabel/ov_mylyn48_hov.gif);
+}
+
+a#osee-legend img {
+ background-image: url(../../images/topiclabel/ov_legend48.gif);
+}
+
+a#osee-legend:hover img {
+ background-image: url(../../images/topiclabel/ov_legend48_hov.gif);
+}
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/css/tutorials.css b/plugins/org.eclipse.osee.framework.help.ui/intro/css/tutorials.css
new file mode 100644
index 0000000000..63473ab091
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/css/tutorials.css
@@ -0,0 +1,15 @@
+a#osee-query img {
+ background-image: url(../../images/topiclabel/tu_query48.gif);
+}
+
+a#osee-query:hover img {
+ background-image: url(../../images/topiclabel/tu_query48_hov.gif);
+}
+
+a#osee-task img {
+ background-image: url(../../images/topiclabel/tu_task48.gif);
+}
+
+a#osee-task:hover img {
+ background-image: url(../../images/topiclabel/tu_task48_hov.gif);
+}
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/css/whatsnew.css b/plugins/org.eclipse.osee.framework.help.ui/intro/css/whatsnew.css
new file mode 100644
index 0000000000..ae896067fa
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/css/whatsnew.css
@@ -0,0 +1,7 @@
+a#osee-noteworthy img {
+ background-image: url(../../images/topiclabel/wn_mylyn48.gif);
+}
+
+a#osee-noteworthy :hover img {
+ background-image: url(../../images/topiclabel/wn_mylyn48_hov.gif);
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/overviewExtensionContent.xml b/plugins/org.eclipse.osee.framework.help.ui/intro/overviewExtensionContent.xml
new file mode 100644
index 0000000000..80e0274099
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/overviewExtensionContent.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<introContent>
+ <extensionContent id="org.eclipse.osee" name="OSEE"
+ style="css/overview.css" path="overview/@">
+ <group id="content-group" style-id="content-group">
+ <!--
+ <link label="OSEE"
+ url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.osee.framework.help.ui/doc/overview.html"
+ id="osee-overview" style-id="content-link">
+ <text>Learn more about how OSEE will help you manage your project</text>
+ </link>
+ -->
+ <link label="OSEE"
+ url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.osee.framework.help.ui&amp;class=org.eclipse.mylyn.internal.tasks.ui.actions.ShowTasksUiLegendAction&amp;id=org.eclipse.mylyn.doc.legend.show.action"
+ id="osee-overview" style-id="content-link">
+ <text>See the OSEE Define Perspective</text>
+ </link>
+ </group>
+ </extensionContent>
+</introContent>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/tutorialsExtensionContent.xml b/plugins/org.eclipse.osee.framework.help.ui/intro/tutorialsExtensionContent.xml
new file mode 100644
index 0000000000..048683934a
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/tutorialsExtensionContent.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <extensionContent id="org.eclipse.osee" name="OSEE"
+ style="css/tutorials.css" path="tutorials/@">
+ <group label="Task-focused programming" id="OSEE" style-id="content-group">
+ <link
+ url="http://org.eclipse.ui.intro/showStandby?partId=org.eclipse.platform.cheatsheet&amp;input=org.eclipse.mylyn.cheatsheet.query"
+ label="Use the Task List" id="mylyn-query" style-id="content-link">
+ <text>Learn how to create tasks and task repository queries</text>
+ </link>
+ <link
+ url="http://www.eclipse.org/mylyn/start/"
+ label="Visit the Mylyn homepage" id="mylyn-task" style-id="content-link">
+ <text>Learn about the benefits of task-focused programming with Mylyn</text>
+ </link>
+ </group>
+ </extensionContent>
+</introContent>
+
+<!--
+<link
+ url="http://org.eclipse.ui.intro/showStandby?partId=org.eclipse.platform.cheatsheet&amp;input=org.eclipse.mylyn.cheatsheet.taskfocus"
+ label="Focus on Java" id="osee-task" style-id="content-link">
+ <text>Learn how to reduce information overload and multitask with ease.</text>
+</link>
+-->
diff --git a/plugins/org.eclipse.osee.framework.help.ui/intro/whatsnewExtensionContent.xml b/plugins/org.eclipse.osee.framework.help.ui/intro/whatsnewExtensionContent.xml
new file mode 100644
index 0000000000..6bfef0c7dd
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/intro/whatsnewExtensionContent.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <extensionContent id="org.eclipse.osee" name="OSEE"
+ style="css/whatsnew.css" path="whatsnew/@">
+ <group id="content-group" style-id="content-group">
+ <link label="OSEE" url="http://www.eclipse.org/osee/new/" id="osee-noteworthy"
+ style-id="content-link">
+ <text>
+ Find out the significant changes made to OSEE
+ </text>
+ </link>
+ </group>
+ </extensionContent>
+</introContent>
+
+ <!--
+ url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.osee.framework.ui.help/doc/new.html"
+ --> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/plugin.xml b/plugins/org.eclipse.osee.framework.help.ui/plugin.xml
new file mode 100644
index 0000000000..1c4222d408
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/plugin.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ id="org.eclipse.osee.framework.help.ui.docs"
+ name="OSEE"
+ point="org.eclipse.help.toc">
+ <toc
+ file="toc.xml"
+ primary="true">
+ </toc>
+ <toc
+ file="userguide/OSEE Features-toc.xml"
+ primary="false">
+ </toc>
+ <toc
+ file="userguide/OSEE Intro-toc.xml"
+ primary="false">
+ </toc>
+ <toc
+ file="userguide/OSEE Concepts-toc.xml"
+ primary="false">
+ </toc>
+ <toc
+ file="userguide/OSEE Tips-toc.xml"
+ primary="false">
+ </toc>
+ <toc
+ file="userguide/OSEE New-toc.xml"
+ primary="false">
+ </toc>
+ <toc
+ file="userguide/OSEE Update-toc.xml"
+ primary="false">
+ </toc>
+ </extension>
+ <extension
+ point="org.eclipse.ui.intro.configExtension">
+ <configExtension
+ configId="org.eclipse.ui.intro.universalConfig"
+ content="$nl$/intro/overviewExtensionContent.xml">
+ </configExtension>
+ <configExtension
+ configId="org.eclipse.ui.intro.universalConfig"
+ content="$nl$/intro/whatsnewExtensionContent.xml">
+ </configExtension>
+ <configExtension
+ configId="org.eclipse.ui.intro.universalConfig"
+ content="$nl$/intro/tutorialsExtensionContent.xml">
+ </configExtension>
+ </extension>
+ <extension
+ point="org.eclipse.help.contexts">
+ <contexts
+ file="contexts/contexts.xml">
+ </contexts>
+ </extension>
+</plugin>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/ant.setup.txt b/plugins/org.eclipse.osee.framework.help.ui/scripts/ant.setup.txt
new file mode 100644
index 0000000000..fcc3695d55
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/ant.setup.txt
@@ -0,0 +1,13 @@
+Right-click on build-helper.xml file and select Debug As->Ant Build....
+
+From the dialog set the following:
+ 1. Classpath Tab-> Add External JARs
+ org.eclipse.mylyn
+ org.eclipse.mylyn.wikitext.core
+ org.eclipse.mylyn.wikitext.mediawiki.core
+ org.eclipse.mylyn.wikitext.textile.core
+ org.eclipse.mylyn.wikitext.tracwiki.core
+ org.eclipse.mylyn.wikitext.twiki.core
+ org.eclipse.mylyn.wikitext.confluence.core
+
+ 2. JRE Tab ->Run in the same JRE as the workspace
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/home.gif b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/home.gif
new file mode 100644
index 0000000000..4472e8ce5b
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/home.gif
Binary files differ
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/next.gif b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/next.gif
new file mode 100644
index 0000000000..e2f8c3e1fe
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/next.gif
Binary files differ
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/prev.gif b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/prev.gif
new file mode 100644
index 0000000000..4fb4150103
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/commonImages/prev.gif
Binary files differ
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/extract-markup.xsl b/plugins/org.eclipse.osee.framework.help.ui/scripts/extract-markup.xsl
new file mode 100644
index 0000000000..074b846c83
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/extract-markup.xsl
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:mw="http://www.mediawiki.org/xml/export-0.3/">
+ <xsl:output method="text"/>
+
+ <xsl:template match="/">
+ <xsl:value-of select="//mw:text"/>
+ </xsl:template>
+</xsl:stylesheet>
diff --git a/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml b/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml
new file mode 100644
index 0000000000..c672258c4d
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/scripts/help-build-common.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="help.common" basedir=".">
+ <property name="extract.style.sheet" value="${ant.file.imported}${file.separator}extract-markup.xsl" />
+ <property name="mylyn.plugins.path" value="${eclipse.home}${file.separator}plugins" />
+
+ <fail message="Specify the path to mylyn wikitext jars by setting 'mylyn.plugins.path'">
+ <condition>
+ <not>
+ <isset property="mylyn.plugins.path" />
+ </not>
+ </condition>
+ </fail>
+
+ <taskdef resource="org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties">
+ <classpath>
+ <pathelement path="${classpath}" />
+ <pathelement location="../org.eclipse.osee.framework.help.ui/@dot" />
+ <pathelement location="../org.eclipse.osee.framework.help.ui/bin" />
+ </classpath>
+ </taskdef>
+
+ <taskdef resource="org/eclipse/mylyn/wikitext/core/util/anttask/tasks.properties">
+ <classpath>
+ <pathelement path="${classpath}" />
+ <fileset dir="${mylyn.plugins.path}" includes="org.eclipse.mylyn.wikitext.core_*.jar" />
+ <fileset dir="${mylyn.plugins.path}" includes="org.eclipse.mylyn.wikitext.mediawiki.core_*.jar" />
+ </classpath>
+ </taskdef>
+
+ <target name="init">
+ <mkdir dir="tmp" />
+ </target>
+
+ <target name="clean" depends="init">
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="tmp" />
+ </delete>
+ </target>
+
+ <macrodef name="eclipse-wiki-to-help">
+ <attribute name="help.doc.url.base" />
+ <attribute name="wiki.url.base" />
+ <attribute name="help.doc.url.html" />
+ <attribute name="help.doc.url.xml" />
+ <attribute name="help.doc.filenameNoExtension" />
+ <attribute name="help.imageFolder" />
+ <attribute name="targetFolder" />
+
+ <sequential>
+ <antcall target="init" />
+ <osee-get dest="tmp/help.doc.xml" src="@{help.doc.url.xml}" />
+ <osee-get dest="tmp/help.doc.html" src="@{help.doc.url.html}" />
+
+ <copy todir="tmp">
+ <fileset dir="images" />
+ </copy>
+ <osee-mediawiki-fetch-images src="tmp/help.doc.html" dest="tmp/" base="@{help.doc.url.base}" />
+
+ <xslt style="${extract.style.sheet}" in="tmp/help.doc.xml" out="tmp/@{help.doc.filenameNoExtension}.mediawiki" />
+
+ <wikitext-to-eclipse-help markupLanguage="org.eclipse.mylyn.wikitext.mediawiki.core.MediaWikiLanguage" multipleOutputFiles="true" navigationImages="true" helpPrefix="@{targetFolder}" internallinkpattern="@{wiki.url.base}/{0}" validate="true" failonvalidationerror="true" prependImagePrefix="@{help.imageFolder}" formatoutput="true">
+ <!--defaultAbsoluteLinkTarget="osee_external"-->
+ <fileset dir="tmp" includes="**/*.mediawiki" />
+ <stylesheet url="book.css" />
+ </wikitext-to-eclipse-help>
+
+ <mkdir dir="@{targetFolder}/@{help.imageFolder}" />
+ <copy todir="@{targetFolder}/@{help.imageFolder}" overwrite="true">
+ <fileset dir="tmp">
+ <exclude name="*.html" />
+ <exclude name="*.mediawiki" />
+ <exclude name="*.xml" />
+ <exclude name="*.dtd" />
+ </fileset>
+ </copy>
+ <copy todir="@{targetFolder}" overwrite="true">
+ <fileset dir="tmp">
+ <include name="*.html" />
+ <include name="*toc.xml" />
+ <exclude name="help.doc.html" />
+ </fileset>
+ </copy>
+ <mkdir dir="@{targetFolder}/@{help.imageFolder}/@{help.imageFolder}" />
+ <copy todir="@{targetFolder}/@{help.imageFolder}/@{help.imageFolder}" overwrite="true">
+ <fileset dir="${ant.file.imported}/commonImages" />
+ </copy>
+ <antcall target="test" />
+ <antcall target="clean" />
+ </sequential>
+ </macrodef>
+
+
+ <target name="test" depends="init" description="verify that all of the HTML files are well-formed XML">
+ <echo level="info">
+ Validating help content XML and HTML files: The Eclipse help system expects well-formed XML.
+ If validation fails it is because either:
+ * the userguide source code is poorly formed, or
+ * the WikiText MediaWiki parser has a bug
+
+ Problems with userguide source are usually caused by improper use of HTML markup in the MediaWiki source,
+ or inadvertently starting a line with a space character (in MediaWiki this starts a preformatted block).
+ </echo>
+
+ <!--Don't bother with DTD validation: we only care if the files are well-formed. We therefore provide an empty DTD-->
+
+ <echo file="tmp/__empty.dtd" message="" />
+ <xmlvalidate lenient="true">
+ <fileset dir="userguide">
+ <include name="**/*.xml" />
+ </fileset>
+ <fileset dir="userguide">
+ <include name="**/*.html" />
+ </fileset>
+ <dtd publicid="-//W3C//DTD XHTML 1.0 Transitional//EN" location="${basedir}/tmp/__empty.dtd" />
+ </xmlvalidate>
+ </target>
+</project> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OSEEWikiImageFetcher.java b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OSEEWikiImageFetcher.java
new file mode 100644
index 0000000000..19528265cc
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OSEEWikiImageFetcher.java
@@ -0,0 +1,151 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Boeing
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ * adapted from org.eclipse.mylyn.help.ui.internal.anttask.MediaWikiImageFetcher.java by David Green
+ *******************************************************************************/
+
+package org.eclipse.osee.framework.help.ui.internal.anttask;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.Reader;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Project;
+import org.apache.tools.ant.Task;
+import org.apache.tools.ant.taskdefs.Get;
+
+/**
+ * Fetch images from a MediaWiki- generated HTML page source
+ *
+ * @author Ryan Schmitt
+ */
+public class OSEEWikiImageFetcher extends Task {
+
+ private String base;
+
+ private File dest;
+
+ private File src;
+
+ @Override
+ public void execute() throws BuildException {
+ if (dest == null) {
+ throw new BuildException("Must specify @dest"); //$NON-NLS-1$
+ }
+ if (!dest.exists()) {
+ throw new BuildException("@dest does not exist: " + dest); //$NON-NLS-1$
+ }
+ if (!dest.isDirectory()) {
+ throw new BuildException("@dest is not a directory: " + dest); //$NON-NLS-1$
+ }
+ if (src == null) {
+ throw new BuildException("Must specify @src"); //$NON-NLS-1$
+ }
+ if (!src.exists()) {
+ throw new BuildException("@src does not exist: " + src); //$NON-NLS-1$
+ }
+ if (!src.isFile()) {
+ throw new BuildException("@src is not a file: " + src); //$NON-NLS-1$
+ }
+ if (base == null) {
+ throw new BuildException("Must specify @base"); //$NON-NLS-1$
+ }
+ if (base.endsWith("/")) { //$NON-NLS-1$
+ base = base.substring(0, base.length() - 1);
+ }
+ Pattern fragmentUrlPattern = Pattern.compile("src=\"([^\"]+)\""); //$NON-NLS-1$
+ Pattern imagePattern = Pattern.compile("alt=\"(?:Image:)?([^\"]*)\"([^>]+)", Pattern.MULTILINE); //$NON-NLS-1$
+
+ String htmlSrc;
+ try {
+ htmlSrc = readSrc();
+ } catch (IOException e) {
+ throw new BuildException("Cannot read src: " + src + ": " + e.getMessage(), e); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ log("Parsing " + src, Project.MSG_INFO); //$NON-NLS-1$
+ int fileCount = 0;
+ Matcher imagePatternMatcher = imagePattern.matcher(htmlSrc);
+ while (imagePatternMatcher.find()) {
+ String imageFragment = imagePatternMatcher.group(2);
+
+ if (imageFragment != null) {
+ Matcher fragmentUrlMatcher = fragmentUrlPattern.matcher(imageFragment);
+ if (fragmentUrlMatcher.find()) {
+ String url = fragmentUrlMatcher.group(1);
+ String qualifiedUrl = base + url;
+ log("Fetching " + qualifiedUrl, Project.MSG_INFO); //$NON-NLS-1$
+ Get get = new Get();
+ get.setProject(getProject());
+ get.setLocation(getLocation());
+ try {
+ get.setSrc(new URL(qualifiedUrl));
+ } catch (MalformedURLException e) {
+ log("Skipping " + url + ": " + e.getMessage(), Project.MSG_WARN); //$NON-NLS-1$ //$NON-NLS-2$
+ continue;
+ }
+
+ String name = url.substring(url.lastIndexOf('/') + 1);
+ Matcher m = Pattern.compile("(\\d)+px-(.*)").matcher(name);
+ if (m.find()) {
+ name = m.group(2);
+ }
+ get.setDest(new File(dest, name));
+ get.execute();
+ ++fileCount;
+ }
+ }
+ }
+ log("Fetched " + fileCount + " image files for " + src, Project.MSG_INFO); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public String getBase() {
+ return base;
+ }
+
+ public File getDest() {
+ return dest;
+ }
+
+ public File getSrc() {
+ return src;
+ }
+
+ private String readSrc() throws IOException {
+ StringBuilder buf = new StringBuilder((int) src.length());
+ Reader reader = new BufferedReader(new FileReader(src));
+ try {
+ int i;
+ while ((i = reader.read()) != -1) {
+ buf.append((char) i);
+ }
+ } finally {
+ reader.close();
+ }
+ return buf.toString();
+ }
+
+ public void setBase(String base) {
+ this.base = base;
+ }
+
+ public void setDest(File dest) {
+ this.dest = dest;
+ }
+
+ public void setSrc(File src) {
+ this.src = src;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OseeGet.java b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OseeGet.java
new file mode 100644
index 0000000000..ce09516204
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/OseeGet.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.help.ui.internal.anttask;
+
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLConnection;
+import org.apache.tools.ant.taskdefs.Get;
+
+
+public class OseeGet extends Get {
+ @Override
+ public void execute() {
+ disableCaching();
+ super.execute();
+ }
+
+ private void disableCaching() {
+ URLConnection c;
+ try {
+ c = new URL("http://www.eclipse.org/").openConnection();
+ } catch (IOException ex) {
+ return;
+ }
+ c.setDefaultUseCaches(false);
+ }
+} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties
new file mode 100644
index 0000000000..2462c8c288
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/src/org/eclipse/osee/framework/help/ui/internal/anttask/tasks.properties
@@ -0,0 +1,2 @@
+osee-mediawiki-fetch-images=org.eclipse.osee.framework.help.ui.internal.anttask.OSEEWikiImageFetcher
+osee-get=org.eclipse.osee.framework.help.ui.internal.anttask.OseeGet \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.help.ui/toc.xml b/plugins/org.eclipse.osee.framework.help.ui/toc.xml
new file mode 100644
index 0000000000..b45987e93b
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.help.ui/toc.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?NLS TYPE="org.eclipse.help.toc"?>
+
+<toc label="OSEE User Guide">
+ <anchor id="before-reference" />
+ <topic label="Getting Started">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE Intro-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference"/>
+ </topic>
+ <topic label="Concepts">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE Concepts-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference"/>
+ </topic>
+ <topic label="Feature Reference">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE Features-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference" />
+ </topic>
+ <topic href="userguide/OSEE Tips.html" label="Tips and Tricks">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE Tips-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference"/>
+ </topic>
+ <topic href="userguide/OSEE New.html" label="What&apos;s New">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE New-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference"/>
+ </topic>
+ <topic href="userguide/OSEE Update.html" label="Updating this Document">
+ <anchor id="before-reference-content"/>
+ <link toc="userguide/OSEE Update-toc.xml"/>
+ <anchor id="after-reference-content"/>
+ <anchor id="additions-reference"/>
+ </topic>
+ <anchor id="after-reference" />
+ <anchor id="additions" />
+</toc>

Back to the top