java - How to override SourceViewerConfiguration in eclipse text editor -


i making eclipse plugin text hover extends eclipse text hover. trying make own "design" text hover using method

public iinformationcontrolcreator gethovercontrolcreator()  

in own texthover class but, information give in function return default when focused on hover. read need set iinformationcontrolcreator in sourceviewerconfiguration class using following function:

getinformationcontrolcreator 

but, can't override sourceviewerconfiguration.

this override function:

package texthoverpackage; import org.eclipse.jface.text.itexthover; import org.eclipse.jface.text.source.isourceviewer; import org.eclipse.jface.text.source.sourceviewerconfiguration; public class texthoversourceviewerconfig extends sourceviewerconfiguration {     public itexthover gettexthover(isourceviewer sourceviewer, string contenttype) {         system.out.println("i in other place!!!");         return new javatexthover();     } } 

the "i in other place!!!" message not printed tried wrote class in extension point in plugin.xml page error extension point class:

org.eclipse.jface.text.source.sourceviewerconfiguration 

can't create.

so happy know how override sourceviewerconfiguration class.

you can't change main sourceviewerconfiguration existing editor.

the way set different sourceviewerconfiguration create new editor.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -