Author: timotei
Date: Mon Aug  8 23:23:47 2011
New Revision: 50650

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50650&view=rev
Log:
eclipse plugin: Disable the rich text hovers

Added:
    trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/
    
trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/WMLEObjectHoverProvider.java
Modified:
    trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/WMLUiModule.java

Modified: trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/WMLUiModule.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/WMLUiModule.java?rev=50650&r1=50649&r2=50650&view=diff
==============================================================================
--- trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/WMLUiModule.java 
(original)
+++ trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/WMLUiModule.java Mon 
Aug  8 23:23:47 2011
@@ -1,6 +1,6 @@
 
/*******************************************************************************
  * Copyright (c) 2010 - 2011 by Timotei Dolean <[email protected]>
- *
+ * 
  * This program and the accompanying materials are made available
  * under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -23,6 +23,7 @@
 import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
 import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalComparator;
 import org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider;
+import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider;
 import org.eclipse.xtext.ui.editor.hyperlinking.HyperlinkHelper;
 import 
org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper;
 import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration;
@@ -36,6 +37,7 @@
 import org.wesnoth.ui.editor.WMLEditor;
 import org.wesnoth.ui.editor.WMLHighlightingHelper;
 import org.wesnoth.ui.folding.WMLFoldingRegionProvider;
+import org.wesnoth.ui.hover.WMLEObjectHoverProvider;
 import org.wesnoth.ui.labeling.WMLLabelProvider;
 import org.wesnoth.ui.navigation.WMLHyperlinkHelper;
 import org.wesnoth.ui.resource.WMLLocationInFileProvider;
@@ -59,6 +61,9 @@
     public void configure( Binder binder )
     {
         super.configure( binder );
+
+        binder.bind( IEObjectHoverProvider.class ).to(
+                WMLEObjectHoverProvider.class );
     }
 
     @Override

Added: 
trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/WMLEObjectHoverProvider.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/WMLEObjectHoverProvider.java?rev=50650&view=auto
==============================================================================
--- 
trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/WMLEObjectHoverProvider.java
 (added)
+++ 
trunk/utils/umc_dev/org.wesnoth.ui/src/org/wesnoth/ui/hover/WMLEObjectHoverProvider.java
 Mon Aug  8 23:23:47 2011
@@ -1,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2011 by Timotei Dolean <[email protected]>
+ * 
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ 
*******************************************************************************/
+package org.wesnoth.ui.hover;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.jface.text.IRegion;
+import org.eclipse.jface.text.ITextViewer;
+import org.eclipse.xtext.ui.editor.hover.html.DefaultEObjectHoverProvider;
+
+public class WMLEObjectHoverProvider extends DefaultEObjectHoverProvider
+{
+    @Override
+    public IInformationControlCreatorProvider getHoverInfo( EObject object,
+            ITextViewer viewer, IRegion region )
+    {
+        return null;
+    }
+}


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to