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/12 12:28:19 UTC
svn commit: r1157036 [1/5] - in /uima/sandbox/trunk/TextMarker/uimaj-ep-cev:
./ .settings/ META-INF/ icons/ lib/ schema/ src/ src/main/ src/main/java/
src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/uima/
src/main/java/org/apache/...
Author: joern
Date: Fri Aug 12 10:28:15 2011
New Revision: 1157036
URL: http://svn.apache.org/viewvc?rev=1157036&view=rev
Log:
UIMA-2206 Adding re-structured project content again
Added:
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/cevViewer.png (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/edit.png (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/hierarchicalLayout.gif (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/views.png (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/htmlparser.jar (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/CEVAnnotationRanges.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/CEVData.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/CEVDocument.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/ICEVAnnotationListener.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/ICEVAnnotationSelectionListener.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/ICEVDataExtension.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/StyleMapReader.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVAbstractTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVAnnotationOrderedRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVAnnotationOrderedTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVAnnotationTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVFSTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVFeatureTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVTreeComparator.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVTypeOrderedRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/CEVTypeTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/ICEVAnnotationNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/ICEVRootTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/data/tree/ICEVTreeNode.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/editor/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/editor/CEVViewer.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/editor/CEVViewerContributor.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/AbstractArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVArtifactViewer.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVArtifactViewerFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVEditor.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVEditorFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVExtension.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVSearchStrategy.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVSearchStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/extension/ICEVViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/CEVAnnotationFilterEditor.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/CEVPreferenceConstants.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/CEVPreferenceInitializer.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/CEVViewerAnnotationFilterPreferencePage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/preferences/CEVViewerTreeViewPreferencePage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/AllXmlInProjectStrategy.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/AllXmlInProjectStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/CEVCollectionContentProvider.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/IFileComparator.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/SelectInFolderStrategy.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/SelectInFolderStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/SingleInFolderStrategy.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/searchStrategy/SingleInFolderStrategyFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/CEVAnnotationTreeViewContentProvider.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/CEVAnnotationTreeViewDragListener.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/CEVAnnotationTreeViewLableProvider.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/CEVAnnotationTreeViewPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/CEVPageBookView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/ICEVViewPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/TextUtils.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/annotationBrowser/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/annotationBrowser/CEVAnnotationBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/annotationBrowser/CEVAnnotationBrowserView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/annotationBrowser/CEVAnnotationBrowserViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/annotationBrowser/ICEVAnnotationBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/CEVAnnotationEditorFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/CEVAnnotationEditorPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/CEVAnnotationEditorView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/editor/ICEVAnnotationEditorPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/fsBrowser/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/fsBrowser/CEVFSBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/fsBrowser/CEVFSBrowserView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/fsBrowser/CEVFSBrowserViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/fsBrowser/ICEVFSBrowserPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/palette/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/palette/CEVAnnotationMarkerPaletteFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/palette/CEVAnnotationMarkerPalettePage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/palette/CEVAnnotationMarkerPaletteView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/palette/ICEVAnnotationMarkerPalettePage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/selection/
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/selection/CEVSelectionPage.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/selection/CEVSelectionView.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/selection/CEVSelectionViewFactory.java (with props)
uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/views/selection/ICEVSelectionPage.java (with props)
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath Fri Aug 12 10:28:15 2011
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <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="src" path="src/main/java"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.classpath
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project Fri Aug 12 10:28:15 2011
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>uimaj-ep-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/uimaj-ep-cev/.project
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.project
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs Fri Aug 12 10:28:15 2011
@@ -0,0 +1,8 @@
+#Wed Aug 10 13:58:02 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+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
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF Fri Aug 12 10:28:15 2011
@@ -0,0 +1,33 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: UIMA CEV Plugin
+Bundle-SymbolicName: org.apache.uima.cev;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.apache.uima.cev.CEVPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.apache.uima.runtime;bundle-version="2.3.1",
+ org.eclipse.jface.text,
+ org.eclipse.ui.browser,
+ org.eclipse.ui.views,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.editors,
+ org.eclipse.core.resources
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ClassPath: lib/htmlparser.jar,
+ .
+Export-Package: org.apache.uima.cev,
+ org.apache.uima.cev.artifactViewer,
+ org.apache.uima.cev.data,
+ org.apache.uima.cev.data.tree,
+ org.apache.uima.cev.editor,
+ org.apache.uima.cev.extension,
+ org.apache.uima.cev.preferences,
+ org.apache.uima.cev.searchStrategy,
+ org.apache.uima.cev.views,
+ org.apache.uima.cev.views.annotationBrowser,
+ org.apache.uima.cev.views.editor,
+ org.apache.uima.cev.views.fsBrowser,
+ org.apache.uima.cev.views.palette,
+ org.apache.uima.cev.views.selection
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties Fri Aug 12 10:28:15 2011
@@ -0,0 +1,7 @@
+source.. = src/main/java/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ lib/htmlparser.jar,\
+ icons/
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/cevViewer.png
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/cevViewer.png?rev=1157036&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/cevViewer.png
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/cevViewer.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/edit.png
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/edit.png?rev=1157036&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/edit.png
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/edit.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/hierarchicalLayout.gif
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/hierarchicalLayout.gif?rev=1157036&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/hierarchicalLayout.gif
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/hierarchicalLayout.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/views.png
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/views.png?rev=1157036&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/views.png
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/icons/views.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/htmlparser.jar
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/htmlparser.jar?rev=1157036&view=auto
==============================================================================
Binary file - no diff available.
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/htmlparser.jar
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/lib/htmlparser.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml Fri Aug 12 10:28:15 2011
@@ -0,0 +1,163 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<?eclipse version="3.4"?>
+<plugin>
+ <extension-point id="cevEditors" name="CEV Annotation Editors" schema="schema/cevEditors.exsd"/>
+ <extension-point id="cevViews" name="CEV Annotation Views" schema="schema/cevViews.exsd"/>
+ <extension-point id="cevSearchStrategies" name="Descriptor Search Strategies" schema="schema/cevSearchStrategies.exsd"/>
+ <extension-point id="cevArtifactViewers" name="Viewers of the artifact" schema="schema/cevArtifactViewers.exsd"/>
+
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ name="CEV"
+ extensions="xmi"
+ icon="icons/cevViewer.png"
+ contributorClass="org.apache.uima.cev.editor.CEVViewerContributor"
+ class="org.apache.uima.cev.editor.CEVViewer"
+ id="org.apache.uima.cev.editor.CEVViewer">
+ </editor>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <category
+ id="org.apache.uima.cev.views"
+ name="CEV">
+ </category>
+ <view
+ category="org.apache.uima.cev.views"
+ class="org.apache.uima.cev.views.selection.CEVSelectionView"
+ icon="icons/views.png"
+ id="org.apache.uima.cev.views.selection"
+ name="Selection">
+ </view>
+ <view
+ category="org.apache.uima.cev.views"
+ class="org.apache.uima.cev.views.annotationBrowser.CEVAnnotationBrowserView"
+ icon="icons/views.png"
+ id="org.apache.uima.cev.views.annotationBrowser"
+ name="Annotation Browser">
+ </view>
+ <view
+ category="org.apache.uima.cev.views"
+ class="org.apache.uima.cev.views.editor.CEVAnnotationEditorView"
+ icon="icons/edit.png"
+ id="org.apache.uima.cev.views.editor"
+ name="Annotation Editor">
+ </view>
+ <view
+ category="org.apache.uima.cev.views"
+ class="org.apache.uima.cev.views.palette.CEVAnnotationMarkerPaletteView"
+ icon="icons/edit.png"
+ id="org.apache.uima.cev.views.palette"
+ name="Marker Palette">
+ </view>
+ <view
+ category="org.apache.uima.cev.views"
+ class="org.apache.uima.cev.views.fsBrowser.CEVFSBrowserView"
+ icon="icons/views.png"
+ id="org.apache.uima.cev.views.fsBrowser"
+ name="FS only Browser">
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.core.runtime.preferences">
+ <initializer
+ class="org.apache.uima.cev.preferences.CEVPreferenceInitializer">
+ </initializer>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ class="org.apache.uima.cev.preferences.CEVViewerTreeViewPreferencePage"
+ id="org.apache.uima.cev.preferences.CEVViewerTreeViewPreferencePage"
+ name="CEV">
+ </page>
+ <page
+ category="org.apache.uima.cev.preferences.CEVViewerTreeViewPreferencePage"
+ class="org.apache.uima.cev.preferences.CEVViewerAnnotationFilterPreferencePage"
+ id="org.apache.uima.cev.preferences.CEVViewerAnnotationFilterPreferencePage"
+ name="Annotation Filter">
+ </page>
+ </extension>
+ <extension
+ point="org.apache.uima.cev.cevEditors">
+ <editor
+ factory="org.apache.uima.cev.views.editor.CEVAnnotationEditorFactory"
+ id="org.apache.uima.textmarker.cev.extension.editor"
+ priority="0"
+ viewId="org.apache.uima.cev.views.editor">
+ </editor>
+ <editor
+ factory="org.apache.uima.cev.views.palette.CEVAnnotationMarkerPaletteFactory"
+ id="org.apache.uima.textmarker.cev.extension.palette"
+ priority="0"
+ viewId="org.apache.uima.cev.views.palette">
+ </editor>
+ </extension>
+ <extension
+ point="org.apache.uima.cev.cevViews">
+ <view
+ factory="org.apache.uima.cev.views.annotationBrowser.CEVAnnotationBrowserViewFactory"
+ id="org.apache.uima.textmarker.cev.extension.annotationBrowser"
+ priority="0"
+ viewId="org.apache.uima.cev.views.annotationBrowser">
+ </view>
+ <view
+ factory="org.apache.uima.cev.views.selection.CEVSelectionViewFactory"
+ id="org.apache.uima.textmarker.cev.extension.selection"
+ priority="0"
+ viewId="org.apache.uima.cev.views.selection">
+ </view>
+ <view
+ factory="org.apache.uima.cev.views.fsBrowser.CEVFSBrowserViewFactory"
+ id="org.apache.uima.textmarker.cev.extension.fsBrowser"
+ priority="0"
+ viewId="org.apache.uima.cev.views.fsBrowser">
+ </view>
+ </extension>
+ <extension
+ point="org.apache.uima.cev.cevSearchStrategies">
+ <strategy
+ factory="org.apache.uima.cev.searchStrategy.SingleInFolderStrategyFactory"
+ id="org.apache.uima.cev.searchStrategy.SingleInFolder"
+ priority="10">
+ </strategy>
+ <strategy
+ factory="org.apache.uima.cev.searchStrategy.SelectInFolderStrategyFactory"
+ id="org.apache.uima.cev.searchStrategy.SelectInFolder"
+ priority="50">
+ </strategy>
+ <strategy
+ factory="org.apache.uima.cev.searchStrategy.AllXmlInProjectStrategyFactory"
+ id="org.apache.uima.cev.searchStrategy.AllXmlInProject"
+ priority="5000">
+ </strategy>
+ </extension>
+ <extension
+ point="org.apache.uima.cev.cevArtifactViewers">
+ <artifactViewer
+ factory="org.apache.uima.cev.artifactViewer.TextArtifactViewerFactory"
+ id="org.apache.uima.cev.artifactViewer.text"
+ priority="5">
+ </artifactViewer>
+ </extension>
+
+</plugin>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/plugin.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd Fri Aug 12 10:28:15 2011
@@ -0,0 +1,134 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<schema targetNamespace="org.apache.uima.cev" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.apache.uima.cev" id="cevArtifactViewers" name="cevArtifactViewers"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="artifactViewer"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="artifactViewer">
+ <complexType>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="factory" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":CEVArtifactViewerFactory"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="priority" type="string" use="default" value="100">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevArtifactViewers.exsd
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd Fri Aug 12 10:28:15 2011
@@ -0,0 +1,144 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<schema targetNamespace="org.apache.uima.cev" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.apache.uima.cev" id="cevEditor" name="CEV Annotation Editor"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="editor"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="editor">
+ <complexType>
+ <attribute name="viewId" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="priority" type="string" use="default" value="0">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="factory" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn=":org.apache.uima.cev.extension.ICEVEditorFactory"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevEditors.exsd
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd Fri Aug 12 10:28:15 2011
@@ -0,0 +1,134 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<schema targetNamespace="org.apache.uima.cev" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.apache.uima.cev" id="descriptorSearchStrategy" name="Descriptor Search Strategy"/>
+ </appInfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="strategy"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="strategy">
+ <complexType>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="factory" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.apache.uima.cev.extension.ICEVSearchStrategyFactory"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="priority" type="string" use="default" value="0">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevSearchStrategies.exsd
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd Fri Aug 12 10:28:15 2011
@@ -0,0 +1,144 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<schema targetNamespace="org.apache.uima.cev" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.apache.uima.cev" id="cevView" name="CEV Annotation View"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="view"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="view">
+ <complexType>
+ <attribute name="viewId" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="priority" type="string" use="default" value="0">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="factory" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn=":org.apache.uima.cev.extension.ICEVViewFactory"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/schema/cevViews.exsd
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java Fri Aug 12 10:28:15 2011
@@ -0,0 +1,243 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.cev;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.uima.cev.artifactViewer.ArtifactViewerComparator;
+import org.apache.uima.cev.extension.ICEVArtifactViewerFactory;
+import org.apache.uima.cev.extension.ICEVEditorFactory;
+import org.apache.uima.cev.extension.ICEVSearchStrategy;
+import org.apache.uima.cev.extension.ICEVSearchStrategyFactory;
+import org.apache.uima.cev.extension.ICEVViewFactory;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbenchSite;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
+import org.osgi.framework.BundleContext;
+
+public class CEVPlugin extends AbstractUIPlugin {
+
+ public static final String PLUGIN_ID = "org.apache.uima.cev";
+
+ private static final String ATT_PRIORITY = "priority";
+
+ public static final String ATT_ADAPTER = "adapter";
+
+ public static final String ATT_FACTORY = "factory";
+
+ // Shared instance
+ private static CEVPlugin plugin;
+
+ public CEVPlugin() {
+ }
+
+ /*
+ * (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);
+ }
+
+ public static CEVPlugin getDefault() {
+ return plugin;
+ }
+
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+
+ public static Map<Class<?>, ICEVEditorFactory> getEditorAdapters() {
+ Map<Class<?>, ICEVEditorFactory> result = new HashMap<Class<?>, ICEVEditorFactory>();
+ IExtension[] editorExtensions = Platform.getExtensionRegistry()
+ .getExtensionPoint(CEVPlugin.PLUGIN_ID, "cevEditors").getExtensions();
+ for (IExtension extension : editorExtensions) {
+ IConfigurationElement[] configurationElements = extension.getConfigurationElements();
+ for (IConfigurationElement configurationElement : configurationElements) {
+ Object factoryObject = null;
+ try {
+ factoryObject = configurationElement.createExecutableExtension(ATT_FACTORY);
+ } catch (CoreException e) {
+ CEVPlugin.error(e);
+ }
+ if (factoryObject instanceof ICEVEditorFactory) {
+ ICEVEditorFactory editorFactory = (ICEVEditorFactory) factoryObject;
+ result.put(editorFactory.getAdapterInterface(), editorFactory);
+ }
+ }
+ }
+ return result;
+ }
+
+ public static Map<Class<?>, ICEVViewFactory> getViewAdapters() {
+ Map<Class<?>, ICEVViewFactory> result = new HashMap<Class<?>, ICEVViewFactory>();
+ IExtension[] viewExtensions = Platform.getExtensionRegistry()
+ .getExtensionPoint(CEVPlugin.PLUGIN_ID, "cevViews").getExtensions();
+ for (IExtension extension : viewExtensions) {
+ IConfigurationElement[] configurationElements = extension.getConfigurationElements();
+ for (IConfigurationElement configurationElement : configurationElements) {
+ Object factoryObject = null;
+ try {
+ factoryObject = configurationElement.createExecutableExtension(ATT_FACTORY);
+ } catch (CoreException e) {
+ CEVPlugin.error(e);
+ }
+ if (factoryObject instanceof ICEVViewFactory) {
+ ICEVViewFactory viewFactory = (ICEVViewFactory) factoryObject;
+ result.put(viewFactory.getAdapterInterface(), viewFactory);
+ }
+ }
+ }
+ return result;
+ }
+
+ public static List<ICEVArtifactViewerFactory> getArtifactViewerFactories() {
+ List<ICEVArtifactViewerFactory> result = new ArrayList<ICEVArtifactViewerFactory>();
+ IExtension[] viewerExtensions = Platform.getExtensionRegistry()
+ .getExtensionPoint(CEVPlugin.PLUGIN_ID, "cevArtifactViewers").getExtensions();
+ for (IExtension extension : viewerExtensions) {
+ IConfigurationElement[] configurationElements = extension.getConfigurationElements();
+ for (IConfigurationElement configurationElement : configurationElements) {
+ Object factoryObject = null;
+ String priorityString = null;
+ try {
+ factoryObject = configurationElement.createExecutableExtension(ATT_FACTORY);
+ priorityString = configurationElement.getAttribute(ATT_PRIORITY);
+ } catch (CoreException e) {
+ CEVPlugin.error(e);
+ }
+ if (factoryObject instanceof ICEVArtifactViewerFactory) {
+ ICEVArtifactViewerFactory viewerFactory = (ICEVArtifactViewerFactory) factoryObject;
+ int priority = 100;
+ try {
+ priority = Integer.parseInt(priorityString);
+ } catch (NumberFormatException e) {
+ // bad string
+ }
+ viewerFactory.setPriority(priority);
+ result.add(viewerFactory);
+ }
+ }
+ }
+ Collections.sort(result, new ArtifactViewerComparator());
+ return result;
+ }
+
+ public static List<ICEVSearchStrategy> getSearchStrategies() {
+ List<ICEVSearchStrategy> result = new ArrayList<ICEVSearchStrategy>();
+ IExtension[] searchExtensions = Platform.getExtensionRegistry()
+ .getExtensionPoint(CEVPlugin.PLUGIN_ID, "cevSearchStrategies").getExtensions();
+ for (IExtension extension : searchExtensions) {
+ IConfigurationElement[] configurationElements = extension.getConfigurationElements();
+ for (IConfigurationElement configurationElement : configurationElements) {
+ Object factoryObject = null;
+ String priorityString = null;
+ try {
+ factoryObject = configurationElement.createExecutableExtension(ATT_FACTORY);
+ priorityString = configurationElement.getAttribute(ATT_PRIORITY);
+ } catch (CoreException e) {
+ CEVPlugin.error(e);
+ }
+ if (factoryObject instanceof ICEVSearchStrategyFactory) {
+ ICEVSearchStrategyFactory searchFactory = (ICEVSearchStrategyFactory) factoryObject;
+ int priority = 100;
+ try {
+ priority = Integer.parseInt(priorityString);
+ } catch (NumberFormatException e) {
+ // bad string
+ }
+ ICEVSearchStrategy strategy = searchFactory.createSearchStrategy(priority);
+ result.add(strategy);
+ }
+ }
+ }
+ Collections.sort(result, new Comparator<ICEVSearchStrategy>() {
+
+ public int compare(ICEVSearchStrategy o1, ICEVSearchStrategy o2) {
+ if (o1.getPriority() < o2.getPriority()) {
+ return -1;
+ } else if (o1.getPriority() > o2.getPriority()) {
+ return 1;
+ } else {
+ return 0;
+ }
+ }
+
+ });
+ return result;
+ }
+
+ public static void error(Throwable t) {
+ plugin.getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, t.getMessage(), t));
+ }
+
+ public static void schedule(Job job, IWorkbenchSite site) {
+ if (site != null) {
+ IWorkbenchSiteProgressService siteProgress = (IWorkbenchSiteProgressService) site
+ .getAdapter(IWorkbenchSiteProgressService.class);
+ if (siteProgress != null) {
+ siteProgress.schedule(job, 0, true /* use half-busy cursor */);
+ return;
+ }
+ }
+ job.schedule();
+ }
+
+ public static void runInUIThread(final Runnable runnable) {
+ if (Display.getCurrent() != null) {
+ BusyIndicator.showWhile(Display.getCurrent(), runnable);
+ } else {
+ Display.getDefault().syncExec(new Runnable() {
+ public void run() {
+ BusyIndicator.showWhile(Display.getCurrent(), runnable);
+ }
+ });
+ }
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/CEVPlugin.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java Fri Aug 12 10:28:15 2011
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.cev.artifactViewer;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cev.data.CEVDocument;
+
+
+public interface ArtifactModifier {
+
+ CAS modifyCas(CEVDocument casDoc, CAS newCas, int index);
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactModifier.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java Fri Aug 12 10:28:15 2011
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.cev.artifactViewer;
+
+import java.util.Comparator;
+
+import org.apache.uima.cev.extension.ICEVArtifactViewerFactory;
+
+
+public class ArtifactViewerComparator implements Comparator<ICEVArtifactViewerFactory> {
+
+ public int compare(ICEVArtifactViewerFactory o1, ICEVArtifactViewerFactory o2) {
+ if (o1.getPriority() < o2.getPriority()) {
+ return -1;
+ } else if (o1.getPriority() > o2.getPriority()) {
+ return 1;
+ } else {
+ return 0;
+ }
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/ArtifactViewerComparator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java Fri Aug 12 10:28:15 2011
@@ -0,0 +1,228 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.cev.artifactViewer;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
+import org.apache.uima.cas.Feature;
+import org.apache.uima.cas.Type;
+import org.apache.uima.cas.TypeSystem;
+import org.apache.uima.cas.text.AnnotationFS;
+import org.apache.uima.cev.data.CEVAnnotationRanges.StyleRangeContainer;
+import org.apache.uima.cev.data.CEVData;
+import org.apache.uima.cev.editor.CEVViewer;
+import org.apache.uima.cev.extension.ICEVArtifactViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.StyleRange;
+import org.eclipse.swt.custom.StyledText;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Shell;
+
+public class TextArtifactViewer extends StyledText implements ICEVArtifactViewer {
+
+ private class ToolTipListener implements Listener {
+
+ private Shell tip = null;
+
+ private Label label = null;
+
+ private StyledText text;
+
+ private StyledText tipText;
+
+ private ToolTipListener(StyledText text) {
+ this.text = text;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets .Event)
+ */
+ public void handleEvent(Event event) {
+ switch (event.type) {
+ case SWT.Dispose:
+ case SWT.KeyDown:
+ case SWT.MouseMove: {
+ if (tip == null)
+ break;
+ tip.dispose();
+ tip = null;
+ label = null;
+ break;
+ }
+ case SWT.MouseHover: {
+ Point point = new Point(event.x, event.y);
+ int offsetAtLocation = -1;
+ try {
+ offsetAtLocation = text.getOffsetAtLocation(point);
+ } catch (Exception e) {
+ break;
+ }
+
+ List<AnnotationFS> annotationsToShow = new ArrayList<AnnotationFS>();
+ List<AnnotationFS> annotationsAt = casData.getAnnotationsAt(offsetAtLocation);
+ HashMap<Type, HashMap<AnnotationFS, Boolean>> annotationState = casData
+ .getAnnotationState();
+ for (AnnotationFS annotationFS : annotationsAt) {
+ Type type = annotationFS.getType();
+ HashMap<AnnotationFS, Boolean> hashMap = annotationState.get(type);
+ Boolean visible = hashMap.get(annotationFS);
+ if (visible) {
+ annotationsToShow.add(annotationFS);
+ }
+ }
+ TypeSystem typeSystem = casData.getCAS().getTypeSystem();
+ Type stringType = typeSystem.getType("uima.cas.String");
+ StringBuilder infoText = new StringBuilder();
+
+ List<StyleRange> styles = new ArrayList<StyleRange>();
+
+ int start = 0;
+ int end = 0;
+ for (AnnotationFS each : annotationsToShow) {
+ Type type = each.getType();
+ String coveredText = each.getCoveredText();
+ coveredText = shrink(coveredText);
+ start = infoText.length();
+ infoText.append(type.getShortName() + ": ");
+ end = infoText.length();
+ StyleRange style1 = new StyleRange();
+ style1.start = start;
+ style1.length = end - start;
+ style1.fontStyle = SWT.BOLD;
+ styles.add(style1);
+ infoText.append(coveredText + "\n");
+ List<Feature> features = type.getFeatures();
+ for (Feature feature : features) {
+ if (typeSystem.subsumes(stringType, feature.getRange())) {
+ String shortName = feature.getShortName();
+ String stringValue = each.getStringValue(feature);
+ start = infoText.length();
+ infoText.append("- " + shortName + ": ");
+ end = infoText.length();
+ StyleRange style2 = new StyleRange();
+ style2.start = start;
+ style2.length = end - start;
+ style2.fontStyle = SWT.BOLD;
+ styles.add(style2);
+ infoText.append(shrink(stringValue) + "\n");
+ }
+ }
+ infoText.append("\n");
+ }
+
+ if (tip != null && !tip.isDisposed())
+ tip.dispose();
+
+ if (!infoText.toString().equals("")) {
+ tip = new Shell(Display.getCurrent().getActiveShell(), SWT.BALLOON
+ | SWT.ICON_INFORMATION | SWT.ON_TOP | SWT.NO_FOCUS | SWT.TOOL);
+ tip.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+ FillLayout layout = new FillLayout();
+ layout.marginWidth = 2;
+ tip.setLayout(layout);
+
+ tipText = new StyledText(tip, SWT.NONE);
+ tipText.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
+ tipText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+ tipText.setText(infoText.toString());
+
+ tipText.setStyleRanges(styles.toArray(new StyleRange[0]));
+ tipText.layout(true);
+
+ Point size = tip.computeSize(SWT.DEFAULT, SWT.DEFAULT);
+ Point pt = text.toDisplay(new Point(point.x + 20, point.y + 10));
+ tip.setBounds(pt.x, pt.y, size.x, size.y);
+ tip.setVisible(true);
+ }
+ }
+ }
+ }
+
+ private String shrink(String coveredText) {
+ if (coveredText != null && coveredText.length() > 100) {
+ coveredText = coveredText.substring(0, 40) + "...";
+ }
+ return coveredText;
+ }
+ }
+
+ private CEVData casData;
+
+ private CEVViewer viewer;
+
+ public TextArtifactViewer(Composite composite, int style, CEVViewer viewer) {
+ super(composite, style);
+ this.viewer = viewer;
+ ToolTipListener tl = new ToolTipListener(this);
+ addListener(SWT.Dispose, tl);
+ addListener(SWT.KeyDown, tl);
+ addListener(SWT.MouseMove, tl);
+ addListener(SWT.MouseHover, tl);
+ }
+
+ public void annotationStateChanged(Type type) {
+ StyleRangeContainer sc = casData.getAllStyleRanges();
+ setStyleRanges(sc.getStart(), sc.getLength(), sc.getIndices(), sc.getRanges());
+ }
+
+ public void annotationStateChanged() {
+ StyleRangeContainer sc = casData.getAllStyleRanges();
+ int start = sc.getStart();
+ int length = sc.getLength();
+ int[] indices = sc.getIndices();
+ StyleRange[] ranges = sc.getRanges();
+ setStyleRanges(start, length, indices, ranges);
+ }
+
+ public Point getViewerSelectionRange() {
+ return getSelectionRange();
+ }
+
+ public void viewerWidgetSelected() {
+ StyleRangeContainer sc = casData.getAllStyleRanges();
+ setStyleRanges(sc.getStart(), sc.getLength(), sc.getIndices(), sc.getRanges());
+ }
+
+ public void moveToAnnotation(AnnotationFS annot) {
+ if (!annot.getCoveredText().equals("\n") && !annot.getCoveredText().equals("\r")) {
+ setSelection(annot.getBegin());
+ }
+ }
+
+ public void viewChanged(CEVData casData) {
+ this.casData = casData;
+ List<Type> initialVisibleTypes = viewer.getInitialVisibleTypes();
+ for (Type type : initialVisibleTypes) {
+ annotationStateChanged(type);
+ }
+
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java?rev=1157036&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java Fri Aug 12 10:28:15 2011
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.cev.artifactViewer;
+
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cev.data.CEVData;
+import org.apache.uima.cev.editor.CEVViewer;
+import org.apache.uima.cev.extension.AbstractArtifactViewerFactory;
+import org.apache.uima.cev.extension.ICEVArtifactViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.CTabItem;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Composite;
+
+
+public class TextArtifactViewerFactory extends AbstractArtifactViewerFactory {
+
+ public ICEVArtifactViewer createArtifactViewer(CEVViewer viewer, CTabItem tabItem, CEVData casData) {
+ Composite composite = new Composite(tabItem.getParent(), SWT.NONE);
+ FillLayout layout = new FillLayout();
+ composite.setLayout(layout);
+ TextArtifactViewer text = new TextArtifactViewer(composite, SWT.READ_ONLY | SWT.WRAP
+ | SWT.H_SCROLL | SWT.V_SCROLL, viewer);
+ text.addMouseListener(viewer);
+
+ tabItem.setControl(composite);
+ tabItem.setText("Plain Text");
+
+ if (casData.getDocumentText() != null) {
+ text.setText(casData.getDocumentText());
+ }
+
+ return text;
+ }
+
+ public boolean isAble(CAS cas) {
+ return cas.getDocumentText() != null && !"".equals(cas.getDocumentText());
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-cev/src/main/java/org/apache/uima/cev/artifactViewer/TextArtifactViewerFactory.java
------------------------------------------------------------------------------
svn:mime-type = text/plain