You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/08/01 15:54:22 UTC
svn commit: r1152774 [1/6] - in /uima/sandbox/trunk/TextMarker:
org.apache.uima.tm.cev.feature/ org.apache.uima.tm.cev.html.feature/
org.apache.uima.tm.cev.html/ org.apache.uima.tm.cev.html/META-INF/
org.apache.uima.tm.cev.html/bin/ org.apache.uima.tm....
Author: joern
Date: Mon Aug 1 13:53:56 2011
New Revision: 1152774
URL: http://svn.apache.org/viewvc?rev=1152774&view=rev
Log:
UIMA-2172 Initial commit of the TextMarker contribution.
Added:
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/bin/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/htmlparser.jar (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/META-INF/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/META-INF/MANIFEST.MF (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/bin/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/build.properties (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/icons/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/icons/cevViewer.png (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/icons/edit.png (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/icons/hierarchicalLayout.gif (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/icons/views.png (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/lib/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/lib/htmlparser.jar (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/licence.txt (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/plugin.xml (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/schema/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/schema/cevArtifactViewers.exsd (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/schema/cevEditors.exsd (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/schema/cevSearchStrategies.exsd (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/schema/cevViews.exsd (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/CEVPlugin.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/artifactViewer/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/artifactViewer/ArtifactModifier.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/artifactViewer/ArtifactViewerComparator.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/artifactViewer/TextArtifactViewer.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/artifactViewer/TextArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/CEVAnnotationRanges.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/CEVData.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/CEVDocument.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/ICEVAnnotationListener.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/ICEVAnnotationSelectionListener.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/ICEVDataExtension.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/StyleMapReader.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/TextFile2String.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVAbstractTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVAnnotationOrderedRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVAnnotationOrderedTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVAnnotationTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVFSTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVFeatureTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVTreeComparator.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVTypeOrderedRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/CEVTypeTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/ICEVAnnotationNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/ICEVRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/data/tree/ICEVTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/dialog/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/dialog/CEVCollectionContentProvider.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/editor/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/editor/CEVViewer.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/editor/CEVViewerContributor.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/AbstractArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVArtifactViewer.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVEditor.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVEditorFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVExtension.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVSearchStrategy.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVSearchStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/extension/ICEVViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/CEVAnnotationFilterEditor.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/CEVPreferenceConstants.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/CEVPreferenceInitializer.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/CEVViewerAnnotationFilterPreferencePage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/preferences/CEVViewerTreeViewPreferencePage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/AllXmlInProjectStrategy.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/AllXmlInProjectStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/CEVCollectionContentProvider.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/IFileComparator.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/SelectInFolderStrategy.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/SelectInFolderStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/SingleInFolderStrategy.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/searchStrategy/SingleInFolderStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/CEVAnnotationTreeViewContentProvider.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/CEVAnnotationTreeViewDragListener.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/CEVAnnotationTreeViewLableProvider.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/CEVAnnotationTreeViewPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/CEVPageBookView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/ICEVViewPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/TextUtils.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/annotationBrowser/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/annotationBrowser/CEVAnnotationBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/annotationBrowser/CEVAnnotationBrowserView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/annotationBrowser/CEVAnnotationBrowserViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/annotationBrowser/ICEVAnnotationBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/editor/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/editor/CEVAnnotationEditorFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/editor/CEVAnnotationEditorPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/editor/CEVAnnotationEditorView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/editor/ICEVAnnotationEditorPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/fsBrowser/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/fsBrowser/CEVFSBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/fsBrowser/CEVFSBrowserView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/fsBrowser/CEVFSBrowserViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/fsBrowser/ICEVFSBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/palette/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/palette/CEVAnnotationMarkerPaletteFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/palette/CEVAnnotationMarkerPalettePage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/palette/CEVAnnotationMarkerPaletteView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/palette/ICEVAnnotationMarkerPalettePage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/selection/
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/selection/CEVSelectionPage.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/selection/CEVSelectionView.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/selection/CEVSelectionViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/src/main/java/org/apache/uima/tm/cev/views/selection/ICEVSelectionPage.java (with props)
Modified:
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/ (props changed)
uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/ (props changed)
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Aug 1 13:53:56 2011
@@ -0,0 +1 @@
+.settings
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project Mon Aug 1 13:53:56 2011
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.uima.tm.cev.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties Mon Aug 1 13:53:56 2011
@@ -0,0 +1 @@
+bin.includes = feature.xml
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml Mon Aug 1 13:53:56 2011
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="de.uniwue.tm.cev.feature"
+ label="CEV Feature"
+ version="1.0.0.qualifier"
+ provider-name="University of Würzburg">
+
+ <description url="http://tmwiki.informatik.uni-wuerzburg.de/Wiki.jsp?page=CEVInstall">
+ The CEV-feature needed for the TextMarker eclipse-plugin.
+ </description>
+
+ <copyright url="http://www.informatik.uni-wuerzburg.de/lehrstuehle/lehrstuhl_fuer_informatik_vi/startseite/">
+ Copyright (C) 2009 University of Wuerzburg
+ </copyright>
+
+ <license url="http://www.gnu.org/licenses/lgpl.html">
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+ </license>
+
+ <requires>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ <import plugin="org.eclipse.jface.text"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.ui.editors"/>
+ <import plugin="org.eclipse.ui.ide"/>
+ <import plugin="org.eclipse.ui.views"/>
+ <import plugin="org.eclipse.ui.browser"/>
+ <import plugin="org.apache.uima.runtime" version="2.3.0" match="greaterOrEqual"/>
+ </requires>
+
+ <plugin
+ id="de.uniwue.tm.cev"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.feature/feature.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Aug 1 13:53:56 2011
@@ -0,0 +1 @@
+.settings
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project Mon Aug 1 13:53:56 2011
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.uima.tm.cev.html.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties Mon Aug 1 13:53:56 2011
@@ -0,0 +1 @@
+bin.includes = feature.xml
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml Mon Aug 1 13:53:56 2011
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="de.uniwue.tm.cev.html.feature"
+ label="CEV HTML Feature"
+ version="1.0.0.qualifier"
+ provider-name="University of Würzburg">
+
+ <description url="http://tmwiki.informatik.uni-wuerzburg.de/Wiki.jsp?page=CEVInstall">
+ The CEV-feature needed for the TextMarker eclipse-plugin.
+ </description>
+
+ <copyright url="http://www.informatik.uni-wuerzburg.de/lehrstuehle/lehrstuhl_fuer_informatik_vi/startseite/">
+ Copyright (C) 2009 University of Wuerzburg
+ </copyright>
+
+ <license url="http://www.gnu.org/licenses/lgpl.html">
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+ </license>
+
+ <requires>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ <import plugin="de.uniwue.tm.cev"/>
+ <import plugin="org.apache.uima.runtime" version="2.3.0" match="greaterOrEqual"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.mozilla.xpcom"/>
+ </requires>
+
+ <plugin
+ id="de.uniwue.tm.cev.html"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html.feature/feature.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath Mon Aug 1 13:53:56 2011
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry exported="true" kind="lib" path="lib/htmlparser.jar"/>
+ <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="output" path="bin"/>
+</classpath>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.classpath
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project Mon Aug 1 13:53:56 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.uima.tm.cev.html</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>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF Mon Aug 1 13:53:56 2011
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: CEV HTML Plugin
+Bundle-SymbolicName: org.apache.uima.tm.cev.html;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.apache.uima.tm.cev.html.CEVHTMLPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.apache.uima.tm.cev,
+ org.apache.uima.runtime;bundle-version="2.3.0",
+ org.eclipse.core.resources
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Import-Package: org.mozilla.interfaces,
+ org.mozilla.xpcom
+Bundle-ClassPath: .,
+ lib/htmlparser.jar
+Export-Package: org.apache.uima.tm.cev.html,
+ org.apache.uima.tm.cev.html.artifactViewer
+Bundle-Vendor: University of Würzburg
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties Mon Aug 1 13:53:56 2011
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ lib/htmlparser.jar
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/htmlparser.jar
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/htmlparser.jar?rev=1152774&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/htmlparser.jar
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/lib/htmlparser.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml Mon Aug 1 13:53:56 2011
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.apache.uima.tm.cev.cevArtifactViewers">
+ <artifactViewer
+ factory="org.apache.uima.tm.cev.html.artifactViewer.HtmlArtifactViewerFactory"
+ id="org.apache.uima.tm.cev.artifactViewer.html"
+ priority="50">
+ </artifactViewer>
+ </extension>
+
+</plugin>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/plugin.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java Mon Aug 1 13:53:56 2011
@@ -0,0 +1,54 @@
+package org.apache.uima.tm.cev.html;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CEVHTMLPlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.apache.uima.tm.cev.html";
+
+ // The shared instance
+ private static CEVHTMLPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public CEVHTMLPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static CEVHTMLPlugin getDefault() {
+ return plugin;
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/CEVHTMLPlugin.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java Mon Aug 1 13:53:56 2011
@@ -0,0 +1,349 @@
+package org.apache.uima.tm.cev.html.artifactViewer;
+
+import java.util.LinkedList;
+
+import org.apache.uima.cas.Type;
+import org.apache.uima.tm.cev.CEVPlugin;
+import org.apache.uima.tm.cev.data.CEVData;
+import org.apache.uima.tm.cev.data.ICEVDataExtension;
+import org.apache.uima.tm.cev.data.CEVAnnotationRanges.HtmlIdInfo;
+import org.eclipse.swt.SWTError;
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.browser.ProgressEvent;
+import org.eclipse.swt.browser.ProgressListener;
+import org.htmlparser.Parser;
+import org.htmlparser.util.NodeList;
+import org.htmlparser.util.Translate;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMEventListener;
+import org.mozilla.interfaces.nsIDOMEventTarget;
+import org.mozilla.interfaces.nsIDOMHTMLDocument;
+import org.mozilla.interfaces.nsIDOMHTMLElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.interfaces.nsIDOMText;
+import org.mozilla.interfaces.nsIWebBrowser;
+
+
+public class CEVDataHtmlExtension implements ICEVDataExtension, ProgressListener {
+
+ private CEVData casData;
+
+ private Browser browser;
+
+ private nsIDOMEventListener browserListener;
+
+ public CEVDataHtmlExtension(CEVData casData) {
+ super();
+ this.casData = casData;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.swt.browser.ProgressListener#changed(org.eclipse.swt.browser .ProgressEvent)
+ */
+ public void changed(ProgressEvent event) {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.swt.browser.ProgressListener#completed(org.eclipse.swt.browser .ProgressEvent)
+ */
+ public void completed(ProgressEvent event) {
+
+ // Nach dem ersten Laden den ProgressListener wieder entfernen
+ browser.removeProgressListener(this);
+
+ // DOM holen
+ nsIWebBrowser webBrowser = (nsIWebBrowser) (browser).getWebBrowser();
+ nsIDOMDocument domDocument = webBrowser.getContentDOMWindow().getDocument();
+
+ nsIDOMHTMLDocument htmlDomDoc = (nsIDOMHTMLDocument) domDocument
+ .queryInterface(nsIDOMHTMLDocument.NS_IDOMHTMLDOCUMENT_IID);
+
+ // Body
+ nsIDOMHTMLElement body = htmlDomDoc.getBody();
+
+ // Dom des Dokuments fuer die Annotationen vorbereiten
+ try {
+ if (body != null && casData.containsHtmlId(body.getId())) {
+ int[] pos = casData.getHtmlElementPos(body.getId());
+ prepareDOM(browserListener, body, pos[1], pos[2]);
+ }
+ } catch (SWTError err) {
+ CEVPlugin.error(err);
+ }
+
+ for (Type t : casData.getAnnotationStateCount().keySet()) {
+ if (casData.getAnnotationStateCount().get(t) > 0) {
+ casData.annotationStateChanged(t);
+ }
+ }
+ }
+
+ /**
+ * Browser setzen
+ *
+ * @param browser
+ * Browser
+ * @param listener
+ * Listener
+ */
+ public void setBrowser(Browser browser, nsIDOMEventListener listener) {
+ this.browser = browser;
+ browserListener = listener;
+ }
+
+ @Override
+ public void initialize() {
+ // HTML-Code aktualisieren
+ initializeHTML();
+
+ // Bereiche aktualisierne
+ // TODO
+ // annotationRanges = new CEVAnnotationRanges(this);
+
+ // Browser aktualisieren
+ if (browser != null && casData.getHTMLSource() != null) {
+ browser.setText(casData.getHTMLSource());
+ browser.addProgressListener(this);
+ }
+ }
+
+ /**
+ * HTML analysieren
+ */
+ private void initializeHTML() {
+
+ try {
+ if (casData.getCAS().getDocumentText() != null) {
+
+ // Parsen
+ // Parser parser = new Parser(cas.getDocumentText());
+ Parser parser = new Parser();
+ parser.setInputHTML(casData.getCAS().getDocumentText());
+
+ HTMLVisitor visitor = new HTMLVisitor(casData.getCAS().getDocumentText());
+
+ NodeList nl = parser.parse(null);
+ nl.visitAllNodesWith(visitor);
+
+ // Ergebnisse setzen
+ casData.htmlText = nl.toHtml();
+ casData.htmlElementPos = visitor.getIDPosMap();
+ casData.idName = visitor.getIDName();
+ casData.idCount = visitor.getIdCount();
+ }
+ } catch (Exception e) {
+ CEVPlugin.error(e);
+ }
+ }
+
+ /**
+ * DOM-Tree bearbeiten
+ *
+ * @param listener
+ * nsIDOMEventListener
+ * @param node
+ * Wurzelknoten
+ * @param start
+ * Startpos
+ * @param end
+ * Endpos
+ */
+ public void prepareDOM(nsIDOMEventListener listener, nsIDOMNode node, int start, int end) {
+ int leftPos = start;
+ int rightPos = end;
+
+ // Wenn Textnode
+ if (node.getNodeType() == nsIDOMNode.TEXT_NODE) {
+
+ leftPos = getLeftPosition(node, start);
+ rightPos = getRightPosition(node, end);
+
+ createSpan(listener, node, leftPos, rightPos);
+
+ // ElementNode
+ } else if (node.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement element = (nsIDOMHTMLElement) node
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+
+ // Linke und Rechte Pos bestimmen
+ if (casData.htmlElementPos.containsKey(element.getId())) {
+ int[] pos = casData.htmlElementPos.get(element.getId());
+ leftPos = pos[1];
+ rightPos = pos[2];
+ }
+
+ nsIDOMNodeList children = element.getChildNodes();
+
+ // Rekursiver Aufruf
+ for (int i = 0; i < children.getLength(); i++) {
+ nsIDOMNode item = children.item(i);
+ prepareDOM(listener, item, leftPos, rightPos);
+ }
+ }
+ }
+
+ private int getLeftPosition(nsIDOMNode node, int start) {
+ int leftPos = start;
+
+ // Linke Pos bestimmen
+ boolean foundBefore = false;
+ nsIDOMNode before = node;
+ while ((before = before.getPreviousSibling()) != null && !foundBefore) {
+ if (before.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement r = (nsIDOMHTMLElement) before
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+ if (casData.htmlElementPos.containsKey(r.getId())) {
+ int[] pos = casData.htmlElementPos.get(r.getId());
+ leftPos = pos[3] == 0 ? pos[1] : pos[3];
+ break;
+ } else {
+ nsIDOMNodeList nodes = r.getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++) {
+ nsIDOMNode item = nodes.item(i);
+ if (item != null && item.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement inner = (nsIDOMHTMLElement) item
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+ if (casData.htmlElementPos.containsKey(inner.getId())) {
+ int[] pos = casData.htmlElementPos.get(inner.getId());
+ leftPos = pos[3] == 0 ? pos[1] : pos[3];
+ foundBefore = true;
+ break;
+ } else {
+ before = item;
+ break;
+ }
+ }
+ }
+ }
+ }
+ }
+ return leftPos;
+ }
+
+ private int getRightPosition(nsIDOMNode node, int end) {
+ int rightPos = end;
+
+ // Rechte Pos bestimmen
+ nsIDOMNode next = node;
+ boolean foundNext = false;
+ while ((next = next.getNextSibling()) != null && !foundNext) {
+ if (next.getNodeType() == nsIDOMNode.ELEMENT_NODE && end != 0) {
+ nsIDOMHTMLElement r = (nsIDOMHTMLElement) next
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+ if (casData.htmlElementPos.containsKey(r.getId())) {
+ int[] pos = casData.htmlElementPos.get(r.getId());
+ rightPos = pos[0];
+ break;
+ } else {
+ nsIDOMNodeList nodes = r.getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++) {
+ nsIDOMNode item = nodes.item(i);
+ if (item != null && item.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement inner = (nsIDOMHTMLElement) item
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+ if (casData.htmlElementPos.containsKey(inner.getId())) {
+ int[] pos = casData.htmlElementPos.get(inner.getId());
+ rightPos = pos[0];
+ foundNext = true;
+ break;
+ } else {
+ nsIDOMNodeList innerChildren = inner.getChildNodes();
+ for (int j = 0; j < innerChildren.getLength(); j++) {
+ nsIDOMNode c = nodes.item(i);
+ if (c != null && c.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement ic = (nsIDOMHTMLElement) c
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+ if (casData.htmlElementPos.containsKey(ic.getId())) {
+ int[] pos = casData.htmlElementPos.get(ic.getId());
+ rightPos = pos[0];
+ foundNext = true;
+ break;
+ } else {
+
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ return rightPos;
+ }
+
+ /**
+ * Span erzeugen um HTML-Text erzeugen
+ *
+ * @param listener
+ * nsIDOMEventListener
+ * @param node
+ * Node
+ * @param start
+ * Start
+ * @param end
+ * End
+ */
+ private void createSpan(nsIDOMEventListener listener, nsIDOMNode node, int start, int end) {
+ // Ids fuer den Text
+
+ LinkedList<HtmlIdInfo> newIDs = casData.annotationRanges.createHtmlIDs(start, end);
+
+ if (newIDs.isEmpty())
+ return;
+
+ // Span erzeugen
+ nsIDOMElement container = node.getOwnerDocument().createElementNS(
+ "http://www.w3.org/1999/xhtml", "SPAN");
+ node.getParentNode().replaceChild(container, node);
+
+ int last = start;
+
+ // Unterbereiche erzeugen
+ while (!newIDs.isEmpty()) {
+ HtmlIdInfo idInfo = newIDs.removeFirst();
+
+ if (last < idInfo.getStart()) {
+ String decode = Translate.decode(casData.getCAS().getDocumentText().substring(last,
+ idInfo.getStart()));
+ nsIDOMText text = node.getOwnerDocument().createTextNode(decode);
+ container.appendChild(text);
+ last = idInfo.getStart();
+ }
+ // Span
+ nsIDOMElement span = node.getOwnerDocument().createElementNS("http://www.w3.org/1999/xhtml",
+ "SPAN");
+ span.setAttribute("id", idInfo.getId());
+
+ casData.htmlElementPos.put(idInfo.getId(), new int[] { 0, idInfo.getStart(), idInfo.getEnd(),
+ 0 });
+
+ // ClickEvent
+ nsIDOMEventTarget target = (nsIDOMEventTarget) span
+ .queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID);
+
+ target.addEventListener("click", listener, false);
+
+ // Textsetzen
+ String decode = Translate.decode(casData.getCAS().getDocumentText().substring(
+ idInfo.getStart(), idInfo.getEnd()));
+ nsIDOMText text = node.getOwnerDocument().createTextNode(decode);
+ span.appendChild(text);
+ container.appendChild(span);
+ last = idInfo.getEnd();
+ }
+
+ if (last < end) {
+ String decode = Translate.decode(casData.getCAS().getDocumentText().substring(last, end));
+ nsIDOMText text = node.getOwnerDocument().createTextNode(decode);
+ container.appendChild(text);
+ }
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/CEVDataHtmlExtension.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java Mon Aug 1 13:53:56 2011
@@ -0,0 +1,148 @@
+package org.apache.uima.tm.cev.html.artifactViewer;
+
+import java.util.LinkedHashMap;
+import java.util.LinkedList;
+
+import org.htmlparser.visitors.NodeVisitor;
+
+public class HTMLVisitor extends NodeVisitor {
+
+ // Map mit HTML-ID und den Positionen der zugehoerigen HTML-Tags im Code
+ // int[0] Startpos des Einleitenden Tags
+ // int[1] Endpos des Einleitenden Tags
+ // int[3] Startpos des Schliessenden Tags
+ // int[4] Endpos des Schliessenden Tags
+ private LinkedHashMap<String, int[]> idPosMap;
+
+ // Zaehler fuer die IDs
+ private int idCount;
+
+ // Prefix fuer die IDs
+ private String idName = "CAS_VIEWER_ID";
+
+ // Stack fuer die Tags beim Parsen
+ private LinkedList<String> tagStack;
+
+ // Stack fuer die IDs beim Parsen
+ private LinkedList<String> idStack;
+
+ /**
+ * Konstruktor
+ *
+ * @param html
+ * HTML-Code
+ */
+ public HTMLVisitor(String html) {
+ idPosMap = new LinkedHashMap<String, int[]>();
+ idCount = 0;
+
+ while (html.indexOf(idName) > -1)
+ idName += "_";
+ }
+
+ /**
+ * Gibt die Map mit den Id-Positionen zurueck
+ *
+ * @return Map
+ */
+ public LinkedHashMap<String, int[]> getIDPosMap() {
+ return idPosMap;
+ }
+
+ /**
+ * Gibt den ID-Prefix zurueck
+ *
+ * @return ID-Prefix
+ */
+ public String getIDName() {
+ return idName;
+ }
+
+ /**
+ * Gibt den ID-Zaehler zurueck
+ *
+ * @return Zaehler
+ */
+ public int getIdCount() {
+ return idCount;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.htmlparser.visitors.NodeVisitor#beginParsing()
+ */
+ @Override
+ public void beginParsing() {
+ // Initialisiert die Stacks
+ tagStack = new LinkedList<String>();
+ idStack = new LinkedList<String>();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.htmlparser.visitors.NodeVisitor#visitTag(org.htmlparser.Tag)
+ */
+ @Override
+ public void visitTag(org.htmlparser.Tag tag) {
+ // Pruefen ob das Tag schon eine ID hat
+ String id = tag.getAttribute("ID");
+
+ // Wenn nicht ID setzen
+ String tagName = tag.getTagName();
+ // TODO: added isIdTag
+ if (id == null && isIdTag(tagName)) {
+ id = idName + Integer.toString(idCount++);
+ tag.setAttribute("ID", id);
+ }
+
+ if (id != null) {
+ // Startpos setzen
+ idPosMap.put(id, new int[] { tag.getStartPosition(), tag.getEndPosition(), 0, 0 });
+
+ // auf Stack setzen
+ tagStack.addFirst(tag.getTagName());
+ idStack.addFirst(id);
+ }
+ }
+
+ private boolean isIdTag(String tagName) {
+ if (tagName.startsWith("!"))
+ return false;
+ String lowerCase = tagName.toLowerCase();
+ if (lowerCase.equals("base") || lowerCase.equals("head") || lowerCase.equals("html")
+ || lowerCase.equals("meta") || lowerCase.equals("script") || lowerCase.equals("style")
+ || lowerCase.equals("title"))
+ return false;
+ return true;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.htmlparser.visitors.NodeVisitor#visitEndTag(org.htmlparser.Tag)
+ */
+ @Override
+ public void visitEndTag(org.htmlparser.Tag tag) {
+
+ if (isIdTag(tag.getTagName())) {
+ while (true) {
+ if (tagStack.isEmpty()) {
+ System.out.println(tag.getTagName() + " : " + tag.getText() + " : " + tag.toString());
+ }
+ if (tagStack.getFirst().equals(tag.getTagName())) {
+ break;
+ }
+ tagStack.removeFirst();
+ idStack.removeFirst();
+ }
+ tagStack.removeFirst();
+ int[] pos = idPosMap.get(idStack.removeFirst());
+ pos[2] = tag.getStartPosition();
+ pos[3] = tag.getEndPosition();
+ }
+
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HTMLVisitor.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java Mon Aug 1 13:53:56 2011
@@ -0,0 +1,200 @@
+package org.apache.uima.tm.cev.html.artifactViewer;
+
+import java.util.Map;
+
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.tm.cev.data.CEVData;
+import org.apache.uima.tm.cev.editor.CEVViewer;
+import org.apache.uima.tm.cev.extension.ICEVArtifactViewer;
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.graphics.Point;
+import org.mozilla.interfaces.nsIBoxObject;
+import org.mozilla.interfaces.nsIDOMCSSStyleDeclaration;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElementCSSInlineStyle;
+import org.mozilla.interfaces.nsIDOMEvent;
+import org.mozilla.interfaces.nsIDOMEventListener;
+import org.mozilla.interfaces.nsIDOMHTMLElement;
+import org.mozilla.interfaces.nsIDOMNSDocument;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsISelection;
+import org.mozilla.interfaces.nsISupports;
+import org.mozilla.interfaces.nsIWebBrowser;
+
+
+public class HtmlArtifactViewer implements ICEVArtifactViewer, nsIDOMEventListener {
+
+ private CEVData casData;
+
+ private CEVViewer viewer;
+
+ private Browser browser;
+
+ public HtmlArtifactViewer(Browser browser, CEVViewer viewer) {
+ super();
+ this.browser = browser;
+ this.viewer = viewer;
+ }
+
+ @Override
+ public void annotationStateChanged(Type type) {
+ showBrowserAnnotations(casData.getAllHtmlIdsAndActiveTypes());
+ }
+
+ @Override
+ public void annotationStateChanged() {
+ showBrowserAnnotations(casData.getAllHtmlIdsAndActiveTypes());
+ }
+
+ public void showBrowserAnnotations(Map<String, Type> annots) {
+ nsIWebBrowser webBrowser = (nsIWebBrowser) browser.getWebBrowser();
+ nsIDOMDocument dom = webBrowser.getContentDOMWindow().getDocument();
+ // ueber die HTML-IDs
+ for (String id : annots.keySet()) {
+ // DOM-Node holen
+ nsIDOMNode node = dom.getElementById(id);
+ // Pruefen ob Node existiert...
+ if (node == null) {
+ continue;
+ }
+ // Farbe setzen
+ nsIDOMCSSStyleDeclaration style = ((nsIDOMElementCSSInlineStyle) node
+ .queryInterface(nsIDOMElementCSSInlineStyle.NS_IDOMELEMENTCSSINLINESTYLE_IID))
+ .getStyle();
+ Type t = annots.get(id);
+ if (t == null) {
+ style.removeProperty("background-color");
+ style.removeProperty("color");
+ } else {
+ style.setProperty("background-color", casData.getHtmlBackgroundColor(t), "");
+ style.setProperty("color", casData.getHtmlForegroundColor(t), "");
+ }
+ }
+ }
+
+ public Point getViewerSelectionRange() {
+ nsISelection sel = ((nsIWebBrowser) (browser).getWebBrowser()).getContentDOMWindow()
+ .getSelection();
+
+ nsIDOMNode start = sel.getRangeAt(0).getStartContainer();
+
+ // Selektierte Annotation suchen
+ while (!(start.getNodeType() == nsIDOMNode.ELEMENT_NODE && casData
+ .containsHtmlId(((nsIDOMHTMLElement) start
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID)).getId()))
+ && start.getParentNode() != null)
+ start = start.getParentNode();
+
+ nsIDOMNode end = sel.getRangeAt(0).getEndContainer();
+
+ // Selektierte Annotation suchen
+ while (!(end.getNodeType() == nsIDOMNode.ELEMENT_NODE && casData
+ .containsHtmlId(((nsIDOMHTMLElement) end
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID)).getId()))
+ && end.getParentNode() != null)
+ end = end.getParentNode();
+
+ // Selektion anzeigen
+ if (start.getNodeType() == nsIDOMNode.ELEMENT_NODE
+ && end.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ int s = casData.getHtmlElementPos(((nsIDOMHTMLElement) start
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID)).getId())[1];
+ int e = casData.getHtmlElementPos(((nsIDOMHTMLElement) end
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID)).getId())[1];
+
+ int startPos = s + sel.getRangeAt(0).getStartOffset();
+ int endPos = e + sel.getRangeAt(0).getEndOffset();
+ return new Point(startPos, endPos);
+ }
+ return null;
+ }
+
+ @Override
+ public void viewerWidgetSelected() {
+ showBrowserAnnotations(casData.getAllHtmlIdsAndActiveTypes());
+ }
+
+ @Override
+ public void moveToAnnotation(AnnotationFS annot) {
+ nsIWebBrowser webBrowser = (nsIWebBrowser) (browser).getWebBrowser();
+ nsIDOMDocument domDocument = webBrowser.getContentDOMWindow().getDocument();
+ nsIDOMNSDocument nsDocument = (nsIDOMNSDocument) domDocument
+ .queryInterface(nsIDOMNSDocument.NS_IDOMNSDOCUMENT_IID);
+
+ int x = Integer.MAX_VALUE;
+ int y = Integer.MAX_VALUE;
+ boolean scroll = false;
+
+ // Ueber alle DOM-Nodes der Annotation und die X und Y Koordinaten
+ // bestimmen
+ for (String id : casData.getHtmlIdsAndActiveTypesForAAnnotation(annot).keySet()) {
+ nsIBoxObject box = nsDocument.getBoxObjectFor(domDocument.getElementById(id));
+
+ if (box.getY() < y) {
+ y = box.getY();
+ x = box.getX();
+ scroll = true;
+ } else if (box.getX() < x) {
+ x = box.getX();
+ scroll = true;
+ }
+ }
+
+ // Scrollen
+ if (scroll) {
+ webBrowser.getContentDOMWindow().scrollTo(x, y);
+ }
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.mozilla.interfaces.nsIDOMEventListener#handleEvent(org.mozilla.interfaces
+ * .nsIDOMEvent)
+ */
+ public void handleEvent(nsIDOMEvent event) {
+ // Selektion im Browser
+ if (event.getType().equals("click")) {
+
+ nsISelection sel = ((nsIWebBrowser) (browser).getWebBrowser()).getContentDOMWindow()
+ .getSelection();
+
+ nsIDOMNode node = sel.getFocusNode();
+
+ // Selektierte Annotation suchen
+ while (!(node.getNodeType() == nsIDOMNode.ELEMENT_NODE && casData
+ .containsHtmlId(((nsIDOMHTMLElement) node
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID)).getId()))
+ && node.getParentNode() != null)
+ node = node.getParentNode();
+
+ // Selektion anzeigen
+ if (node.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMHTMLElement element = (nsIDOMHTMLElement) node
+ .queryInterface(nsIDOMHTMLElement.NS_IDOMHTMLELEMENT_IID);
+
+ viewer.showSelection(casData.getHtmlElementPos(element.getId())[2]);
+ }
+ }
+ }
+
+ public void viewChanged(CEVData casData) {
+ this.casData = casData;
+ }
+
+ public nsISupports queryInterface(String arg0) {
+ return null;
+ }
+
+ @Override
+ public void dispose() {
+ browser.dispose();
+ }
+
+ @Override
+ public int getOffsetAtLocation(Point point) {
+ return -1;
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java Mon Aug 1 13:53:56 2011
@@ -0,0 +1,72 @@
+package org.apache.uima.tm.cev.html.artifactViewer;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.tm.cev.CEVPlugin;
+import org.apache.uima.tm.cev.data.CEVData;
+import org.apache.uima.tm.cev.editor.CEVViewer;
+import org.apache.uima.tm.cev.extension.AbstractArtifactViewerFactory;
+import org.apache.uima.tm.cev.extension.ICEVArtifactViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.SWTError;
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.custom.CTabItem;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Composite;
+
+
+public class HtmlArtifactViewerFactory extends AbstractArtifactViewerFactory {
+
+ private final static Pattern tagPattern = Pattern.compile("</?(\\w+)([^>]*)>");
+
+ @Override
+ public ICEVArtifactViewer createArtifactViewer(CEVViewer viewer, CTabItem tabItem, CEVData casData) {
+ Composite composite = new Composite(tabItem.getParent(), SWT.NONE);
+ FillLayout layout = new FillLayout();
+ composite.setLayout(layout);
+ Browser browser = new Browser(composite, SWT.MOZILLA);
+ HtmlArtifactViewer artifactViewer = new HtmlArtifactViewer(browser, viewer);
+ try {
+ browser.addMouseListener(viewer);
+ // if (casData.getHTMLSource() != null) {
+ CEVDataHtmlExtension extension = new CEVDataHtmlExtension(casData);
+ extension.setBrowser(browser, artifactViewer);
+ extension.initialize();
+ if (casData.getHTMLSource() != null) {
+ browser.setText(casData.getHTMLSource());
+ }
+ // ProgressListener => Callback wenn Browser fertig geladen
+ browser.addProgressListener(extension);
+
+ // casData.setBrowser(browser, artifactViewer);
+ // browser.setText(casData.getHTMLSource());
+ // // ProgressListener => Callback wenn Browser fertig geladen
+ // browser.addProgressListener(casData);
+ // }
+ } catch (SWTError e) {
+ CEVPlugin.error(e);
+ }
+ tabItem.setControl(composite);
+ tabItem.setText("Browser");
+ return artifactViewer;
+ }
+
+ public boolean isAble(CAS cas) {
+ String text = cas.getDocumentText();
+ if (text == null) {
+ return false;
+ }
+ // TODO:
+ if (text.split("<html|<HTML|<table|<TABLE").length <= 1) {
+ return false;
+ }
+ Matcher m = tagPattern.matcher(text);
+ if (m.find()) {
+ return true;
+ }
+ return false;
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev.html/src/main/java/org/apache/uima/tm/cev/html/artifactViewer/HtmlArtifactViewerFactory.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath Mon Aug 1 13:53:56 2011
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <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 exported="true" kind="lib" path="lib/htmlparser.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.classpath
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project?rev=1152774&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project (added)
+++ uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project Mon Aug 1 13:53:56 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.uima.tm.cev</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>
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/org.apache.uima.tm.cev/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain