Check in before further refactoring.
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / BulkEditorSourceViewerConfiguration.java
diff --git a/taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorSourceViewerConfiguration.java b/taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditorSourceViewerConfiguration.java
deleted file mode 100644 (file)
index b42d7c5..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$\r
-/**\r
-* Copyright (C) 2007 EDIT\r
-* European Distributed Institute of Taxonomy \r
-* http://www.e-taxonomy.eu\r
-* \r
-* The contents of this file are subject to the Mozilla Public License Version 1.1\r
-* See LICENSE.TXT at the top of this package for the full license terms.\r
-*/\r
-package eu.etaxonomy.taxeditor.bulkeditor;\r
-\r
-import org.apache.log4j.Logger;\r
-import org.eclipse.jface.text.DefaultInformationControl;\r
-import org.eclipse.jface.text.DefaultTextHover;\r
-import org.eclipse.jface.text.IInformationControl;\r
-import org.eclipse.jface.text.IInformationControlCreator;\r
-import org.eclipse.jface.text.IRegion;\r
-import org.eclipse.jface.text.ITextHover;\r
-import org.eclipse.jface.text.ITextHoverExtension;\r
-import org.eclipse.jface.text.ITextViewer;\r
-import org.eclipse.jface.text.reconciler.IReconciler;\r
-import org.eclipse.jface.text.reconciler.IReconcilingStrategy;\r
-import org.eclipse.jface.text.reconciler.MonoReconciler;\r
-import org.eclipse.jface.text.source.ISourceViewer;\r
-import org.eclipse.jface.text.source.SourceViewerConfiguration;\r
-import org.eclipse.swt.widgets.Shell;\r
-import org.eclipse.ui.editors.text.EditorsUI;\r
-\r
-/**\r
- * @author p.ciardelli\r
- * @created 25.06.2009\r
- * @version 1.0\r
- */\r
-public class BulkEditorSourceViewerConfiguration extends\r
-               SourceViewerConfiguration {\r
-       @SuppressWarnings("unused")\r
-       private static final Logger logger = Logger.getLogger(BulkEditorSourceViewerConfiguration.class);\r
-       \r
-       /* (non-Javadoc)\r
-        * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getReconciler(org.eclipse.jface.text.source.ISourceViewer)\r
-        */\r
-       public IReconciler getReconciler(ISourceViewer sourceViewer) {\r
-               \r
-               IReconcilingStrategy strategy = new BulkEditorReconcilingStrategy(sourceViewer);\r
-               IReconciler reconciler = new MonoReconciler(strategy, true);\r
-\r
-               return reconciler;\r
-       }\r
-       \r
-       /* (non-Javadoc)\r
-        * @see org.eclipse.jface.text.source.SourceViewerConfiguration#getTextHover(org.eclipse.jface.text.source.ISourceViewer, java.lang.String, int)\r
-        */\r
-       @Override\r
-       public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType) {\r
-               /**\r
-                * http://dev.eclipse.org/newslists/news.eclipse.platform/msg76821.html\r
-                * \r
-                * The Javadoc hover is shown in a Browser widget\r
-                */\r
-               return new TextHover(sourceViewer);\r
-       }\r
-       \r
-       private final class TextHover extends DefaultTextHover implements ITextHoverExtension {\r
-\r
-               public TextHover(ISourceViewer sourceViewer) {\r
-                       super(sourceViewer);\r
-               }\r
-               \r
-               /* (non-Javadoc)\r
-                * @see org.eclipse.jface.text.DefaultTextHover#getHoverInfo(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)\r
-                */\r
-               @Override\r
-               public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {\r
-                       String content = super.getHoverInfo(textViewer, hoverRegion);\r
-                       \r
-                       content = "<b>" + content + "</b> is used in the following contexts:";\r
-                       content += "<ol>";\r
-                       content += "<li><b>Description:</b> Some description</li>";\r
-                       content += "<li><b>Name:</b> Some name</li>";\r
-                       content += "</ol>";\r
-                       \r
-                       return content;\r
-               }\r
-               \r
-               /* (non-Javadoc)\r
-                * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()\r
-                */\r
-               public IInformationControlCreator getHoverControlCreator() {\r
-                       return new IInformationControlCreator() {\r
-                               public IInformationControl createInformationControl(Shell parent) {\r
-                                       return new DefaultInformationControl(parent, EditorsUI.getTooltipAffordanceString());\r
-                               }\r
-                       };\r
-               }\r
-       }\r
-}
\ No newline at end of file