eclipse plugin: Disable the rich text hovers
This commit is contained in:
parent
499b1ef292
commit
d7668fab7b
2 changed files with 30 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 - 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
*
|
||||
* 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.autoedit.AbstractEditStrategyProvider;
|
|||
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.WMLAbstractDirtyEditorCallback;
|
|||
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 class WMLUiModule extends org.wesnoth.ui.AbstractWMLUiModule
|
|||
public void configure( Binder binder )
|
||||
{
|
||||
super.configure( binder );
|
||||
|
||||
binder.bind( IEObjectHoverProvider.class ).to(
|
||||
WMLEObjectHoverProvider.class );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2011 by Timotei Dolean <timotei21@gmail.com>
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue